@opencx/widget 4.0.61 → 5.0.0-beta.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.
@@ -1,381 +1 @@
1
- (function(){"use strict";function TN(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const a in i)if(a!=="default"&&!(a in e)){const r=Object.getOwnPropertyDescriptor(i,a);r&&Object.defineProperty(e,a,r.get?r:{enumerable:!0,get:()=>i[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var za=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wN(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,a.get?a:{enumerable:!0,get:function(){return e[i]}})}),n}var f1={exports:{}},Cc={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var SN=Symbol.for("react.transitional.element"),AN=Symbol.for("react.fragment");function h1(e,t,n){var i=null;if(n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),"key"in t){n={};for(var a in t)a!=="key"&&(n[a]=t[a])}else n=t;return t=n.ref,{$$typeof:SN,type:e,key:i,ref:t!==void 0?t:null,props:n}}Cc.Fragment=AN,Cc.jsx=h1,Cc.jsxs=h1,f1.exports=Cc;var b=f1.exports,p1={exports:{}},Ae={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var qh=Symbol.for("react.transitional.element"),CN=Symbol.for("react.portal"),kN=Symbol.for("react.fragment"),ON=Symbol.for("react.strict_mode"),NN=Symbol.for("react.profiler"),RN=Symbol.for("react.consumer"),DN=Symbol.for("react.context"),MN=Symbol.for("react.forward_ref"),LN=Symbol.for("react.suspense"),IN=Symbol.for("react.memo"),m1=Symbol.for("react.lazy"),g1=Symbol.iterator;function PN(e){return e===null||typeof e!="object"?null:(e=g1&&e[g1]||e["@@iterator"],typeof e=="function"?e:null)}var b1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v1=Object.assign,y1={};function ks(e,t,n){this.props=e,this.context=t,this.refs=y1,this.updater=n||b1}ks.prototype.isReactComponent={},ks.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},ks.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function x1(){}x1.prototype=ks.prototype;function Gh(e,t,n){this.props=e,this.context=t,this.refs=y1,this.updater=n||b1}var $h=Gh.prototype=new x1;$h.constructor=Gh,v1($h,ks.prototype),$h.isPureReactComponent=!0;var _1=Array.isArray,ot={H:null,A:null,T:null,S:null,V:null},E1=Object.prototype.hasOwnProperty;function Xh(e,t,n,i,a,r){return n=r.ref,{$$typeof:qh,type:e,key:t,ref:n!==void 0?n:null,props:r}}function BN(e,t){return Xh(e.type,t,void 0,void 0,void 0,e.props)}function Kh(e){return typeof e=="object"&&e!==null&&e.$$typeof===qh}function jN(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var T1=/\/+/g;function Qh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?jN(""+e.key):t.toString(36)}function w1(){}function zN(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(w1,w1):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Os(e,t,n,i,a){var r=typeof e;(r==="undefined"||r==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(r){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case qh:case CN:s=!0;break;case m1:return s=e._init,Os(s(e._payload),t,n,i,a)}}if(s)return a=a(e),s=i===""?"."+Qh(e,0):i,_1(a)?(n="",s!=null&&(n=s.replace(T1,"$&/")+"/"),Os(a,t,n,"",function(u){return u})):a!=null&&(Kh(a)&&(a=BN(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(T1,"$&/")+"/")+s)),t.push(a)),1;s=0;var o=i===""?".":i+":";if(_1(e))for(var l=0;l<e.length;l++)i=e[l],r=o+Qh(i,l),s+=Os(i,t,n,r,a);else if(l=PN(e),typeof l=="function")for(e=l.call(e),l=0;!(i=e.next()).done;)i=i.value,r=o+Qh(i,l++),s+=Os(i,t,n,r,a);else if(r==="object"){if(typeof e.then=="function")return Os(zN(e),t,n,i,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return s}function kc(e,t,n){if(e==null)return e;var i=[],a=0;return Os(e,i,"","",function(r){return t.call(n,r,a++)}),i}function UN(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var S1=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function HN(){}Ae.Children={map:kc,forEach:function(e,t,n){kc(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return kc(e,function(){t++}),t},toArray:function(e){return kc(e,function(t){return t})||[]},only:function(e){if(!Kh(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},Ae.Component=ks,Ae.Fragment=kN,Ae.Profiler=NN,Ae.PureComponent=Gh,Ae.StrictMode=ON,Ae.Suspense=LN,Ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ot,Ae.__COMPILER_RUNTIME={__proto__:null,c:function(e){return ot.H.useMemoCache(e)}},Ae.cache=function(e){return function(){return e.apply(null,arguments)}},Ae.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var i=v1({},e.props),a=e.key,r=void 0;if(t!=null)for(s in t.ref!==void 0&&(r=void 0),t.key!==void 0&&(a=""+t.key),t)!E1.call(t,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&t.ref===void 0||(i[s]=t[s]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var o=Array(s),l=0;l<s;l++)o[l]=arguments[l+2];i.children=o}return Xh(e.type,a,void 0,void 0,r,i)},Ae.createContext=function(e){return e={$$typeof:DN,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:RN,_context:e},e},Ae.createElement=function(e,t,n){var i,a={},r=null;if(t!=null)for(i in t.key!==void 0&&(r=""+t.key),t)E1.call(t,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(a[i]=t[i]);var s=arguments.length-2;if(s===1)a.children=n;else if(1<s){for(var o=Array(s),l=0;l<s;l++)o[l]=arguments[l+2];a.children=o}if(e&&e.defaultProps)for(i in s=e.defaultProps,s)a[i]===void 0&&(a[i]=s[i]);return Xh(e,r,void 0,void 0,null,a)},Ae.createRef=function(){return{current:null}},Ae.forwardRef=function(e){return{$$typeof:MN,render:e}},Ae.isValidElement=Kh,Ae.lazy=function(e){return{$$typeof:m1,_payload:{_status:-1,_result:e},_init:UN}},Ae.memo=function(e,t){return{$$typeof:IN,type:e,compare:t===void 0?null:t}},Ae.startTransition=function(e){var t=ot.T,n={};ot.T=n;try{var i=e(),a=ot.S;a!==null&&a(n,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(HN,S1)}catch(r){S1(r)}finally{ot.T=t}},Ae.unstable_useCacheRefresh=function(){return ot.H.useCacheRefresh()},Ae.use=function(e){return ot.H.use(e)},Ae.useActionState=function(e,t,n){return ot.H.useActionState(e,t,n)},Ae.useCallback=function(e,t){return ot.H.useCallback(e,t)},Ae.useContext=function(e){return ot.H.useContext(e)},Ae.useDebugValue=function(){},Ae.useDeferredValue=function(e,t){return ot.H.useDeferredValue(e,t)},Ae.useEffect=function(e,t,n){var i=ot.H;if(typeof n=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return i.useEffect(e,t)},Ae.useId=function(){return ot.H.useId()},Ae.useImperativeHandle=function(e,t,n){return ot.H.useImperativeHandle(e,t,n)},Ae.useInsertionEffect=function(e,t){return ot.H.useInsertionEffect(e,t)},Ae.useLayoutEffect=function(e,t){return ot.H.useLayoutEffect(e,t)},Ae.useMemo=function(e,t){return ot.H.useMemo(e,t)},Ae.useOptimistic=function(e,t){return ot.H.useOptimistic(e,t)},Ae.useReducer=function(e,t,n){return ot.H.useReducer(e,t,n)},Ae.useRef=function(e){return ot.H.useRef(e)},Ae.useState=function(e){return ot.H.useState(e)},Ae.useSyncExternalStore=function(e,t,n){return ot.H.useSyncExternalStore(e,t,n)},Ae.useTransition=function(){return ot.H.useTransition()},Ae.version="19.1.1",p1.exports=Ae;var _=p1.exports;const mn=hl(_),A1=TN({__proto__:null,default:mn},[_]);function Tn(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function C1(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function k1(...e){return t=>{let n=!1;const i=e.map(a=>{const r=C1(a,t);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let a=0;a<i.length;a++){const r=i[a];typeof r=="function"?r():C1(e[a],null)}}}}function Bi(...e){return _.useCallback(k1(...e),e)}function Oc(e,t=[]){let n=[];function i(r,s){const o=_.createContext(s),l=n.length;n=[...n,s];const u=d=>{var m;const{scope:f,children:h,...g}=d,y=((m=f==null?void 0:f[e])==null?void 0:m[l])||o,E=_.useMemo(()=>g,Object.values(g));return b.jsx(y.Provider,{value:E,children:h})};u.displayName=r+"Provider";function c(d,f){var y;const h=((y=f==null?void 0:f[e])==null?void 0:y[l])||o,g=_.useContext(h);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${r}\``)}return[u,c]}const a=()=>{const r=n.map(s=>_.createContext(s));return function(o){const l=(o==null?void 0:o[e])||r;return _.useMemo(()=>({[`__scope${e}`]:{...o,[e]:l}}),[o,l])}};return a.scopeName=e,[i,FN(a,...t)]}function FN(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(r){const s=i.reduce((o,{useScope:l,scopeName:u})=>{const d=l(r)[`__scope${u}`];return{...o,...d}},{});return _.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var O1={exports:{}},gn={};/**
18
- * @license React
19
- * react-dom.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var VN=_;function N1(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Ua(){}var bn={d:{f:Ua,r:function(){throw Error(N1(522))},D:Ua,C:Ua,L:Ua,m:Ua,X:Ua,S:Ua,M:Ua},p:0,findDOMNode:null},YN=Symbol.for("react.portal");function qN(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:YN,key:i==null?null:""+i,children:e,containerInfo:t,implementation:n}}var pl=VN.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Nc(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}gn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=bn,gn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(N1(299));return qN(e,t,null,n)},gn.flushSync=function(e){var t=pl.T,n=bn.p;try{if(pl.T=null,bn.p=2,e)return e()}finally{pl.T=t,bn.p=n,bn.d.f()}},gn.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,bn.d.C(e,t))},gn.prefetchDNS=function(e){typeof e=="string"&&bn.d.D(e)},gn.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,i=Nc(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,r=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?bn.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:i,integrity:a,fetchPriority:r}):n==="script"&&bn.d.X(e,{crossOrigin:i,integrity:a,fetchPriority:r,nonce:typeof t.nonce=="string"?t.nonce:void 0})}},gn.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Nc(t.as,t.crossOrigin);bn.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&bn.d.M(e)},gn.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,i=Nc(n,t.crossOrigin);bn.d.L(e,n,{crossOrigin:i,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}},gn.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Nc(t.as,t.crossOrigin);bn.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else bn.d.m(e)},gn.requestFormReset=function(e){bn.d.r(e)},gn.unstable_batchedUpdates=function(e,t){return e(t)},gn.useFormState=function(e,t,n){return pl.H.useFormState(e,t,n)},gn.useFormStatus=function(){return pl.H.useHostTransitionStatus()},gn.version="19.1.1";function R1(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(R1)}catch(e){console.error(e)}}R1(),O1.exports=gn;var ml=O1.exports;function Wh(e){const t=$N(e),n=_.forwardRef((i,a)=>{const{children:r,...s}=i,o=_.Children.toArray(r),l=o.find(KN);if(l){const u=l.props.children,c=o.map(d=>d===l?_.Children.count(u)>1?_.Children.only(null):_.isValidElement(u)?u.props.children:null:d);return b.jsx(t,{...s,ref:a,children:_.isValidElement(u)?_.cloneElement(u,void 0,c):null})}return b.jsx(t,{...s,ref:a,children:r})});return n.displayName=`${e}.Slot`,n}var GN=Wh("Slot");function $N(e){const t=_.forwardRef((n,i)=>{const{children:a,...r}=n;if(_.isValidElement(a)){const s=WN(a),o=QN(r,a.props);return a.type!==_.Fragment&&(o.ref=i?k1(i,s):s),_.cloneElement(a,o)}return _.Children.count(a)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var D1=Symbol("radix.slottable");function XN(e){const t=({children:n})=>b.jsx(b.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=D1,t}function KN(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===D1}function QN(e,t){const n={...t};for(const i in t){const a=e[i],r=t[i];/^on[A-Z]/.test(i)?a&&r?n[i]=(...o)=>{const l=r(...o);return a(...o),l}:a&&(n[i]=a):i==="style"?n[i]={...a,...r}:i==="className"&&(n[i]=[a,r].filter(Boolean).join(" "))}return{...e,...n}}function WN(e){var i,a;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var ZN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],In=ZN.reduce((e,t)=>{const n=Wh(`Primitive.${t}`),i=_.forwardRef((a,r)=>{const{asChild:s,...o}=a,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(l,{...o,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function JN(e,t){e&&ml.flushSync(()=>e.dispatchEvent(t))}function jr(e){const t=_.useRef(e);return _.useEffect(()=>{t.current=e}),_.useMemo(()=>(...n)=>{var i;return(i=t.current)==null?void 0:i.call(t,...n)},[])}function e4(e,t=globalThis==null?void 0:globalThis.document){const n=jr(e);_.useEffect(()=>{const i=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var t4="DismissableLayer",Zh="dismissableLayer.update",n4="dismissableLayer.pointerDownOutside",i4="dismissableLayer.focusOutside",M1,L1=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Jh=_.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:r,onInteractOutside:s,onDismiss:o,...l}=e,u=_.useContext(L1),[c,d]=_.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=_.useState({}),g=Bi(t,D=>d(D)),y=Array.from(u.layers),[E]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=y.indexOf(E),v=c?y.indexOf(c):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,T=v>=m,S=s4(D=>{const L=D.target,B=[...u.branches].some(O=>O.contains(L));!T||B||(a==null||a(D),s==null||s(D),D.defaultPrevented||o==null||o())},f),A=o4(D=>{const L=D.target;[...u.branches].some(O=>O.contains(L))||(r==null||r(D),s==null||s(D),D.defaultPrevented||o==null||o())},f);return e4(D=>{v===u.layers.size-1&&(i==null||i(D),!D.defaultPrevented&&o&&(D.preventDefault(),o()))},f),_.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(M1=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),I1(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=M1)}},[c,f,n,u]),_.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),I1())},[c,u]),_.useEffect(()=>{const D=()=>h({});return document.addEventListener(Zh,D),()=>document.removeEventListener(Zh,D)},[]),b.jsx(In.div,{...l,ref:g,style:{pointerEvents:x?T?"auto":"none":void 0,...e.style},onFocusCapture:Tn(e.onFocusCapture,A.onFocusCapture),onBlurCapture:Tn(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Tn(e.onPointerDownCapture,S.onPointerDownCapture)})});Jh.displayName=t4;var a4="DismissableLayerBranch",r4=_.forwardRef((e,t)=>{const n=_.useContext(L1),i=_.useRef(null),a=Bi(t,i);return _.useEffect(()=>{const r=i.current;if(r)return n.branches.add(r),()=>{n.branches.delete(r)}},[n.branches]),b.jsx(In.div,{...e,ref:a})});r4.displayName=a4;function s4(e,t=globalThis==null?void 0:globalThis.document){const n=jr(e),i=_.useRef(!1),a=_.useRef(()=>{});return _.useEffect(()=>{const r=o=>{if(o.target&&!i.current){let l=function(){P1(n4,n,u,{discrete:!0})};const u={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=l,t.addEventListener("click",a.current,{once:!0})):l()}else t.removeEventListener("click",a.current);i.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",r)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",r),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function o4(e,t=globalThis==null?void 0:globalThis.document){const n=jr(e),i=_.useRef(!1);return _.useEffect(()=>{const a=r=>{r.target&&!i.current&&P1(i4,n,{originalEvent:r},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function I1(){const e=new CustomEvent(Zh);document.dispatchEvent(e)}function P1(e,t,n,{discrete:i}){const a=n.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),i?JN(a,r):a.dispatchEvent(r)}var ep=0;function l4(){_.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??B1()),document.body.insertAdjacentElement("beforeend",e[1]??B1()),ep++,()=>{ep===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ep--}},[])}function B1(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var tp="focusScope.autoFocusOnMount",np="focusScope.autoFocusOnUnmount",j1={bubbles:!1,cancelable:!0},u4="FocusScope",z1=_.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:r,...s}=e,[o,l]=_.useState(null),u=jr(a),c=jr(r),d=_.useRef(null),f=Bi(t,y=>l(y)),h=_.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;_.useEffect(()=>{if(i){let y=function(x){if(h.paused||!o)return;const T=x.target;o.contains(T)?d.current=T:Ha(d.current,{select:!0})},E=function(x){if(h.paused||!o)return;const T=x.relatedTarget;T!==null&&(o.contains(T)||Ha(d.current,{select:!0}))},m=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Ha(o)};document.addEventListener("focusin",y),document.addEventListener("focusout",E);const v=new MutationObserver(m);return o&&v.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",E),v.disconnect()}}},[i,o,h.paused]),_.useEffect(()=>{if(o){F1.add(h);const y=document.activeElement;if(!o.contains(y)){const m=new CustomEvent(tp,j1);o.addEventListener(tp,u),o.dispatchEvent(m),m.defaultPrevented||(c4(m4(U1(o)),{select:!0}),document.activeElement===y&&Ha(o))}return()=>{o.removeEventListener(tp,u),setTimeout(()=>{const m=new CustomEvent(np,j1);o.addEventListener(np,c),o.dispatchEvent(m),m.defaultPrevented||Ha(y??document.body,{select:!0}),o.removeEventListener(np,c),F1.remove(h)},0)}}},[o,u,c,h]);const g=_.useCallback(y=>{if(!n&&!i||h.paused)return;const E=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,m=document.activeElement;if(E&&m){const v=y.currentTarget,[x,T]=d4(v);x&&T?!y.shiftKey&&m===T?(y.preventDefault(),n&&Ha(x,{select:!0})):y.shiftKey&&m===x&&(y.preventDefault(),n&&Ha(T,{select:!0})):m===v&&y.preventDefault()}},[n,i,h.paused]);return b.jsx(In.div,{tabIndex:-1,...s,ref:f,onKeyDown:g})});z1.displayName=u4;function c4(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(Ha(i,{select:t}),document.activeElement!==n)return}function d4(e){const t=U1(e),n=H1(t,e),i=H1(t.reverse(),e);return[n,i]}function U1(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const a=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||a?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function H1(e,t){for(const n of e)if(!f4(n,{upTo:t}))return n}function f4(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 h4(e){return e instanceof HTMLInputElement&&"select"in e}function Ha(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&h4(e)&&t&&e.select()}}var F1=p4();function p4(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=V1(e,t),e.unshift(t)},remove(t){var n;e=V1(e,t),(n=e[0])==null||n.resume()}}}function V1(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function m4(e){return e.filter(t=>t.tagName!=="A")}var ji=globalThis!=null&&globalThis.document?_.useLayoutEffect:()=>{},g4=A1[" useId ".trim().toString()]||(()=>{}),b4=0;function Y1(e){const[t,n]=_.useState(g4());return ji(()=>{n(i=>i??String(b4++))},[e]),e||(t?`radix-${t}`:"")}const v4=["top","right","bottom","left"],Fa=Math.min,Pn=Math.max,Rc=Math.round,Dc=Math.floor,zi=e=>({x:e,y:e}),y4={left:"right",right:"left",bottom:"top",top:"bottom"},x4={start:"end",end:"start"};function ip(e,t,n){return Pn(e,Fa(t,n))}function oa(e,t){return typeof e=="function"?e(t):e}function la(e){return e.split("-")[0]}function Ns(e){return e.split("-")[1]}function ap(e){return e==="x"?"y":"x"}function rp(e){return e==="y"?"height":"width"}const _4=new Set(["top","bottom"]);function Ui(e){return _4.has(la(e))?"y":"x"}function sp(e){return ap(Ui(e))}function E4(e,t,n){n===void 0&&(n=!1);const i=Ns(e),a=sp(e),r=rp(a);let s=a==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(s=Mc(s)),[s,Mc(s)]}function T4(e){const t=Mc(e);return[op(e),t,op(t)]}function op(e){return e.replace(/start|end/g,t=>x4[t])}const q1=["left","right"],G1=["right","left"],w4=["top","bottom"],S4=["bottom","top"];function A4(e,t,n){switch(e){case"top":case"bottom":return n?t?G1:q1:t?q1:G1;case"left":case"right":return t?w4:S4;default:return[]}}function C4(e,t,n,i){const a=Ns(e);let r=A4(la(e),n==="start",i);return a&&(r=r.map(s=>s+"-"+a),t&&(r=r.concat(r.map(op)))),r}function Mc(e){return e.replace(/left|right|bottom|top/g,t=>y4[t])}function k4(e){return{top:0,right:0,bottom:0,left:0,...e}}function $1(e){return typeof e!="number"?k4(e):{top:e,right:e,bottom:e,left:e}}function Lc(e){const{x:t,y:n,width:i,height:a}=e;return{width:i,height:a,top:n,left:t,right:t+i,bottom:n+a,x:t,y:n}}function X1(e,t,n){let{reference:i,floating:a}=e;const r=Ui(t),s=sp(t),o=rp(s),l=la(t),u=r==="y",c=i.x+i.width/2-a.width/2,d=i.y+i.height/2-a.height/2,f=i[o]/2-a[o]/2;let h;switch(l){case"top":h={x:c,y:i.y-a.height};break;case"bottom":h={x:c,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:d};break;case"left":h={x:i.x-a.width,y:d};break;default:h={x:i.x,y:i.y}}switch(Ns(t)){case"start":h[s]-=f*(n&&u?-1:1);break;case"end":h[s]+=f*(n&&u?-1:1);break}return h}const O4=async(e,t,n)=>{const{placement:i="bottom",strategy:a="absolute",middleware:r=[],platform:s}=n,o=r.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:a}),{x:c,y:d}=X1(u,i,l),f=i,h={},g=0;for(let y=0;y<o.length;y++){const{name:E,fn:m}=o[y],{x:v,y:x,data:T,reset:S}=await m({x:c,y:d,initialPlacement:i,placement:f,strategy:a,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});c=v??c,d=x??d,h={...h,[E]:{...h[E],...T}},S&&g<=50&&(g++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:a}):S.rects),{x:c,y:d}=X1(u,f,l)),y=-1)}return{x:c,y:d,placement:f,strategy:a,middlewareData:h}};async function gl(e,t){var n;t===void 0&&(t={});const{x:i,y:a,platform:r,rects:s,elements:o,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=oa(t,e),g=$1(h),E=o[f?d==="floating"?"reference":"floating":d],m=Lc(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(E)))==null||n?E:E.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(o.floating)),boundary:u,rootBoundary:c,strategy:l})),v=d==="floating"?{x:i,y:a,width:s.floating.width,height:s.floating.height}:s.reference,x=await(r.getOffsetParent==null?void 0:r.getOffsetParent(o.floating)),T=await(r.isElement==null?void 0:r.isElement(x))?await(r.getScale==null?void 0:r.getScale(x))||{x:1,y:1}:{x:1,y:1},S=Lc(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:v,offsetParent:x,strategy:l}):v);return{top:(m.top-S.top+g.top)/T.y,bottom:(S.bottom-m.bottom+g.bottom)/T.y,left:(m.left-S.left+g.left)/T.x,right:(S.right-m.right+g.right)/T.x}}const N4=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:a,rects:r,platform:s,elements:o,middlewareData:l}=t,{element:u,padding:c=0}=oa(e,t)||{};if(u==null)return{};const d=$1(c),f={x:n,y:i},h=sp(a),g=rp(h),y=await s.getDimensions(u),E=h==="y",m=E?"top":"left",v=E?"bottom":"right",x=E?"clientHeight":"clientWidth",T=r.reference[g]+r.reference[h]-f[h]-r.floating[g],S=f[h]-r.reference[h],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let D=A?A[x]:0;(!D||!await(s.isElement==null?void 0:s.isElement(A)))&&(D=o.floating[x]||r.floating[g]);const L=T/2-S/2,B=D/2-y[g]/2-1,O=Fa(d[m],B),Y=Fa(d[v],B),U=O,ae=D-y[g]-Y,ee=D/2-y[g]/2+L,Q=ip(U,ee,ae),F=!l.arrow&&Ns(a)!=null&&ee!==Q&&r.reference[g]/2-(ee<U?O:Y)-y[g]/2<0,V=F?ee<U?ee-U:ee-ae:0;return{[h]:f[h]+V,data:{[h]:Q,centerOffset:ee-Q-V,...F&&{alignmentOffset:V}},reset:F}}}),R4=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:a,middlewareData:r,rects:s,initialPlacement:o,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...E}=oa(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const m=la(a),v=Ui(o),x=la(o)===o,T=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=f||(x||!y?[Mc(o)]:T4(o)),A=g!=="none";!f&&A&&S.push(...C4(o,y,g,T));const D=[o,...S],L=await gl(t,E),B=[];let O=((i=r.flip)==null?void 0:i.overflows)||[];if(c&&B.push(L[m]),d){const ee=E4(a,s,T);B.push(L[ee[0]],L[ee[1]])}if(O=[...O,{placement:a,overflows:B}],!B.every(ee=>ee<=0)){var Y,U;const ee=(((Y=r.flip)==null?void 0:Y.index)||0)+1,Q=D[ee];if(Q&&(!(d==="alignment"?v!==Ui(Q):!1)||O.every(H=>Ui(H.placement)===v?H.overflows[0]>0:!0)))return{data:{index:ee,overflows:O},reset:{placement:Q}};let F=(U=O.filter(V=>V.overflows[0]<=0).sort((V,H)=>V.overflows[1]-H.overflows[1])[0])==null?void 0:U.placement;if(!F)switch(h){case"bestFit":{var ae;const V=(ae=O.filter(H=>{if(A){const te=Ui(H.placement);return te===v||te==="y"}return!0}).map(H=>[H.placement,H.overflows.filter(te=>te>0).reduce((te,N)=>te+N,0)]).sort((H,te)=>H[1]-te[1])[0])==null?void 0:ae[0];V&&(F=V);break}case"initialPlacement":F=o;break}if(a!==F)return{reset:{placement:F}}}return{}}}};function K1(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Q1(e){return v4.some(t=>e[t]>=0)}const D4=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...a}=oa(e,t);switch(i){case"referenceHidden":{const r=await gl(t,{...a,elementContext:"reference"}),s=K1(r,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Q1(s)}}}case"escaped":{const r=await gl(t,{...a,altBoundary:!0}),s=K1(r,n.floating);return{data:{escapedOffsets:s,escaped:Q1(s)}}}default:return{}}}}},W1=new Set(["left","top"]);async function M4(e,t){const{placement:n,platform:i,elements:a}=e,r=await(i.isRTL==null?void 0:i.isRTL(a.floating)),s=la(n),o=Ns(n),l=Ui(n)==="y",u=W1.has(s)?-1:1,c=r&&l?-1:1,d=oa(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return o&&typeof g=="number"&&(h=o==="end"?g*-1:g),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}const L4=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:a,y:r,placement:s,middlewareData:o}=t,l=await M4(t,e);return s===((n=o.offset)==null?void 0:n.placement)&&(i=o.arrow)!=null&&i.alignmentOffset?{}:{x:a+l.x,y:r+l.y,data:{...l,placement:s}}}}},I4=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:a}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:o={fn:E=>{let{x:m,y:v}=E;return{x:m,y:v}}},...l}=oa(e,t),u={x:n,y:i},c=await gl(t,l),d=Ui(la(a)),f=ap(d);let h=u[f],g=u[d];if(r){const E=f==="y"?"top":"left",m=f==="y"?"bottom":"right",v=h+c[E],x=h-c[m];h=ip(v,h,x)}if(s){const E=d==="y"?"top":"left",m=d==="y"?"bottom":"right",v=g+c[E],x=g-c[m];g=ip(v,g,x)}const y=o.fn({...t,[f]:h,[d]:g});return{...y,data:{x:y.x-n,y:y.y-i,enabled:{[f]:r,[d]:s}}}}}},P4=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:a,rects:r,middlewareData:s}=t,{offset:o=0,mainAxis:l=!0,crossAxis:u=!0}=oa(e,t),c={x:n,y:i},d=Ui(a),f=ap(d);let h=c[f],g=c[d];const y=oa(o,t),E=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const x=f==="y"?"height":"width",T=r.reference[f]-r.floating[x]+E.mainAxis,S=r.reference[f]+r.reference[x]-E.mainAxis;h<T?h=T:h>S&&(h=S)}if(u){var m,v;const x=f==="y"?"width":"height",T=W1.has(la(a)),S=r.reference[d]-r.floating[x]+(T&&((m=s.offset)==null?void 0:m[d])||0)+(T?0:E.crossAxis),A=r.reference[d]+r.reference[x]+(T?0:((v=s.offset)==null?void 0:v[d])||0)-(T?E.crossAxis:0);g<S?g=S:g>A&&(g=A)}return{[f]:h,[d]:g}}}},B4=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:a,rects:r,platform:s,elements:o}=t,{apply:l=()=>{},...u}=oa(e,t),c=await gl(t,u),d=la(a),f=Ns(a),h=Ui(a)==="y",{width:g,height:y}=r.floating;let E,m;d==="top"||d==="bottom"?(E=d,m=f===(await(s.isRTL==null?void 0:s.isRTL(o.floating))?"start":"end")?"left":"right"):(m=d,E=f==="end"?"top":"bottom");const v=y-c.top-c.bottom,x=g-c.left-c.right,T=Fa(y-c[E],v),S=Fa(g-c[m],x),A=!t.middlewareData.shift;let D=T,L=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=x),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(D=v),A&&!f){const O=Pn(c.left,0),Y=Pn(c.right,0),U=Pn(c.top,0),ae=Pn(c.bottom,0);h?L=g-2*(O!==0||Y!==0?O+Y:Pn(c.left,c.right)):D=y-2*(U!==0||ae!==0?U+ae:Pn(c.top,c.bottom))}await l({...t,availableWidth:L,availableHeight:D});const B=await s.getDimensions(o.floating);return g!==B.width||y!==B.height?{reset:{rects:!0}}:{}}}};function Ic(){return typeof window<"u"}function Rs(e){return Z1(e)?(e.nodeName||"").toLowerCase():"#document"}function Bn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Hi(e){var t;return(t=(Z1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Z1(e){return Ic()?e instanceof Node||e instanceof Bn(e).Node:!1}function Ti(e){return Ic()?e instanceof Element||e instanceof Bn(e).Element:!1}function Fi(e){return Ic()?e instanceof HTMLElement||e instanceof Bn(e).HTMLElement:!1}function J1(e){return!Ic()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Bn(e).ShadowRoot}const j4=new Set(["inline","contents"]);function bl(e){const{overflow:t,overflowX:n,overflowY:i,display:a}=wi(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!j4.has(a)}const z4=new Set(["table","td","th"]);function U4(e){return z4.has(Rs(e))}const H4=[":popover-open",":modal"];function Pc(e){return H4.some(t=>{try{return e.matches(t)}catch{return!1}})}const F4=["transform","translate","scale","rotate","perspective"],V4=["transform","translate","scale","rotate","perspective","filter"],Y4=["paint","layout","strict","content"];function lp(e){const t=up(),n=Ti(e)?wi(e):e;return F4.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||V4.some(i=>(n.willChange||"").includes(i))||Y4.some(i=>(n.contain||"").includes(i))}function q4(e){let t=Va(e);for(;Fi(t)&&!Ds(t);){if(lp(t))return t;if(Pc(t))return null;t=Va(t)}return null}function up(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const G4=new Set(["html","body","#document"]);function Ds(e){return G4.has(Rs(e))}function wi(e){return Bn(e).getComputedStyle(e)}function Bc(e){return Ti(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Va(e){if(Rs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||J1(e)&&e.host||Hi(e);return J1(t)?t.host:t}function ey(e){const t=Va(e);return Ds(t)?e.ownerDocument?e.ownerDocument.body:e.body:Fi(t)&&bl(t)?t:ey(t)}function vl(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=ey(e),r=a===((i=e.ownerDocument)==null?void 0:i.body),s=Bn(a);if(r){const o=cp(s);return t.concat(s,s.visualViewport||[],bl(a)?a:[],o&&n?vl(o):[])}return t.concat(a,vl(a,[],n))}function cp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ty(e){const t=wi(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const a=Fi(e),r=a?e.offsetWidth:n,s=a?e.offsetHeight:i,o=Rc(n)!==r||Rc(i)!==s;return o&&(n=r,i=s),{width:n,height:i,$:o}}function dp(e){return Ti(e)?e:e.contextElement}function Ms(e){const t=dp(e);if(!Fi(t))return zi(1);const n=t.getBoundingClientRect(),{width:i,height:a,$:r}=ty(t);let s=(r?Rc(n.width):n.width)/i,o=(r?Rc(n.height):n.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!o||!Number.isFinite(o))&&(o=1),{x:s,y:o}}const $4=zi(0);function ny(e){const t=Bn(e);return!up()||!t.visualViewport?$4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function X4(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Bn(e)?!1:t}function zr(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),r=dp(e);let s=zi(1);t&&(i?Ti(i)&&(s=Ms(i)):s=Ms(e));const o=X4(r,n,i)?ny(r):zi(0);let l=(a.left+o.x)/s.x,u=(a.top+o.y)/s.y,c=a.width/s.x,d=a.height/s.y;if(r){const f=Bn(r),h=i&&Ti(i)?Bn(i):i;let g=f,y=cp(g);for(;y&&i&&h!==g;){const E=Ms(y),m=y.getBoundingClientRect(),v=wi(y),x=m.left+(y.clientLeft+parseFloat(v.paddingLeft))*E.x,T=m.top+(y.clientTop+parseFloat(v.paddingTop))*E.y;l*=E.x,u*=E.y,c*=E.x,d*=E.y,l+=x,u+=T,g=Bn(y),y=cp(g)}}return Lc({width:c,height:d,x:l,y:u})}function fp(e,t){const n=Bc(e).scrollLeft;return t?t.left+n:zr(Hi(e)).left+n}function iy(e,t,n){n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=i.left+t.scrollLeft-(n?0:fp(e,i)),r=i.top+t.scrollTop;return{x:a,y:r}}function K4(e){let{elements:t,rect:n,offsetParent:i,strategy:a}=e;const r=a==="fixed",s=Hi(i),o=t?Pc(t.floating):!1;if(i===s||o&&r)return n;let l={scrollLeft:0,scrollTop:0},u=zi(1);const c=zi(0),d=Fi(i);if((d||!d&&!r)&&((Rs(i)!=="body"||bl(s))&&(l=Bc(i)),Fi(i))){const h=zr(i);u=Ms(i),c.x=h.x+i.clientLeft,c.y=h.y+i.clientTop}const f=s&&!d&&!r?iy(s,l,!0):zi(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}}function Q4(e){return Array.from(e.getClientRects())}function W4(e){const t=Hi(e),n=Bc(e),i=e.ownerDocument.body,a=Pn(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),r=Pn(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+fp(e);const o=-n.scrollTop;return wi(i).direction==="rtl"&&(s+=Pn(t.clientWidth,i.clientWidth)-a),{width:a,height:r,x:s,y:o}}function Z4(e,t){const n=Bn(e),i=Hi(e),a=n.visualViewport;let r=i.clientWidth,s=i.clientHeight,o=0,l=0;if(a){r=a.width,s=a.height;const u=up();(!u||u&&t==="fixed")&&(o=a.offsetLeft,l=a.offsetTop)}return{width:r,height:s,x:o,y:l}}const J4=new Set(["absolute","fixed"]);function eR(e,t){const n=zr(e,!0,t==="fixed"),i=n.top+e.clientTop,a=n.left+e.clientLeft,r=Fi(e)?Ms(e):zi(1),s=e.clientWidth*r.x,o=e.clientHeight*r.y,l=a*r.x,u=i*r.y;return{width:s,height:o,x:l,y:u}}function ay(e,t,n){let i;if(t==="viewport")i=Z4(e,n);else if(t==="document")i=W4(Hi(e));else if(Ti(t))i=eR(t,n);else{const a=ny(e);i={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Lc(i)}function ry(e,t){const n=Va(e);return n===t||!Ti(n)||Ds(n)?!1:wi(n).position==="fixed"||ry(n,t)}function tR(e,t){const n=t.get(e);if(n)return n;let i=vl(e,[],!1).filter(o=>Ti(o)&&Rs(o)!=="body"),a=null;const r=wi(e).position==="fixed";let s=r?Va(e):e;for(;Ti(s)&&!Ds(s);){const o=wi(s),l=lp(s);!l&&o.position==="fixed"&&(a=null),(r?!l&&!a:!l&&o.position==="static"&&!!a&&J4.has(a.position)||bl(s)&&!l&&ry(e,s))?i=i.filter(c=>c!==s):a=o,s=Va(s)}return t.set(e,i),i}function nR(e){let{element:t,boundary:n,rootBoundary:i,strategy:a}=e;const s=[...n==="clippingAncestors"?Pc(t)?[]:tR(t,this._c):[].concat(n),i],o=s[0],l=s.reduce((u,c)=>{const d=ay(t,c,a);return u.top=Pn(d.top,u.top),u.right=Fa(d.right,u.right),u.bottom=Fa(d.bottom,u.bottom),u.left=Pn(d.left,u.left),u},ay(t,o,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function iR(e){const{width:t,height:n}=ty(e);return{width:t,height:n}}function aR(e,t,n){const i=Fi(t),a=Hi(t),r=n==="fixed",s=zr(e,!0,r,t);let o={scrollLeft:0,scrollTop:0};const l=zi(0);function u(){l.x=fp(a)}if(i||!i&&!r)if((Rs(t)!=="body"||bl(a))&&(o=Bc(t)),i){const h=zr(t,!0,r,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else a&&u();r&&!i&&a&&u();const c=a&&!i&&!r?iy(a,o):zi(0),d=s.left+o.scrollLeft-l.x-c.x,f=s.top+o.scrollTop-l.y-c.y;return{x:d,y:f,width:s.width,height:s.height}}function hp(e){return wi(e).position==="static"}function sy(e,t){if(!Fi(e)||wi(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Hi(e)===n&&(n=n.ownerDocument.body),n}function oy(e,t){const n=Bn(e);if(Pc(e))return n;if(!Fi(e)){let a=Va(e);for(;a&&!Ds(a);){if(Ti(a)&&!hp(a))return a;a=Va(a)}return n}let i=sy(e,t);for(;i&&U4(i)&&hp(i);)i=sy(i,t);return i&&Ds(i)&&hp(i)&&!lp(i)?n:i||q4(e)||n}const rR=async function(e){const t=this.getOffsetParent||oy,n=this.getDimensions,i=await n(e.floating);return{reference:aR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function sR(e){return wi(e).direction==="rtl"}const oR={convertOffsetParentRelativeRectToViewportRelativeRect:K4,getDocumentElement:Hi,getClippingRect:nR,getOffsetParent:oy,getElementRects:rR,getClientRects:Q4,getDimensions:iR,getScale:Ms,isElement:Ti,isRTL:sR};function ly(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function lR(e,t){let n=null,i;const a=Hi(e);function r(){var o;clearTimeout(i),(o=n)==null||o.disconnect(),n=null}function s(o,l){o===void 0&&(o=!1),l===void 0&&(l=1),r();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:h}=u;if(o||t(),!f||!h)return;const g=Dc(d),y=Dc(a.clientWidth-(c+f)),E=Dc(a.clientHeight-(d+h)),m=Dc(c),x={rootMargin:-g+"px "+-y+"px "+-E+"px "+-m+"px",threshold:Pn(0,Fa(1,l))||1};let T=!0;function S(A){const D=A[0].intersectionRatio;if(D!==l){if(!T)return s();D?s(!1,D):i=setTimeout(()=>{s(!1,1e-7)},1e3)}D===1&&!ly(u,e.getBoundingClientRect())&&s(),T=!1}try{n=new IntersectionObserver(S,{...x,root:a.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(e)}return s(!0),r}function uR(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:a=!0,ancestorResize:r=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,u=dp(e),c=a||r?[...u?vl(u):[],...vl(t)]:[];c.forEach(m=>{a&&m.addEventListener("scroll",n,{passive:!0}),r&&m.addEventListener("resize",n)});const d=u&&o?lR(u,n):null;let f=-1,h=null;s&&(h=new ResizeObserver(m=>{let[v]=m;v&&v.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let g,y=l?zr(e):null;l&&E();function E(){const m=zr(e);y&&!ly(y,m)&&n(),y=m,g=requestAnimationFrame(E)}return n(),()=>{var m;c.forEach(v=>{a&&v.removeEventListener("scroll",n),r&&v.removeEventListener("resize",n)}),d==null||d(),(m=h)==null||m.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const cR=L4,dR=I4,fR=R4,hR=B4,pR=D4,uy=N4,mR=P4,gR=(e,t,n)=>{const i=new Map,a={platform:oR,...n},r={...a.platform,_c:i};return O4(e,t,{...a,platform:r})};var bR=typeof document<"u",vR=function(){},jc=bR?_.useLayoutEffect:vR;function zc(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,i,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!zc(e[i],t[i]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,a[i]))return!1;for(i=n;i--!==0;){const r=a[i];if(!(r==="_owner"&&e.$$typeof)&&!zc(e[r],t[r]))return!1}return!0}return e!==e&&t!==t}function cy(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dy(e,t){const n=cy(e);return Math.round(t*n)/n}function pp(e){const t=_.useRef(e);return jc(()=>{t.current=e}),t}function yR(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:a,elements:{reference:r,floating:s}={},transform:o=!0,whileElementsMounted:l,open:u}=e,[c,d]=_.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=_.useState(i);zc(f,i)||h(i);const[g,y]=_.useState(null),[E,m]=_.useState(null),v=_.useCallback(H=>{H!==A.current&&(A.current=H,y(H))},[]),x=_.useCallback(H=>{H!==D.current&&(D.current=H,m(H))},[]),T=r||g,S=s||E,A=_.useRef(null),D=_.useRef(null),L=_.useRef(c),B=l!=null,O=pp(l),Y=pp(a),U=pp(u),ae=_.useCallback(()=>{if(!A.current||!D.current)return;const H={placement:t,strategy:n,middleware:f};Y.current&&(H.platform=Y.current),gR(A.current,D.current,H).then(te=>{const N={...te,isPositioned:U.current!==!1};ee.current&&!zc(L.current,N)&&(L.current=N,ml.flushSync(()=>{d(N)}))})},[f,t,n,Y,U]);jc(()=>{u===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,d(H=>({...H,isPositioned:!1})))},[u]);const ee=_.useRef(!1);jc(()=>(ee.current=!0,()=>{ee.current=!1}),[]),jc(()=>{if(T&&(A.current=T),S&&(D.current=S),T&&S){if(O.current)return O.current(T,S,ae);ae()}},[T,S,ae,O,B]);const Q=_.useMemo(()=>({reference:A,floating:D,setReference:v,setFloating:x}),[v,x]),F=_.useMemo(()=>({reference:T,floating:S}),[T,S]),V=_.useMemo(()=>{const H={position:n,left:0,top:0};if(!F.floating)return H;const te=dy(F.floating,c.x),N=dy(F.floating,c.y);return o?{...H,transform:"translate("+te+"px, "+N+"px)",...cy(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:N}},[n,o,F.floating,c.x,c.y]);return _.useMemo(()=>({...c,update:ae,refs:Q,elements:F,floatingStyles:V}),[c,ae,Q,F,V])}const xR=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:a}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?uy({element:i.current,padding:a}).fn(n):{}:i?uy({element:i,padding:a}).fn(n):{}}}},_R=(e,t)=>({...cR(e),options:[e,t]}),ER=(e,t)=>({...dR(e),options:[e,t]}),TR=(e,t)=>({...mR(e),options:[e,t]}),wR=(e,t)=>({...fR(e),options:[e,t]}),SR=(e,t)=>({...hR(e),options:[e,t]}),AR=(e,t)=>({...pR(e),options:[e,t]}),CR=(e,t)=>({...xR(e),options:[e,t]});var kR="Arrow",fy=_.forwardRef((e,t)=>{const{children:n,width:i=10,height:a=5,...r}=e;return b.jsx(In.svg,{...r,ref:t,width:i,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});fy.displayName=kR;var OR=fy;function NR(e){const[t,n]=_.useState(void 0);return ji(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const r=a[0];let s,o;if("borderBoxSize"in r){const l=r.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,o=u.blockSize}else s=e.offsetWidth,o=e.offsetHeight;n({width:s,height:o})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}var mp="Popper",[hy,Uc]=Oc(mp),[RR,py]=hy(mp),my=e=>{const{__scopePopper:t,children:n}=e,[i,a]=_.useState(null);return b.jsx(RR,{scope:t,anchor:i,onAnchorChange:a,children:n})};my.displayName=mp;var gy="PopperAnchor",by=_.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...a}=e,r=py(gy,n),s=_.useRef(null),o=Bi(t,s);return _.useEffect(()=>{r.onAnchorChange((i==null?void 0:i.current)||s.current)}),i?null:b.jsx(In.div,{...a,ref:o})});by.displayName=gy;var gp="PopperContent",[DR,MR]=hy(gp),vy=_.forwardRef((e,t)=>{var fn,Ze,qt,Mt,Gt,tn;const{__scopePopper:n,side:i="bottom",sideOffset:a=0,align:r="center",alignOffset:s=0,arrowPadding:o=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:h="optimized",onPlaced:g,...y}=e,E=py(gp,n),[m,v]=_.useState(null),x=Bi(t,$t=>v($t)),[T,S]=_.useState(null),A=NR(T),D=(A==null?void 0:A.width)??0,L=(A==null?void 0:A.height)??0,B=i+(r!=="center"?"-"+r:""),O=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},Y=Array.isArray(u)?u:[u],U=Y.length>0,ae={padding:O,boundary:Y.filter(IR),altBoundary:U},{refs:ee,floatingStyles:Q,placement:F,isPositioned:V,middlewareData:H}=yR({strategy:"fixed",placement:B,whileElementsMounted:(...$t)=>uR(...$t,{animationFrame:h==="always"}),elements:{reference:E.anchor},middleware:[_R({mainAxis:a+L,alignmentAxis:s}),l&&ER({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?TR():void 0,...ae}),l&&wR({...ae}),SR({...ae,apply:({elements:$t,rects:re,availableWidth:Li,availableHeight:Ii})=>{const{width:xn,height:xt}=re.reference,jt=$t.floating.style;jt.setProperty("--radix-popper-available-width",`${Li}px`),jt.setProperty("--radix-popper-available-height",`${Ii}px`),jt.setProperty("--radix-popper-anchor-width",`${xn}px`),jt.setProperty("--radix-popper-anchor-height",`${xt}px`)}}),T&&CR({element:T,padding:o}),PR({arrowWidth:D,arrowHeight:L}),f&&AR({strategy:"referenceHidden",...ae})]}),[te,N]=_y(F),be=jr(g);ji(()=>{V&&(be==null||be())},[V,be]);const nt=(fn=H.arrow)==null?void 0:fn.x,M=(Ze=H.arrow)==null?void 0:Ze.y,Be=((qt=H.arrow)==null?void 0:qt.centerOffset)!==0,[ge,je]=_.useState();return ji(()=>{m&&je(window.getComputedStyle(m).zIndex)},[m]),b.jsx("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:V?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[(Mt=H.transformOrigin)==null?void 0:Mt.x,(Gt=H.transformOrigin)==null?void 0:Gt.y].join(" "),...((tn=H.hide)==null?void 0:tn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(DR,{scope:n,placedSide:te,onArrowChange:S,arrowX:nt,arrowY:M,shouldHideArrow:Be,children:b.jsx(In.div,{"data-side":te,"data-align":N,...y,ref:x,style:{...y.style,animation:V?void 0:"none"}})})})});vy.displayName=gp;var yy="PopperArrow",LR={top:"bottom",right:"left",bottom:"top",left:"right"},xy=_.forwardRef(function(t,n){const{__scopePopper:i,...a}=t,r=MR(yy,i),s=LR[r.placedSide];return b.jsx("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:b.jsx(OR,{...a,ref:n,style:{...a.style,display:"block"}})})});xy.displayName=yy;function IR(e){return e!==null}var PR=e=>({name:"transformOrigin",options:e,fn(t){var E,m,v;const{placement:n,rects:i,middlewareData:a}=t,s=((E=a.arrow)==null?void 0:E.centerOffset)!==0,o=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,c]=_y(n),d={start:"0%",center:"50%",end:"100%"}[c],f=(((m=a.arrow)==null?void 0:m.x)??0)+o/2,h=(((v=a.arrow)==null?void 0:v.y)??0)+l/2;let g="",y="";return u==="bottom"?(g=s?d:`${f}px`,y=`${-l}px`):u==="top"?(g=s?d:`${f}px`,y=`${i.floating.height+l}px`):u==="right"?(g=`${-l}px`,y=s?d:`${h}px`):u==="left"&&(g=`${i.floating.width+l}px`,y=s?d:`${h}px`),{data:{x:g,y}}}});function _y(e){const[t,n="center"]=e.split("-");return[t,n]}var Ey=my,bp=by,Ty=vy,wy=xy;function BR(e,t){return _.useReducer((n,i)=>t[n][i]??n,e)}var vp=e=>{const{present:t,children:n}=e,i=jR(t),a=typeof n=="function"?n({present:i.isPresent}):_.Children.only(n),r=Bi(i.ref,zR(a));return typeof n=="function"||i.isPresent?_.cloneElement(a,{ref:r}):null};vp.displayName="Presence";function jR(e){const[t,n]=_.useState(),i=_.useRef(null),a=_.useRef(e),r=_.useRef("none"),s=e?"mounted":"unmounted",[o,l]=BR(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return _.useEffect(()=>{const u=Hc(i.current);r.current=o==="mounted"?u:"none"},[o]),ji(()=>{const u=i.current,c=a.current;if(c!==e){const f=r.current,h=Hc(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&f!==h?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,l]),ji(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,d=h=>{const y=Hc(i.current).includes(h.animationName);if(h.target===t&&y&&(l("ANIMATION_END"),!a.current)){const E=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=E)})}},f=h=>{h.target===t&&(r.current=Hc(i.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:_.useCallback(u=>{i.current=u?getComputedStyle(u):null,n(u)},[])}}function Hc(e){return(e==null?void 0:e.animationName)||"none"}function zR(e){var i,a;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var UR=A1[" useInsertionEffect ".trim().toString()]||ji;function Sy({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[a,r,s]=HR({defaultProp:t,onChange:n}),o=e!==void 0,l=o?e:a;{const c=_.useRef(e!==void 0);_.useEffect(()=>{const d=c.current;d!==o&&console.warn(`${i} is changing from ${d?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=o},[o,i])}const u=_.useCallback(c=>{var d;if(o){const f=FR(c)?c(e):c;f!==e&&((d=s.current)==null||d.call(s,f))}else r(c)},[o,e,r,s]);return[l,u]}function HR({defaultProp:e,onChange:t}){const[n,i]=_.useState(e),a=_.useRef(n),r=_.useRef(t);return UR(()=>{r.current=t},[t]),_.useEffect(()=>{var s;a.current!==n&&((s=r.current)==null||s.call(r,n),a.current=n)},[n,a]),[n,i,r]}function FR(e){return typeof e=="function"}var VR=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ls=new WeakMap,Fc=new WeakMap,Vc={},yp=0,Ay=function(e){return e&&(e.host||Ay(e.parentNode))},YR=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=Ay(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},qR=function(e,t,n,i){var a=YR(t,Array.isArray(e)?e:[e]);Vc[n]||(Vc[n]=new WeakMap);var r=Vc[n],s=[],o=new Set,l=new Set(a),u=function(d){!d||o.has(d)||(o.add(d),u(d.parentNode))};a.forEach(u);var c=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(o.has(f))c(f);else try{var h=f.getAttribute(i),g=h!==null&&h!=="false",y=(Ls.get(f)||0)+1,E=(r.get(f)||0)+1;Ls.set(f,y),r.set(f,E),s.push(f),y===1&&g&&Fc.set(f,!0),E===1&&f.setAttribute(n,"true"),g||f.setAttribute(i,"true")}catch(m){console.error("aria-hidden: cannot operate on ",f,m)}})};return c(t),o.clear(),yp++,function(){s.forEach(function(d){var f=Ls.get(d)-1,h=r.get(d)-1;Ls.set(d,f),r.set(d,h),f||(Fc.has(d)||d.removeAttribute(i),Fc.delete(d)),h||d.removeAttribute(n)}),yp--,yp||(Ls=new WeakMap,Ls=new WeakMap,Fc=new WeakMap,Vc={})}},GR=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),a=VR(e);return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live], script"))),qR(i,a,n,"aria-hidden")):function(){return null}},xp=function(e,t){return xp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},xp(e,t)};function Cy(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");xp(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ii=function(){return ii=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++){n=arguments[i];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ii.apply(this,arguments)};function Yc(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]]);return n}function ky(e,t,n,i){var a=arguments.length,r=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,n,i);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(r=(a<3?s(r):a>3?s(t,n,r):s(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r}function Oy(e,t){return function(n,i){t(n,i,e)}}function Ny(e,t,n,i,a,r){function s(m){if(m!==void 0&&typeof m!="function")throw new TypeError("Function expected");return m}for(var o=i.kind,l=o==="getter"?"get":o==="setter"?"set":"value",u=!t&&e?i.static?e:e.prototype:null,c=t||(u?Object.getOwnPropertyDescriptor(u,i.name):{}),d,f=!1,h=n.length-1;h>=0;h--){var g={};for(var y in i)g[y]=y==="access"?{}:i[y];for(var y in i.access)g.access[y]=i.access[y];g.addInitializer=function(m){if(f)throw new TypeError("Cannot add initializers after decoration has completed");r.push(s(m||null))};var E=(0,n[h])(o==="accessor"?{get:c.get,set:c.set}:c[l],g);if(o==="accessor"){if(E===void 0)continue;if(E===null||typeof E!="object")throw new TypeError("Object expected");(d=s(E.get))&&(c.get=d),(d=s(E.set))&&(c.set=d),(d=s(E.init))&&a.unshift(d)}else(d=s(E))&&(o==="field"?a.unshift(d):c[l]=d)}u&&Object.defineProperty(u,i.name,c),f=!0}function Ry(e,t,n){for(var i=arguments.length>2,a=0;a<t.length;a++)n=i?t[a].call(e,n):t[a].call(e);return i?n:void 0}function Dy(e){return typeof e=="symbol"?e:"".concat(e)}function My(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function Ly(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function ua(e,t,n,i){function a(r){return r instanceof n?r:new n(function(s){s(r)})}return new(n||(n=Promise))(function(r,s){function o(c){try{u(i.next(c))}catch(d){s(d)}}function l(c){try{u(i.throw(c))}catch(d){s(d)}}function u(c){c.done?r(c.value):a(c.value).then(o,l)}u((i=i.apply(e,t||[])).next())})}function Iy(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,a,r,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=o(0),s.throw=o(1),s.return=o(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(c){return l([u,c])}}function l(u){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(i=1,a&&(r=u[0]&2?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[u[0]&2,r.value]),u[0]){case 0:case 1:r=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,a=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(r=n.trys,!(r=r.length>0&&r[r.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!r||u[1]>r[0]&&u[1]<r[3])){n.label=u[1];break}if(u[0]===6&&n.label<r[1]){n.label=r[1],r=u;break}if(r&&n.label<r[2]){n.label=r[2],n.ops.push(u);break}r[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],a=0}finally{i=r=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var qc=Object.create?function(e,t,n,i){i===void 0&&(i=n);var a=Object.getOwnPropertyDescriptor(t,n);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,a)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]};function Py(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&qc(t,e,n)}function Gc(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _p(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),a,r=[],s;try{for(;(t===void 0||t-- >0)&&!(a=i.next()).done;)r.push(a.value)}catch(o){s={error:o}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(s)throw s.error}}return r}function By(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_p(arguments[t]));return e}function jy(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var i=Array(e),a=0,t=0;t<n;t++)for(var r=arguments[t],s=0,o=r.length;s<o;s++,a++)i[a]=r[s];return i}function Ep(e,t,n){if(n||arguments.length===2)for(var i=0,a=t.length,r;i<a;i++)(r||!(i in t))&&(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Is(e){return this instanceof Is?(this.v=e,this):new Is(e)}function zy(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n.apply(e,t||[]),a,r=[];return a=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",s),a[Symbol.asyncIterator]=function(){return this},a;function s(h){return function(g){return Promise.resolve(g).then(h,d)}}function o(h,g){i[h]&&(a[h]=function(y){return new Promise(function(E,m){r.push([h,y,E,m])>1||l(h,y)})},g&&(a[h]=g(a[h])))}function l(h,g){try{u(i[h](g))}catch(y){f(r[0][3],y)}}function u(h){h.value instanceof Is?Promise.resolve(h.value.v).then(c,d):f(r[0][2],h)}function c(h){l("next",h)}function d(h){l("throw",h)}function f(h,g){h(g),r.shift(),r.length&&l(r[0][0],r[0][1])}}function Uy(e){var t,n;return t={},i("next"),i("throw",function(a){throw a}),i("return"),t[Symbol.iterator]=function(){return this},t;function i(a,r){t[a]=e[a]?function(s){return(n=!n)?{value:Is(e[a](s)),done:!1}:r?r(s):s}:r}}function Hy(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Gc=="function"?Gc(e):e[Symbol.iterator](),n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n);function i(r){n[r]=e[r]&&function(s){return new Promise(function(o,l){s=e[r](s),a(o,l,s.done,s.value)})}}function a(r,s,o,l){Promise.resolve(l).then(function(u){r({value:u,done:o})},s)}}function Fy(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var $R=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},Tp=function(e){return Tp=Object.getOwnPropertyNames||function(t){var n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[n.length]=i);return n},Tp(e)};function Vy(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=Tp(e),i=0;i<n.length;i++)n[i]!=="default"&&qc(t,e,n[i]);return $R(t,e),t}function Yy(e){return e&&e.__esModule?e:{default:e}}function qy(e,t,n,i){if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(e):i?i.value:t.get(e)}function Gy(e,t,n,i,a){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?a.call(e,n):a?a.value=n:t.set(e,n),n}function $y(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function Xy(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var i,a;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=t[Symbol.asyncDispose]}if(i===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=t[Symbol.dispose],n&&(a=i)}if(typeof i!="function")throw new TypeError("Object not disposable.");a&&(i=function(){try{a.call(this)}catch(r){return Promise.reject(r)}}),e.stack.push({value:t,dispose:i,async:n})}else n&&e.stack.push({async:!0});return t}var XR=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var i=new Error(n);return i.name="SuppressedError",i.error=e,i.suppressed=t,i};function Ky(e){function t(r){e.error=e.hasError?new XR(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}var n,i=0;function a(){for(;n=e.stack.pop();)try{if(!n.async&&i===1)return i=0,e.stack.push(n),Promise.resolve().then(a);if(n.dispose){var r=n.dispose.call(n.value);if(n.async)return i|=2,Promise.resolve(r).then(a,function(s){return t(s),a()})}else i|=1}catch(s){t(s)}if(i===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return a()}function Qy(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,i,a,r,s){return i?t?".jsx":".js":a&&(!r||!s)?n:a+r+"."+s.toLowerCase()+"js"}):e}const KR=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:Xy,get __assign(){return ii},__asyncDelegator:Uy,__asyncGenerator:zy,__asyncValues:Hy,__await:Is,__awaiter:ua,__classPrivateFieldGet:qy,__classPrivateFieldIn:$y,__classPrivateFieldSet:Gy,__createBinding:qc,__decorate:ky,__disposeResources:Ky,__esDecorate:Ny,__exportStar:Py,__extends:Cy,__generator:Iy,__importDefault:Yy,__importStar:Vy,__makeTemplateObject:Fy,__metadata:Ly,__param:Oy,__propKey:Dy,__read:_p,__rest:Yc,__rewriteRelativeImportExtension:Qy,__runInitializers:Ry,__setFunctionName:My,__spread:By,__spreadArray:Ep,__spreadArrays:jy,__values:Gc,default:{__extends:Cy,__assign:ii,__rest:Yc,__decorate:ky,__param:Oy,__esDecorate:Ny,__runInitializers:Ry,__propKey:Dy,__setFunctionName:My,__metadata:Ly,__awaiter:ua,__generator:Iy,__createBinding:qc,__exportStar:Py,__values:Gc,__read:_p,__spread:By,__spreadArrays:jy,__spreadArray:Ep,__await:Is,__asyncGenerator:zy,__asyncDelegator:Uy,__asyncValues:Hy,__makeTemplateObject:Fy,__importStar:Vy,__importDefault:Yy,__classPrivateFieldGet:qy,__classPrivateFieldSet:Gy,__classPrivateFieldIn:$y,__addDisposableResource:Xy,__disposeResources:Ky,__rewriteRelativeImportExtension:Qy}},Symbol.toStringTag,{value:"Module"}));var $c="right-scroll-bar-position",Xc="width-before-scroll-bar",QR="with-scroll-bars-hidden",WR="--removed-body-scroll-bar-size";function wp(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ZR(e,t){var n=_.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var a=n.value;a!==i&&(n.value=i,n.callback(i,a))}}}})[0];return n.callback=t,n.facade}var JR=typeof window<"u"?_.useLayoutEffect:_.useEffect,Wy=new WeakMap;function eD(e,t){var n=ZR(null,function(i){return e.forEach(function(a){return wp(a,i)})});return JR(function(){var i=Wy.get(n);if(i){var a=new Set(i),r=new Set(e),s=n.current;a.forEach(function(o){r.has(o)||wp(o,null)}),r.forEach(function(o){a.has(o)||wp(o,s)})}Wy.set(n,e)},[e]),n}function tD(e){return e}function nD(e,t){t===void 0&&(t=tD);var n=[],i=!1,a={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(r){var s=t(r,i);return n.push(s),function(){n=n.filter(function(o){return o!==s})}},assignSyncMedium:function(r){for(i=!0;n.length;){var s=n;n=[],s.forEach(r)}n={push:function(o){return r(o)},filter:function(){return n}}},assignMedium:function(r){i=!0;var s=[];if(n.length){var o=n;n=[],o.forEach(r),s=n}var l=function(){var c=s;s=[],c.forEach(r)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),n}}}};return a}function iD(e){e===void 0&&(e={});var t=nD(null);return t.options=ii({async:!0,ssr:!1},e),t}var Zy=function(e){var t=e.sideCar,n=Yc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return _.createElement(i,ii({},n))};Zy.isSideCarExport=!0;function aD(e,t){return e.useMedium(t),Zy}var Jy=iD(),Sp=function(){},Kc=_.forwardRef(function(e,t){var n=_.useRef(null),i=_.useState({onScrollCapture:Sp,onWheelCapture:Sp,onTouchMoveCapture:Sp}),a=i[0],r=i[1],s=e.forwardProps,o=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,h=e.noRelative,g=e.noIsolation,y=e.inert,E=e.allowPinchZoom,m=e.as,v=m===void 0?"div":m,x=e.gapMode,T=Yc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=f,A=eD([n,t]),D=ii(ii({},T),a);return _.createElement(_.Fragment,null,c&&_.createElement(S,{sideCar:Jy,removeScrollBar:u,shards:d,noRelative:h,noIsolation:g,inert:y,setCallbacks:r,allowPinchZoom:!!E,lockRef:n,gapMode:x}),s?_.cloneElement(_.Children.only(o),ii(ii({},D),{ref:A})):_.createElement(v,ii({},D,{className:l,ref:A}),o))});Kc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Kc.classNames={fullWidth:Xc,zeroRight:$c};var rD=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function sD(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=rD();return t&&e.setAttribute("nonce",t),e}function oD(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function lD(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var uD=function(){var e=0,t=null;return{add:function(n){e==0&&(t=sD())&&(oD(t,n),lD(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},cD=function(){var e=uD();return function(t,n){_.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ex=function(){var e=cD(),t=function(n){var i=n.styles,a=n.dynamic;return e(i,a),null};return t},dD={left:0,top:0,right:0,gap:0},Ap=function(e){return parseInt(e||"",10)||0},fD=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Ap(n),Ap(i),Ap(a)]},hD=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return dD;var t=fD(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},pD=ex(),Ps="data-scroll-locked",mD=function(e,t,n,i){var a=e.left,r=e.top,s=e.right,o=e.gap;return n===void 0&&(n="margin"),`
26
- .`.concat(QR,` {
27
- overflow: hidden `).concat(i,`;
28
- padding-right: `).concat(o,"px ").concat(i,`;
29
- }
30
- body[`).concat(Ps,`] {
31
- overflow: hidden `).concat(i,`;
32
- overscroll-behavior: contain;
33
- `).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
34
- padding-left: `.concat(a,`px;
35
- padding-top: `).concat(r,`px;
36
- padding-right: `).concat(s,`px;
37
- margin-left:0;
38
- margin-top:0;
39
- margin-right: `).concat(o,"px ").concat(i,`;
40
- `),n==="padding"&&"padding-right: ".concat(o,"px ").concat(i,";")].filter(Boolean).join(""),`
41
- }
42
-
43
- .`).concat($c,` {
44
- right: `).concat(o,"px ").concat(i,`;
45
- }
46
-
47
- .`).concat(Xc,` {
48
- margin-right: `).concat(o,"px ").concat(i,`;
49
- }
50
-
51
- .`).concat($c," .").concat($c,` {
52
- right: 0 `).concat(i,`;
53
- }
54
-
55
- .`).concat(Xc," .").concat(Xc,` {
56
- margin-right: 0 `).concat(i,`;
57
- }
58
-
59
- body[`).concat(Ps,`] {
60
- `).concat(WR,": ").concat(o,`px;
61
- }
62
- `)},tx=function(){var e=parseInt(document.body.getAttribute(Ps)||"0",10);return isFinite(e)?e:0},gD=function(){_.useEffect(function(){return document.body.setAttribute(Ps,(tx()+1).toString()),function(){var e=tx()-1;e<=0?document.body.removeAttribute(Ps):document.body.setAttribute(Ps,e.toString())}},[])},bD=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,a=i===void 0?"margin":i;gD();var r=_.useMemo(function(){return hD(a)},[a]);return _.createElement(pD,{styles:mD(r,!t,a,n?"":"!important")})},Cp=!1;if(typeof window<"u")try{var Qc=Object.defineProperty({},"passive",{get:function(){return Cp=!0,!0}});window.addEventListener("test",Qc,Qc),window.removeEventListener("test",Qc,Qc)}catch{Cp=!1}var Bs=Cp?{passive:!1}:!1,vD=function(e){return e.tagName==="TEXTAREA"},nx=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!vD(e)&&n[t]==="visible")},yD=function(e){return nx(e,"overflowY")},xD=function(e){return nx(e,"overflowX")},ix=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var a=ax(e,i);if(a){var r=rx(e,i),s=r[1],o=r[2];if(s>o)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},_D=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},ED=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},ax=function(e,t){return e==="v"?yD(t):xD(t)},rx=function(e,t){return e==="v"?_D(t):ED(t)},TD=function(e,t){return e==="h"&&t==="rtl"?-1:1},wD=function(e,t,n,i,a){var r=TD(e,window.getComputedStyle(t).direction),s=r*i,o=n.target,l=t.contains(o),u=!1,c=s>0,d=0,f=0;do{if(!o)break;var h=rx(e,o),g=h[0],y=h[1],E=h[2],m=y-E-r*g;(g||m)&&ax(e,o)&&(d+=m,f+=g);var v=o.parentNode;o=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!l&&o!==document.body||l&&(t.contains(o)||t===o));return(c&&Math.abs(d)<1||!c&&Math.abs(f)<1)&&(u=!0),u},Wc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},sx=function(e){return[e.deltaX,e.deltaY]},ox=function(e){return e&&"current"in e?e.current:e},SD=function(e,t){return e[0]===t[0]&&e[1]===t[1]},AD=function(e){return`
63
- .block-interactivity-`.concat(e,` {pointer-events: none;}
64
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
65
- `)},CD=0,js=[];function kD(e){var t=_.useRef([]),n=_.useRef([0,0]),i=_.useRef(),a=_.useState(CD++)[0],r=_.useState(ex)[0],s=_.useRef(e);_.useEffect(function(){s.current=e},[e]),_.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var y=Ep([e.lockRef.current],(e.shards||[]).map(ox),!0).filter(Boolean);return y.forEach(function(E){return E.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),y.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var o=_.useCallback(function(y,E){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!s.current.allowPinchZoom;var m=Wc(y),v=n.current,x="deltaX"in y?y.deltaX:v[0]-m[0],T="deltaY"in y?y.deltaY:v[1]-m[1],S,A=y.target,D=Math.abs(x)>Math.abs(T)?"h":"v";if("touches"in y&&D==="h"&&A.type==="range")return!1;var L=ix(D,A);if(!L)return!0;if(L?S=D:(S=D==="v"?"h":"v",L=ix(D,A)),!L)return!1;if(!i.current&&"changedTouches"in y&&(x||T)&&(i.current=S),!S)return!0;var B=i.current||S;return wD(B,E,y,B==="h"?x:T)},[]),l=_.useCallback(function(y){var E=y;if(!(!js.length||js[js.length-1]!==r)){var m="deltaY"in E?sx(E):Wc(E),v=t.current.filter(function(S){return S.name===E.type&&(S.target===E.target||E.target===S.shadowParent)&&SD(S.delta,m)})[0];if(v&&v.should){E.cancelable&&E.preventDefault();return}if(!v){var x=(s.current.shards||[]).map(ox).filter(Boolean).filter(function(S){return S.contains(E.target)}),T=x.length>0?o(E,x[0]):!s.current.noIsolation;T&&E.cancelable&&E.preventDefault()}}},[]),u=_.useCallback(function(y,E,m,v){var x={name:y,delta:E,target:m,should:v,shadowParent:OD(m)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(T){return T!==x})},1)},[]),c=_.useCallback(function(y){n.current=Wc(y),i.current=void 0},[]),d=_.useCallback(function(y){u(y.type,sx(y),y.target,o(y,e.lockRef.current))},[]),f=_.useCallback(function(y){u(y.type,Wc(y),y.target,o(y,e.lockRef.current))},[]);_.useEffect(function(){return js.push(r),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Bs),document.addEventListener("touchmove",l,Bs),document.addEventListener("touchstart",c,Bs),function(){js=js.filter(function(y){return y!==r}),document.removeEventListener("wheel",l,Bs),document.removeEventListener("touchmove",l,Bs),document.removeEventListener("touchstart",c,Bs)}},[]);var h=e.removeScrollBar,g=e.inert;return _.createElement(_.Fragment,null,g?_.createElement(r,{styles:AD(a)}):null,h?_.createElement(bD,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function OD(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ND=aD(Jy,kD);var lx=_.forwardRef(function(e,t){return _.createElement(Kc,ii({},e,{ref:t,sideCar:ND}))});lx.classNames=Kc.classNames;var Zc="Popover",[ux,pJ]=Oc(Zc,[Uc]),yl=Uc(),[RD,Ur]=ux(Zc),cx=e=>{const{__scopePopover:t,children:n,open:i,defaultOpen:a,onOpenChange:r,modal:s=!1}=e,o=yl(t),l=_.useRef(null),[u,c]=_.useState(!1),[d,f]=Sy({prop:i,defaultProp:a??!1,onChange:r,caller:Zc});return b.jsx(Ey,{...o,children:b.jsx(RD,{scope:t,contentId:Y1(),triggerRef:l,open:d,onOpenChange:f,onOpenToggle:_.useCallback(()=>f(h=>!h),[f]),hasCustomAnchor:u,onCustomAnchorAdd:_.useCallback(()=>c(!0),[]),onCustomAnchorRemove:_.useCallback(()=>c(!1),[]),modal:s,children:n})})};cx.displayName=Zc;var dx="PopoverAnchor",fx=_.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,a=Ur(dx,n),r=yl(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:o}=a;return _.useEffect(()=>(s(),()=>o()),[s,o]),b.jsx(bp,{...r,...i,ref:t})});fx.displayName=dx;var hx="PopoverTrigger",px=_.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,a=Ur(hx,n),r=yl(n),s=Bi(t,a.triggerRef),o=b.jsx(In.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":vx(a.open),...i,ref:s,onClick:Tn(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?o:b.jsx(bp,{asChild:!0,...r,children:o})});px.displayName=hx;var DD="PopoverPortal",[mJ,MD]=ux(DD,{forceMount:void 0}),zs="PopoverContent",mx=_.forwardRef((e,t)=>{const n=MD(zs,e.__scopePopover),{forceMount:i=n.forceMount,...a}=e,r=Ur(zs,e.__scopePopover);return b.jsx(vp,{present:i||r.open,children:r.modal?b.jsx(ID,{...a,ref:t}):b.jsx(PD,{...a,ref:t})})});mx.displayName=zs;var LD=Wh("PopoverContent.RemoveScroll"),ID=_.forwardRef((e,t)=>{const n=Ur(zs,e.__scopePopover),i=_.useRef(null),a=Bi(t,i),r=_.useRef(!1);return _.useEffect(()=>{const s=i.current;if(s)return GR(s)},[]),b.jsx(lx,{as:LD,allowPinchZoom:!0,children:b.jsx(gx,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Tn(e.onCloseAutoFocus,s=>{var o;s.preventDefault(),r.current||(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:Tn(e.onPointerDownOutside,s=>{const o=s.detail.originalEvent,l=o.button===0&&o.ctrlKey===!0,u=o.button===2||l;r.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:Tn(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),PD=_.forwardRef((e,t)=>{const n=Ur(zs,e.__scopePopover),i=_.useRef(!1),a=_.useRef(!1);return b.jsx(gx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:r=>{var s,o;(s=e.onCloseAutoFocus)==null||s.call(e,r),r.defaultPrevented||(i.current||(o=n.triggerRef.current)==null||o.focus(),r.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:r=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,r),r.defaultPrevented||(i.current=!0,r.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const s=r.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&r.preventDefault(),r.detail.originalEvent.type==="focusin"&&a.current&&r.preventDefault()}})}),gx=_.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:r,disableOutsidePointerEvents:s,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,f=Ur(zs,n),h=yl(n);return l4(),b.jsx(z1,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:r,children:b.jsx(Jh,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:c,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:b.jsx(Ty,{"data-state":vx(f.open),role:"dialog",id:f.contentId,...h,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),bx="PopoverClose",BD=_.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,a=Ur(bx,n);return b.jsx(In.button,{type:"button",...i,ref:t,onClick:Tn(e.onClick,()=>a.onOpenChange(!1))})});BD.displayName=bx;var jD="PopoverArrow",zD=_.forwardRef((e,t)=>{const{__scopePopover:n,...i}=e,a=yl(n);return b.jsx(wy,{...a,...i,ref:t})});zD.displayName=jD;function vx(e){return e?"open":"closed"}var UD=cx,HD=fx,FD=mx;const VD=/\{[^{}]+\}/g,YD=()=>{var e,t;return typeof process=="object"&&Number.parseInt((t=(e=process==null?void 0:process.versions)==null?void 0:e.node)==null?void 0:t.substring(0,2))>=18&&process.versions.undici};function qD(){return Math.random().toString(36).slice(2,11)}function GD(e){let{baseUrl:t="",Request:n=globalThis.Request,fetch:i=globalThis.fetch,querySerializer:a,bodySerializer:r,headers:s,requestInitExt:o=void 0,...l}={...e};o=YD()?o:void 0,t=Tx(t);const u=[];async function c(d,f){const{baseUrl:h,fetch:g=i,Request:y=n,headers:E,params:m={},parseAs:v="json",querySerializer:x,bodySerializer:T=r??XD,body:S,...A}=f||{};let D=t;h&&(D=Tx(h)??t);let L=typeof a=="function"?a:_x(a);x&&(L=typeof x=="function"?x:_x({...typeof a=="object"?a:{},...x}));const B=S===void 0?void 0:T(S,Ex(s,E,m.header)),O=Ex(B===void 0||B instanceof FormData?{}:{"Content-Type":"application/json"},s,E,m.header),Y={redirect:"follow",...l,...A,body:B,headers:O};let U,ae,ee=new n(KD(d,{baseUrl:D,params:m,querySerializer:L}),Y),Q;for(const V in A)V in ee||(ee[V]=A[V]);if(u.length){U=qD(),ae=Object.freeze({baseUrl:D,fetch:g,parseAs:v,querySerializer:L,bodySerializer:T});for(const V of u)if(V&&typeof V=="object"&&typeof V.onRequest=="function"){const H=await V.onRequest({request:ee,schemaPath:d,params:m,options:ae,id:U});if(H)if(H instanceof n)ee=H;else if(H instanceof Response){Q=H;break}else throw new Error("onRequest: must return new Request() or Response() when modifying the request")}}if(!Q){try{Q=await g(ee,o)}catch(V){let H=V;if(u.length)for(let te=u.length-1;te>=0;te--){const N=u[te];if(N&&typeof N=="object"&&typeof N.onError=="function"){const be=await N.onError({request:ee,error:H,schemaPath:d,params:m,options:ae,id:U});if(be){if(be instanceof Response){H=void 0,Q=be;break}if(be instanceof Error){H=be;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(H)throw H}if(u.length)for(let V=u.length-1;V>=0;V--){const H=u[V];if(H&&typeof H=="object"&&typeof H.onResponse=="function"){const te=await H.onResponse({request:ee,response:Q,schemaPath:d,params:m,options:ae,id:U});if(te){if(!(te instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");Q=te}}}}if(Q.status===204||ee.method==="HEAD"||Q.headers.get("Content-Length")==="0")return Q.ok?{data:void 0,response:Q}:{error:void 0,response:Q};if(Q.ok)return v==="stream"?{data:Q.body,response:Q}:{data:await Q[v](),response:Q};let F=await Q.text();try{F=JSON.parse(F)}catch{}return{error:F,response:Q}}return{request(d,f,h){return c(f,{...h,method:d.toUpperCase()})},GET(d,f){return c(d,{...f,method:"GET"})},PUT(d,f){return c(d,{...f,method:"PUT"})},POST(d,f){return c(d,{...f,method:"POST"})},DELETE(d,f){return c(d,{...f,method:"DELETE"})},OPTIONS(d,f){return c(d,{...f,method:"OPTIONS"})},HEAD(d,f){return c(d,{...f,method:"HEAD"})},PATCH(d,f){return c(d,{...f,method:"PATCH"})},TRACE(d,f){return c(d,{...f,method:"TRACE"})},use(...d){for(const f of d)if(f){if(typeof f!="object"||!("onRequest"in f||"onResponse"in f||"onError"in f))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");u.push(f)}},eject(...d){for(const f of d){const h=u.indexOf(f);h!==-1&&u.splice(h,1)}}}}function Jc(e,t,n){if(t==null)return"";if(typeof t=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${e}=${(n==null?void 0:n.allowReserved)===!0?t:encodeURIComponent(t)}`}function yx(e,t,n){if(!t||typeof t!="object")return"";const i=[],a={simple:",",label:".",matrix:";"}[n.style]||"&";if(n.style!=="deepObject"&&n.explode===!1){for(const o in t)i.push(o,n.allowReserved===!0?t[o]:encodeURIComponent(t[o]));const s=i.join(",");switch(n.style){case"form":return`${e}=${s}`;case"label":return`.${s}`;case"matrix":return`;${e}=${s}`;default:return s}}for(const s in t){const o=n.style==="deepObject"?`${e}[${s}]`:s;i.push(Jc(o,t[s],n))}const r=i.join(a);return n.style==="label"||n.style==="matrix"?`${a}${r}`:r}function xx(e,t,n){if(!Array.isArray(t))return"";if(n.explode===!1){const r={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[n.style]||",",s=(n.allowReserved===!0?t:t.map(o=>encodeURIComponent(o))).join(r);switch(n.style){case"simple":return s;case"label":return`.${s}`;case"matrix":return`;${e}=${s}`;default:return`${e}=${s}`}}const i={simple:",",label:".",matrix:";"}[n.style]||"&",a=[];for(const r of t)n.style==="simple"||n.style==="label"?a.push(n.allowReserved===!0?r:encodeURIComponent(r)):a.push(Jc(e,r,n));return n.style==="label"||n.style==="matrix"?`${i}${a.join(i)}`:a.join(i)}function _x(e){return function(n){const i=[];if(n&&typeof n=="object")for(const a in n){const r=n[a];if(r!=null){if(Array.isArray(r)){if(r.length===0)continue;i.push(xx(a,r,{style:"form",explode:!0,...e==null?void 0:e.array,allowReserved:(e==null?void 0:e.allowReserved)||!1}));continue}if(typeof r=="object"){i.push(yx(a,r,{style:"deepObject",explode:!0,...e==null?void 0:e.object,allowReserved:(e==null?void 0:e.allowReserved)||!1}));continue}i.push(Jc(a,r,e))}}return i.join("&")}}function $D(e,t){let n=e;for(const i of e.match(VD)??[]){let a=i.substring(1,i.length-1),r=!1,s="simple";if(a.endsWith("*")&&(r=!0,a=a.substring(0,a.length-1)),a.startsWith(".")?(s="label",a=a.substring(1)):a.startsWith(";")&&(s="matrix",a=a.substring(1)),!t||t[a]===void 0||t[a]===null)continue;const o=t[a];if(Array.isArray(o)){n=n.replace(i,xx(a,o,{style:s,explode:r}));continue}if(typeof o=="object"){n=n.replace(i,yx(a,o,{style:s,explode:r}));continue}if(s==="matrix"){n=n.replace(i,`;${Jc(a,o)}`);continue}n=n.replace(i,s==="label"?`.${encodeURIComponent(o)}`:encodeURIComponent(o))}return n}function XD(e,t){return e instanceof FormData?e:t&&(t.get instanceof Function?t.get("Content-Type")??t.get("content-type"):t["Content-Type"]??t["content-type"])==="application/x-www-form-urlencoded"?new URLSearchParams(e).toString():JSON.stringify(e)}function KD(e,t){var a;let n=`${t.baseUrl}${e}`;(a=t.params)!=null&&a.path&&(n=$D(n,t.params.path));let i=t.querySerializer(t.params.query??{});return i.startsWith("?")&&(i=i.substring(1)),i&&(n+=`?${i}`),n}function Ex(...e){const t=new Headers;for(const n of e){if(!n||typeof n!="object")continue;const i=n instanceof Headers?n.entries():Object.entries(n);for(const[a,r]of i)if(r===null)t.delete(a);else if(Array.isArray(r))for(const s of r)t.append(a,s);else r!==void 0&&t.set(a,r)}return t}function Tx(e){return e.endsWith("/")?e.substring(0,e.length-1):e}var ed={exports:{}};ed.exports,function(e,t){var n=200,i="__lodash_hash_undefined__",a=1,r=2,s=9007199254740991,o="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",g="[object GeneratorFunction]",y="[object Map]",E="[object Number]",m="[object Null]",v="[object Object]",x="[object Promise]",T="[object Proxy]",S="[object RegExp]",A="[object Set]",D="[object String]",L="[object Symbol]",B="[object Undefined]",O="[object WeakMap]",Y="[object ArrayBuffer]",U="[object DataView]",ae="[object Float32Array]",ee="[object Float64Array]",Q="[object Int8Array]",F="[object Int16Array]",V="[object Int32Array]",H="[object Uint8Array]",te="[object Uint8ClampedArray]",N="[object Uint16Array]",be="[object Uint32Array]",nt=/[\\^$.*+?()[\]{}|]/g,M=/^\[object .+?Constructor\]$/,Be=/^(?:0|[1-9]\d*)$/,ge={};ge[ae]=ge[ee]=ge[Q]=ge[F]=ge[V]=ge[H]=ge[te]=ge[N]=ge[be]=!0,ge[o]=ge[l]=ge[Y]=ge[c]=ge[U]=ge[d]=ge[f]=ge[h]=ge[y]=ge[E]=ge[v]=ge[S]=ge[A]=ge[D]=ge[O]=!1;var je=typeof za=="object"&&za&&za.Object===Object&&za,fn=typeof self=="object"&&self&&self.Object===Object&&self,Ze=je||fn||Function("return this")(),qt=t&&!t.nodeType&&t,Mt=qt&&!0&&e&&!e.nodeType&&e,Gt=Mt&&Mt.exports===qt,tn=Gt&&je.process,$t=function(){try{return tn&&tn.binding&&tn.binding("util")}catch{}}(),re=$t&&$t.isTypedArray;function Li(C,I){for(var G=-1,se=C==null?0:C.length,st=0,Se=[];++G<se;){var _t=C[G];I(_t,G,C)&&(Se[st++]=_t)}return Se}function Ii(C,I){for(var G=-1,se=I.length,st=C.length;++G<se;)C[st+G]=I[G];return C}function xn(C,I){for(var G=-1,se=C==null?0:C.length;++G<se;)if(I(C[G],G,C))return!0;return!1}function xt(C,I){for(var G=-1,se=Array(C);++G<C;)se[G]=I(G);return se}function jt(C){return function(I){return C(I)}}function hn(C,I){return C.has(I)}function Lr(C,I){return C==null?void 0:C[I]}function nn(C){var I=-1,G=Array(C.size);return C.forEach(function(se,st){G[++I]=[st,se]}),G}function Ts(C,I){return function(G){return C(I(G))}}function ne(C){var I=-1,G=Array(C.size);return C.forEach(function(se){G[++I]=se}),G}var fe=Array.prototype,j=Function.prototype,$=Object.prototype,ue=Ze["__core-js_shared__"],_e=j.toString,ve=$.hasOwnProperty,Xt=function(){var C=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""}(),Mn=$.toString,_n=RegExp("^"+_e.call(ve).replace(nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ei=Gt?Ze.Buffer:void 0,Ln=Ze.Symbol,Lt=Ze.Uint8Array,ti=$.propertyIsEnumerable,En=fe.splice,Pa=Ln?Ln.toStringTag:void 0,dN=Object.getOwnPropertySymbols,bZ=ei?ei.isBuffer:void 0,vZ=Ts(Object.keys,Object),s1=fl(Ze,"DataView"),Tc=fl(Ze,"Map"),o1=fl(Ze,"Promise"),l1=fl(Ze,"Set"),u1=fl(Ze,"WeakMap"),wc=fl(Object,"create"),yZ=As(s1),xZ=As(Tc),_Z=As(o1),EZ=As(l1),TZ=As(u1),fN=Ln?Ln.prototype:void 0,c1=fN?fN.valueOf:void 0;function ws(C){var I=-1,G=C==null?0:C.length;for(this.clear();++I<G;){var se=C[I];this.set(se[0],se[1])}}function wZ(){this.__data__=wc?wc(null):{},this.size=0}function SZ(C){var I=this.has(C)&&delete this.__data__[C];return this.size-=I?1:0,I}function AZ(C){var I=this.__data__;if(wc){var G=I[C];return G===i?void 0:G}return ve.call(I,C)?I[C]:void 0}function CZ(C){var I=this.__data__;return wc?I[C]!==void 0:ve.call(I,C)}function kZ(C,I){var G=this.__data__;return this.size+=this.has(C)?0:1,G[C]=wc&&I===void 0?i:I,this}ws.prototype.clear=wZ,ws.prototype.delete=SZ,ws.prototype.get=AZ,ws.prototype.has=CZ,ws.prototype.set=kZ;function Ba(C){var I=-1,G=C==null?0:C.length;for(this.clear();++I<G;){var se=C[I];this.set(se[0],se[1])}}function OZ(){this.__data__=[],this.size=0}function NZ(C){var I=this.__data__,G=zh(I,C);if(G<0)return!1;var se=I.length-1;return G==se?I.pop():En.call(I,G,1),--this.size,!0}function RZ(C){var I=this.__data__,G=zh(I,C);return G<0?void 0:I[G][1]}function DZ(C){return zh(this.__data__,C)>-1}function MZ(C,I){var G=this.__data__,se=zh(G,C);return se<0?(++this.size,G.push([C,I])):G[se][1]=I,this}Ba.prototype.clear=OZ,Ba.prototype.delete=NZ,Ba.prototype.get=RZ,Ba.prototype.has=DZ,Ba.prototype.set=MZ;function Ss(C){var I=-1,G=C==null?0:C.length;for(this.clear();++I<G;){var se=C[I];this.set(se[0],se[1])}}function LZ(){this.size=0,this.__data__={hash:new ws,map:new(Tc||Ba),string:new ws}}function IZ(C){var I=Uh(this,C).delete(C);return this.size-=I?1:0,I}function PZ(C){return Uh(this,C).get(C)}function BZ(C){return Uh(this,C).has(C)}function jZ(C,I){var G=Uh(this,C),se=G.size;return G.set(C,I),this.size+=G.size==se?0:1,this}Ss.prototype.clear=LZ,Ss.prototype.delete=IZ,Ss.prototype.get=PZ,Ss.prototype.has=BZ,Ss.prototype.set=jZ;function jh(C){var I=-1,G=C==null?0:C.length;for(this.__data__=new Ss;++I<G;)this.add(C[I])}function zZ(C){return this.__data__.set(C,i),this}function UZ(C){return this.__data__.has(C)}jh.prototype.add=jh.prototype.push=zZ,jh.prototype.has=UZ;function Ir(C){var I=this.__data__=new Ba(C);this.size=I.size}function HZ(){this.__data__=new Ba,this.size=0}function FZ(C){var I=this.__data__,G=I.delete(C);return this.size=I.size,G}function VZ(C){return this.__data__.get(C)}function YZ(C){return this.__data__.has(C)}function qZ(C,I){var G=this.__data__;if(G instanceof Ba){var se=G.__data__;if(!Tc||se.length<n-1)return se.push([C,I]),this.size=++G.size,this;G=this.__data__=new Ss(se)}return G.set(C,I),this.size=G.size,this}Ir.prototype.clear=HZ,Ir.prototype.delete=FZ,Ir.prototype.get=VZ,Ir.prototype.has=YZ,Ir.prototype.set=qZ;function GZ(C,I){var G=Hh(C),se=!G&&oJ(C),st=!G&&!se&&d1(C),Se=!G&&!se&&!st&&_N(C),_t=G||se||st||Se,Kt=_t?xt(C.length,String):[],an=Kt.length;for(var mt in C)ve.call(C,mt)&&!(_t&&(mt=="length"||st&&(mt=="offset"||mt=="parent")||Se&&(mt=="buffer"||mt=="byteLength"||mt=="byteOffset")||nJ(mt,an)))&&Kt.push(mt);return Kt}function zh(C,I){for(var G=C.length;G--;)if(bN(C[G][0],I))return G;return-1}function $Z(C,I,G){var se=I(C);return Hh(C)?se:Ii(se,G(C))}function Sc(C){return C==null?C===void 0?B:m:Pa&&Pa in Object(C)?eJ(C):sJ(C)}function hN(C){return Ac(C)&&Sc(C)==o}function pN(C,I,G,se,st){return C===I?!0:C==null||I==null||!Ac(C)&&!Ac(I)?C!==C&&I!==I:XZ(C,I,G,se,pN,st)}function XZ(C,I,G,se,st,Se){var _t=Hh(C),Kt=Hh(I),an=_t?l:Pr(C),mt=Kt?l:Pr(I);an=an==o?v:an,mt=mt==o?v:mt;var ni=an==v,Pi=mt==v,pn=an==mt;if(pn&&d1(C)){if(!d1(I))return!1;_t=!0,ni=!1}if(pn&&!ni)return Se||(Se=new Ir),_t||_N(C)?mN(C,I,G,se,st,Se):ZZ(C,I,an,G,se,st,Se);if(!(G&a)){var _i=ni&&ve.call(C,"__wrapped__"),Ei=Pi&&ve.call(I,"__wrapped__");if(_i||Ei){var Br=_i?C.value():C,ja=Ei?I.value():I;return Se||(Se=new Ir),st(Br,ja,G,se,Se)}}return pn?(Se||(Se=new Ir),JZ(C,I,G,se,st,Se)):!1}function KZ(C){if(!xN(C)||aJ(C))return!1;var I=vN(C)?_n:M;return I.test(As(C))}function QZ(C){return Ac(C)&&yN(C.length)&&!!ge[Sc(C)]}function WZ(C){if(!rJ(C))return vZ(C);var I=[];for(var G in Object(C))ve.call(C,G)&&G!="constructor"&&I.push(G);return I}function mN(C,I,G,se,st,Se){var _t=G&a,Kt=C.length,an=I.length;if(Kt!=an&&!(_t&&an>Kt))return!1;var mt=Se.get(C);if(mt&&Se.get(I))return mt==I;var ni=-1,Pi=!0,pn=G&r?new jh:void 0;for(Se.set(C,I),Se.set(I,C);++ni<Kt;){var _i=C[ni],Ei=I[ni];if(se)var Br=_t?se(Ei,_i,ni,I,C,Se):se(_i,Ei,ni,C,I,Se);if(Br!==void 0){if(Br)continue;Pi=!1;break}if(pn){if(!xn(I,function(ja,Cs){if(!hn(pn,Cs)&&(_i===ja||st(_i,ja,G,se,Se)))return pn.push(Cs)})){Pi=!1;break}}else if(!(_i===Ei||st(_i,Ei,G,se,Se))){Pi=!1;break}}return Se.delete(C),Se.delete(I),Pi}function ZZ(C,I,G,se,st,Se,_t){switch(G){case U:if(C.byteLength!=I.byteLength||C.byteOffset!=I.byteOffset)return!1;C=C.buffer,I=I.buffer;case Y:return!(C.byteLength!=I.byteLength||!Se(new Lt(C),new Lt(I)));case c:case d:case E:return bN(+C,+I);case f:return C.name==I.name&&C.message==I.message;case S:case D:return C==I+"";case y:var Kt=nn;case A:var an=se&a;if(Kt||(Kt=ne),C.size!=I.size&&!an)return!1;var mt=_t.get(C);if(mt)return mt==I;se|=r,_t.set(C,I);var ni=mN(Kt(C),Kt(I),se,st,Se,_t);return _t.delete(C),ni;case L:if(c1)return c1.call(C)==c1.call(I)}return!1}function JZ(C,I,G,se,st,Se){var _t=G&a,Kt=gN(C),an=Kt.length,mt=gN(I),ni=mt.length;if(an!=ni&&!_t)return!1;for(var Pi=an;Pi--;){var pn=Kt[Pi];if(!(_t?pn in I:ve.call(I,pn)))return!1}var _i=Se.get(C);if(_i&&Se.get(I))return _i==I;var Ei=!0;Se.set(C,I),Se.set(I,C);for(var Br=_t;++Pi<an;){pn=Kt[Pi];var ja=C[pn],Cs=I[pn];if(se)var EN=_t?se(Cs,ja,pn,I,C,Se):se(ja,Cs,pn,C,I,Se);if(!(EN===void 0?ja===Cs||st(ja,Cs,G,se,Se):EN)){Ei=!1;break}Br||(Br=pn=="constructor")}if(Ei&&!Br){var Fh=C.constructor,Vh=I.constructor;Fh!=Vh&&"constructor"in C&&"constructor"in I&&!(typeof Fh=="function"&&Fh instanceof Fh&&typeof Vh=="function"&&Vh instanceof Vh)&&(Ei=!1)}return Se.delete(C),Se.delete(I),Ei}function gN(C){return $Z(C,cJ,tJ)}function Uh(C,I){var G=C.__data__;return iJ(I)?G[typeof I=="string"?"string":"hash"]:G.map}function fl(C,I){var G=Lr(C,I);return KZ(G)?G:void 0}function eJ(C){var I=ve.call(C,Pa),G=C[Pa];try{C[Pa]=void 0;var se=!0}catch{}var st=Mn.call(C);return se&&(I?C[Pa]=G:delete C[Pa]),st}var tJ=dN?function(C){return C==null?[]:(C=Object(C),Li(dN(C),function(I){return ti.call(C,I)}))}:dJ,Pr=Sc;(s1&&Pr(new s1(new ArrayBuffer(1)))!=U||Tc&&Pr(new Tc)!=y||o1&&Pr(o1.resolve())!=x||l1&&Pr(new l1)!=A||u1&&Pr(new u1)!=O)&&(Pr=function(C){var I=Sc(C),G=I==v?C.constructor:void 0,se=G?As(G):"";if(se)switch(se){case yZ:return U;case xZ:return y;case _Z:return x;case EZ:return A;case TZ:return O}return I});function nJ(C,I){return I=I??s,!!I&&(typeof C=="number"||Be.test(C))&&C>-1&&C%1==0&&C<I}function iJ(C){var I=typeof C;return I=="string"||I=="number"||I=="symbol"||I=="boolean"?C!=="__proto__":C===null}function aJ(C){return!!Xt&&Xt in C}function rJ(C){var I=C&&C.constructor,G=typeof I=="function"&&I.prototype||$;return C===G}function sJ(C){return Mn.call(C)}function As(C){if(C!=null){try{return _e.call(C)}catch{}try{return C+""}catch{}}return""}function bN(C,I){return C===I||C!==C&&I!==I}var oJ=hN(function(){return arguments}())?hN:function(C){return Ac(C)&&ve.call(C,"callee")&&!ti.call(C,"callee")},Hh=Array.isArray;function lJ(C){return C!=null&&yN(C.length)&&!vN(C)}var d1=bZ||fJ;function uJ(C,I){return pN(C,I)}function vN(C){if(!xN(C))return!1;var I=Sc(C);return I==h||I==g||I==u||I==T}function yN(C){return typeof C=="number"&&C>-1&&C%1==0&&C<=s}function xN(C){var I=typeof C;return C!=null&&(I=="object"||I=="function")}function Ac(C){return C!=null&&typeof C=="object"}var _N=re?jt(re):QZ;function cJ(C){return lJ(C)?GZ(C):WZ(C)}function dJ(){return[]}function fJ(){return!1}e.exports=uJ}(ed,ed.exports);var QD=ed.exports;const WD=hl(QD),Qt=[];for(let e=0;e<256;++e)Qt.push((e+256).toString(16).slice(1));function ZD(e,t=0){return(Qt[e[t+0]]+Qt[e[t+1]]+Qt[e[t+2]]+Qt[e[t+3]]+"-"+Qt[e[t+4]]+Qt[e[t+5]]+"-"+Qt[e[t+6]]+Qt[e[t+7]]+"-"+Qt[e[t+8]]+Qt[e[t+9]]+"-"+Qt[e[t+10]]+Qt[e[t+11]]+Qt[e[t+12]]+Qt[e[t+13]]+Qt[e[t+14]]+Qt[e[t+15]]).toLowerCase()}let kp;const JD=new Uint8Array(16);function e5(){if(!kp){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");kp=crypto.getRandomValues.bind(crypto)}return kp(JD)}const wx={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Op(e,t,n){var a;if(wx.randomUUID&&!e)return wx.randomUUID();e=e||{};const i=e.random??((a=e.rng)==null?void 0:a.call(e))??e5();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,ZD(i)}const t5=e=>{console.log(e.error)},n5=e=>{const t=GD({baseUrl:e.baseUrl}),n={onRequest:e.onRequest,onResponse:e.onResponse,onError:e.onError||t5};return t.use(n),t};let Sx=class{constructor({config:t}){var n,i;this.userToken=null,this.constructClientOptions=s=>{const o=this.config.apiUrl||"https://api.open.cx",l={"X-Bot-Token":this.config.token,"Content-Type":"application/json",Accept:"application/json",Authorization:s?`Bearer ${s}`:void 0};return{baseUrl:o,headers:l}},this.createOpenAPIClient=({baseUrl:s,headers:o})=>n5({baseUrl:s,onRequest:({request:l})=>{Object.entries(o).forEach(([u,c])=>{c&&l.headers.set(u,c)})}}),this.setAuthToken=s=>{this.userToken=s;const{baseUrl:o,headers:l}=this.constructClientOptions(s);this.client=this.createOpenAPIClient({baseUrl:o,headers:l})},this.getExternalWidgetConfig=async()=>await this.client.GET("/backend/widget/v2/config",{params:{header:{"x-bot-token":this.config.token}}}),this.sendMessage=async(s,o)=>await this.client.POST("/backend/widget/v2/chat/send",{body:s,signal:o}),this.createUnverifiedContact=async s=>await this.client.POST("/backend/widget/v2/contact/create-unverified",{params:{header:{"x-bot-token":this.config.token}},body:s}),this.createSession=async s=>await this.client.POST("/backend/widget/v2/create-session",{body:s}),this.pollSessionAndHistory=async({sessionId:s,abortSignal:o})=>await this.client.GET("/backend/widget/v2/poll/{sessionId}",{params:{path:{sessionId:s}},signal:o}),this.getSessions=async({cursor:s,filters:o,abortSignal:l})=>await this.client.GET("/backend/widget/v2/sessions",{params:{query:{offset:s,filters:JSON.stringify(o)}},signal:l}),this.uploadFile=async({file:s,abortSignal:o,onProgress:l})=>new Promise((u,c)=>{var d;const f=new FormData;f.append("file",s);const h=new XMLHttpRequest;if(o&&(o.addEventListener("abort",()=>{h.abort(),c(new DOMException("Aborted","AbortError"))}),o.aborted)){c(new DOMException("Aborted","AbortError"));return}h.upload.addEventListener("progress",E=>{if(E.lengthComputable&&l){const m=Math.round(E.loaded/E.total*100);l(m)}}),h.addEventListener("load",()=>{if(h.status>=200&&h.status<300)try{const E=JSON.parse(h.responseText);u(E)}catch(E){c(new Error(`Failed to parse response: ${E}`))}else c(new Error(`Upload failed with status: ${h.status}`))}),h.addEventListener("error",()=>{c(new Error("Network error occurred"))}),h.addEventListener("timeout",()=>{c(new Error("Upload timed out"))});const{baseUrl:g}=this.constructClientOptions(this.userToken),y=`${g}/backend/widget/v2/upload`;h.open("POST",y),h.setRequestHeader("X-Bot-Token",this.config.token),this.userToken??((d=this.config.user)==null?void 0:d.token)?h.setRequestHeader("Authorization",`Bearer ${this.userToken}`):console.error("User token not set"),h.send(f)}),this.vote=async s=>await this.client.POST("/backend/widget/v2/chat/vote",{body:s}),this.resolveSession=async(s,o)=>await this.client.POST("/backend/widget/v2/session/resolve",{body:s,signal:o}),this.createStateCheckpoint=async s=>await this.client.POST("/backend/widget/v2/checkpoint",{body:s}),this.submitCsat=async s=>await this.client.POST("/backend/widget/v2/submit-csat",{body:s}),this.config=t,this.userToken=((n=t.user)==null?void 0:n.token)||null;const{baseUrl:a,headers:r}=this.constructClientOptions((i=t.user)==null?void 0:i.token);this.client=this.createOpenAPIClient({baseUrl:a,headers:r})}};function ai(e,t){console.error(`Missing case for ${e} in ${t}`)}class Us{constructor(t){this.subscribers=new Set,this.get=()=>this.state,this.set=n=>{WD(this.state,n)||(this.state=n,this.notifySubscribers(n))},this.setPartial=n=>{if(n==null)return;const i={...this.state,...n};this.set(i)},this.reset=()=>{this.set(this.initialState)},this.notifySubscribers=n=>{Array.from(this.subscribers).forEach(i=>{try{i(n)}catch(a){console.error(a)}})},this.subscribe=n=>(this.subscribers.add(n),()=>{this.subscribers.delete(n)}),this.state=t,this.initialState=t}}let Ax=class{constructor(){this.state=new Us({isPolling:!1,isError:!1}),this.abortController=new AbortController,this.reset=()=>{var t;this.abortController.abort("Resetting poller"),(t=this.stopPolling)==null||t.call(this),this.stopPolling=null},this.stopPolling=null,this.startPolling=(t,n)=>{if(this.stopPolling)return;const i=[],a=async()=>{this.abortController=new AbortController,this.state.setPartial({isPolling:!0});try{await t(this.abortController.signal)}catch(r){if(this.abortController.signal.aborted)return;console.error("Failed to poll:",r),this.state.setPartial({isError:!0})}finally{this.state.setPartial({isPolling:!1})}this.abortController.signal.aborted?console.log("Poller aborted, not scheduling anymore"):i.push(setTimeout(a,n))};a(),this.stopPolling=()=>{i.forEach(clearTimeout),this.state.reset()}}}};function Cx(e){try{const t=e();return t instanceof Promise?t.then(n=>({data:n})).catch(n=>({error:n})):{data:t}}catch(t){return{error:t}}}let i5=class{constructor({api:t,config:n,sessionCtx:i,messageCtx:a,sessionPollingIntervalSeconds:r}){this.poller=new Ax,this.fetchSessionAndFullHistoryAbortController=new AbortController,this.registerPolling=()=>{this.sessionCtx.sessionState.subscribe(({session:s})=>{s!=null&&s.id?this.poller.startPolling(async o=>{this.fetchSessionAndHistory({sessionId:s.id,abortSignal:o})},this.sessionPollingIntervalSeconds*1e3):this.poller.reset()}),this.sessionCtx.sessionState.subscribe(({session:s})=>{if(s!=null&&s.id&&!s.isOpened)try{this.fetchSessionAndFullHistoryAbortController=new AbortController,this.fetchSessionAndHistory({sessionId:s.id,abortSignal:this.fetchSessionAndFullHistoryAbortController.signal})}catch(o){this.fetchSessionAndFullHistoryAbortController.signal.aborted||console.error("Failed to fetch session and full history:",o)}else this.fetchSessionAndFullHistoryAbortController.abort()})},this.fetchSessionAndHistory=async({sessionId:s,abortSignal:o})=>{const l=this.messageCtx.state.get().messages.length===0;l&&this.messageCtx.state.setPartial({isInitialFetchLoading:!0});const{data:u}=await this.api.pollSessionAndHistory({sessionId:s,abortSignal:o});if(u!=null&&u.session&&(this.sessionCtx.sessionState.setPartial({session:u.session}),this.sessionCtx.setSessions([u.session])),u!=null&&u.history&&u.history.length>0){const c=this.messageCtx.state.get().messages,d=u.history.map(this.mapHistoryToMessage).filter(f=>f!==null).filter(f=>!c.some(h=>h.id===f.id));if(this.messageCtx.state.setPartial({messages:[...c,...d]}),l)this.messageCtx.markAsDispatchedToOnMessageReceivedHook(d.map(f=>f.id));else for(const f of d)this.messageCtx.dispatchToOnMessageReceivedHook(f)}this.messageCtx.state.get().isInitialFetchLoading&&this.messageCtx.state.setPartial({isInitialFetchLoading:!1})},this.mapHistoryToMessage=s=>{var o;const l={id:s.publicId,timestamp:s.sentAt||"",attachments:s.attachments||void 0};if(s.sender.kind==="user")return{...l,type:"USER",content:s.content.text||"",deliveredAt:s.sentAt||""};if(s.sender.kind==="agent")return{...l,type:"AGENT",component:"agent_message",data:{message:s.content.text||""},agent:{name:s.sender.name||"",avatarUrl:s.sender.avatar||null,avatar:s.sender.avatar||null,id:null,isAi:!1}};if(s.sender.kind==="ai"){const u=s.actionCalls&&s.actionCalls.length>0?s.actionCalls[s.actionCalls.length-1]:void 0;return{...l,type:"AI",component:"bot_message",agent:{id:null,name:((o=this.config.bot)==null?void 0:o.name)||"",isAi:!0,avatarUrl:null,avatar:null},data:{message:s.content.text||"",action:u?{name:u.actionName,data:this.extractActionResult(u)}:void 0}}}if(s.sender.kind==="system"){const u=this.constructSystemMessage(s);return u===null?null:{...u}}return null},this.constructSystemMessage=s=>{if(!s||!s.systemMessagePayload)return null;switch(s.systemMessagePayload.type){case"state_checkpoint":return{id:s.publicId,type:"SYSTEM",subtype:"state_checkpoint",data:{payload:s.systemMessagePayload.payload},timestamp:s.sentAt||"",attachments:void 0};case"csat_requested":return{id:s.publicId,type:"SYSTEM",subtype:"csat_requested",data:{payload:void 0},timestamp:s.sentAt||"",attachments:void 0};case"csat_submitted":return{id:s.publicId,type:"SYSTEM",subtype:"csat_submitted",data:{payload:{score:s.systemMessagePayload.payload.score??void 0,feedback:s.systemMessagePayload.payload.feedback??void 0}},timestamp:s.sentAt||"",attachments:void 0};case"none":return null;default:return ai(s.systemMessagePayload,this.constructSystemMessage.name),null}},this.extractActionResult=s=>{const o=s.result;if(o===null||typeof o!="object")return o;if("responseBodyText"in o&&typeof o.responseBodyText=="string"){const l=o.responseBodyText,u=Cx(()=>JSON.parse(l)).data;if(u)return u}return s.result},this.api=t,this.config=n,this.sessionCtx=i,this.messageCtx=a,this.sessionPollingIntervalSeconds=r,this.registerPolling()}};class a5{constructor({config:t,api:n,storageCtx:i}){var a;this.shouldCollectData=()=>{var r;return!!(!((r=this.state.get().contact)!=null&&r.token)&&this.config.collectUserData)},this.autoCreateUnverifiedUserIfNotExists=async()=>{var r,s,o,l,u,c,d,f,h,g,y,E,m,v;if(!((r=this.config.user)!=null&&r.token)){if(this.config.collectUserData&&!((o=(s=this.config.user)==null?void 0:s.data)!=null&&o.email)){if((l=this.config.extraDataCollectionFields)!=null&&l.length)return;const x=await((u=this.storageCtx)==null?void 0:u.getContactToken());x&&await this.setUnverifiedContact(x);return}if(!((d=(c=this.config.user)==null?void 0:c.data)!=null&&d.email)){const x=await((f=this.storageCtx)==null?void 0:f.getContactToken());if(x){await this.setUnverifiedContact(x);return}}await this.createUnverifiedContact({email:(g=(h=this.config.user)==null?void 0:h.data)==null?void 0:g.email,non_verified_name:(E=(y=this.config.user)==null?void 0:y.data)==null?void 0:E.name,non_verified_custom_data:(v=(m=this.config.user)==null?void 0:m.data)==null?void 0:v.customData})}},this.createUnverifiedContact=async(r,s)=>{this.state.setPartial({extraCollectedData:s});try{this.state.setPartial({isCreatingUnverifiedContact:!0,isErrorCreatingUnverifiedContact:!1});const{data:o}=await this.api.createUnverifiedContact(r);o!=null&&o.token?await this.setUnverifiedContact(o.token):this.state.setPartial({isErrorCreatingUnverifiedContact:!0})}finally{this.state.setPartial({isCreatingUnverifiedContact:!1})}},this.setUnverifiedContact=async r=>{var s,o,l,u;const c=await((s=this.storageCtx)==null?void 0:s.getExternalContactId()),d=((o=this.config.user)==null?void 0:o.externalId)||c||Op();this.api.setAuthToken(r),await((l=this.storageCtx)==null?void 0:l.setContactToken(r)),await((u=this.storageCtx)==null?void 0:u.setExternalContactId(d)),this.state.setPartial({contact:{token:r,externalId:d}})},this.config=t,this.storageCtx=i,this.api=n,this.state=new Us({contact:(a=t.user)!=null&&a.token?{token:t.user.token,externalId:t.user.externalId}:null,extraCollectedData:void 0,isCreatingUnverifiedContact:!1,isErrorCreatingUnverifiedContact:!1}),this.autoCreateUnverifiedUserIfNotExists()}}function xl(){return Op()}class r5{constructor({config:t,api:n,sessionCtx:i,messageCtx:a}){this.submitCsat=async r=>{var s;const o=(s=this.sessionCtx.sessionState.get().session)==null?void 0:s.id;if(!o)return{data:null,error:"No session id found"};const l=xl();this.messageCtx.state.setPartial({messages:[...this.messageCtx.state.get().messages,{id:l,type:"SYSTEM",subtype:"csat_submitted",timestamp:new Date().toISOString(),data:{payload:{score:r.score,feedback:r.feedback}}}]});const{data:u,error:c}=await this.api.submitCsat({...r,system_message_uuid:l,session_id:o});return{data:u,error:c}},this.config=t,this.api=n,this.sessionCtx=i,this.messageCtx=a}}let s5=class{constructor({config:t,api:n,contactCtx:i,sessionsPollingIntervalSeconds:a}){this.sessionsRefresher=new Ax,this.sessionState=new Us({session:null,isCreatingSession:!1,isResolvingSession:!1}),this.sessionsState=new Us({data:[],cursor:void 0,isLastPage:!1,didStartInitialFetch:!1,isInitialFetchLoading:!0}),this.reset=async()=>{this.sessionState.reset()},this.registerSessionsRefresherWrapper=()=>{var r;(r=this.contactCtx.state.get().contact)!=null&&r.token&&!this.sessionsState.get().didStartInitialFetch?this.registerSessionsRefresher():this.contactCtx.state.subscribe(({contact:s})=>{s!=null&&s.token&&!this.sessionsState.get().didStartInitialFetch&&this.registerSessionsRefresher()})},this.registerSessionsRefresher=()=>{this.sessionsRefresher.startPolling(async()=>{this.sessionsState.get().didStartInitialFetch===!1&&this.sessionsState.setPartial({didStartInitialFetch:!0}),await this.refreshSessions(),this.sessionsState.get().isInitialFetchLoading===!0&&this.sessionsState.setPartial({isInitialFetchLoading:!1})},this.sessionsPollingIntervalSeconds*1e3)},this.getParsedCustomData=()=>Object.fromEntries(Object.entries(this.config.sessionCustomData||{}).map(([r,s])=>{var o;return typeof s=="string"?[r,s]:typeof s=="boolean"?[r,s]:typeof s=="number"?[r,s]:[r,((o=Cx(()=>JSON.stringify(s)))==null?void 0:o.data)||""]})),this.createSession=async()=>{var r,s,o;this.sessionState.setPartial({session:null,isCreatingSession:!0});const l=(r=this.contactCtx.state.get().contact)==null?void 0:r.externalId,u={...this.getParsedCustomData(),...l?{external_id:l}:{}},{data:c,error:d}=await this.api.createSession({customData:Object.keys(u).length>0?u:void 0});return c?(this.sessionState.setPartial({session:c,isCreatingSession:!1}),(o=(s=this.config.hooks)==null?void 0:s.onSessionCreated)==null||o.call(s,{session:c}),c):(this.sessionState.setPartial({isCreatingSession:!1}),console.error("Failed to create session:",d),null)},this.loadMoreSessions=async()=>{if(this.sessionsState.get().isLastPage)return;const{data:r}=await this.getSessions({cursor:this.sessionsState.get().cursor});if(r){const s=[...this.sessionsState.get().data,...r.items].filter((o,l,u)=>l===u.findIndex(c=>o.id===c.id));this.sessionsState.setPartial({data:s,cursor:r.next||void 0,isLastPage:r.next===null})}},this.getSessions=async({cursor:r})=>{var s,o;if(!((s=this.contactCtx.state.get().contact)!=null&&s.token))return{data:null};const l=(o=this.contactCtx.state.get().contact)==null?void 0:o.externalId;return await this.api.getSessions({cursor:r,filters:l?{external_id:l}:{}})},this.setSessions=r=>{const s=[...r,...this.sessionsState.get().data].filter((o,l,u)=>l===u.findIndex(c=>o.id===c.id));this.sessionsState.setPartial({data:s})},this.refreshSessions=async()=>{const{data:r}=await this.getSessions({cursor:void 0});r&&this.setSessions(r.items)},this.resolveSession=async()=>{const r=this.sessionState.get().session;if(!r||!r.isOpened)return{success:!1,error:"Session is not opened"};this.sessionState.setPartial({isResolvingSession:!0});const{data:s,error:o}=await this.api.resolveSession({session_id:r.id});return s?(this.sessionState.setPartial({session:s,isResolvingSession:!1}),{success:!0,data:s}):(this.sessionState.setPartial({isResolvingSession:!1}),{success:!1,error:o})},this.createStateCheckpoint=async r=>{var s;const o=(s=this.sessionState.get().session)==null?void 0:s.id;if(!o)return;const{data:l,error:u}=await this.api.createStateCheckpoint({session_id:o,payload:r});return l!=null&&l.success?{success:!0}:{success:!1}},this.config=t,this.api=n,this.contactCtx=i,this.sessionsPollingIntervalSeconds=a,this.registerSessionsRefresherWrapper()}},o5=class{constructor({config:t,api:n,sessionCtx:i,contactCtx:a}){this.state=new Us({messages:[],isSendingMessage:!1,isSendingMessageToAI:!1,lastAIResMightSolveUserIssue:!1,isInitialFetchLoading:!1}),this.sendMessageAbortController=new AbortController,this.messageIdsDispatchedToOnMessageReceivedHook=new Set,this.reset=()=>{this.sendMessageAbortController.abort("Resetting chat"),this.state.reset(),this.messageIdsDispatchedToOnMessageReceivedHook.clear()},this.dispatchToOnMessageReceivedHook=r=>{var s,o;if(r.type==="USER"||this.messageIdsDispatchedToOnMessageReceivedHook.has(r.id))return;const l=this.sessionCtx.sessionState.get().session;l&&(this.messageIdsDispatchedToOnMessageReceivedHook.add(r.id),(o=(s=this.config.hooks)==null?void 0:s.onMessageReceived)==null||o.call(s,{message:r,session:l}))},this.markAsDispatchedToOnMessageReceivedHook=r=>{r.forEach(s=>this.messageIdsDispatchedToOnMessageReceivedHook.add(s))},this.sendMessage=async r=>{var s,o,l,u,c,d,f,h,g;let y;try{if(!r.content.trim()&&(!r.attachments||r.attachments.length===0)){console.warn("Cannot send an empty message of no content or attachments");return}const E=this.sessionCtx.sessionState.get().session,m=(E==null?void 0:E.assignee.kind)==="ai",v=this.state.get().isSendingMessageToAI,x=this.state.get().messages.at(-1);if(this.config.disableSendingWhenAwaitingAIReply!==!1&&(v||m&&(x==null?void 0:x.type)==="USER")){console.warn("Cannot send messages while awaiting AI response");return}this.sendMessageAbortController.abort("Superseded by a newer message"),this.sendMessageAbortController=new AbortController,y=this.sendMessageAbortController,this.state.setPartial({lastAIResMightSolveUserIssue:!1,isSendingMessage:!0,isSendingMessageToAI:!!m||!E});const T=this.state.get().messages,S=!((s=this.sessionCtx.sessionState.get().session)!=null&&s.id)&&T.length===0&&((o=this.config.advancedInitialMessages)==null?void 0:o.some(O=>O.persistent)),A=S?(this.config.advancedInitialMessages||[]).filter(O=>O.persistent).map(O=>({id:xl(),component:"bot_message",type:"AI",timestamp:new Date().toISOString(),data:{message:O.message},agent:this.config.bot?{...this.config.bot,isAi:!0,id:null}:void 0})):[],D=this.toUserMessage(r.content.trim(),r.attachments||void 0);if(this.state.setPartial({messages:[...A,...T,D]}),!((l=this.sessionCtx.sessionState.get().session)!=null&&l.id)){if(!await this.sessionCtx.createSession()){console.error("Failed to create session");return}this.sessionCtx.refreshSessions()}const L=(u=this.sessionCtx.sessionState.get().session)==null?void 0:u.id;if(!L)return;const{data:B}=await this.api.sendMessage({uuid:D.id,bot_token:this.config.token,headers:this.config.headers,query_params:this.config.queryParams,body_properties:this.config.bodyProperties,session_id:L,content:D.content,attachments:r.attachments,clientContext:this.config.context,custom_data:{...this.config.messageCustomData||{},...r.customData||{}},language:this.config.language,exit_mode_prompt:r.exitModePrompt,initial_messages:S?A.map(O=>({uuid:O.id,content:O.data.message})):void 0},y.signal);if(B!=null&&B.success){const O=this.toBotMessage(B);if(O){const Y=this.state.get().messages;if(Y.some(U=>U.id===O.id)){this.state.setPartial({lastAIResMightSolveUserIssue:((c=B.autopilotResponse)==null?void 0:c.mightSolveUserIssue)||((d=B.uiResponse)==null?void 0:d.mightSolveUserIssue)});return}this.state.setPartial({messages:[...Y,O],lastAIResMightSolveUserIssue:((f=B.autopilotResponse)==null?void 0:f.mightSolveUserIssue)||((h=B.uiResponse)==null?void 0:h.mightSolveUserIssue)}),this.dispatchToOnMessageReceivedHook(O)}B.session&&this.sessionCtx.sessionState.setPartial({session:B.session})}else{const O=this.toBotErrorMessage(((g=B==null?void 0:B.error)==null?void 0:g.message)||"Something went wrong. Please refresh the page or try again."),Y=this.state.get().messages;this.state.setPartial({messages:[...Y,O]})}}catch(E){y!=null&&y.signal.aborted||console.error("Failed to send message:",E)}finally{y!=null&&y.signal.aborted||this.state.setPartial({isSendingMessage:!1,isSendingMessageToAI:!1})}},this.toUserMessage=(r,s)=>{const o=(()=>{const l=this.contactCtx.state.get().extraCollectedData;return this.state.get().messages.length===0&&l&&Object.keys(l).length>0?`${Object.entries(l).filter(([u,c])=>!!c).map(([u,c])=>`${u}: ${c}`).join(`
66
- `)}
67
-
68
- ${r}`:r})();return{id:xl(),type:"USER",content:o,deliveredAt:new Date().toISOString(),attachments:s,timestamp:new Date().toISOString()}},this.toBotMessage=r=>{var s;return r.success&&r.autopilotResponse?{type:"AI",id:r.autopilotResponse.id||xl(),timestamp:new Date().toISOString(),component:"bot_message",agent:this.config.bot?{name:this.config.bot.name||"",isAi:!0,avatarUrl:null,avatar:null,id:null}:void 0,data:{message:r.autopilotResponse.value.content,action:(s=r.uiResponse)!=null&&s.value.name?{name:r.uiResponse.value.name,data:r.uiResponse.value.request_response}:void 0}}:null},this.toBotErrorMessage=r=>({type:"AI",id:xl(),timestamp:new Date().toISOString(),component:"bot_message",data:{message:r,variant:"error",action:void 0}}),this.config=t,this.api=n,this.sessionCtx=i,this.contactCtx=a}},l5=class{constructor({config:t,contactCtx:n,sessionCtx:i,resetChat:a}){var r;this.registerRoutingListener=()=>{this.contactCtx.state.subscribe(({contact:s})=>{var o;s!=null&&s.token&&this.state.get().screen==="welcome"&&this.state.setPartial({screen:(o=this.config.router)!=null&&o.chatScreenOnly?"chat":"sessions"})}),this.sessionCtx.sessionsState.subscribe(({isInitialFetchLoading:s,data:o})=>{var l,u,c,d;if((l=this.config.router)!=null&&l.chatScreenOnly&&!((u=this.sessionCtx.sessionState.get().session)!=null&&u.id)){const f=(c=o.find(h=>h.isOpened))==null?void 0:c.id;return f?this.toChatScreen(f):void 0}o.length||((d=this.config.router)==null?void 0:d.goToChatIfNoSessions)!==!1&&!s&&this.state.get().screen!=="chat"&&this.toChatScreen()})},this.toSessionsScreen=()=>{this.resetChat(),this.state.setPartial({screen:"sessions"})},this.toChatScreen=s=>{var o,l;this.resetChat();let u;if(s){if(u=this.sessionCtx.sessionsState.get().data.find(c=>c.id===s),!u)return;this.sessionCtx.sessionState.setPartial({session:u})}this.state.setPartial({screen:"chat"}),(l=(o=this.config.hooks)==null?void 0:o.onNavigateToChat)==null||l.call(o,{session:u})},this.config=t,this.contactCtx=n,this.sessionCtx=i,this.resetChat=a,this.state=new Us({screen:this.contactCtx.shouldCollectData()?"welcome":(r=this.config.router)!=null&&r.chatScreenOnly?"chat":"sessions"}),this.registerRoutingListener()}},u5=class{constructor({storage:t,config:n}){this.KEYS={contactToken:i=>`opencx-widget:org-token-${i}:contact-token`,externalContactId:i=>`opencx-widget:org-token-${i}:external-contact-id`},this.setContactToken=async i=>{await this.storage.set(this.KEYS.contactToken(this.config.token),i)},this.getContactToken=async()=>this.storage.get(this.KEYS.contactToken(this.config.token)),this.setExternalContactId=async i=>{await this.storage.set(this.KEYS.externalContactId(this.config.token),i)},this.getExternalContactId=async()=>this.storage.get(this.KEYS.externalContactId(this.config.token)),this.storage=t,this.config=n}};const _l=class Yh{constructor({config:t,storage:n,modes:i,org:a}){if(this.modes=[],this.resetChat=()=>{this.sessionCtx.reset(),this.messageCtx.reset()},!Yh.pollingIntervalsSeconds)throw Error("Widget polling values are not defined, did you call WidgetCtx.initialize()");this.config=t,this.org=a,this.api=new Sx({config:t}),this.storageCtx=n?new u5({storage:n,config:t}):void 0,this.modes=i,this.contactCtx=new a5({api:this.api,config:this.config,storageCtx:this.storageCtx}),this.sessionCtx=new s5({config:this.config,api:this.api,contactCtx:this.contactCtx,sessionsPollingIntervalSeconds:Yh.pollingIntervalsSeconds.sessions}),this.messageCtx=new o5({config:this.config,api:this.api,sessionCtx:this.sessionCtx,contactCtx:this.contactCtx}),this.csatCtx=new r5({config:this.config,api:this.api,sessionCtx:this.sessionCtx,messageCtx:this.messageCtx}),this.activeSessionPollingCtx=new i5({api:this.api,config:this.config,sessionCtx:this.sessionCtx,messageCtx:this.messageCtx,sessionPollingIntervalSeconds:Yh.pollingIntervalsSeconds.session}),this.routerCtx=new l5({config:this.config,contactCtx:this.contactCtx,sessionCtx:this.sessionCtx,resetChat:this.resetChat})}};_l.pollingIntervalsSeconds=null,_l.initialize=async({config:e,storage:t})=>{var n,i,a;const r=await new Sx({config:e}).getExternalWidgetConfig();if(!r.data)throw new Error("Failed to fetch widget config");return _l.pollingIntervalsSeconds={session:((n=r.data)==null?void 0:n.sessionPollingIntervalSeconds)||10,sessions:((i=r.data)==null?void 0:i.sessionsPollingIntervalSeconds)||60},new _l({config:e,storage:t,modes:((a=r.data)==null?void 0:a.modes)||[],org:{id:r.data.org.id,name:r.data.org.name}})};let c5=_l;const d5={write_a_message_placeholder:"اكتب رسالة...",your_issue_has_been_resolved:"تم حل مشكلتك!",new_conversation:"محادثة جديدة",welcome_screen_title:"مرحبًا بك في دردشة الدعم الخاصة بنا",welcome_screen_description:"نحن هنا للمساعدة! ابدأ محادثة وسنرد عليك في أقرب وقت ممكن.",your_name_placeholder:"اسمك",your_email_placeholder:"عنوان بريدك الإلكتروني",start_chat_button:"تحدث إلى الدعم",start_chat_button_loading:"جاري الاتصال...",i_need_more_help:"أحتاج المزيد من المساعدة",this_was_helpful:"كان هذا مفيدًا",optional:"اختياري",no_conversations_yet:"لا يوجد محادثات",back_to_conversations:"العودة إلى المحادثات",closed_conversations:"المحادثات المغلقة",csat_title:"كيف كانت محادثتك؟",csat_submitted_title:"لقد قيّمت المحادثة بـ",csat_feedback_placeholder:"أخبرنا المزيد... (اختياري)"},f5={write_a_message_placeholder:"একটি বার্তা লিখুন...",your_issue_has_been_resolved:"আপনার সমস্যা সমাধান হয়েছে!",new_conversation:"নতুন কথোপকথন",welcome_screen_title:"আমাদের সাপোর্ট চ্যাটে স্বাগতম",welcome_screen_description:"আমরা সাহায্য করতে এখানে আছি! একটি কথোপকথন শুরু করুন এবং আমরা যত তাড়াতাড়ি সম্ভব আপনার কাছে ফিরে আসব।",your_name_placeholder:"আপনার নাম",your_email_placeholder:"আপনার ইমেইল ঠিকানা",start_chat_button:"সাপোর্টের সাথে কথা বলুন",start_chat_button_loading:"সংযোগ হচ্ছে...",i_need_more_help:"আমার আরও সাহায্য দরকার",this_was_helpful:"এটি সহায়ক ছিল",optional:"ঐচ্ছিক",no_conversations_yet:"এখনো কোনো কথোপকথন নেই",back_to_conversations:"কথোপকথনে ফিরে যান",closed_conversations:"বন্ধ কথোপকথন",csat_title:"আপনার কথোপকথন কেমন ছিল?",csat_submitted_title:"আপনি কথোপকথনটি মূল্যায়ন করেছেন",csat_feedback_placeholder:"আমাদের আরও বলুন... (ঐচ্ছিক)"},h5={write_a_message_placeholder:"Напишете съобщение...",your_issue_has_been_resolved:"Вашият проблем е разрешен!",new_conversation:"Нов разговор",welcome_screen_title:"Добре дошли в нашия чат за поддръжка",welcome_screen_description:"Тук сме, за да помогнем! Започнете разговор и ще ви отговорим възможно най-скоро.",your_name_placeholder:"Вашето име",your_email_placeholder:"Вашият имейл адрес",start_chat_button:"Свържете се с поддръжка",start_chat_button_loading:"Свързване...",i_need_more_help:"Имам нужда от повече помощ",this_was_helpful:"Това беше полезно",optional:"По избор",no_conversations_yet:"Все още няма разговори",back_to_conversations:"Назад към разговорите",closed_conversations:"Затворени разговори",csat_title:"Как мина разговорът ви?",csat_submitted_title:"Оценихте разговора като",csat_feedback_placeholder:"Кажете ни повече... (по желание)"},p5={write_a_message_placeholder:"Napište zprávu...",your_issue_has_been_resolved:"Váš problém byl vyřešen!",new_conversation:"Nová konverzace",welcome_screen_title:"Vítejte v našem chatu podpory",welcome_screen_description:"Jsme tu, abychom vám pomohli! Zahajte konverzaci a ozveme se vám co nejdříve.",your_name_placeholder:"Vaše jméno",your_email_placeholder:"Vaše e-mailová adresa",start_chat_button:"Kontaktovat podporu",start_chat_button_loading:"Připojování...",i_need_more_help:"Potřebuji další pomoc",this_was_helpful:"Toto bylo užitečné",optional:"Volitelné",no_conversations_yet:"Zatím žádné konverzace",back_to_conversations:"Zpět na konverzace",closed_conversations:"Uzavřené konverzace",csat_title:"Jaká byla vaše konverzace?",csat_submitted_title:"Konverzaci jste ohodnotili jako",csat_feedback_placeholder:"Řekněte nám více... (nepovinné)"},m5={write_a_message_placeholder:"Skriv en besked...",your_issue_has_been_resolved:"Dit problem er løst!",new_conversation:"Ny samtale",welcome_screen_title:"Velkommen til vores support chat",welcome_screen_description:"Vi er her for at hjælpe! Start en samtale, og vi vender tilbage til dig så hurtigt som muligt.",your_name_placeholder:"Dit navn",your_email_placeholder:"Din e-mailadresse",start_chat_button:"Tal med support",start_chat_button_loading:"Forbinder...",i_need_more_help:"Jeg har brug for mere hjælp",this_was_helpful:"Dette var nyttigt",optional:"Valgfrit",no_conversations_yet:"Ingen samtaler endnu",back_to_conversations:"Tilbage til samtaler",closed_conversations:"Lukkede samtaler",csat_title:"Hvordan var din samtale?",csat_submitted_title:"Du vurderede samtalen som",csat_feedback_placeholder:"Fortæl os mere... (valgfrit)"},g5={write_a_message_placeholder:"Γράψτε ένα μήνυμα...",your_issue_has_been_resolved:"Το πρόβλημά σας επιλύθηκε!",new_conversation:"Νέα συνομιλία",welcome_screen_title:"Καλώς ήρθατε στη συνομιλία υποστήριξης",welcome_screen_description:"Είμαστε εδώ για να βοηθήσουμε! Ξεκινήστε μια συνομιλία και θα σας απαντήσουμε το συντομότερο δυνατό.",your_name_placeholder:"Το όνομά σας",your_email_placeholder:"Η διεύθυνση email σας",start_chat_button:"Επικοινωνία με την υποστήριξη",start_chat_button_loading:"Σύνδεση...",i_need_more_help:"Χρειάζομαι περισσότερη βοήθεια",this_was_helpful:"Αυτό ήταν χρήσιμο",optional:"Προαιρετικό",no_conversations_yet:"Δεν υπάρχουν συνομιλίες ακόμα",back_to_conversations:"Πίσω στις συνομιλίες",closed_conversations:"Κλειστές συνομιλίες",csat_title:"Πώς ήταν η συνομιλία σας;",csat_submitted_title:"Βαθμολογήσατε τη συνομιλία ως",csat_feedback_placeholder:"Πείτε μας περισσότερα... (προαιρετικό)"},b5={write_a_message_placeholder:"Nachricht schreiben...",your_issue_has_been_resolved:"Ihr Problem wurde gelöst!",new_conversation:"Neue Konversation",welcome_screen_title:"Willkommen in unserem Support-Chat",welcome_screen_description:"Wir sind hier, um zu helfen! Beginnen Sie ein Gesprách und wir werden so schnell wie mogelijk antworten.",your_name_placeholder:"Ihr Name",your_email_placeholder:"Ihre E-Mail-Adresse",start_chat_button:"Mit dem Support sprechen",start_chat_button_loading:"Verbindung wird hergestellt...",i_need_more_help:"Ich brauche weitere Hilfe",this_was_helpful:"Dies war hilfreich",optional:"Optional",no_conversations_yet:"noch keine Gespräche",back_to_conversations:"Zurück zur Konversationen",closed_conversations:"Geschlossene Konversationen",csat_title:"Wie war Ihr Gespräch?",csat_submitted_title:"Sie haben das Gespräch bewertet als",csat_feedback_placeholder:"Erzählen Sie uns mehr... (optional)"},v5={write_a_message_placeholder:"Write a message...",your_issue_has_been_resolved:"Your issue has been resolved!",new_conversation:"New conversation",welcome_screen_title:"Welcome to our support chat",welcome_screen_description:"We're here to help! Start a conversation and we'll get back to you as soon as possible.",your_name_placeholder:"Your name",your_email_placeholder:"Your email address",start_chat_button:"Talk to support",start_chat_button_loading:"Connecting...",i_need_more_help:"I need more help",this_was_helpful:"This was helpful",optional:"Optional",no_conversations_yet:"No conversations yet",back_to_conversations:"Back to conversations",closed_conversations:"Closed conversations",csat_title:"How was your conversation?",csat_submitted_title:"You rated the conversation as",csat_feedback_placeholder:"Tell us more... (optional)"},y5={write_a_message_placeholder:"Escribe un mensaje...",your_issue_has_been_resolved:"¡Tu problema fue resuelto!",new_conversation:"Nueva conversación",welcome_screen_title:"Bienvenido a nuestro chat de soporte",welcome_screen_description:"¡Estamos aquí para ayudarte! Inicia una conversación y responderemos lo antes posible.",your_name_placeholder:"Tu nombre",your_email_placeholder:"Tu correo electrónico",start_chat_button:"Hablar con soporte",start_chat_button_loading:"Conectando...",i_need_more_help:"Necesito más ayuda",this_was_helpful:"Esto fue útil",optional:"Opcional",no_conversations_yet:"Sin conversaciones aún",back_to_conversations:"Volver a conversaciones",closed_conversations:"Conversaciones cerradas",csat_title:"¿Qué tal fue tu conversación?",csat_submitted_title:"Valoraste la conversación como",csat_feedback_placeholder:"Cuéntanos más... (opcional)"},x5={write_a_message_placeholder:"Magsulat ng mensahe...",your_issue_has_been_resolved:"Nalutas na ang iyong isyu!",new_conversation:"Bagong usapan",welcome_screen_title:"Maligayang pagdating sa aming support chat",welcome_screen_description:"Narito kami upang tumulong! Magsimula ng usapan at babalikan ka namin sa lalong madaling panahon.",your_name_placeholder:"Iyong pangalan",your_email_placeholder:"Iyong email address",start_chat_button:"Makipag-usap sa support",start_chat_button_loading:"Kumokonekta...",i_need_more_help:"Kailangan ko pa ng tulong",this_was_helpful:"Nakatulong ito",optional:"Opsyonal",no_conversations_yet:"Wala pang mga usapan",back_to_conversations:"Bumalik sa mga usapan",closed_conversations:"Mga saradong usapan",csat_title:"Kumusta ang iyong usapan?",csat_submitted_title:"Ni-rate mo ang usapan bilang",csat_feedback_placeholder:"Sabihin pa sa amin... (opsyonal)"},_5={write_a_message_placeholder:"Kirjoita viesti...",your_issue_has_been_resolved:"Ongelmasi on ratkaistu!",new_conversation:"Uusi keskustelu",welcome_screen_title:"Tervetuloa tukichattiin",welcome_screen_description:"Olemme täällä auttamassa! Aloita keskustelu ja palaamme sinulle mahdollisimman pian.",your_name_placeholder:"Nimesi",your_email_placeholder:"Sähköpostiosoitteesi",start_chat_button:"Keskustele tuen kanssa",start_chat_button_loading:"Yhdistetään...",i_need_more_help:"Tarvitsen lisää apua",this_was_helpful:"Tämä oli hyödyllistä",optional:"Valinnainen",no_conversations_yet:"Ei vielä keskusteluja",back_to_conversations:"Takaisin keskusteluihin",closed_conversations:"Suljetut keskustelut",csat_title:"Millainen keskustelusi oli?",csat_submitted_title:"Arvioit keskustelun",csat_feedback_placeholder:"Kerro lisää... (valinnainen)"},E5={write_a_message_placeholder:"Écrivez un message...",your_issue_has_been_resolved:"Votre problème a été résolu !",new_conversation:"Nouvelle conversation",welcome_screen_title:"Bienvenue dans notre chat de support",welcome_screen_description:"Nous sommes là pour vous aider ! Commencez une conversation et nous vous répondrons dès que possible.",your_name_placeholder:"Votre nom",your_email_placeholder:"Votre adresse e-mail",start_chat_button:"Parler au support",start_chat_button_loading:"Connexion...",i_need_more_help:"Je besoin d'aide plus",this_was_helpful:"C'était utile",optional:"Optionnel",no_conversations_yet:"Aucune conversation pour le moment",back_to_conversations:"Retour aux conversations",closed_conversations:"Conversations fermées",csat_title:"Comment s’est passée votre conversation ?",csat_submitted_title:"Vous avez évalué la conversation comme",csat_feedback_placeholder:"Dites-nous en plus... (facultatif)"},T5={write_a_message_placeholder:"एक संदेश लिखें...",your_issue_has_been_resolved:"आपकी समस्या हल हो गई है!",new_conversation:"नई बातचीत",welcome_screen_title:"हमारी सहायता चैट में आपका स्वागत है",welcome_screen_description:"हम मदद के लिए यहाँ हैं! बातचीत शुरू करें और हम जल्द से जल्द आपसे संपर्क करेंगे।",your_name_placeholder:"आपका नाम",your_email_placeholder:"आपका ईमेल पता",start_chat_button:"सहायता से बात करें",start_chat_button_loading:"कनेक्ट हो रहा है...",i_need_more_help:"मुझे और मदद चाहिए",this_was_helpful:"यह मददगार था",optional:"वैकल्पिक",no_conversations_yet:"अभी तक कोई बातचीत नहीं",back_to_conversations:"बातचीत पर वापस जाएं",closed_conversations:"बंद बातचीत",csat_title:"आपकी बातचीत कैसी रही?",csat_submitted_title:"आपने बातचीत को आंका",csat_feedback_placeholder:"हमें और बताएं... (वैकल्पिक)"},w5={write_a_message_placeholder:"Scrivi un messaggio...",your_issue_has_been_resolved:"Il tuo problema è stato risolto!",new_conversation:"Nuova conversazione",welcome_screen_title:"Benvenuto nella nostra chat di supporto",welcome_screen_description:"Siamo qui per aiutarti! Inizia una conversazione e ti risponderemo il prima possibile.",your_name_placeholder:"Il tuo nome",your_email_placeholder:"Il tuo indirizzo email",start_chat_button:"Parla con il supporto",start_chat_button_loading:"Connessione in corso...",i_need_more_help:"Ho bisogno di ulteriore aiuto",this_was_helpful:"Questo è stato utile",optional:"Opzionale",no_conversations_yet:"Nessuna conversazione ancora",back_to_conversations:"Torna alle conversazioni",closed_conversations:"Conversazioni chiuse",csat_title:"Com’è andata la tua conversazione?",csat_submitted_title:"Hai valutato la conversazione come",csat_feedback_placeholder:"Dicci di più... (facoltativo)"},S5={write_a_message_placeholder:"メッセージを入力...",your_issue_has_been_resolved:"問題が解決しました!",new_conversation:"新しい会話",welcome_screen_title:"サポートチャットへようこそ",welcome_screen_description:"お手伝いいたします!会話を開始していただければ、できるだけ早くご連絡いたします。",your_name_placeholder:"お名前",your_email_placeholder:"メールアドレス",start_chat_button:"サポートに相談",start_chat_button_loading:"接続中...",i_need_more_help:"さらにサポートが必要です",this_was_helpful:"役に立ちました",optional:"任意",no_conversations_yet:"まだ会話がありません",back_to_conversations:"会話一覧に戻る",closed_conversations:"終了した会話",csat_title:"会話はいかがでしたか?",csat_submitted_title:"会話を次のように評価しました",csat_feedback_placeholder:"詳しく教えてください...(任意)"},A5={write_a_message_placeholder:"메시지를 입력하세요...",your_issue_has_been_resolved:"문제가 해결되었습니다!",new_conversation:"새 대화",welcome_screen_title:"고객 지원 채팅에 오신 것을 환영합니다",welcome_screen_description:"도움을 드리기 위해 여기 있습니다! 대화를 시작해 주시면 가능한 한 빨리 연락드리겠습니다.",your_name_placeholder:"이름",your_email_placeholder:"이메일 주소",start_chat_button:"상담원과 대화",start_chat_button_loading:"연결 중...",i_need_more_help:"추가 도움이 필요합니다",this_was_helpful:"도움이 되었습니다",optional:"선택 사항",no_conversations_yet:"아직 대화가 없습니다",back_to_conversations:"대화 목록으로 돌아가기",closed_conversations:"종료된 대화",csat_title:"대화는 어떠셨나요?",csat_submitted_title:"대화를 다음과 같이 평가했습니다",csat_feedback_placeholder:"더 알려주세요... (선택 사항)"},C5={write_a_message_placeholder:"Schrijf een bericht...",your_issue_has_been_resolved:"Uw probleem is opgelost!",new_conversation:"Nieuw gesprek",welcome_screen_title:"Welkom bij onze supportchat",welcome_screen_description:"We zijn hier om te helpen! Begin een gesprek en we nemen zo snel mogelijk contact met u op.",your_name_placeholder:"Uw naam",your_email_placeholder:"Uw e-mailadres",start_chat_button:"Praat met ondersteuning",start_chat_button_loading:"Verbinding maken...",i_need_more_help:"Ik heb nog meer hulp nodig",this_was_helpful:"Mijn vraag is opgelost",optional:"Optioneel",no_conversations_yet:"Nog geen gesprekken",back_to_conversations:"Terug naar gesprekken",closed_conversations:"Afgesloten gesprekken",csat_title:"Hoe was je gesprek?",csat_submitted_title:"Je hebt het gesprek beoordeeld als",csat_feedback_placeholder:"Vertel ons meer... (optioneel)"},k5={write_a_message_placeholder:"Skriv en melding...",your_issue_has_been_resolved:"Problemet ditt er løst!",new_conversation:"Ny samtale",welcome_screen_title:"Velkommen til vår kundestøtte-chat",welcome_screen_description:"Vi er her for å hjelpe! Start en samtale så kommer vi tilbake til deg så snart som mulig.",your_name_placeholder:"Ditt navn",your_email_placeholder:"Din e-postadresse",start_chat_button:"Snakk med kundestøtte",start_chat_button_loading:"Kobler til...",i_need_more_help:"Jeg trenger mer hjelp",this_was_helpful:"Dette var nyttig",optional:"Valgfritt",no_conversations_yet:"Ingen samtaler ennå",back_to_conversations:"Tilbake til samtaler",closed_conversations:"Lukkede samtaler",csat_title:"Hvordan var samtalen din?",csat_submitted_title:"Du vurderte samtalen som",csat_feedback_placeholder:"Fortell oss mer... (valgfritt)"},O5={write_a_message_placeholder:"Napisz wiadomość...",your_issue_has_been_resolved:"Twój problem został rozwiązany!",new_conversation:"Nowa rozmowa",welcome_screen_title:"Witamy w naszym czacie wsparcia",welcome_screen_description:"Jesteśmy tutaj, aby pomóc! Rozpocznij rozmowę, a odpowiemy jak najszybciej.",your_name_placeholder:"Twoje imię",your_email_placeholder:"Twój adres email",start_chat_button:"Porozmawiaj ze wsparciem",start_chat_button_loading:"Łączenie...",i_need_more_help:"Potrzebuję więcej pomocy",this_was_helpful:"To było pomocne",optional:"Opcjonalne",no_conversations_yet:"Jeszcze brak rozmów",back_to_conversations:"Powrót do rozmów",closed_conversations:"Zamknięte rozmowy",csat_title:"Jak przebiegła Twoja rozmowa?",csat_submitted_title:"Oceniłeś rozmowę jako",csat_feedback_placeholder:"Powiedz nam więcej... (opcjonalnie)"},N5={write_a_message_placeholder:"Escreva uma mensagem...",your_issue_has_been_resolved:"Seu problema foi resolvido!",new_conversation:"Nova conversa",welcome_screen_title:"Bem-vindo ao nosso chat de suporte",welcome_screen_description:"Estamos aqui para ajudar! Inicie uma conversa e responderemos o mais rápido possível.",your_name_placeholder:"Seu nome",your_email_placeholder:"Seu endereço de email",start_chat_button:"Falar com o suporte",start_chat_button_loading:"Conectando...",i_need_more_help:"preciso de mais ajuda",this_was_helpful:"Isso foi útil",optional:"Opcional",no_conversations_yet:"Nenhuma conversa ainda",back_to_conversations:"Voltar para conversas",closed_conversations:"Conversas fechadas",csat_title:"Como foi a sua conversa?",csat_submitted_title:"Você avaliou a conversa como",csat_feedback_placeholder:"Conte-nos mais... (opcional)"},R5={write_a_message_placeholder:"Scrie un mesaj...",your_issue_has_been_resolved:"Problema ta a fost rezolvată!",new_conversation:"Conversație nouă",welcome_screen_title:"Bine ai venit la chat-ul nostru de suport",welcome_screen_description:"Suntem aici să te ajutăm! Începe o conversație și îți vom răspunde cât mai curând posibil.",your_name_placeholder:"Numele tău",your_email_placeholder:"Adresa ta de email",start_chat_button:"Vorbește cu suportul",start_chat_button_loading:"Se conectează...",i_need_more_help:"Am nevoie de mai mult ajutor",this_was_helpful:"Acest lucru a fost util",optional:"Opțional",no_conversations_yet:"Încă nu există conversații",back_to_conversations:"Înapoi la conversații",closed_conversations:"Conversații închise",csat_title:"Cum a fost conversația ta?",csat_submitted_title:"Ai evaluat conversația ca",csat_feedback_placeholder:"Spune-ne mai multe... (opțional)"},D5={write_a_message_placeholder:"Skriv ett meddelande...",your_issue_has_been_resolved:"Ditt problem har lösts!",new_conversation:"Ny konversation",welcome_screen_title:"Välkommen till vår supportchatt",welcome_screen_description:"Vi är här för att hjälpa! Starta en konversation så återkommer vi till dig så snart som möjligt.",your_name_placeholder:"Ditt namn",your_email_placeholder:"Din e-postadress",start_chat_button:"Prata med support",start_chat_button_loading:"Ansluter...",i_need_more_help:"Jag behöver mer hjälp",this_was_helpful:"Detta var användbart",optional:"Frivilligt",no_conversations_yet:"Inga konversationer ännu",back_to_conversations:"Tillbaka till konversationer",closed_conversations:"Stängda konversationer",csat_title:"Hur var din konversation?",csat_submitted_title:"Du betygsatte konversationen som",csat_feedback_placeholder:"Berätta mer... (valfritt)"},M5={write_a_message_placeholder:"Напишите сообщение...",your_issue_has_been_resolved:"Ваша проблема решена!",new_conversation:"Новый разговор",welcome_screen_title:"Добро пожаловать в чат поддержки",welcome_screen_description:"Мы здесь, чтобы помочь! Начните разговор, и мы ответим вам как можно скорее.",your_name_placeholder:"Ваше имя",your_email_placeholder:"Ваш адрес электронной почты",start_chat_button:"Связаться с поддержкой",start_chat_button_loading:"Подключение...",i_need_more_help:"Мне нужна дополнительная помощь",this_was_helpful:"Это было полезно",optional:"Необязательно",no_conversations_yet:"Пока нет разговоров",back_to_conversations:"Назад к разговорам",closed_conversations:"Закрытые разговоры",csat_title:"Как прошёл ваш разговор?",csat_submitted_title:"Вы оценили разговор как",csat_feedback_placeholder:"Расскажите подробнее... (необязательно)"},L5={write_a_message_placeholder:"เขียนข้อความ...",your_issue_has_been_resolved:"ปัญหาของคุณได้รับการแก้ไขแล้ว!",new_conversation:"การสนทนาใหม่",welcome_screen_title:"ยินดีต้อนรับสู่แชทสนับสนุนของเรา",welcome_screen_description:"เราพร้อมช่วยเหลือคุณ! เริ่มการสนทนาและเราจะติดต่อกลับโดยเร็วที่สุด",your_name_placeholder:"ชื่อของคุณ",your_email_placeholder:"ที่อยู่อีเมลของคุณ",start_chat_button:"พูดคุยกับฝ่ายสนับสนุน",start_chat_button_loading:"กำลังเชื่อมต่อ...",i_need_more_help:"ฉันต้องการความช่วยเหลือเพิ่มเติม",this_was_helpful:"สิ่งนี้เป็นประโยชน์",optional:"ไม่บังคับ",no_conversations_yet:"ยังไม่มีการสนทนา",back_to_conversations:"กลับไปที่การสนทนา",closed_conversations:"การสนทนาที่ปิดแล้ว",csat_title:"การสนทนาของคุณเป็นอย่างไรบ้าง?",csat_submitted_title:"คุณให้คะแนนการสนทนาว่า",csat_feedback_placeholder:"บอกเราเพิ่มเติม... (ไม่บังคับ)"},I5={write_a_message_placeholder:"Bir mesaj yazın...",your_issue_has_been_resolved:"Sorununuz çözüldü!",new_conversation:"Yeni konuşma",welcome_screen_title:"Destek sohbetimize hoş geldiniz",welcome_screen_description:"Yardım etmek için buradayız! Bir konuşma başlatın, en kısa sürede size geri döneceğiz.",your_name_placeholder:"Adınız",your_email_placeholder:"E-posta adresiniz",start_chat_button:"Destekle konuş",start_chat_button_loading:"Bağlanıyor...",i_need_more_help:"Daha fazla yardıma ihtiyacım var",this_was_helpful:"Bu yardımcı oldu",optional:"İsteğe bağlı",no_conversations_yet:"Henüz konuşma yok",back_to_conversations:"Konuşmalara geri dön",closed_conversations:"Kapatılan konuşmalar",csat_title:"Görüşmeniz nasıldı?",csat_submitted_title:"Görüşmeyi şöyle değerlendirdiniz",csat_feedback_placeholder:"Bize daha fazlasını anlatın... (isteğe bağlı)"},P5={write_a_message_placeholder:"پیغام لکھیں...",your_issue_has_been_resolved:"آپ کا مسئلہ حل ہو گیا ہے!",new_conversation:"نئی گفتگو",welcome_screen_title:"ہماری سپورٹ چیٹ میں خوش آمدید",welcome_screen_description:"ہم مدد کے لیے حاضر ہیں! گفتگو شروع کریں اور ہم جلد از جلد آپ سے رابطہ کریں گے۔",your_name_placeholder:"آپ کا نام",your_email_placeholder:"آپ کا ای میل پتہ",start_chat_button:"سپورٹ سے بات کریں",start_chat_button_loading:"جڑ رہا ہے...",i_need_more_help:"مجھے مزید مدد چاہیے",this_was_helpful:"یہ مددگار تھا",optional:"اختیاری",no_conversations_yet:"ابھی تک کوئی گفتگو نہیں",back_to_conversations:"گفتگو پر واپس جائیں",closed_conversations:"بند گفتگو",csat_title:"آپ کی گفتگو کیسی رہی؟",csat_submitted_title:"آپ نے گفتگو کو درجہ دیا",csat_feedback_placeholder:"ہمیں مزید بتائیں... (اختیاری)"},B5={write_a_message_placeholder:"Viết tin nhắn...",your_issue_has_been_resolved:"Vấn đề của bạn đã được giải quyết!",new_conversation:"Cuộc trò chuyện mới",welcome_screen_title:"Chào mừng đến với hỗ trợ trò chuyện của chúng tôi",welcome_screen_description:"Chúng tôi ở đây để giúp đỡ! Bắt đầu cuộc trò chuyện và chúng tôi sẽ phản hồi sớm nhất có thể.",your_name_placeholder:"Tên của bạn",your_email_placeholder:"Địa chỉ email của bạn",start_chat_button:"Liên hệ hỗ trợ",start_chat_button_loading:"Đang kết nối...",i_need_more_help:"Tôi cần thêm trợ giúp",this_was_helpful:"Điều này hữu ích",optional:"Tùy chọn",no_conversations_yet:"Chưa có cuộc trò chuyện nào",back_to_conversations:"Quay lại cuộc trò chuyện",closed_conversations:"Cuộc trò chuyện đã đóng",csat_title:"Cuộc trò chuyện của bạn thế nào?",csat_submitted_title:"Bạn đã đánh giá cuộc trò chuyện là",csat_feedback_placeholder:"Cho chúng tôi biết thêm... (tùy chọn)"},j5={write_a_message_placeholder:"写一条消息...",your_issue_has_been_resolved:"您的问题已解决!",new_conversation:"新对话",welcome_screen_title:"欢迎使用我们的客服聊天",welcome_screen_description:"我们随时为您提供帮助!开始对话,我们会尽快回复您。",your_name_placeholder:"您的姓名",your_email_placeholder:"您的电子邮件地址",start_chat_button:"联系客服",start_chat_button_loading:"连接中...",i_need_more_help:"我需要更多帮助",this_was_helpful:"这很有帮助",optional:"可选",no_conversations_yet:"暂无对话",back_to_conversations:"返回对话",closed_conversations:"已关闭的对话",csat_title:"您的对话感觉如何?",csat_submitted_title:"您将此对话评价为",csat_feedback_placeholder:"告诉我们更多...(可选)"},z5={write_a_message_placeholder:"Napišite poruku...",your_issue_has_been_resolved:"Vaš problem je riješen!",new_conversation:"Novi razgovor",welcome_screen_title:"Dobrodošli u naš chat za podršku",welcome_screen_description:"Ovdje smo da pomognemo! Započnite razgovor i odgovorit ćemo vam što je prije moguće.",your_name_placeholder:"Vaše ime",your_email_placeholder:"Vaša e-mail adresa",start_chat_button:"Razgovarajte s podrškom",start_chat_button_loading:"Povezivanje...",i_need_more_help:"Trebam dodatnu pomoć",this_was_helpful:"Ovo je bilo korisno",optional:"Neobavezno",no_conversations_yet:"Još nema razgovora",back_to_conversations:"Natrag na razgovore",closed_conversations:"Zatvoreni razgovori",csat_title:"Kakav je bio vaš razgovor?",csat_submitted_title:"Ocijenili ste razgovor kao",csat_feedback_placeholder:"Recite nam više... (neobavezno)"},U5={write_a_message_placeholder:"Kirjuta sõnum...",your_issue_has_been_resolved:"Teie probleem on lahendatud!",new_conversation:"Uus vestlus",welcome_screen_title:"Tere tulemast meie tugiteenusesse",welcome_screen_description:"Oleme siin, et aidata! Alustage vestlust ja vastame teile esimesel võimalusel.",your_name_placeholder:"Teie nimi",your_email_placeholder:"Teie e-posti aadress",start_chat_button:"Räägi toega",start_chat_button_loading:"Ühendamine...",i_need_more_help:"Vajan rohkem abi",this_was_helpful:"See oli kasulik",optional:"Valikuline",no_conversations_yet:"Vestlusi pole veel",back_to_conversations:"Tagasi vestluste juurde",closed_conversations:"Suletud vestlused",csat_title:"Milline oli teie vestlus?",csat_submitted_title:"Hindasite vestlust kui",csat_feedback_placeholder:"Rääkige meile rohkem... (valikuline)"},H5={write_a_message_placeholder:"Írjon üzenetet...",your_issue_has_been_resolved:"A problémája megoldódott!",new_conversation:"Új beszélgetés",welcome_screen_title:"Üdvözöljük az ügyfélszolgálati chatünkön",welcome_screen_description:"Azért vagyunk itt, hogy segítsünk! Kezdjen beszélgetést, és mihamarabb válaszolunk.",your_name_placeholder:"Az Ön neve",your_email_placeholder:"Az Ön e-mail címe",start_chat_button:"Beszélgetés az ügyfélszolgálattal",start_chat_button_loading:"Csatlakozás...",i_need_more_help:"További segítségre van szükségem",this_was_helpful:"Ez hasznos volt",optional:"Opcionális",no_conversations_yet:"Még nincsenek beszélgetések",back_to_conversations:"Vissza a beszélgetésekhez",closed_conversations:"Lezárt beszélgetések",csat_title:"Milyen volt a beszélgetése?",csat_submitted_title:"A beszélgetést így értékelte",csat_feedback_placeholder:"Mondjon többet... (opcionális)"},F5={write_a_message_placeholder:"Skrifaðu skilaboð...",your_issue_has_been_resolved:"Málið þitt hefur verið leyst!",new_conversation:"Nýtt samtal",welcome_screen_title:"Velkomin í þjónustuverið okkar",welcome_screen_description:"Við erum hér til að hjálpa! Byrjaðu samtal og við munum svara eins fljótt og auðið er.",your_name_placeholder:"Nafnið þitt",your_email_placeholder:"Netfangið þitt",start_chat_button:"Tala við þjónustuver",start_chat_button_loading:"Tengist...",i_need_more_help:"Ég þarf meiri hjálp",this_was_helpful:"Þetta var gagnlegt",optional:"Valfrjálst",no_conversations_yet:"Engin samtöl ennþá",back_to_conversations:"Til baka í samtöl",closed_conversations:"Lokuð samtöl",csat_title:"Hvernig var samtalið þitt?",csat_submitted_title:"Þú gafst samtalinu einkunnina",csat_feedback_placeholder:"Segðu okkur meira... (valfrjálst)"},V5={write_a_message_placeholder:"Rakstiet ziņojumu...",your_issue_has_been_resolved:"Jūsu problēma ir atrisināta!",new_conversation:"Jauna saruna",welcome_screen_title:"Laipni lūdzam mūsu atbalsta tērzēšanā",welcome_screen_description:"Mēs esam šeit, lai palīdzētu! Sāciet sarunu, un mēs jums atbildēsim pēc iespējas ātrāk.",your_name_placeholder:"Jūsu vārds",your_email_placeholder:"Jūsu e-pasta adrese",start_chat_button:"Sazināties ar atbalstu",start_chat_button_loading:"Savienošana...",i_need_more_help:"Man vajag vairāk palīdzības",this_was_helpful:"Tas bija noderīgi",optional:"Neobligāts",no_conversations_yet:"Pagaidām nav sarunu",back_to_conversations:"Atpakaļ pie sarunām",closed_conversations:"Slēgtās sarunas",csat_title:"Kāda bija jūsu saruna?",csat_submitted_title:"Jūs novērtējāt sarunu kā",csat_feedback_placeholder:"Pastāstiet mums vairāk... (neobligāti)"},Y5={write_a_message_placeholder:"Parašykite žinutę...",your_issue_has_been_resolved:"Jūsų problema išspręsta!",new_conversation:"Naujas pokalbis",welcome_screen_title:"Sveiki atvykę į mūsų pagalbos pokalbį",welcome_screen_description:"Mes čia, kad padėtume! Pradėkite pokalbį ir mes atsakysime kuo greičiau.",your_name_placeholder:"Jūsų vardas",your_email_placeholder:"Jūsų el. pašto adresas",start_chat_button:"Kalbėti su pagalba",start_chat_button_loading:"Jungiamasi...",i_need_more_help:"Man reikia daugiau pagalbos",this_was_helpful:"Tai buvo naudinga",optional:"Neprivaloma",no_conversations_yet:"Pokalbių dar nėra",back_to_conversations:"Grįžti į pokalbius",closed_conversations:"Uždaryti pokalbiai",csat_title:"Koks buvo jūsų pokalbis?",csat_submitted_title:"Pokalbį įvertinote kaip",csat_feedback_placeholder:"Papasakokite daugiau... (neprivaloma)"},q5={write_a_message_placeholder:"Schreift eng Noriicht...",your_issue_has_been_resolved:"Äert Problem gouf geléist!",new_conversation:"Nei Konversatioun",welcome_screen_title:"Wëllkomm bei eisem Support-Chat",welcome_screen_description:"Mir sinn hei fir ze hëllefen! Start eng Konversatioun a mir äntweren Iech esou séier wéi méiglech.",your_name_placeholder:"Ären Numm",your_email_placeholder:"Är E-Mail-Adress",start_chat_button:"Mat dem Support schwätzen",start_chat_button_loading:"Verbindung...",i_need_more_help:"Ech brauch méi Hëllef",this_was_helpful:"Dat war hëllefräich",optional:"Fakultativ",no_conversations_yet:"Nach keng Konversatiounen",back_to_conversations:"Zréck zu de Konversatiounen",closed_conversations:"Zougemaachte Konversatiounen",csat_title:"Wéi war Är Konversatioun?",csat_submitted_title:"Dir hutt d’Konversatioun bewäert als",csat_feedback_placeholder:"Sot eis méi... (fakultativ)"},G5={write_a_message_placeholder:"Ikteb messaġġ...",your_issue_has_been_resolved:"Il-problema tiegħek ġiet riżolta!",new_conversation:"Konversazzjoni ġdida",welcome_screen_title:"Merħba fis-support chat tagħna",welcome_screen_description:"Aħna hawn biex ngħinu! Ibda konversazzjoni u nirrispondu malajr kemm jista' jkun.",your_name_placeholder:"Ismek",your_email_placeholder:"L-indirizz tal-email tiegħek",start_chat_button:"Kellem lis-support",start_chat_button_loading:"Qed jikkonnettja...",i_need_more_help:"Għandi bżonn aktar għajnuna",this_was_helpful:"Dan kien ta' għajnuna",optional:"Mhux obbligatorju",no_conversations_yet:"Għad m'hemmx konversazzjonijiet",back_to_conversations:"Lura għall-konversazzjonijiet",closed_conversations:"Konversazzjonijiet magħluqa",csat_title:"Kif kienet il-konversazzjoni tiegħek?",csat_submitted_title:"Int ivvalutajt il-konversazzjoni bħala",csat_feedback_placeholder:"Għidilna aktar... (mhux obbligatorju)"},$5={write_a_message_placeholder:"Skriv en melding...",your_issue_has_been_resolved:"Saken din er løst!",new_conversation:"Ny samtale",welcome_screen_title:"Velkommen til vår kundestøtte",welcome_screen_description:"Vi er her for å hjelpe! Start en samtale, så svarer vi deg så snart som mulig.",your_name_placeholder:"Ditt navn",your_email_placeholder:"Din e-postadresse",start_chat_button:"Snakk med kundestøtte",start_chat_button_loading:"Kobler til...",i_need_more_help:"Jeg trenger mer hjelp",this_was_helpful:"Dette var nyttig",optional:"Valgfritt",no_conversations_yet:"Ingen samtaler ennå",back_to_conversations:"Tilbake til samtaler",closed_conversations:"Lukkede samtaler",csat_title:"Hvordan var samtalen din?",csat_submitted_title:"Du vurderte samtalen som",csat_feedback_placeholder:"Fortell oss mer... (valgfritt)"},X5={write_a_message_placeholder:"Napíšte správu...",your_issue_has_been_resolved:"Váš problém bol vyriešený!",new_conversation:"Nová konverzácia",welcome_screen_title:"Vitajte v našom zákazníckom chate",welcome_screen_description:"Sme tu, aby sme vám pomohli! Začnite konverzáciu a odpovieme vám čo najskôr.",your_name_placeholder:"Vaše meno",your_email_placeholder:"Vaša e-mailová adresa",start_chat_button:"Hovoriť s podporou",start_chat_button_loading:"Pripájanie...",i_need_more_help:"Potrebujem ďalšiu pomoc",this_was_helpful:"Toto bolo užitočné",optional:"Voliteľné",no_conversations_yet:"Zatiaľ žiadne konverzácie",back_to_conversations:"Späť na konverzácie",closed_conversations:"Uzavreté konverzácie",csat_title:"Aká bola vaša konverzácia?",csat_submitted_title:"Konverzáciu ste ohodnotili ako",csat_feedback_placeholder:"Povedzte nám viac... (nepovinné)"},kx={ar:d5,bn:f5,bg:h5,cs:p5,da:m5,de:b5,el:g5,en:v5,es:y5,et:U5,fi:_5,fil:x5,fr:E5,hi:T5,hr:z5,hu:H5,is:F5,it:w5,ja:S5,ko:A5,lb:q5,lt:Y5,lv:V5,mt:G5,nb:$5,nl:C5,no:k5,pl:O5,pt:N5,ro:R5,ru:M5,sk:X5,sv:D5,th:L5,tr:I5,ur:P5,vi:B5,"zh-cn":j5},K5=Object.keys(kx);function Q5(e){return K5.includes(e)}function W5(e,t,n){var i;return((i=n==null?void 0:n[t])==null?void 0:i[e])||kx[t][e]||""}const Z5="4.0.60";class J5{constructor(t){this.components=[];const{components:n}=t;if(n&&n.forEach(i=>this.register(i)),this.components.length===0)throw new Error("No components registered");if(!this.get("fallback"))throw new Error("No fallback component registered")}register(t){const n=this.components.findIndex(i=>i.key===t.key);return n!==-1?this.components[n]=t:this.components.push(t),this}get(t){return this.components.find(i=>i.key.toUpperCase()===t.toUpperCase())||null}getComponent(t){var n;return(n=this.get(t))==null?void 0:n.component}}const Ox=_.createContext(null);function eM({options:e,children:t,components:n,storage:i,loadingComponent:a}){const r=_.useRef(null),s=_.useRef(!1),[o,l]=_.useState(null),u=_.useMemo(()=>new J5({components:n}),[n]);return _.useEffect(()=>{s.current||(s.current=!0,c5.initialize({config:e,storage:i}).then(l).catch(console.error))},[]),o?mn.createElement(Ox.Provider,{value:{widgetCtx:o,config:e,components:n,componentStore:u,version:Z5,contentIframeRef:r}},t):a||null}function Ct(){const e=_.useContext(Ox);if(!e)throw new Error("useWidget must be used within a WidgetProvider");return e}function $e(){const{config:e}=Ct();return e}function El(e){return _.useSyncExternalStore(e.subscribe,e.get,e.get)}function Nx(){const{widgetCtx:e}=Ct();return{contactState:El(e.contactCtx.state),createUnverifiedContact:e.contactCtx.createUnverifiedContact}}function Np(){const[e,t]=_.useState("ltr");return _.useEffect(()=>{const n=()=>{typeof document>"u"||t(window.getComputedStyle((window.top||window).document.body).direction)};n();const i=new MutationObserver(n);return i.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),i.observe(document.body,{attributes:!0,attributeFilter:["dir"]}),window.addEventListener("languagechange",n),()=>{i.disconnect(),window.removeEventListener("languagechange",n)}},[]),{dir:e}}function wn(){const{widgetCtx:e}=Ct();return{messagesState:El(e.messageCtx.state),sendMessage:e.messageCtx.sendMessage}}function ri(){const{widgetCtx:e}=Ct(),{oneOpenSessionAllowed:t}=$e(),n=El(e.sessionCtx.sessionState),i=El(e.sessionCtx.sessionsState),{openSessions:a,closedSessions:r}=_.useMemo(()=>({openSessions:i.data.filter(o=>o.isOpened===!0),closedSessions:i.data.filter(o=>o.isOpened===!1)}),[i.data]),s=_.useMemo(()=>t?a.length===0:!0,[t,a.length]);return{sessionState:n,sessionsState:i,loadMoreSessions:e.sessionCtx.loadMoreSessions,resolveSession:e.sessionCtx.resolveSession,createStateCheckpoint:e.sessionCtx.createStateCheckpoint,openSessions:a,closedSessions:r,canCreateNewSession:s}}function Rx(){var e,t,n;const{sessionState:i}=ri(),{messagesState:a}=wn(),r=((e=i.session)==null?void 0:e.assignee.kind)==="ai",s=((n=(t=a.messages)==null?void 0:t.at(-1))==null?void 0:n.type)==="USER";return{isAwaitingBotReply:!!(a.isSendingMessageToAI||(r||i.isCreatingSession)&&(a.isSendingMessage||s))}}function Si(){const{widgetCtx:e}=Ct();return{routerState:El(e.routerCtx.state),toSessionsScreen:e.routerCtx.toSessionsScreen,toChatScreen:e.routerCtx.toChatScreen}}const Ya=new Map;function tM(){const[e,t]=_.useState([]),{widgetCtx:{api:n}}=Ct();function i(c){const d=c.map(f=>({file:f,id:Op(),status:"pending",progress:0}));t(f=>[...f,...d]),d.forEach(s)}function a(c,d){t(f=>f.map(h=>h.id===c?{...h,...d}:h))}function r(c){t(d=>d.filter(f=>f.id!==c))}const s=async c=>{const d=new AbortController;Ya.set(c.id,d);try{t(h=>h.map(g=>g.id===c.id?{...g,status:"uploading",progress:0}:g));const f=await n.uploadFile({file:c.file,abortSignal:d.signal,onProgress:h=>{a(c.id,{progress:h})}});a(c.id,{status:"success",fileUrl:f.fileUrl,progress:100})}catch(f){d.signal.aborted||a(c.id,{status:"error",error:f instanceof Error?f.message:"Upload failed",progress:0})}finally{Ya.delete(c.id)}},o=c=>{const d=Ya.get(c);d&&(d.abort(),Ya.delete(c)),r(c)},l=_.useMemo(()=>e.filter(c=>c.status==="success"&&c.fileUrl),[e]);function u(){Ya.forEach(c=>c.abort()),Ya.clear(),t([])}return _.useEffect(()=>()=>{Ya.forEach(c=>c.abort()),Ya.clear()},[]),{allFiles:e,appendFiles:i,handleCancelUpload:o,successFiles:l,emptyTheFiles:u,getFileById:c=>e.find(d=>d.id===c),getUploadProgress:c=>{var d;return((d=e.find(f=>f.id===c))==null?void 0:d.progress)??0},getUploadStatus:c=>{var d;return(d=e.find(f=>f.id===c))==null?void 0:d.status},hasErrors:e.some(c=>c.status==="error"),isUploading:e.some(c=>c.status==="uploading")}}const Dx=_.createContext(null);function nM({children:e}){const t=$e(),[n,i]=_.useState(()=>t.inline?!0:t.isOpen??!1);return _.useEffect(()=>{i(a=>t.isOpen??a)},[t.isOpen]),_.useEffect(()=>{const a=t.openAfterNSeconds;if(typeof a!="number"||isNaN(a))return;const r=setTimeout(()=>i(!0),a*1e3);return()=>clearTimeout(r)},[t.openAfterNSeconds]),mn.createElement(Dx.Provider,{value:{isOpen:n,setIsOpen:i}},e)}function Hr(){const e=_.useContext(Dx);if(!e)throw new Error("useWidgetTrigger must be used within a WidgetTriggerProvider");return e}function Mx(){var e,t;const{widgetCtx:n}=Ct(),{modesComponents:i}=$e(),{sessionState:a}=ri(),r=n.modes,s=(e=a.session)==null?void 0:e.modeId,o=r.find(u=>u.id===s),l=(t=i==null?void 0:i.find(u=>{var c,d;return[(o==null?void 0:o.id)||"",((c=o==null?void 0:o.name)==null?void 0:c.toLowerCase())||"",((d=o==null?void 0:o.slug)==null?void 0:d.toLowerCase())||""].includes(u.key.toLowerCase())}))==null?void 0:t.component;return{modes:r,modesComponents:i,activeModeId:s,activeMode:o,Component:l}}function Lx(){const{widgetCtx:e}=Ct(),{messagesState:{messages:t}}=wn(),{csatRequestedMessage:n,isCsatRequested:i,csatSubmittedMessage:a,isCsatSubmitted:r,submittedScore:s,submittedFeedback:o}=_.useMemo(()=>{const l=t.find(c=>c.type==="SYSTEM"&&c.subtype==="csat_requested"),u=t.findLast(c=>c.type==="SYSTEM"&&c.subtype==="csat_submitted");return{csatRequestedMessage:l,isCsatRequested:!!l&&!u,csatSubmittedMessage:u,isCsatSubmitted:!!u,submittedScore:u==null?void 0:u.data.payload.score,submittedFeedback:u==null?void 0:u.data.payload.feedback}},[t]);return{submitCsat:e.csatCtx.submitCsat,csatRequestedMessage:n,isCsatRequested:i,csatSubmittedMessage:a,isCsatSubmitted:r,submittedScore:s,submittedFeedback:o}}/**
69
- * @license lucide-react v0.436.0 - ISC
70
- *
71
- * This source code is licensed under the ISC license.
72
- * See the LICENSE file in the root directory of this source tree.
73
- */const iM=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ix=(...e)=>e.filter((t,n,i)=>!!t&&i.indexOf(t)===n).join(" ");/**
74
- * @license lucide-react v0.436.0 - ISC
75
- *
76
- * This source code is licensed under the ISC license.
77
- * See the LICENSE file in the root directory of this source tree.
78
- */var aM={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
79
- * @license lucide-react v0.436.0 - ISC
80
- *
81
- * This source code is licensed under the ISC license.
82
- * See the LICENSE file in the root directory of this source tree.
83
- */const rM=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:a="",children:r,iconNode:s,...o},l)=>_.createElement("svg",{ref:l,...aM,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:Ix("lucide",a),...o},[...s.map(([u,c])=>_.createElement(u,c)),...Array.isArray(r)?r:[r]]));/**
84
- * @license lucide-react v0.436.0 - ISC
85
- *
86
- * This source code is licensed under the ISC license.
87
- * See the LICENSE file in the root directory of this source tree.
88
- */const Me=(e,t)=>{const n=_.forwardRef(({className:i,...a},r)=>_.createElement(rM,{ref:r,iconNode:t,className:Ix(`lucide-${iM(e)}`,i),...a}));return n.displayName=`${e}`,n};/**
89
- * @license lucide-react v0.436.0 - ISC
90
- *
91
- * This source code is licensed under the ISC license.
92
- * See the LICENSE file in the root directory of this source tree.
93
- */const Px=Me("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
94
- * @license lucide-react v0.436.0 - ISC
95
- *
96
- * This source code is licensed under the ISC license.
97
- * See the LICENSE file in the root directory of this source tree.
98
- */const sM=Me("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);/**
99
- * @license lucide-react v0.436.0 - ISC
100
- *
101
- * This source code is licensed under the ISC license.
102
- * See the LICENSE file in the root directory of this source tree.
103
- */const oM=Me("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
104
- * @license lucide-react v0.436.0 - ISC
105
- *
106
- * This source code is licensed under the ISC license.
107
- * See the LICENSE file in the root directory of this source tree.
108
- */const lM=Me("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
109
- * @license lucide-react v0.436.0 - ISC
110
- *
111
- * This source code is licensed under the ISC license.
112
- * See the LICENSE file in the root directory of this source tree.
113
- */const uM=Me("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
114
- * @license lucide-react v0.436.0 - ISC
115
- *
116
- * This source code is licensed under the ISC license.
117
- * See the LICENSE file in the root directory of this source tree.
118
- */const cM=Me("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
119
- * @license lucide-react v0.436.0 - ISC
120
- *
121
- * This source code is licensed under the ISC license.
122
- * See the LICENSE file in the root directory of this source tree.
123
- */const dM=Me("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
124
- * @license lucide-react v0.436.0 - ISC
125
- *
126
- * This source code is licensed under the ISC license.
127
- * See the LICENSE file in the root directory of this source tree.
128
- */const fM=Me("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
129
- * @license lucide-react v0.436.0 - ISC
130
- *
131
- * This source code is licensed under the ISC license.
132
- * See the LICENSE file in the root directory of this source tree.
133
- */const Bx=Me("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
134
- * @license lucide-react v0.436.0 - ISC
135
- *
136
- * This source code is licensed under the ISC license.
137
- * See the LICENSE file in the root directory of this source tree.
138
- */const jx=Me("CircleDashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]);/**
139
- * @license lucide-react v0.436.0 - ISC
140
- *
141
- * This source code is licensed under the ISC license.
142
- * See the LICENSE file in the root directory of this source tree.
143
- */const hM=Me("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
144
- * @license lucide-react v0.436.0 - ISC
145
- *
146
- * This source code is licensed under the ISC license.
147
- * See the LICENSE file in the root directory of this source tree.
148
- */const pM=Me("Expand",[["path",{d:"m21 21-6-6m6 6v-4.8m0 4.8h-4.8",key:"1c15vz"}],["path",{d:"M3 16.2V21m0 0h4.8M3 21l6-6",key:"1fsnz2"}],["path",{d:"M21 7.8V3m0 0h-4.8M21 3l-6 6",key:"hawz9i"}],["path",{d:"M3 7.8V3m0 0h4.8M3 3l6 6",key:"u9ee12"}]]);/**
149
- * @license lucide-react v0.436.0 - ISC
150
- *
151
- * This source code is licensed under the ISC license.
152
- * See the LICENSE file in the root directory of this source tree.
153
- */const mM=Me("FileAudio2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2",key:"17k7jt"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"3",cy:"17",r:"1",key:"vo6nti"}],["path",{d:"M2 17v-3a4 4 0 0 1 8 0v3",key:"1ggdre"}],["circle",{cx:"9",cy:"17",r:"1",key:"bc1fq4"}]]);/**
154
- * @license lucide-react v0.436.0 - ISC
155
- *
156
- * This source code is licensed under the ISC license.
157
- * See the LICENSE file in the root directory of this source tree.
158
- */const zx=Me("FileSpreadsheet",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]);/**
159
- * @license lucide-react v0.436.0 - ISC
160
- *
161
- * This source code is licensed under the ISC license.
162
- * See the LICENSE file in the root directory of this source tree.
163
- */const Ux=Me("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
164
- * @license lucide-react v0.436.0 - ISC
165
- *
166
- * This source code is licensed under the ISC license.
167
- * See the LICENSE file in the root directory of this source tree.
168
- */const gM=Me("FileVideo2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["rect",{width:"8",height:"6",x:"2",y:"12",rx:"1",key:"1a6c1e"}],["path",{d:"m10 15.5 4 2.5v-6l-4 2.5",key:"t7cp39"}]]);/**
169
- * @license lucide-react v0.436.0 - ISC
170
- *
171
- * This source code is licensed under the ISC license.
172
- * See the LICENSE file in the root directory of this source tree.
173
- */const bM=Me("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);/**
174
- * @license lucide-react v0.436.0 - ISC
175
- *
176
- * This source code is licensed under the ISC license.
177
- * See the LICENSE file in the root directory of this source tree.
178
- */const vM=Me("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
179
- * @license lucide-react v0.436.0 - ISC
180
- *
181
- * This source code is licensed under the ISC license.
182
- * See the LICENSE file in the root directory of this source tree.
183
- */const yM=Me("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]]);/**
184
- * @license lucide-react v0.436.0 - ISC
185
- *
186
- * This source code is licensed under the ISC license.
187
- * See the LICENSE file in the root directory of this source tree.
188
- */const xM=Me("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
189
- * @license lucide-react v0.436.0 - ISC
190
- *
191
- * This source code is licensed under the ISC license.
192
- * See the LICENSE file in the root directory of this source tree.
193
- */const _M=Me("Maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);/**
194
- * @license lucide-react v0.436.0 - ISC
195
- *
196
- * This source code is licensed under the ISC license.
197
- * See the LICENSE file in the root directory of this source tree.
198
- */const EM=Me("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
199
- * @license lucide-react v0.436.0 - ISC
200
- *
201
- * This source code is licensed under the ISC license.
202
- * See the LICENSE file in the root directory of this source tree.
203
- */const TM=Me("Minimize",[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]]);/**
204
- * @license lucide-react v0.436.0 - ISC
205
- *
206
- * This source code is licensed under the ISC license.
207
- * See the LICENSE file in the root directory of this source tree.
208
- */const Hx=Me("Paperclip",[["path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48",key:"1u3ebp"}]]);/**
209
- * @license lucide-react v0.436.0 - ISC
210
- *
211
- * This source code is licensed under the ISC license.
212
- * See the LICENSE file in the root directory of this source tree.
213
- */const wM=Me("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
214
- * @license lucide-react v0.436.0 - ISC
215
- *
216
- * This source code is licensed under the ISC license.
217
- * See the LICENSE file in the root directory of this source tree.
218
- */const SM=Me("SendHorizontal",[["path",{d:"m3 3 3 9-3 9 19-9Z",key:"1aobqy"}],["path",{d:"M6 12h16",key:"s4cdu5"}]]);/**
219
- * @license lucide-react v0.436.0 - ISC
220
- *
221
- * This source code is licensed under the ISC license.
222
- * See the LICENSE file in the root directory of this source tree.
223
- */const AM=Me("Shrink",[["path",{d:"m15 15 6 6m-6-6v4.8m0-4.8h4.8",key:"17vawe"}],["path",{d:"M9 19.8V15m0 0H4.2M9 15l-6 6",key:"chjx8e"}],["path",{d:"M15 4.2V9m0 0h4.8M15 9l6-6",key:"lav6yq"}],["path",{d:"M9 4.2V9m0 0H4.2M9 9 3 3",key:"1pxi2q"}]]);/**
224
- * @license lucide-react v0.436.0 - ISC
225
- *
226
- * This source code is licensed under the ISC license.
227
- * See the LICENSE file in the root directory of this source tree.
228
- */const CM=Me("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
229
- * @license lucide-react v0.436.0 - ISC
230
- *
231
- * This source code is licensed under the ISC license.
232
- * See the LICENSE file in the root directory of this source tree.
233
- */const kM=Me("SquareCheck",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
234
- * @license lucide-react v0.436.0 - ISC
235
- *
236
- * This source code is licensed under the ISC license.
237
- * See the LICENSE file in the root directory of this source tree.
238
- */const OM=Me("SquareX",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
239
- * @license lucide-react v0.436.0 - ISC
240
- *
241
- * This source code is licensed under the ISC license.
242
- * See the LICENSE file in the root directory of this source tree.
243
- */const NM=Me("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/**
244
- * @license lucide-react v0.436.0 - ISC
245
- *
246
- * This source code is licensed under the ISC license.
247
- * See the LICENSE file in the root directory of this source tree.
248
- */const td=Me("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
249
- * @license lucide-react v0.436.0 - ISC
250
- *
251
- * This source code is licensed under the ISC license.
252
- * See the LICENSE file in the root directory of this source tree.
253
- */const RM=Me("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);/**
254
- * @license lucide-react v0.436.0 - ISC
255
- *
256
- * This source code is licensed under the ISC license.
257
- * See the LICENSE file in the root directory of this source tree.
258
- */const DM=Me("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);function Fx(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=Fx(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function Vx(){for(var e,t,n=0,i="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=Fx(e))&&(i&&(i+=" "),i+=t);return i}const Rp="-",MM=e=>{const t=IM(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:s=>{const o=s.split(Rp);return o[0]===""&&o.length!==1&&o.shift(),Yx(o,t)||LM(s)},getConflictingClassGroupIds:(s,o)=>{const l=n[s]||[];return o&&i[s]?[...l,...i[s]]:l}}},Yx=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),a=i?Yx(e.slice(1),i):void 0;if(a)return a;if(t.validators.length===0)return;const r=e.join(Rp);return(s=t.validators.find(({validator:o})=>o(r)))==null?void 0:s.classGroupId},qx=/^\[(.+)\]$/,LM=e=>{if(qx.test(e)){const t=qx.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},IM=e=>{const{theme:t,prefix:n}=e,i={nextPart:new Map,validators:[]};return BM(Object.entries(e.classGroups),n).forEach(([r,s])=>{Dp(s,i,r,t)}),i},Dp=(e,t,n,i)=>{e.forEach(a=>{if(typeof a=="string"){const r=a===""?t:Gx(t,a);r.classGroupId=n;return}if(typeof a=="function"){if(PM(a)){Dp(a(i),t,n,i);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([r,s])=>{Dp(s,Gx(t,r),n,i)})})},Gx=(e,t)=>{let n=e;return t.split(Rp).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},PM=e=>e.isThemeGetter,BM=(e,t)=>t?e.map(([n,i])=>{const a=i.map(r=>typeof r=="string"?t+r:typeof r=="object"?Object.fromEntries(Object.entries(r).map(([s,o])=>[t+s,o])):r);return[n,a]}):e,jM=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,i=new Map;const a=(r,s)=>{n.set(r,s),t++,t>e&&(t=0,i=n,n=new Map)};return{get(r){let s=n.get(r);if(s!==void 0)return s;if((s=i.get(r))!==void 0)return a(r,s),s},set(r,s){n.has(r)?n.set(r,s):a(r,s)}}},$x="!",zM=e=>{const{separator:t,experimentalParseClassName:n}=e,i=t.length===1,a=t[0],r=t.length,s=o=>{const l=[];let u=0,c=0,d;for(let E=0;E<o.length;E++){let m=o[E];if(u===0){if(m===a&&(i||o.slice(E,E+r)===t)){l.push(o.slice(c,E)),c=E+r;continue}if(m==="/"){d=E;continue}}m==="["?u++:m==="]"&&u--}const f=l.length===0?o:o.substring(c),h=f.startsWith($x),g=h?f.substring(1):f,y=d&&d>c?d-c:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:y}};return n?o=>n({className:o,parseClassName:s}):s},UM=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(i=>{i[0]==="["?(t.push(...n.sort(),i),n=[]):n.push(i)}),t.push(...n.sort()),t},HM=e=>({cache:jM(e.cacheSize),parseClassName:zM(e),...MM(e)}),FM=/\s+/,VM=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:a}=t,r=[],s=e.trim().split(FM);let o="";for(let l=s.length-1;l>=0;l-=1){const u=s[l],{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:h}=n(u);let g=!!h,y=i(g?f.substring(0,h):f);if(!y){if(!g){o=u+(o.length>0?" "+o:o);continue}if(y=i(f),!y){o=u+(o.length>0?" "+o:o);continue}g=!1}const E=UM(c).join(":"),m=d?E+$x:E,v=m+y;if(r.includes(v))continue;r.push(v);const x=a(y,g);for(let T=0;T<x.length;++T){const S=x[T];r.push(m+S)}o=u+(o.length>0?" "+o:o)}return o};function YM(){let e=0,t,n,i="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Xx(t))&&(i&&(i+=" "),i+=n);return i}const Xx=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=Xx(e[i]))&&(n&&(n+=" "),n+=t);return n};function qM(e,...t){let n,i,a,r=s;function s(l){const u=t.reduce((c,d)=>d(c),e());return n=HM(u),i=n.cache.get,a=n.cache.set,r=o,o(l)}function o(l){const u=i(l);if(u)return u;const c=VM(l,n);return a(l,c),c}return function(){return r(YM.apply(null,arguments))}}const it=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Kx=/^\[(?:([a-z-]+):)?(.+)\]$/i,GM=/^\d+\/\d+$/,$M=new Set(["px","full","screen"]),XM=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,KM=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,QM=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,WM=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ZM=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ca=e=>Hs(e)||$M.has(e)||GM.test(e),qa=e=>Fs(e,"length",sL),Hs=e=>!!e&&!Number.isNaN(Number(e)),Mp=e=>Fs(e,"number",Hs),Tl=e=>!!e&&Number.isInteger(Number(e)),JM=e=>e.endsWith("%")&&Hs(e.slice(0,-1)),Te=e=>Kx.test(e),Ga=e=>XM.test(e),eL=new Set(["length","size","percentage"]),tL=e=>Fs(e,eL,Qx),nL=e=>Fs(e,"position",Qx),iL=new Set(["image","url"]),aL=e=>Fs(e,iL,lL),rL=e=>Fs(e,"",oL),wl=()=>!0,Fs=(e,t,n)=>{const i=Kx.exec(e);return i?i[1]?typeof t=="string"?i[1]===t:t.has(i[1]):n(i[2]):!1},sL=e=>KM.test(e)&&!QM.test(e),Qx=()=>!1,oL=e=>WM.test(e),lL=e=>ZM.test(e),uL=qM(()=>{const e=it("colors"),t=it("spacing"),n=it("blur"),i=it("brightness"),a=it("borderColor"),r=it("borderRadius"),s=it("borderSpacing"),o=it("borderWidth"),l=it("contrast"),u=it("grayscale"),c=it("hueRotate"),d=it("invert"),f=it("gap"),h=it("gradientColorStops"),g=it("gradientColorStopPositions"),y=it("inset"),E=it("margin"),m=it("opacity"),v=it("padding"),x=it("saturate"),T=it("scale"),S=it("sepia"),A=it("skew"),D=it("space"),L=it("translate"),B=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto",Te,t],U=()=>[Te,t],ae=()=>["",ca,qa],ee=()=>["auto",Hs,Te],Q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["solid","dashed","dotted","double","none"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>["start","end","center","between","around","evenly","stretch"],te=()=>["","0",Te],N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],be=()=>[Hs,Te];return{cacheSize:500,separator:":",theme:{colors:[wl],spacing:[ca,qa],blur:["none","",Ga,Te],brightness:be(),borderColor:[e],borderRadius:["none","","full",Ga,Te],borderSpacing:U(),borderWidth:ae(),contrast:be(),grayscale:te(),hueRotate:be(),invert:te(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[JM,qa],inset:Y(),margin:Y(),opacity:be(),padding:U(),saturate:be(),scale:be(),sepia:te(),skew:be(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",Te]}],container:["container"],columns:[{columns:[Ga]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Q(),Te]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Tl,Te]}],basis:[{basis:Y()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Te]}],grow:[{grow:te()}],shrink:[{shrink:te()}],order:[{order:["first","last","none",Tl,Te]}],"grid-cols":[{"grid-cols":[wl]}],"col-start-end":[{col:["auto",{span:["full",Tl,Te]},Te]}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":[wl]}],"row-start-end":[{row:["auto",{span:[Tl,Te]},Te]}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Te]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Te]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...H()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...H(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...H(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[E]}],mx:[{mx:[E]}],my:[{my:[E]}],ms:[{ms:[E]}],me:[{me:[E]}],mt:[{mt:[E]}],mr:[{mr:[E]}],mb:[{mb:[E]}],ml:[{ml:[E]}],"space-x":[{"space-x":[D]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[D]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Te,t]}],"min-w":[{"min-w":[Te,t,"min","max","fit"]}],"max-w":[{"max-w":[Te,t,"none","full","min","max","fit","prose",{screen:[Ga]},Ga]}],h:[{h:[Te,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Te,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Te,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Te,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Ga,qa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Mp]}],"font-family":[{font:[wl]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Te]}],"line-clamp":[{"line-clamp":["none",Hs,Mp]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ca,Te]}],"list-image":[{"list-image":["none",Te]}],"list-style-type":[{list:["none","disc","decimal",Te]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...F(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ca,qa]}],"underline-offset":[{"underline-offset":["auto",ca,Te]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Q(),nL]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",tL]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},aL]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[r]}],"rounded-s":[{"rounded-s":[r]}],"rounded-e":[{"rounded-e":[r]}],"rounded-t":[{"rounded-t":[r]}],"rounded-r":[{"rounded-r":[r]}],"rounded-b":[{"rounded-b":[r]}],"rounded-l":[{"rounded-l":[r]}],"rounded-ss":[{"rounded-ss":[r]}],"rounded-se":[{"rounded-se":[r]}],"rounded-ee":[{"rounded-ee":[r]}],"rounded-es":[{"rounded-es":[r]}],"rounded-tl":[{"rounded-tl":[r]}],"rounded-tr":[{"rounded-tr":[r]}],"rounded-br":[{"rounded-br":[r]}],"rounded-bl":[{"rounded-bl":[r]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...F(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:F()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...F()]}],"outline-offset":[{"outline-offset":[ca,Te]}],"outline-w":[{outline:[ca,qa]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[ca,qa]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Ga,rL]}],"shadow-color":[{shadow:[wl]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...V(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":V()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[i]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Ga,Te]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Te]}],duration:[{duration:be()}],ease:[{ease:["linear","in","out","in-out",Te]}],delay:[{delay:be()}],animate:[{animate:["none","spin","ping","pulse","bounce",Te]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[Tl,Te]}],"translate-x":[{"translate-x":[L]}],"translate-y":[{"translate-y":[L]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Te]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Te]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Te]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ca,qa,Mp]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),Lp=_.createContext({});function Ip(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const nd=_.createContext(null),Pp=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class cL extends _.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function dL({children:e,isPresent:t}){const n=_.useId(),i=_.useRef(null),a=_.useRef({width:0,height:0,top:0,left:0}),{nonce:r}=_.useContext(Pp);return _.useInsertionEffect(()=>{const{width:s,height:o,top:l,left:u}=a.current;if(t||!i.current||!s||!o)return;i.current.dataset.motionPopId=n;const c=document.createElement("style");return r&&(c.nonce=r),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
259
- [data-motion-pop-id="${n}"] {
260
- position: absolute !important;
261
- width: ${s}px !important;
262
- height: ${o}px !important;
263
- top: ${l}px !important;
264
- left: ${u}px !important;
265
- }
266
- `),()=>{document.head.removeChild(c)}},[t]),b.jsx(cL,{isPresent:t,childRef:i,sizeRef:a,children:_.cloneElement(e,{ref:i})})}const fL=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:a,presenceAffectsLayout:r,mode:s})=>{const o=Ip(hL),l=_.useId(),u=_.useCallback(d=>{o.set(d,!0);for(const f of o.values())if(!f)return;i&&i()},[o,i]),c=_.useMemo(()=>({id:l,initial:t,isPresent:n,custom:a,onExitComplete:u,register:d=>(o.set(d,!1),()=>o.delete(d))}),r?[Math.random(),u]:[n,u]);return _.useMemo(()=>{o.forEach((d,f)=>o.set(f,!1))},[n]),_.useEffect(()=>{!n&&!o.size&&i&&i()},[n]),s==="popLayout"&&(e=b.jsx(dL,{isPresent:n,children:e})),b.jsx(nd.Provider,{value:c,children:e})};function hL(){return new Map}function Wx(e=!0){const t=_.useContext(nd);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:a}=t,r=_.useId();_.useEffect(()=>{e&&a(r)},[e]);const s=_.useCallback(()=>e&&i&&i(r),[r,i,e]);return!n&&i?[!1,s]:[!0]}const id=e=>e.key||"";function Zx(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const Bp=typeof window<"u",Jx=Bp?_.useLayoutEffect:_.useEffect,Et=({children:e,custom:t,initial:n=!0,onExitComplete:i,presenceAffectsLayout:a=!0,mode:r="sync",propagate:s=!1})=>{const[o,l]=Wx(s),u=_.useMemo(()=>Zx(e),[e]),c=s&&!o?[]:u.map(id),d=_.useRef(!0),f=_.useRef(u),h=Ip(()=>new Map),[g,y]=_.useState(u),[E,m]=_.useState(u);Jx(()=>{d.current=!1,f.current=u;for(let T=0;T<E.length;T++){const S=id(E[T]);c.includes(S)?h.delete(S):h.get(S)!==!0&&h.set(S,!1)}},[E,c.length,c.join("-")]);const v=[];if(u!==g){let T=[...u];for(let S=0;S<E.length;S++){const A=E[S],D=id(A);c.includes(D)||(T.splice(S,0,A),v.push(A))}r==="wait"&&v.length&&(T=v),m(Zx(T)),y(u);return}const{forceRender:x}=_.useContext(Lp);return b.jsx(b.Fragment,{children:E.map(T=>{const S=id(T),A=s&&!o?!1:u===E||c.includes(S),D=()=>{if(h.has(S))h.set(S,!0);else return;let L=!0;h.forEach(B=>{B||(L=!1)}),L&&(x==null||x(),m(f.current),s&&(l==null||l()),i&&i())};return b.jsx(fL,{isPresent:A,initial:!d.current||n?void 0:!1,custom:A?void 0:t,presenceAffectsLayout:a,mode:r,onExitComplete:A?void 0:D,children:T},S)})})},jn=e=>e;let e_=jn;function jp(e){let t;return()=>(t===void 0&&(t=e()),t)}const Vs=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i},da=e=>e*1e3,fa=e=>e/1e3,pL={useManualTiming:!1};function mL(e){let t=new Set,n=new Set,i=!1,a=!1;const r=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function o(u){r.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,d=!1)=>{const h=d&&i?t:n;return c&&r.add(u),h.has(u)||h.add(u),u},cancel:u=>{n.delete(u),r.delete(u)},process:u=>{if(s=u,i){a=!0;return}i=!0,[t,n]=[n,t],t.forEach(o),t.clear(),i=!1,a&&(a=!1,l.process(u))}};return l}const ad=["read","resolveKeyframes","update","preRender","render","postRender"],gL=40;function t_(e,t){let n=!1,i=!0;const a={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,s=ad.reduce((m,v)=>(m[v]=mL(r),m),{}),{read:o,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=s,h=()=>{const m=performance.now();n=!1,a.delta=i?1e3/60:Math.max(Math.min(m-a.timestamp,gL),1),a.timestamp=m,a.isProcessing=!0,o.process(a),l.process(a),u.process(a),c.process(a),d.process(a),f.process(a),a.isProcessing=!1,n&&t&&(i=!1,e(h))},g=()=>{n=!0,i=!0,a.isProcessing||e(h)};return{schedule:ad.reduce((m,v)=>{const x=s[v];return m[v]=(T,S=!1,A=!1)=>(n||g(),x.schedule(T,S,A)),m},{}),cancel:m=>{for(let v=0;v<ad.length;v++)s[ad[v]].cancel(m)},state:a,steps:s}}const{schedule:at,cancel:$a,state:Wt,steps:zp}=t_(typeof requestAnimationFrame<"u"?requestAnimationFrame:jn,!0),n_=_.createContext({strict:!1}),i_={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"]},Ys={};for(const e in i_)Ys[e]={isEnabled:t=>i_[e].some(n=>!!t[n])};function bL(e){for(const t in e)Ys[t]={...Ys[t],...e[t]}}const vL=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 rd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||vL.has(e)}let a_=e=>!rd(e);function yL(e){e&&(a_=t=>t.startsWith("on")?!rd(t):e(t))}try{yL(require("@emotion/is-prop-valid").default)}catch{}function xL(e,t,n){const i={};for(const a in e)a==="values"&&typeof e.values=="object"||(a_(a)||n===!0&&rd(a)||!t&&!rd(a)||e.draggable&&a.startsWith("onDrag"))&&(i[a]=e[a]);return i}function _L(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...i)=>e(...i);return new Proxy(n,{get:(i,a)=>a==="create"?e:(t.has(a)||t.set(a,e(a)),t.get(a))})}const sd=_.createContext({});function Sl(e){return typeof e=="string"||Array.isArray(e)}function od(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Up=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Hp=["initial",...Up];function ld(e){return od(e.animate)||Hp.some(t=>Sl(e[t]))}function r_(e){return!!(ld(e)||e.variants)}function EL(e,t){if(ld(e)){const{initial:n,animate:i}=e;return{initial:n===!1||Sl(n)?n:void 0,animate:Sl(i)?i:void 0}}return e.inherit!==!1?t:{}}function TL(e){const{initial:t,animate:n}=EL(e,_.useContext(sd));return _.useMemo(()=>({initial:t,animate:n}),[s_(t),s_(n)])}function s_(e){return Array.isArray(e)?e.join(" "):e}const wL=Symbol.for("motionComponentSymbol");function qs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function SL(e,t,n){return _.useCallback(i=>{i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),n&&(typeof n=="function"?n(i):qs(n)&&(n.current=i))},[t])}const Fp=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),o_="data-"+Fp("framerAppearId"),{schedule:Vp}=t_(queueMicrotask,!1),l_=_.createContext({});function AL(e,t,n,i,a){var r,s;const{visualElement:o}=_.useContext(sd),l=_.useContext(n_),u=_.useContext(nd),c=_.useContext(Pp).reducedMotion,d=_.useRef(null);i=i||l.renderer,!d.current&&i&&(d.current=i(e,{visualState:t,parent:o,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,h=_.useContext(l_);f&&!f.projection&&a&&(f.type==="html"||f.type==="svg")&&CL(d.current,n,a,h);const g=_.useRef(!1);_.useInsertionEffect(()=>{f&&g.current&&f.update(n,u)});const y=n[o_],E=_.useRef(!!y&&!(!((r=window.MotionHandoffIsComplete)===null||r===void 0)&&r.call(window,y))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,y)));return Jx(()=>{f&&(g.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Vp.render(f.render),E.current&&f.animationState&&f.animationState.animateChanges())}),_.useEffect(()=>{f&&(!E.current&&f.animationState&&f.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,y)}),E.current=!1))}),f}function CL(e,t,n,i){const{layoutId:a,layout:r,drag:s,dragConstraints:o,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:u_(e.parent)),e.projection.setOptions({layoutId:a,layout:r,alwaysMeasureLayout:!!s||o&&qs(o),visualElement:e,animationType:typeof r=="string"?r:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}function u_(e){if(e)return e.options.allowProjection!==!1?e.projection:u_(e.parent)}function kL({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:i,Component:a}){var r,s;e&&bL(e);function o(u,c){let d;const f={..._.useContext(Pp),...u,layoutId:OL(u)},{isStatic:h}=f,g=TL(u),y=i(u,h);if(!h&&Bp){NL();const E=RL(f);d=E.MeasureLayout,g.visualElement=AL(a,y,f,t,E.ProjectionNode)}return b.jsxs(sd.Provider,{value:g,children:[d&&g.visualElement?b.jsx(d,{visualElement:g.visualElement,...f}):null,n(a,u,SL(y,g.visualElement,c),y,h,g.visualElement)]})}o.displayName=`motion.${typeof a=="string"?a:`create(${(s=(r=a.displayName)!==null&&r!==void 0?r:a.name)!==null&&s!==void 0?s:""})`}`;const l=_.forwardRef(o);return l[wL]=a,l}function OL({layoutId:e}){const t=_.useContext(Lp).id;return t&&e!==void 0?t+"-"+e:e}function NL(e,t){_.useContext(n_).strict}function RL(e){const{drag:t,layout:n}=Ys;if(!t&&!n)return{};const i={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const DL=["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 Yp(e){return typeof e!="string"||e.includes("-")?!1:!!(DL.indexOf(e)>-1||/[A-Z]/u.test(e))}function c_(e){const t=[{},{}];return e==null||e.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function qp(e,t,n,i){if(typeof t=="function"){const[a,r]=c_(i);t=t(n!==void 0?n:e.custom,a,r)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,r]=c_(i);t=t(n!==void 0?n:e.custom,a,r)}return t}const Gp=e=>Array.isArray(e),ML=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),LL=e=>Gp(e)?e[e.length-1]||0:e,rn=e=>!!(e&&e.getVelocity);function ud(e){const t=rn(e)?e.get():e;return ML(t)?t.toValue():t}function IL({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},i,a,r){const s={latestValues:PL(i,a,r,e),renderState:t()};return n&&(s.onMount=o=>n({props:i,current:o,...s}),s.onUpdate=o=>n(o)),s}const d_=e=>(t,n)=>{const i=_.useContext(sd),a=_.useContext(nd),r=()=>IL(e,t,i,a);return n?r():Ip(r)};function PL(e,t,n,i){const a={},r=i(e,{});for(const f in r)a[f]=ud(r[f]);let{initial:s,animate:o}=e;const l=ld(e),u=r_(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?o:s;if(d&&typeof d!="boolean"&&!od(d)){const f=Array.isArray(d)?d:[d];for(let h=0;h<f.length;h++){const g=qp(e,f[h]);if(g){const{transitionEnd:y,transition:E,...m}=g;for(const v in m){let x=m[v];if(Array.isArray(x)){const T=c?x.length-1:0;x=x[T]}x!==null&&(a[v]=x)}for(const v in y)a[v]=y[v]}}}return a}const Gs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Fr=new Set(Gs),f_=e=>t=>typeof t=="string"&&t.startsWith(e),h_=f_("--"),BL=f_("var(--"),$p=e=>BL(e)?jL.test(e.split("/*")[0].trim()):!1,jL=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,p_=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ha=(e,t,n)=>n>t?t:n<e?e:n,$s={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Al={...$s,transform:e=>ha(0,1,e)},cd={...$s,default:1},Cl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Xa=Cl("deg"),Vi=Cl("%"),pe=Cl("px"),zL=Cl("vh"),UL=Cl("vw"),m_={...Vi,parse:e=>Vi.parse(e)/100,transform:e=>Vi.transform(e*100)},HL={borderWidth:pe,borderTopWidth:pe,borderRightWidth:pe,borderBottomWidth:pe,borderLeftWidth:pe,borderRadius:pe,radius:pe,borderTopLeftRadius:pe,borderTopRightRadius:pe,borderBottomRightRadius:pe,borderBottomLeftRadius:pe,width:pe,maxWidth:pe,height:pe,maxHeight:pe,top:pe,right:pe,bottom:pe,left:pe,padding:pe,paddingTop:pe,paddingRight:pe,paddingBottom:pe,paddingLeft:pe,margin:pe,marginTop:pe,marginRight:pe,marginBottom:pe,marginLeft:pe,backgroundPositionX:pe,backgroundPositionY:pe},FL={rotate:Xa,rotateX:Xa,rotateY:Xa,rotateZ:Xa,scale:cd,scaleX:cd,scaleY:cd,scaleZ:cd,skew:Xa,skewX:Xa,skewY:Xa,distance:pe,translateX:pe,translateY:pe,translateZ:pe,x:pe,y:pe,z:pe,perspective:pe,transformPerspective:pe,opacity:Al,originX:m_,originY:m_,originZ:pe},g_={...$s,transform:Math.round},Xp={...HL,...FL,zIndex:g_,size:pe,fillOpacity:Al,strokeOpacity:Al,numOctaves:g_},VL={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},YL=Gs.length;function qL(e,t,n){let i="",a=!0;for(let r=0;r<YL;r++){const s=Gs[r],o=e[s];if(o===void 0)continue;let l=!0;if(typeof o=="number"?l=o===(s.startsWith("scale")?1:0):l=parseFloat(o)===0,!l||n){const u=p_(o,Xp[s]);if(!l){a=!1;const c=VL[s]||s;i+=`${c}(${u}) `}n&&(t[s]=u)}}return i=i.trim(),n?i=n(t,a?"":i):a&&(i="none"),i}function Kp(e,t,n){const{style:i,vars:a,transformOrigin:r}=e;let s=!1,o=!1;for(const l in t){const u=t[l];if(Fr.has(l)){s=!0;continue}else if(h_(l)){a[l]=u;continue}else{const c=p_(u,Xp[l]);l.startsWith("origin")?(o=!0,r[l]=c):i[l]=c}}if(t.transform||(s||n?i.transform=qL(t,e.transform,n):i.transform&&(i.transform="none")),o){const{originX:l="50%",originY:u="50%",originZ:c=0}=r;i.transformOrigin=`${l} ${u} ${c}`}}const GL={offset:"stroke-dashoffset",array:"stroke-dasharray"},$L={offset:"strokeDashoffset",array:"strokeDasharray"};function XL(e,t,n=1,i=0,a=!0){e.pathLength=1;const r=a?GL:$L;e[r.offset]=pe.transform(-i);const s=pe.transform(t),o=pe.transform(n);e[r.array]=`${s} ${o}`}function b_(e,t,n){return typeof e=="string"?e:pe.transform(t+n*e)}function KL(e,t,n){const i=b_(t,e.x,e.width),a=b_(n,e.y,e.height);return`${i} ${a}`}function Qp(e,{attrX:t,attrY:n,attrScale:i,originX:a,originY:r,pathLength:s,pathSpacing:o=1,pathOffset:l=0,...u},c,d){if(Kp(e,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h,dimensions:g}=e;f.transform&&(g&&(h.transform=f.transform),delete f.transform),g&&(a!==void 0||r!==void 0||h.transform)&&(h.transformOrigin=KL(g,a!==void 0?a:.5,r!==void 0?r:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),i!==void 0&&(f.scale=i),s!==void 0&&XL(f,s,o,l,!1)}const Wp=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),v_=()=>({...Wp(),attrs:{}}),Zp=e=>typeof e=="string"&&e.toLowerCase()==="svg";function y_(e,{style:t,vars:n},i,a){Object.assign(e.style,t,a&&a.getProjectionStyles(i));for(const r in n)e.style.setProperty(r,n[r])}const x_=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 __(e,t,n,i){y_(e,t,void 0,i);for(const a in t.attrs)e.setAttribute(x_.has(a)?a:Fp(a),t.attrs[a])}const dd={};function QL(e){Object.assign(dd,e)}function E_(e,{layout:t,layoutId:n}){return Fr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!dd[e]||e==="opacity")}function Jp(e,t,n){var i;const{style:a}=e,r={};for(const s in a)(rn(a[s])||t.style&&rn(t.style[s])||E_(s,e)||((i=n==null?void 0:n.getValue(s))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(r[s]=a[s]);return r}function T_(e,t,n){const i=Jp(e,t,n);for(const a in e)if(rn(e[a])||rn(t[a])){const r=Gs.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;i[r]=e[a]}return i}function WL(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const w_=["x","y","width","height","cx","cy","r"],ZL={useVisualState:d_({scrapeMotionValuesFromProps:T_,createRenderState:v_,onUpdate:({props:e,prevProps:t,current:n,renderState:i,latestValues:a})=>{if(!n)return;let r=!!e.drag;if(!r){for(const o in a)if(Fr.has(o)){r=!0;break}}if(!r)return;let s=!t;if(t)for(let o=0;o<w_.length;o++){const l=w_[o];e[l]!==t[l]&&(s=!0)}s&&at.read(()=>{WL(n,i),at.render(()=>{Qp(i,a,Zp(n.tagName),e.transformTemplate),__(n,i)})})}})},JL={useVisualState:d_({scrapeMotionValuesFromProps:Jp,createRenderState:Wp})};function S_(e,t,n){for(const i in t)!rn(t[i])&&!E_(i,n)&&(e[i]=t[i])}function eI({transformTemplate:e},t){return _.useMemo(()=>{const n=Wp();return Kp(n,t,e),Object.assign({},n.vars,n.style)},[t])}function tI(e,t){const n=e.style||{},i={};return S_(i,n,e),Object.assign(i,eI(e,t)),i}function nI(e,t){const n={},i=tI(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}function iI(e,t,n,i){const a=_.useMemo(()=>{const r=v_();return Qp(r,t,Zp(i),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){const r={};S_(r,e.style,e),a.style={...r,...a.style}}return a}function aI(e=!1){return(n,i,a,{latestValues:r},s)=>{const l=(Yp(n)?iI:nI)(i,r,s,n),u=xL(i,typeof n=="string",e),c=n!==_.Fragment?{...u,...l,ref:a}:{},{children:d}=i,f=_.useMemo(()=>rn(d)?d.get():d,[d]);return _.createElement(n,{...c,children:f})}}function rI(e,t){return function(i,{forwardMotionProps:a}={forwardMotionProps:!1}){const s={...Yp(i)?ZL:JL,preloadedFeatures:e,useRender:aI(a),createVisualElement:t,Component:i};return kL(s)}}function A_(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function fd(e,t,n){const i=e.getProps();return qp(i,t,n!==void 0?n:i.custom,e)}const sI=jp(()=>window.ScrollTimeline!==void 0);class oI{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=n}attachTimeline(t,n){const i=this.animations.map(a=>{if(sI()&&a.attachTimeline)return a.attachTimeline(t);if(typeof n=="function")return n(a)});return()=>{i.forEach((a,r)=>{a&&a(),this.animations[r].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 n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class lI extends oI{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function em(e,t){return e?e[t]||e.default||e:void 0}const tm=2e4;function C_(e){let t=0;const n=50;let i=e.next(t);for(;!i.done&&t<tm;)t+=n,i=e.next(t);return t>=tm?1/0:t}function nm(e){return typeof e=="function"}function k_(e,t){e.timeline=t,e.onfinish=null}const im=e=>Array.isArray(e)&&typeof e[0]=="number",uI={linearEasing:void 0};function cI(e,t){const n=jp(e);return()=>{var i;return(i=uI[t])!==null&&i!==void 0?i:n()}}const hd=cI(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),O_=(e,t,n=10)=>{let i="";const a=Math.max(Math.round(t/n),2);for(let r=0;r<a;r++)i+=e(Vs(0,a-1,r))+", ";return`linear(${i.substring(0,i.length-2)})`};function N_(e){return!!(typeof e=="function"&&hd()||!e||typeof e=="string"&&(e in am||hd())||im(e)||Array.isArray(e)&&e.every(N_))}const kl=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,am={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:kl([0,.65,.55,1]),circOut:kl([.55,0,1,.45]),backIn:kl([.31,.01,.66,-.59]),backOut:kl([.33,1.53,.69,.99])};function R_(e,t){if(e)return typeof e=="function"&&hd()?O_(e,t):im(e)?kl(e):Array.isArray(e)?e.map(n=>R_(n,t)||am.easeOut):am[e]}const Ai={x:!1,y:!1};function D_(){return Ai.x||Ai.y}function dI(e,t,n){var i;if(e instanceof Element)return[e];if(typeof e=="string"){let a=document;const r=(i=void 0)!==null&&i!==void 0?i:a.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}function M_(e,t){const n=dI(e),i=new AbortController,a={passive:!0,...t,signal:i.signal};return[n,a,()=>i.abort()]}function L_(e){return t=>{t.pointerType==="touch"||D_()||e(t)}}function fI(e,t,n={}){const[i,a,r]=M_(e,n),s=L_(o=>{const{target:l}=o,u=t(o);if(typeof u!="function"||!l)return;const c=L_(d=>{u(d),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,a)});return i.forEach(o=>{o.addEventListener("pointerenter",s,a)}),r}const I_=(e,t)=>t?e===t?!0:I_(e,t.parentElement):!1,rm=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,hI=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function pI(e){return hI.has(e.tagName)||e.tabIndex!==-1}const Ol=new WeakSet;function P_(e){return t=>{t.key==="Enter"&&e(t)}}function sm(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const mI=(e,t)=>{const n=e.currentTarget;if(!n)return;const i=P_(()=>{if(Ol.has(n))return;sm(n,"down");const a=P_(()=>{sm(n,"up")}),r=()=>sm(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",r,t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)};function B_(e){return rm(e)&&!D_()}function gI(e,t,n={}){const[i,a,r]=M_(e,n),s=o=>{const l=o.currentTarget;if(!B_(o)||Ol.has(l))return;Ol.add(l);const u=t(o),c=(h,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!B_(h)||!Ol.has(l))&&(Ol.delete(l),typeof u=="function"&&u(h,{success:g}))},d=h=>{c(h,n.useGlobalTarget||I_(l,h.target))},f=h=>{c(h,!1)};window.addEventListener("pointerup",d,a),window.addEventListener("pointercancel",f,a)};return i.forEach(o=>{!pI(o)&&o.getAttribute("tabindex")===null&&(o.tabIndex=0),(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,a),o.addEventListener("focus",u=>mI(u,a),a)}),r}function bI(e){return e==="x"||e==="y"?Ai[e]?null:(Ai[e]=!0,()=>{Ai[e]=!1}):Ai.x||Ai.y?null:(Ai.x=Ai.y=!0,()=>{Ai.x=Ai.y=!1})}const j_=new Set(["width","height","top","left","right","bottom",...Gs]);let pd;function vI(){pd=void 0}const Yi={now:()=>(pd===void 0&&Yi.set(Wt.isProcessing||pL.useManualTiming?Wt.timestamp:performance.now()),pd),set:e=>{pd=e,queueMicrotask(vI)}};function om(e,t){e.indexOf(t)===-1&&e.push(t)}function lm(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class um{constructor(){this.subscriptions=[]}add(t){return om(this.subscriptions,t),()=>lm(this.subscriptions,t)}notify(t,n,i){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,i);else for(let r=0;r<a;r++){const s=this.subscriptions[r];s&&s(t,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function z_(e,t){return t?e*(1e3/t):0}const U_=30,yI=e=>!isNaN(parseFloat(e));class xI{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,a=!0)=>{const r=Yi.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Yi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=yI(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new um);const i=this.events[t].add(n);return t==="change"?()=>{i(),at.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Yi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>U_)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,U_);return z_(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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 Nl(e,t){return new xI(e,t)}function _I(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Nl(n))}function EI(e,t){const n=fd(e,t);let{transitionEnd:i={},transition:a={},...r}=n||{};r={...r,...i};for(const s in r){const o=LL(r[s]);_I(e,s,o)}}function TI(e){return!!(rn(e)&&e.add)}function cm(e,t){const n=e.getValue("willChange");if(TI(n))return n.add(t)}function H_(e){return e.props[o_]}const F_=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,wI=1e-7,SI=12;function AI(e,t,n,i,a){let r,s,o=0;do s=t+(n-t)/2,r=F_(s,i,a)-e,r>0?n=s:t=s;while(Math.abs(r)>wI&&++o<SI);return s}function Rl(e,t,n,i){if(e===t&&n===i)return jn;const a=r=>AI(r,0,1,e,n);return r=>r===0||r===1?r:F_(a(r),t,i)}const V_=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Y_=e=>t=>1-e(1-t),q_=Rl(.33,1.53,.69,.99),dm=Y_(q_),G_=V_(dm),$_=e=>(e*=2)<1?.5*dm(e):.5*(2-Math.pow(2,-10*(e-1))),fm=e=>1-Math.sin(Math.acos(e)),X_=Y_(fm),K_=V_(fm),Q_=e=>/^0[^.\s]+$/u.test(e);function CI(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Q_(e):!0}const Dl=e=>Math.round(e*1e5)/1e5,hm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function kI(e){return e==null}const OI=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,pm=(e,t)=>n=>!!(typeof n=="string"&&OI.test(n)&&n.startsWith(e)||t&&!kI(n)&&Object.prototype.hasOwnProperty.call(n,t)),W_=(e,t,n)=>i=>{if(typeof i!="string")return i;const[a,r,s,o]=i.match(hm);return{[e]:parseFloat(a),[t]:parseFloat(r),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},NI=e=>ha(0,255,e),mm={...$s,transform:e=>Math.round(NI(e))},Vr={test:pm("rgb","red"),parse:W_("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+mm.transform(e)+", "+mm.transform(t)+", "+mm.transform(n)+", "+Dl(Al.transform(i))+")"};function RI(e){let t="",n="",i="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,i+=i,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:a?parseInt(a,16)/255:1}}const gm={test:pm("#"),parse:RI,transform:Vr.transform},Xs={test:pm("hsl","hue"),parse:W_("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+Vi.transform(Dl(t))+", "+Vi.transform(Dl(n))+", "+Dl(Al.transform(i))+")"},sn={test:e=>Vr.test(e)||gm.test(e)||Xs.test(e),parse:e=>Vr.test(e)?Vr.parse(e):Xs.test(e)?Xs.parse(e):gm.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Vr.transform(e):Xs.transform(e)},DI=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function MI(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(hm))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(DI))===null||n===void 0?void 0:n.length)||0)>0}const Z_="number",J_="color",LI="var",II="var(",eE="${}",PI=/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 Ml(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},a=[];let r=0;const o=t.replace(PI,l=>(sn.test(l)?(i.color.push(r),a.push(J_),n.push(sn.parse(l))):l.startsWith(II)?(i.var.push(r),a.push(LI),n.push(l)):(i.number.push(r),a.push(Z_),n.push(parseFloat(l))),++r,eE)).split(eE);return{values:n,split:o,indexes:i,types:a}}function tE(e){return Ml(e).values}function nE(e){const{split:t,types:n}=Ml(e),i=t.length;return a=>{let r="";for(let s=0;s<i;s++)if(r+=t[s],a[s]!==void 0){const o=n[s];o===Z_?r+=Dl(a[s]):o===J_?r+=sn.transform(a[s]):r+=a[s]}return r}}const BI=e=>typeof e=="number"?0:e;function jI(e){const t=tE(e);return nE(e)(t.map(BI))}const Ka={test:MI,parse:tE,createTransformer:nE,getAnimatableNone:jI},zI=new Set(["brightness","contrast","saturate","opacity"]);function UI(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(hm)||[];if(!i)return e;const a=n.replace(i,"");let r=zI.has(t)?1:0;return i!==n&&(r*=100),t+"("+r+a+")"}const HI=/\b([a-z-]*)\(.*?\)/gu,bm={...Ka,getAnimatableNone:e=>{const t=e.match(HI);return t?t.map(UI).join(" "):e}},FI={...Xp,color:sn,backgroundColor:sn,outlineColor:sn,fill:sn,stroke:sn,borderColor:sn,borderTopColor:sn,borderRightColor:sn,borderBottomColor:sn,borderLeftColor:sn,filter:bm,WebkitFilter:bm},vm=e=>FI[e];function iE(e,t){let n=vm(e);return n!==bm&&(n=Ka),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const VI=new Set(["auto","none","0"]);function YI(e,t,n){let i=0,a;for(;i<e.length&&!a;){const r=e[i];typeof r=="string"&&!VI.has(r)&&Ml(r).values.length&&(a=e[i]),i++}if(a&&n)for(const r of t)e[r]=iE(n,a)}const aE=e=>e===$s||e===pe,rE=(e,t)=>parseFloat(e.split(", ")[t]),sE=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const a=i.match(/^matrix3d\((.+)\)$/u);if(a)return rE(a[1],t);{const r=i.match(/^matrix\((.+)\)$/u);return r?rE(r[1],e):0}},qI=new Set(["x","y","z"]),GI=Gs.filter(e=>!qI.has(e));function $I(e){const t=[];return GI.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}const Ks={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:sE(4,13),y:sE(5,14)};Ks.translateX=Ks.x,Ks.translateY=Ks.y;const Yr=new Set;let ym=!1,xm=!1;function oE(){if(xm){const e=Array.from(Yr).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{const a=$I(i);a.length&&(n.set(i,a),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const a=n.get(i);a&&a.forEach(([r,s])=>{var o;(o=i.getValue(r))===null||o===void 0||o.set(s)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}xm=!1,ym=!1,Yr.forEach(e=>e.complete()),Yr.clear()}function lE(){Yr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(xm=!0)})}function XI(){lE(),oE()}class _m{constructor(t,n,i,a,r,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=i,this.motionValue=a,this.element=r,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Yr.add(this),ym||(ym=!0,at.read(lE),at.resolveKeyframes(oE))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:i,motionValue:a}=this;for(let r=0;r<t.length;r++)if(t[r]===null)if(r===0){const s=a==null?void 0:a.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(i&&n){const l=i.readValue(n,o);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=o),a&&s===void 0&&a.set(t[0])}else t[r]=t[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Yr.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Yr.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const uE=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),KI=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function QI(e){const t=KI.exec(e);if(!t)return[,];const[,n,i,a]=t;return[`--${n??i}`,a]}function cE(e,t,n=1){const[i,a]=QI(e);if(!i)return;const r=window.getComputedStyle(t).getPropertyValue(i);if(r){const s=r.trim();return uE(s)?parseFloat(s):s}return $p(a)?cE(a,t,n+1):a}const dE=e=>t=>t.test(e),fE=[$s,pe,Vi,Xa,UL,zL,{test:e=>e==="auto",parse:e=>e}],hE=e=>fE.find(dE(e));class pE extends _m{constructor(t,n,i,a,r){super(t,n,i,a,r,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),$p(u))){const c=cE(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!j_.has(i)||t.length!==2)return;const[a,r]=t,s=hE(a),o=hE(r);if(s!==o)if(aE(s)&&aE(o))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,i=[];for(let a=0;a<t.length;a++)CI(t[a])&&i.push(a);i.length&&YI(t,i,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ks[i](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(i,a).jump(a,!1)}measureEndState(){var t;const{element:n,name:i,unresolvedKeyframes:a}=this;if(!n||!n.current)return;const r=n.getValue(i);r&&r.jump(this.measuredOrigin,!1);const s=a.length-1,o=a[s];a[s]=Ks[i](n.measureViewportBox(),window.getComputedStyle(n.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const mE=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ka.test(e)||e==="0")&&!e.startsWith("url("));function WI(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function ZI(e,t,n,i){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const r=e[e.length-1],s=mE(a,t),o=mE(r,t);return!s||!o?!1:WI(e)||(n==="spring"||nm(n))&&i}const JI=e=>e!==null;function md(e,{repeat:t,repeatType:n="loop"},i){const a=e.filter(JI),r=t&&n!=="loop"&&t%2===1?0:a.length-1;return!r||i===void 0?a[r]:i}const e8=40;class gE{constructor({autoplay:t=!0,delay:n=0,type:i="keyframes",repeat:a=0,repeatDelay:r=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Yi.now(),this.options={autoplay:t,delay:n,type:i,repeat:a,repeatDelay:r,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>e8?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&XI(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Yi.now(),this.hasAttemptedResolve=!0;const{name:i,type:a,velocity:r,delay:s,onComplete:o,onUpdate:l,isGenerator:u}=this.options;if(!u&&!ZI(t,i,a,r))if(s)this.options.duration=0;else{l&&l(md(t,this.options,n)),o&&o(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const ft=(e,t,n)=>e+(t-e)*n;function Em(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function t8({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let a=0,r=0,s=0;if(!t)a=r=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;a=Em(l,o,e+1/3),r=Em(l,o,e),s=Em(l,o,e-1/3)}return{red:Math.round(a*255),green:Math.round(r*255),blue:Math.round(s*255),alpha:i}}function gd(e,t){return n=>n>0?t:e}const Tm=(e,t,n)=>{const i=e*e,a=n*(t*t-i)+i;return a<0?0:Math.sqrt(a)},n8=[gm,Vr,Xs],i8=e=>n8.find(t=>t.test(e));function bE(e){const t=i8(e);if(!t)return!1;let n=t.parse(e);return t===Xs&&(n=t8(n)),n}const vE=(e,t)=>{const n=bE(e),i=bE(t);if(!n||!i)return gd(e,t);const a={...n};return r=>(a.red=Tm(n.red,i.red,r),a.green=Tm(n.green,i.green,r),a.blue=Tm(n.blue,i.blue,r),a.alpha=ft(n.alpha,i.alpha,r),Vr.transform(a))},a8=(e,t)=>n=>t(e(n)),Ll=(...e)=>e.reduce(a8),wm=new Set(["none","hidden"]);function r8(e,t){return wm.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function s8(e,t){return n=>ft(e,t,n)}function Sm(e){return typeof e=="number"?s8:typeof e=="string"?$p(e)?gd:sn.test(e)?vE:u8:Array.isArray(e)?yE:typeof e=="object"?sn.test(e)?vE:o8:gd}function yE(e,t){const n=[...e],i=n.length,a=e.map((r,s)=>Sm(r)(r,t[s]));return r=>{for(let s=0;s<i;s++)n[s]=a[s](r);return n}}function o8(e,t){const n={...e,...t},i={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(i[a]=Sm(e[a])(e[a],t[a]));return a=>{for(const r in i)n[r]=i[r](a);return n}}function l8(e,t){var n;const i=[],a={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const s=t.types[r],o=e.indexes[s][a[s]],l=(n=e.values[o])!==null&&n!==void 0?n:0;i[r]=l,a[s]++}return i}const u8=(e,t)=>{const n=Ka.createTransformer(t),i=Ml(e),a=Ml(t);return i.indexes.var.length===a.indexes.var.length&&i.indexes.color.length===a.indexes.color.length&&i.indexes.number.length>=a.indexes.number.length?wm.has(e)&&!a.values.length||wm.has(t)&&!i.values.length?r8(e,t):Ll(yE(l8(i,a),a.values),n):gd(e,t)};function xE(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ft(e,t,n):Sm(e)(e,t)}const c8=5;function _E(e,t,n){const i=Math.max(t-c8,0);return z_(n-e(i),t-i)}const gt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Am=.001;function d8({duration:e=gt.duration,bounce:t=gt.bounce,velocity:n=gt.velocity,mass:i=gt.mass}){let a,r,s=1-t;s=ha(gt.minDamping,gt.maxDamping,s),e=ha(gt.minDuration,gt.maxDuration,fa(e)),s<1?(a=u=>{const c=u*s,d=c*e,f=c-n,h=Cm(u,s),g=Math.exp(-d);return Am-f/h*g},r=u=>{const d=u*s*e,f=d*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,g=Math.exp(-d),y=Cm(Math.pow(u,2),s);return(-a(u)+Am>0?-1:1)*((f-h)*g)/y}):(a=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Am+c*d},r=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const o=5/e,l=h8(a,r,o);if(e=da(e),isNaN(l))return{stiffness:gt.stiffness,damping:gt.damping,duration:e};{const u=Math.pow(l,2)*i;return{stiffness:u,damping:s*2*Math.sqrt(i*u),duration:e}}}const f8=12;function h8(e,t,n){let i=n;for(let a=1;a<f8;a++)i=i-e(i)/t(i);return i}function Cm(e,t){return e*Math.sqrt(1-t*t)}const p8=["duration","bounce"],m8=["stiffness","damping","mass"];function EE(e,t){return t.some(n=>e[n]!==void 0)}function g8(e){let t={velocity:gt.velocity,stiffness:gt.stiffness,damping:gt.damping,mass:gt.mass,isResolvedFromDuration:!1,...e};if(!EE(e,m8)&&EE(e,p8))if(e.visualDuration){const n=e.visualDuration,i=2*Math.PI/(n*1.2),a=i*i,r=2*ha(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:gt.mass,stiffness:a,damping:r}}else{const n=d8(e);t={...t,...n,mass:gt.mass},t.isResolvedFromDuration=!0}return t}function TE(e=gt.visualDuration,t=gt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:a}=n;const r=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],o={done:!1,value:r},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:h}=g8({...n,velocity:-fa(n.velocity||0)}),g=f||0,y=u/(2*Math.sqrt(l*c)),E=s-r,m=fa(Math.sqrt(l/c)),v=Math.abs(E)<5;i||(i=v?gt.restSpeed.granular:gt.restSpeed.default),a||(a=v?gt.restDelta.granular:gt.restDelta.default);let x;if(y<1){const S=Cm(m,y);x=A=>{const D=Math.exp(-y*m*A);return s-D*((g+y*m*E)/S*Math.sin(S*A)+E*Math.cos(S*A))}}else if(y===1)x=S=>s-Math.exp(-m*S)*(E+(g+m*E)*S);else{const S=m*Math.sqrt(y*y-1);x=A=>{const D=Math.exp(-y*m*A),L=Math.min(S*A,300);return s-D*((g+y*m*E)*Math.sinh(L)+S*E*Math.cosh(L))/S}}const T={calculatedDuration:h&&d||null,next:S=>{const A=x(S);if(h)o.done=S>=d;else{let D=0;y<1&&(D=S===0?da(g):_E(x,S,A));const L=Math.abs(D)<=i,B=Math.abs(s-A)<=a;o.done=L&&B}return o.value=o.done?s:A,o},toString:()=>{const S=Math.min(C_(T),tm),A=O_(D=>T.next(S*D).value,S,30);return S+"ms "+A}};return T}function wE({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:a=10,bounceStiffness:r=500,modifyTarget:s,min:o,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},h=L=>o!==void 0&&L<o||l!==void 0&&L>l,g=L=>o===void 0?l:l===void 0||Math.abs(o-L)<Math.abs(l-L)?o:l;let y=n*t;const E=d+y,m=s===void 0?E:s(E);m!==E&&(y=m-d);const v=L=>-y*Math.exp(-L/i),x=L=>m+v(L),T=L=>{const B=v(L),O=x(L);f.done=Math.abs(B)<=u,f.value=f.done?m:O};let S,A;const D=L=>{h(f.value)&&(S=L,A=TE({keyframes:[f.value,g(f.value)],velocity:_E(x,L,f.value),damping:a,stiffness:r,restDelta:u,restSpeed:c}))};return D(0),{calculatedDuration:null,next:L=>{let B=!1;return!A&&S===void 0&&(B=!0,T(L),D(L)),S!==void 0&&L>=S?A.next(L-S):(!B&&T(L),f)}}}const b8=Rl(.42,0,1,1),v8=Rl(0,0,.58,1),SE=Rl(.42,0,.58,1),y8=e=>Array.isArray(e)&&typeof e[0]!="number",x8={linear:jn,easeIn:b8,easeInOut:SE,easeOut:v8,circIn:fm,circInOut:K_,circOut:X_,backIn:dm,backInOut:G_,backOut:q_,anticipate:$_},AE=e=>{if(im(e)){e_(e.length===4);const[t,n,i,a]=e;return Rl(t,n,i,a)}else if(typeof e=="string")return x8[e];return e};function _8(e,t,n){const i=[],a=n||xE,r=e.length-1;for(let s=0;s<r;s++){let o=a(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||jn:t;o=Ll(l,o)}i.push(o)}return i}function E8(e,t,{clamp:n=!0,ease:i,mixer:a}={}){const r=e.length;if(e_(r===t.length),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=_8(t,i,a),l=o.length,u=c=>{if(s&&c<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(c<e[d+1]);d++);const f=Vs(e[d],e[d+1],c);return o[d](f)};return n?c=>u(ha(e[0],e[r-1],c)):u}function T8(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const a=Vs(0,t,i);e.push(ft(n,1,a))}}function w8(e){const t=[0];return T8(t,e.length-1),t}function S8(e,t){return e.map(n=>n*t)}function A8(e,t){return e.map(()=>t||SE).splice(0,e.length-1)}function bd({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const a=y8(i)?i.map(AE):AE(i),r={done:!1,value:t[0]},s=S8(n&&n.length===t.length?n:w8(t),e),o=E8(s,t,{ease:Array.isArray(a)?a:A8(t,a)});return{calculatedDuration:e,next:l=>(r.value=o(l),r.done=l>=e,r)}}const C8=e=>{const t=({timestamp:n})=>e(n);return{start:()=>at.update(t,!0),stop:()=>$a(t),now:()=>Wt.isProcessing?Wt.timestamp:Yi.now()}},k8={decay:wE,inertia:wE,tween:bd,keyframes:bd,spring:TE},O8=e=>e/100;class km extends gE{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();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:i,element:a,keyframes:r}=this.options,s=(a==null?void 0:a.KeyframeResolver)||_m,o=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(r,o,n,i,a),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:r,velocity:s=0}=this.options,o=nm(n)?n:k8[n]||bd;let l,u;o!==bd&&typeof t[0]!="number"&&(l=Ll(O8,xE(t[0],t[1])),t=[0,100]);const c=o({...this.options,keyframes:t});r==="mirror"&&(u=o({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=C_(c));const{calculatedDuration:d}=c,f=d+a,h=f*(i+1)-a;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:f,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:i}=this;if(!i){const{keyframes:L}=this.options;return{done:!0,value:L[L.length-1]}}const{finalKeyframe:a,generator:r,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=i;if(this.startTime===null)return r.next(0);const{delay:f,repeat:h,repeatType:g,repeatDelay:y,onUpdate:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-f*(this.speed>=0?1:-1),v=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let x=this.currentTime,T=r;if(h){const L=Math.min(this.currentTime,c)/d;let B=Math.floor(L),O=L%1;!O&&L>=1&&(O=1),O===1&&B--,B=Math.min(B,h+1),!!(B%2)&&(g==="reverse"?(O=1-O,y&&(O-=y/d)):g==="mirror"&&(T=s)),x=ha(0,1,O)*d}const S=v?{done:!1,value:l[0]}:T.next(x);o&&(S.value=o(S.value));let{done:A}=S;!v&&u!==null&&(A=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return D&&a!==void 0&&(S.value=md(l,this.options,a)),E&&E(S.value),D&&this.finish(),S}get duration(){const{resolved:t}=this;return t?fa(t.calculatedDuration):0}get time(){return fa(this.currentTime)}set time(t){t=da(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){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=fa(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=C8,onPlay:n,startTime:i}=this.options;this.driver||(this.driver=t(r=>this.tick(r))),n&&n();const a=this.driver.now();this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=a):this.startTime=i??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";const{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)}}const N8=new Set(["opacity","clipPath","filter","transform"]);function R8(e,t,n,{delay:i=0,duration:a=300,repeat:r=0,repeatType:s="loop",ease:o="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=R_(o,a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:i,duration:a,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:s==="reverse"?"alternate":"normal"})}const D8=jp(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),vd=10,M8=2e4;function L8(e){return nm(e.type)||e.type==="spring"||!N_(e.ease)}function I8(e,t){const n=new km({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:e[0]};const a=[];let r=0;for(;!i.done&&r<M8;)i=n.sample(r),a.push(i.value),r+=vd;return{times:void 0,keyframes:a,duration:r-vd,ease:"linear"}}const CE={anticipate:$_,backInOut:G_,circInOut:K_};function P8(e){return e in CE}class kE extends gE{constructor(t){super(t);const{name:n,motionValue:i,element:a,keyframes:r}=this.options;this.resolver=new pE(r,(s,o)=>this.onKeyframesResolved(s,o),n,i,a),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:i=300,times:a,ease:r,type:s,motionValue:o,name:l,startTime:u}=this.options;if(!o.owner||!o.owner.current)return!1;if(typeof r=="string"&&hd()&&P8(r)&&(r=CE[r]),L8(this.options)){const{onComplete:d,onUpdate:f,motionValue:h,element:g,...y}=this.options,E=I8(t,y);t=E.keyframes,t.length===1&&(t[1]=t[0]),i=E.duration,a=E.times,r=E.ease,s="keyframes"}const c=R8(o.owner.current,l,t,{...this.options,duration:i,times:a,ease:r});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(k_(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;o.set(md(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:a,type:s,ease:r,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return fa(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return fa(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=da(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return jn;const{animation:i}=n;k_(i,t)}return jn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:i,duration:a,type:r,ease:s,times:o}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,element:f,...h}=this.options,g=new km({...h,keyframes:i,duration:a,type:r,ease:s,times:o,isGenerator:!0}),y=da(this.time);u.setWithVelocity(g.sample(y-vd).value,g.sample(y).value,vd)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:i,repeatDelay:a,repeatType:r,damping:s,type:o}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return D8()&&i&&N8.has(i)&&!l&&!u&&!a&&r!=="mirror"&&s!==0&&o!=="inertia"}}const B8={type:"spring",stiffness:500,damping:25,restSpeed:10},j8=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),z8={type:"keyframes",duration:.8},U8={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},H8=(e,{keyframes:t})=>t.length>2?z8:Fr.has(e)?e.startsWith("scale")?j8(t[1]):B8:U8;function F8({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:a,repeat:r,repeatType:s,repeatDelay:o,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Om=(e,t,n,i={},a,r)=>s=>{const o=em(i,e)||{},l=o.delay||i.delay||0;let{elapsed:u=0}=i;u=u-da(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:f=>{t.set(f),o.onUpdate&&o.onUpdate(f)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:r?void 0:a};F8(o)||(c={...c,...H8(e,c)}),c.duration&&(c.duration=da(c.duration)),c.repeatDelay&&(c.repeatDelay=da(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!r&&t.get()!==void 0){const f=md(c.keyframes,o);if(f!==void 0)return at.update(()=>{c.onUpdate(f),c.onComplete()}),new lI([])}return!r&&kE.supports(c)?new kE(c):new km(c)};function V8({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function OE(e,t,{delay:n=0,transitionOverride:i,type:a}={}){var r;let{transition:s=e.getDefaultTransition(),transitionEnd:o,...l}=t;i&&(s=i);const u=[],c=a&&e.animationState&&e.animationState.getState()[a];for(const d in l){const f=e.getValue(d,(r=e.latestValues[d])!==null&&r!==void 0?r:null),h=l[d];if(h===void 0||c&&V8(c,d))continue;const g={delay:n,...em(s||{},d)};let y=!1;if(window.MotionHandoffAnimation){const m=H_(e);if(m){const v=window.MotionHandoffAnimation(m,d,at);v!==null&&(g.startTime=v,y=!0)}}cm(e,d),f.start(Om(d,f,h,e.shouldReduceMotion&&j_.has(d)?{type:!1}:g,e,y));const E=f.animation;E&&u.push(E)}return o&&Promise.all(u).then(()=>{at.update(()=>{o&&EI(e,o)})}),u}function Nm(e,t,n={}){var i;const a=fd(e,t,n.type==="exit"?(i=e.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:r=e.getDefaultTransition()||{}}=a||{};n.transitionOverride&&(r=n.transitionOverride);const s=a?()=>Promise.all(OE(e,a,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=r;return Y8(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[u,c]=l==="beforeChildren"?[s,o]:[o,s];return u().then(()=>c())}else return Promise.all([s(),o(n.delay)])}function Y8(e,t,n=0,i=0,a=1,r){const s=[],o=(e.variantChildren.size-1)*i,l=a===1?(u=0)=>u*i:(u=0)=>o-u*i;return Array.from(e.variantChildren).sort(q8).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Nm(u,t,{...r,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function q8(e,t){return e.sortNodePosition(t)}function G8(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const a=t.map(r=>Nm(e,r,n));i=Promise.all(a)}else if(typeof t=="string")i=Nm(e,t,n);else{const a=typeof t=="function"?fd(e,t,n.custom):t;i=Promise.all(OE(e,a,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}const $8=Hp.length;function NE(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?NE(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<$8;n++){const i=Hp[n],a=e.props[i];(Sl(a)||a===!1)&&(t[i]=a)}return t}const X8=[...Up].reverse(),K8=Up.length;function Q8(e){return t=>Promise.all(t.map(({animation:n,options:i})=>G8(e,n,i)))}function W8(e){let t=Q8(e),n=RE(),i=!0;const a=l=>(u,c)=>{var d;const f=fd(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:h,transitionEnd:g,...y}=f;u={...u,...y,...g}}return u};function r(l){t=l(e)}function s(l){const{props:u}=e,c=NE(e.parent)||{},d=[],f=new Set;let h={},g=1/0;for(let E=0;E<K8;E++){const m=X8[E],v=n[m],x=u[m]!==void 0?u[m]:c[m],T=Sl(x),S=m===l?v.isActive:null;S===!1&&(g=E);let A=x===c[m]&&x!==u[m]&&T;if(A&&i&&e.manuallyAnimateOnMount&&(A=!1),v.protectedKeys={...h},!v.isActive&&S===null||!x&&!v.prevProp||od(x)||typeof x=="boolean")continue;const D=Z8(v.prevProp,x);let L=D||m===l&&v.isActive&&!A&&T||E>g&&T,B=!1;const O=Array.isArray(x)?x:[x];let Y=O.reduce(a(m),{});S===!1&&(Y={});const{prevResolvedValues:U={}}=v,ae={...U,...Y},ee=V=>{L=!0,f.has(V)&&(B=!0,f.delete(V)),v.needsAnimating[V]=!0;const H=e.getValue(V);H&&(H.liveStyle=!1)};for(const V in ae){const H=Y[V],te=U[V];if(h.hasOwnProperty(V))continue;let N=!1;Gp(H)&&Gp(te)?N=!A_(H,te):N=H!==te,N?H!=null?ee(V):f.add(V):H!==void 0&&f.has(V)?ee(V):v.protectedKeys[V]=!0}v.prevProp=x,v.prevResolvedValues=Y,v.isActive&&(h={...h,...Y}),i&&e.blockInitialAnimation&&(L=!1),L&&(!(A&&D)||B)&&d.push(...O.map(V=>({animation:V,options:{type:m}})))}if(f.size){const E={};f.forEach(m=>{const v=e.getBaseTarget(m),x=e.getValue(m);x&&(x.liveStyle=!0),E[m]=v??null}),d.push({animation:E})}let y=!!d.length;return i&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),i=!1,y?t(d):Promise.resolve()}function o(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var h;return(h=f.animationState)===null||h===void 0?void 0:h.setActive(l,u)}),n[l].isActive=u;const d=s(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:s,setActive:o,setAnimateFunction:r,getState:()=>n,reset:()=>{n=RE(),i=!0}}}function Z8(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!A_(t,e):!1}function qr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function RE(){return{animate:qr(!0),whileInView:qr(),whileHover:qr(),whileTap:qr(),whileDrag:qr(),whileFocus:qr(),exit:qr()}}class Qa{constructor(t){this.isMounted=!1,this.node=t}update(){}}class J8 extends Qa{constructor(t){super(t),t.animationState||(t.animationState=W8(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();od(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let eP=0;class tP extends Qa{constructor(){super(...arguments),this.id=eP++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const nP={animation:{Feature:J8},exit:{Feature:tP}};function Il(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}function Pl(e){return{point:{x:e.pageX,y:e.pageY}}}const iP=e=>t=>rm(t)&&e(t,Pl(t));function Bl(e,t,n,i){return Il(e,t,iP(n),i)}const DE=(e,t)=>Math.abs(e-t);function aP(e,t){const n=DE(e.x,t.x),i=DE(e.y,t.y);return Math.sqrt(n**2+i**2)}class ME{constructor(t,n,{transformPagePoint:i,contextWindow:a,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Dm(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,h=aP(d.offset,{x:0,y:0})>=3;if(!f&&!h)return;const{point:g}=d,{timestamp:y}=Wt;this.history.push({...g,timestamp:y});const{onStart:E,onMove:m}=this.handlers;f||(E&&E(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Rm(f,this.transformPagePoint),at.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:h,onSessionEnd:g,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=Dm(d.type==="pointercancel"?this.lastMoveEventInfo:Rm(f,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,E),g&&g(d,E)},!rm(t))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=i,this.contextWindow=a||window;const s=Pl(t),o=Rm(s,this.transformPagePoint),{point:l}=o,{timestamp:u}=Wt;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,Dm(o,this.history)),this.removeListeners=Ll(Bl(this.contextWindow,"pointermove",this.handlePointerMove),Bl(this.contextWindow,"pointerup",this.handlePointerUp),Bl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),$a(this.updatePoint)}}function Rm(e,t){return t?{point:t(e.point)}:e}function LE(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Dm({point:e},t){return{point:e,delta:LE(e,IE(t)),offset:LE(e,rP(t)),velocity:sP(t,.1)}}function rP(e){return e[0]}function IE(e){return e[e.length-1]}function sP(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const a=IE(e);for(;n>=0&&(i=e[n],!(a.timestamp-i.timestamp>da(t)));)n--;if(!i)return{x:0,y:0};const r=fa(a.timestamp-i.timestamp);if(r===0)return{x:0,y:0};const s={x:(a.x-i.x)/r,y:(a.y-i.y)/r};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const PE=1e-4,oP=1-PE,lP=1+PE,BE=.01,uP=0-BE,cP=0+BE;function zn(e){return e.max-e.min}function dP(e,t,n){return Math.abs(e-t)<=n}function jE(e,t,n,i=.5){e.origin=i,e.originPoint=ft(t.min,t.max,e.origin),e.scale=zn(n)/zn(t),e.translate=ft(n.min,n.max,e.origin)-e.originPoint,(e.scale>=oP&&e.scale<=lP||isNaN(e.scale))&&(e.scale=1),(e.translate>=uP&&e.translate<=cP||isNaN(e.translate))&&(e.translate=0)}function jl(e,t,n,i){jE(e.x,t.x,n.x,i?i.originX:void 0),jE(e.y,t.y,n.y,i?i.originY:void 0)}function zE(e,t,n){e.min=n.min+t.min,e.max=e.min+zn(t)}function fP(e,t,n){zE(e.x,t.x,n.x),zE(e.y,t.y,n.y)}function UE(e,t,n){e.min=t.min-n.min,e.max=e.min+zn(t)}function zl(e,t,n){UE(e.x,t.x,n.x),UE(e.y,t.y,n.y)}function hP(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?ft(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?ft(n,e,i.max):Math.min(e,n)),e}function HE(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function pP(e,{top:t,left:n,bottom:i,right:a}){return{x:HE(e.x,n,a),y:HE(e.y,t,i)}}function FE(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function mP(e,t){return{x:FE(e.x,t.x),y:FE(e.y,t.y)}}function gP(e,t){let n=.5;const i=zn(e),a=zn(t);return a>i?n=Vs(t.min,t.max-i,e.min):i>a&&(n=Vs(e.min,e.max-a,t.min)),ha(0,1,n)}function bP(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Mm=.35;function vP(e=Mm){return e===!1?e=0:e===!0&&(e=Mm),{x:VE(e,"left","right"),y:VE(e,"top","bottom")}}function VE(e,t,n){return{min:YE(e,t),max:YE(e,n)}}function YE(e,t){return typeof e=="number"?e:e[t]||0}const qE=()=>({translate:0,scale:1,origin:0,originPoint:0}),Qs=()=>({x:qE(),y:qE()}),GE=()=>({min:0,max:0}),Tt=()=>({x:GE(),y:GE()});function si(e){return[e("x"),e("y")]}function $E({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function yP({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function xP(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function Lm(e){return e===void 0||e===1}function Im({scale:e,scaleX:t,scaleY:n}){return!Lm(e)||!Lm(t)||!Lm(n)}function Gr(e){return Im(e)||XE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function XE(e){return KE(e.x)||KE(e.y)}function KE(e){return e&&e!=="0%"}function yd(e,t,n){const i=e-n,a=t*i;return n+a}function QE(e,t,n,i,a){return a!==void 0&&(e=yd(e,a,i)),yd(e,n,i)+t}function Pm(e,t=0,n=1,i,a){e.min=QE(e.min,t,n,i,a),e.max=QE(e.max,t,n,i,a)}function WE(e,{x:t,y:n}){Pm(e.x,t.translate,t.scale,t.originPoint),Pm(e.y,n.translate,n.scale,n.originPoint)}const ZE=.999999999999,JE=1.0000000000001;function _P(e,t,n,i=!1){const a=n.length;if(!a)return;t.x=t.y=1;let r,s;for(let o=0;o<a;o++){r=n[o],s=r.projectionDelta;const{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&Zs(e,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,WE(e,s)),i&&Gr(r.latestValues)&&Zs(e,r.latestValues))}t.x<JE&&t.x>ZE&&(t.x=1),t.y<JE&&t.y>ZE&&(t.y=1)}function Ws(e,t){e.min=e.min+t,e.max=e.max+t}function eT(e,t,n,i,a=.5){const r=ft(e.min,e.max,a);Pm(e,t,n,r,i)}function Zs(e,t){eT(e.x,t.x,t.scaleX,t.scale,t.originX),eT(e.y,t.y,t.scaleY,t.scale,t.originY)}function tT(e,t){return $E(xP(e.getBoundingClientRect(),t))}function EP(e,t,n){const i=tT(e,n),{scroll:a}=t;return a&&(Ws(i.x,a.offset.x),Ws(i.y,a.offset.y)),i}const nT=({current:e})=>e?e.ownerDocument.defaultView:null,TP=new WeakMap;class wP{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Tt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Pl(c).point)},r=(c,d)=>{const{drag:f,dragPropagation:h,onDragStart:g}=this.getProps();if(f&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=bI(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),si(E=>{let m=this.getAxisMotionValue(E).get()||0;if(Vi.test(m)){const{projection:v}=this.visualElement;if(v&&v.layout){const x=v.layout.layoutBox[E];x&&(m=zn(x)*(parseFloat(m)/100))}}this.originPoint[E]=m}),g&&at.postRender(()=>g(c,d)),cm(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:g,onDrag:y}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:E}=d;if(h&&this.currentDirection===null){this.currentDirection=SP(E),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",d.point,E),this.updateAxis("y",d.point,E),this.visualElement.render(),y&&y(c,d)},o=(c,d)=>this.stop(c,d),l=()=>si(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new ME(t,{onSessionStart:a,onStart:r,onMove:s,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:nT(this.visualElement)})}stop(t,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:a}=n;this.startAnimation(a);const{onDragEnd:r}=this.getProps();r&&at.postRender(()=>r(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,i){const{drag:a}=this.getProps();if(!i||!xd(t,a,this.currentDirection))return;const r=this.getAxisMotionValue(t);let s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=hP(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:i}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,r=this.constraints;n&&qs(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&a?this.constraints=pP(a.layoutBox,n):this.constraints=!1,this.elastic=vP(i),r!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&si(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=bP(a.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!qs(t))return!1;const i=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const r=EP(i,a.root,this.visualElement.getTransformPagePoint());let s=mP(a.layout.layoutBox,r);if(n){const o=n(yP(s));this.hasMutatedConstraints=!!o,o&&(s=$E(o))}return s}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:a,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},u=si(c=>{if(!xd(c,n,this.currentDirection))return;let d=l&&l[c]||{};s&&(d={min:0,max:0});const f=a?200:1e6,h=a?40:1e7,g={type:"inertia",velocity:i?t[c]:0,bounceStiffness:f,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...r,...d};return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(o)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return cm(this.visualElement,t),i.start(Om(t,i,0,n,this.visualElement,!1))}stopAnimation(){si(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){si(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),a=i[n];return a||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){si(n=>{const{drag:i}=this.getProps();if(!xd(n,i,this.currentDirection))return;const{projection:a}=this.visualElement,r=this.getAxisMotionValue(n);if(a&&a.layout){const{min:s,max:o}=a.layout.layoutBox[n];r.set(t[n]-ft(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!qs(n)||!i||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};si(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const l=o.get();a[s]=gP({min:l,max:l},this.constraints[s])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),si(s=>{if(!xd(s,t,null))return;const o=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];o.set(ft(l,u,a[s]))})}addListeners(){if(!this.visualElement.current)return;TP.set(this.visualElement,this);const t=this.visualElement.current,n=Bl(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();qs(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,r=a.addEventListener("measure",i);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),at.read(i);const s=Il(window,"resize",()=>this.scalePositionWithinConstraints()),o=a.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(si(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),r(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:a=!1,dragConstraints:r=!1,dragElastic:s=Mm,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:a,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function xd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function SP(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class AP extends Qa{constructor(t){super(t),this.removeGroupControls=jn,this.removeListeners=jn,this.controls=new wP(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||jn}unmount(){this.removeGroupControls(),this.removeListeners()}}const iT=e=>(t,n)=>{e&&at.postRender(()=>e(t,n))};class CP extends Qa{constructor(){super(...arguments),this.removePointerDownListener=jn}onPointerDown(t){this.session=new ME(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nT(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:i,onPanEnd:a}=this.node.getProps();return{onSessionStart:iT(t),onStart:iT(n),onMove:i,onEnd:(r,s)=>{delete this.session,a&&at.postRender(()=>a(r,s))}}}mount(){this.removePointerDownListener=Bl(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const _d={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function aT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ul={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(pe.test(e))e=parseFloat(e);else return e;const n=aT(e,t.target.x),i=aT(e,t.target.y);return`${n}% ${i}%`}},kP={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,a=Ka.parse(e);if(a.length>5)return i;const r=Ka.createTransformer(e),s=typeof a[0]!="number"?1:0,o=n.x.scale*t.x,l=n.y.scale*t.y;a[0+s]/=o,a[1+s]/=l;const u=ft(o,l,.5);return typeof a[2+s]=="number"&&(a[2+s]/=u),typeof a[3+s]=="number"&&(a[3+s]/=u),r(a)}};class OP extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:a}=this.props,{projection:r}=t;QL(NP),r&&(n.group&&n.group.add(r),i&&i.register&&a&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),_d.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:a,isPresent:r}=this.props,s=i.projection;return s&&(s.isPresent=r,a||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?s.promote():s.relegate()||at.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Vp.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:a}=t;a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),i&&i.deregister&&i.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rT(e){const[t,n]=Wx(),i=_.useContext(Lp);return b.jsx(OP,{...e,layoutGroup:i,switchLayoutGroup:_.useContext(l_),isPresent:t,safeToRemove:n})}const NP={borderRadius:{...Ul,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ul,borderTopRightRadius:Ul,borderBottomLeftRadius:Ul,borderBottomRightRadius:Ul,boxShadow:kP};function RP(e,t,n){const i=rn(e)?e:Nl(e);return i.start(Om("",i,t,n)),i.animation}function DP(e){return e instanceof SVGElement&&e.tagName!=="svg"}const MP=(e,t)=>e.depth-t.depth;class LP{constructor(){this.children=[],this.isDirty=!1}add(t){om(this.children,t),this.isDirty=!0}remove(t){lm(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(MP),this.isDirty=!1,this.children.forEach(t)}}function IP(e,t){const n=Yi.now(),i=({timestamp:a})=>{const r=a-n;r>=t&&($a(i),e(r-t))};return at.read(i,!0),()=>$a(i)}const sT=["TopLeft","TopRight","BottomLeft","BottomRight"],PP=sT.length,oT=e=>typeof e=="string"?parseFloat(e):e,lT=e=>typeof e=="number"||pe.test(e);function BP(e,t,n,i,a,r){a?(e.opacity=ft(0,n.opacity!==void 0?n.opacity:1,jP(i)),e.opacityExit=ft(t.opacity!==void 0?t.opacity:1,0,zP(i))):r&&(e.opacity=ft(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let s=0;s<PP;s++){const o=`border${sT[s]}Radius`;let l=uT(t,o),u=uT(n,o);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||lT(l)===lT(u)?(e[o]=Math.max(ft(oT(l),oT(u),i),0),(Vi.test(u)||Vi.test(l))&&(e[o]+="%")):e[o]=u}(t.rotate||n.rotate)&&(e.rotate=ft(t.rotate||0,n.rotate||0,i))}function uT(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const jP=cT(0,.5,X_),zP=cT(.5,.95,jn);function cT(e,t,n){return i=>i<e?0:i>t?1:n(Vs(e,t,i))}function dT(e,t){e.min=t.min,e.max=t.max}function oi(e,t){dT(e.x,t.x),dT(e.y,t.y)}function fT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function hT(e,t,n,i,a){return e-=t,e=yd(e,1/n,i),a!==void 0&&(e=yd(e,1/a,i)),e}function UP(e,t=0,n=1,i=.5,a,r=e,s=e){if(Vi.test(t)&&(t=parseFloat(t),t=ft(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=ft(r.min,r.max,i);e===r&&(o-=t),e.min=hT(e.min,t,n,o,a),e.max=hT(e.max,t,n,o,a)}function pT(e,t,[n,i,a],r,s){UP(e,t[n],t[i],t[a],t.scale,r,s)}const HP=["x","scaleX","originX"],FP=["y","scaleY","originY"];function mT(e,t,n,i){pT(e.x,t,HP,n?n.x:void 0,i?i.x:void 0),pT(e.y,t,FP,n?n.y:void 0,i?i.y:void 0)}function gT(e){return e.translate===0&&e.scale===1}function bT(e){return gT(e.x)&&gT(e.y)}function vT(e,t){return e.min===t.min&&e.max===t.max}function VP(e,t){return vT(e.x,t.x)&&vT(e.y,t.y)}function yT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function xT(e,t){return yT(e.x,t.x)&&yT(e.y,t.y)}function _T(e){return zn(e.x)/zn(e.y)}function ET(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class YP{constructor(){this.members=[]}add(t){om(this.members,t),t.scheduleRender()}remove(t){if(lm(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(a=>t===a);if(n===0)return!1;let i;for(let a=n;a>=0;a--){const r=this.members[a];if(r.isPresent!==!1){i=r;break}}return i?(this.promote(i),!0):!1}promote(t,n){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:i}=t;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function qP(e,t,n){let i="";const a=e.x.translate/t.x,r=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((a||r||s)&&(i=`translate3d(${a}px, ${r}px, ${s}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:h,skewY:g}=n;u&&(i=`perspective(${u}px) ${i}`),c&&(i+=`rotate(${c}deg) `),d&&(i+=`rotateX(${d}deg) `),f&&(i+=`rotateY(${f}deg) `),h&&(i+=`skewX(${h}deg) `),g&&(i+=`skewY(${g}deg) `)}const o=e.x.scale*t.x,l=e.y.scale*t.y;return(o!==1||l!==1)&&(i+=`scale(${o}, ${l})`),i||"none"}const $r={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Hl=typeof window<"u"&&window.MotionDebug!==void 0,Bm=["","X","Y","Z"],GP={visibility:"hidden"},TT=1e3;let $P=0;function jm(e,t,n,i){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),i&&(i[e]=0))}function wT(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=H_(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",at,!(a||r))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&wT(i)}function ST({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:a}){return class{constructor(s={},o=t==null?void 0:t()){this.id=$P++,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,Hl&&($r.totalNodes=$r.resolvedTargetDeltas=$r.recalculatedProjection=0),this.nodes.forEach(QP),this.nodes.forEach(t9),this.nodes.forEach(n9),this.nodes.forEach(WP),Hl&&window.MotionDebug.record($r)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new LP)}addEventListener(s,o){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new um),this.eventHandlers.get(s).add(o)}notifyListeners(s,...o){const l=this.eventHandlers.get(s);l&&l.notify(...o)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,o=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=DP(s),this.instance=s;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),o&&(u||l)&&(this.isLayoutDirty=!0),e){let d;const f=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=IP(f,250),_d.hasAnimatedSinceResize&&(_d.hasAnimatedSinceResize=!1,this.nodes.forEach(CT))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||o9,{onLayoutAnimationStart:E,onLayoutAnimationComplete:m}=c.getProps(),v=!this.targetLayout||!xT(this.targetLayout,g)||h,x=!f&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||f&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,x);const T={...em(y,"layout"),onPlay:E,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else f||CT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,$a(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(i9),this.animationId++)}getTransformTemplate(){const{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&&wT(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const d=this.path[c];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:o,layout:l}=this.options;if(o===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(AT);return}this.isUpdating||this.nodes.forEach(JP),this.isUpdating=!1,this.nodes.forEach(e9),this.nodes.forEach(XP),this.nodes.forEach(KP),this.clearAllSnapshots();const o=Yi.now();Wt.delta=ha(0,1e3/60,o-Wt.timestamp),Wt.timestamp=o,Wt.isProcessing=!0,zp.update.process(Wt),zp.preRender.process(Wt),zp.render.process(Wt),Wt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Vp.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ZP),this.sharedNodes.forEach(a9)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,at.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){at.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();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Tt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(o=!1),o){const l=i(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!a)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!bT(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&(o||Gr(this.latestValues)||c)&&(a(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return s&&(l=this.removeTransform(l)),l9(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:o}=this.options;if(!o)return Tt();const l=o.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(u9))){const{scroll:c}=this.root;c&&(Ws(l.x,c.offset.x),Ws(l.y,c.offset.y))}return l}removeElementScroll(s){var o;const l=Tt();if(oi(l,s),!((o=this.scroll)===null||o===void 0)&&o.wasRoot)return l;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:d,options:f}=c;c!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&oi(l,s),Ws(l.x,d.offset.x),Ws(l.y,d.offset.y))}return l}applyTransform(s,o=!1){const l=Tt();oi(l,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];!o&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Zs(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Gr(c.latestValues)&&Zs(l,c.latestValues)}return Gr(this.latestValues)&&Zs(l,this.latestValues),l}removeTransform(s){const o=Tt();oi(o,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Gr(u.latestValues))continue;Im(u.latestValues)&&u.updateSnapshot();const c=Tt(),d=u.measurePageBox();oi(c,d),mT(o,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Gr(this.latestValues)&&mT(o,this.latestValues),o}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!==Wt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var o;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=Wt.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Tt(),this.relativeTargetOrigin=Tt(),zl(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),oi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Tt(),this.targetWithTransforms=Tt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),fP(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):oi(this.target,this.layout.layoutBox),WE(this.target,this.targetDelta)):oi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Tt(),this.relativeTargetOrigin=Tt(),zl(this.relativeTargetOrigin,this.target,h.target),oi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Hl&&$r.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Im(this.parent.latestValues)||XE(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;const o=this.getLead(),l=!!this.resumingFrom||this!==o;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Wt.timestamp&&(u=!1),u)return;const{layout:c,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||!(c||d))return;oi(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;_P(this.layoutCorrected,this.treeScale,this.path,l),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Tt());const{target:g}=o;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(fT(this.prevProjectionDelta.x,this.projectionDelta.x),fT(this.prevProjectionDelta.y,this.projectionDelta.y)),jl(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!ET(this.projectionDelta.x,this.prevProjectionDelta.x)||!ET(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),Hl&&$r.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var o;if((o=this.options.visualElement)===null||o===void 0||o.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Qs(),this.projectionDelta=Qs(),this.projectionDeltaWithTransform=Qs()}setAnimationOrigin(s,o=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},d=Qs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const f=Tt(),h=l?l.source:void 0,g=this.layout?this.layout.source:void 0,y=h!==g,E=this.getStack(),m=!E||E.members.length<=1,v=!!(y&&!m&&this.options.crossfade===!0&&!this.path.some(s9));this.animationProgress=0;let x;this.mixTargetDelta=T=>{const S=T/1e3;kT(d.x,s.x,S),kT(d.y,s.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(zl(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),r9(this.relativeTarget,this.relativeTargetOrigin,f,S),x&&VP(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Tt()),oi(x,this.relativeTarget)),y&&(this.animationValues=c,BP(c,u,this.latestValues,S,v,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},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&&($a(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=at.update(()=>{_d.hasAnimatedSinceResize=!0,this.currentAnimation=RP(0,TT,{...s,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},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);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(TT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:l,layout:u,latestValues:c}=s;if(!(!o||!l||!u)){if(this!==s&&this.layout&&u&&MT(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Tt();const d=zn(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const f=zn(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+f}oi(o,l),Zs(o,c),jl(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new YP),this.sharedNodes.get(s).add(o);const u=o.options.initialPromotionConfig;o.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:o}=this.options;return o?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:o}=this.options;return o?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const u={};l.z&&jm("z",s,u,this.animationValues);for(let c=0;c<Bm.length;c++)jm(`rotate${Bm[c]}`,s,u,this.animationValues),jm(`skew${Bm[c]}`,s,u,this.animationValues);s.render();for(const c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}getProjectionStyles(s){var o,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return GP;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=ud(s==null?void 0:s.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=ud(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Gr(this.latestValues)&&(y.transform=c?c({},""):"none",this.hasProjected=!1),y}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),u.transform=qP(this.projectionDeltaWithTransform,this.treeScale,f),c&&(u.transform=c(f,u.transform));const{x:h,y:g}=this.projectionDelta;u.transformOrigin=`${h.origin*100}% ${g.origin*100}% 0`,d.animationValues?u.opacity=d===this?(l=(o=f.opacity)!==null&&o!==void 0?o:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:u.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const y in dd){if(f[y]===void 0)continue;const{correct:E,applyTo:m}=dd[y],v=u.transform==="none"?f[y]:E(f[y],d);if(m){const x=m.length;for(let T=0;T<x;T++)u[m[T]]=v}else u[y]=v}return this.options.layoutId&&(u.pointerEvents=d===this?ud(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var o;return(o=s.currentAnimation)===null||o===void 0?void 0:o.stop()}),this.root.nodes.forEach(AT),this.root.sharedNodes.clear()}}}function XP(e){e.updateLayout()}function KP(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:a}=e.layout,{animationType:r}=e.options,s=n.source!==e.layout.source;r==="size"?si(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],h=zn(f);f.min=i[d].min,f.max=f.min+h}):MT(r,n.layoutBox,i)&&si(d=>{const f=s?n.measuredBox[d]:n.layoutBox[d],h=zn(i[d]);f.max=f.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const o=Qs();jl(o,i,n.layoutBox);const l=Qs();s?jl(l,e.applyTransform(a,!0),n.measuredBox):jl(l,i,n.layoutBox);const u=!bT(o);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:h}=d;if(f&&h){const g=Tt();zl(g,n.layoutBox,f.layoutBox);const y=Tt();zl(y,i,h.layoutBox),xT(g,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:l,layoutDelta:o,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function QP(e){Hl&&$r.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 WP(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ZP(e){e.clearSnapshot()}function AT(e){e.clearMeasurements()}function JP(e){e.isLayoutDirty=!1}function e9(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function CT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function t9(e){e.resolveTargetDelta()}function n9(e){e.calcProjection()}function i9(e){e.resetSkewAndRotation()}function a9(e){e.removeLeadSnapshot()}function kT(e,t,n){e.translate=ft(t.translate,0,n),e.scale=ft(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function OT(e,t,n,i){e.min=ft(t.min,n.min,i),e.max=ft(t.max,n.max,i)}function r9(e,t,n,i){OT(e.x,t.x,n.x,i),OT(e.y,t.y,n.y,i)}function s9(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const o9={duration:.45,ease:[.4,0,.1,1]},NT=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),RT=NT("applewebkit/")&&!NT("chrome/")?Math.round:jn;function DT(e){e.min=RT(e.min),e.max=RT(e.max)}function l9(e){DT(e.x),DT(e.y)}function MT(e,t,n){return e==="position"||e==="preserve-aspect"&&!dP(_T(t),_T(n),.2)}function u9(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const c9=ST({attachResizeListener:(e,t)=>Il(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),zm={current:void 0},LT=ST({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!zm.current){const e=new c9({});e.mount(window),e.setOptions({layoutScroll:!0}),zm.current=e}return zm.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),d9={pan:{Feature:CP},drag:{Feature:AP,ProjectionNode:LT,MeasureLayout:rT}};function IT(e,t,n){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,r=i[a];r&&at.postRender(()=>r(t,Pl(t)))}class f9 extends Qa{mount(){const{current:t}=this.node;t&&(this.unmount=fI(t,n=>(IT(this.node,n,"Start"),i=>IT(this.node,i,"End"))))}unmount(){}}class h9 extends Qa{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=Ll(Il(this.node.current,"focus",()=>this.onFocus()),Il(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function PT(e,t,n){const{props:i}=e;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),r=i[a];r&&at.postRender(()=>r(t,Pl(t)))}class p9 extends Qa{mount(){const{current:t}=this.node;t&&(this.unmount=gI(t,n=>(PT(this.node,n,"Start"),(i,{success:a})=>PT(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Um=new WeakMap,Hm=new WeakMap,m9=e=>{const t=Um.get(e.target);t&&t(e)},g9=e=>{e.forEach(m9)};function b9({root:e,...t}){const n=e||document;Hm.has(n)||Hm.set(n,{});const i=Hm.get(n),a=JSON.stringify(t);return i[a]||(i[a]=new IntersectionObserver(g9,{root:e,...t})),i[a]}function v9(e,t,n){const i=b9(t);return Um.set(e,n),i.observe(e),()=>{Um.delete(e),i.unobserve(e)}}const y9={some:0,all:1};class x9 extends Qa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:i,amount:a="some",once:r}=t,s={root:n?n.current:void 0,rootMargin:i,threshold:typeof a=="number"?a:y9[a]},o=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,r&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(l)};return v9(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(_9(t,n))&&this.startObserver()}unmount(){}}function _9({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const E9={inView:{Feature:x9},tap:{Feature:p9},focus:{Feature:h9},hover:{Feature:f9}},T9={layout:{ProjectionNode:LT,MeasureLayout:rT}},Fm={current:null},BT={current:!1};function w9(){if(BT.current=!0,!!Bp)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Fm.current=e.matches;e.addListener(t),t()}else Fm.current=!1}const S9=[...fE,sn,Ka],A9=e=>S9.find(dE(e)),jT=new WeakMap;function C9(e,t,n){for(const i in t){const a=t[i],r=n[i];if(rn(a))e.addValue(i,a);else if(rn(r))e.addValue(i,Nl(a,{owner:e}));else if(r!==a)if(e.hasValue(i)){const s=e.getValue(i);s.liveStyle===!0?s.jump(a):s.hasAnimated||s.set(a)}else{const s=e.getStaticValue(i);e.addValue(i,Nl(s!==void 0?s:a,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const zT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class k9{scrapeMotionValuesFromProps(t,n,i){return{}}constructor({parent:t,props:n,presenceContext:i,reducedMotionConfig:a,blockInitialAnimation:r,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=_m,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=()=>{const h=Yi.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,at.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:c}=s;this.onUpdate=c,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=ld(n),this.isVariantNode=r_(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in f){const g=f[h];l[h]!==void 0&&rn(g)&&g.set(l[h],!1)}}mount(t){this.current=t,jT.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((n,i)=>this.bindToMotionValue(i,n)),BT.current||w9(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Fm.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){jT.delete(this.current),this.projection&&this.projection.unmount(),$a(this.notifyUpdate),$a(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const i=Fr.has(t),a=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&at.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),r=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),r(),s&&s(),n.owner&&n.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 Ys){const n=Ys[t];if(!n)continue;const{isEnabled:i,Feature:a}=n;if(!this.features[t]&&a&&i(this.props)&&(this.features[t]=new a(this)),this.features[t]){const r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Tt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<zT.length;i++){const a=zT[i];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const r="on"+a,s=t[r];s&&(this.propEventSubscriptions[a]=this.on(a,s))}this.prevMotionValues=C9(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const i=this.values.get(t);n!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&n!==void 0&&(i=Nl(n===null?void 0:n,{owner:this}),this.addValue(t,i)),i}readValue(t,n){var i;let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(i=this.getBaseTargetFromProps(this.props,t))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(uE(a)||Q_(a))?a=parseFloat(a):!A9(a)&&Ka.test(n)&&(a=iE(t,n)),this.setBaseTarget(t,rn(a)?a.get():a)),rn(a)?a.get():a}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:i}=this.props;let a;if(typeof i=="string"||typeof i=="object"){const s=qp(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(a=s[t])}if(i&&a!==void 0)return a;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!rn(r)?r:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new um),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class UT extends k9{constructor(){super(...arguments),this.KeyframeResolver=pE}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:i}){delete n[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;rn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function O9(e){return window.getComputedStyle(e)}class N9 extends UT{constructor(){super(...arguments),this.type="html",this.renderInstance=y_}readValueFromInstance(t,n){if(Fr.has(n)){const i=vm(n);return i&&i.default||0}else{const i=O9(t),a=(h_(n)?i.getPropertyValue(n):i[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return tT(t,n)}build(t,n,i){Kp(t,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,i){return Jp(t,n,i)}}class R9 extends UT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Tt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Fr.has(n)){const i=vm(n);return i&&i.default||0}return n=x_.has(n)?n:Fp(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,i){return T_(t,n,i)}build(t,n,i){Qp(t,n,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,i,a){__(t,n,i,a)}mount(t){this.isSVGTag=Zp(t.tagName),super.mount(t)}}const D9=(e,t)=>Yp(e)?new R9(t):new N9(t,{allowProjection:e!==_.Fragment}),M9=rI({...nP,...E9,...d9,...T9},D9),Fl=_L(M9),HT=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,FT=Vx,VT=(e,t)=>n=>{var i;if((t==null?void 0:t.variants)==null)return FT(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:r}=t,s=Object.keys(a).map(u=>{const c=n==null?void 0:n[u],d=r==null?void 0:r[u];if(c===null)return null;const f=HT(c)||HT(d);return a[u][f]}),o=n&&Object.entries(n).reduce((u,c)=>{let[d,f]=c;return f===void 0||(u[d]=f),u},{}),l=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((u,c)=>{let{class:d,className:f,...h}=c;return Object.entries(h).every(g=>{let[y,E]=g;return Array.isArray(E)?E.includes({...r,...o}[y]):{...r,...o}[y]===E})?[...u,d,f]:u},[]);return FT(e,s,l,n==null?void 0:n.class,n==null?void 0:n.className)};function YT(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,a=n.indexOf(t);for(;a!==-1;)i++,a=n.indexOf(t,a+t.length);return i}function xJ(){}function _J(){}const vn=Wa(/[A-Za-z]/),on=Wa(/[\dA-Za-z]/),L9=Wa(/[#-'*+\--9=?A-Z^-~]/);function Ed(e){return e!==null&&(e<32||e===127)}const Vm=Wa(/\d/),I9=Wa(/[\dA-Fa-f]/),P9=Wa(/[!-/:-@[-`{-~]/);function he(e){return e!==null&&e<-2}function Xe(e){return e!==null&&(e<0||e===32)}function Ne(e){return e===-2||e===-1||e===32}const Td=Wa(new RegExp("\\p{P}|\\p{S}","u")),Xr=Wa(/\s/);function Wa(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function B9(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const wd=function(e){if(e==null)return H9;if(typeof e=="function")return Sd(e);if(typeof e=="object")return Array.isArray(e)?j9(e):z9(e);if(typeof e=="string")return U9(e);throw new Error("Expected function, string, or object as test")};function j9(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=wd(e[n]);return Sd(i);function i(...a){let r=-1;for(;++r<t.length;)if(t[r].apply(this,a))return!0;return!1}}function z9(e){const t=e;return Sd(n);function n(i){const a=i;let r;for(r in e)if(a[r]!==t[r])return!1;return!0}}function U9(e){return Sd(t);function t(n){return n&&n.type===e}}function Sd(e){return t;function t(n,i,a){return!!(F9(n)&&e.call(this,n,typeof i=="number"?i:void 0,a||void 0))}}function H9(){return!0}function F9(e){return e!==null&&typeof e=="object"&&"type"in e}function EJ(e){return e}const qT=[],V9=!0,Ym=!1,Y9="skip";function GT(e,t,n,i){let a;typeof t=="function"&&typeof n!="function"?(i=n,n=t):a=t;const r=wd(a),s=i?-1:1;o(e,void 0,[])();function o(l,u,c){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const h=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return f;function f(){let h=qT,g,y,E;if((!t||r(l,u,c[c.length-1]||void 0))&&(h=q9(n(l,c)),h[0]===Ym))return h;if("children"in l&&l.children){const m=l;if(m.children&&h[0]!==Y9)for(y=(i?m.children.length:-1)+s,E=c.concat(m);y>-1&&y<m.children.length;){const v=m.children[y];if(g=o(v,y,E)(),g[0]===Ym)return g;y=typeof g[1]=="number"?g[1]:y+s}}return h}}}function q9(e){return Array.isArray(e)?e:typeof e=="number"?[V9,e]:e==null?qT:[e]}function G9(e,t,n){const a=wd((n||{}).ignore||[]),r=$9(t);let s=-1;for(;++s<r.length;)GT(e,"text",o);function o(u,c){let d=-1,f;for(;++d<c.length;){const h=c[d],g=f?f.children:void 0;if(a(h,g?g.indexOf(h):void 0,f))return;f=h}if(f)return l(u,c)}function l(u,c){const d=c[c.length-1],f=r[s][0],h=r[s][1];let g=0;const E=d.children.indexOf(u);let m=!1,v=[];f.lastIndex=0;let x=f.exec(u.value);for(;x;){const T=x.index,S={index:x.index,input:x.input,stack:[...c,u]};let A=h(...x,S);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?f.lastIndex=T+1:(g!==T&&v.push({type:"text",value:u.value.slice(g,T)}),Array.isArray(A)?v.push(...A):A&&v.push(A),g=T+x[0].length,m=!0),!f.global)break;x=f.exec(u.value)}return m?(g<u.value.length&&v.push({type:"text",value:u.value.slice(g)}),d.children.splice(E,1,...v)):v=[u],E+v.length}}function $9(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<n.length;){const a=n[i];t.push([X9(a[0]),K9(a[1])])}return t}function X9(e){return typeof e=="string"?new RegExp(B9(e),"g"):e}function K9(e){return typeof e=="function"?e:function(){return e}}const qm="phrasing",Gm=["autolink","link","image","label"];function Q9(){return{transforms:[i7],enter:{literalAutolink:Z9,literalAutolinkEmail:$m,literalAutolinkHttp:$m,literalAutolinkWww:$m},exit:{literalAutolink:n7,literalAutolinkEmail:t7,literalAutolinkHttp:J9,literalAutolinkWww:e7}}}function W9(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:qm,notInConstruct:Gm},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:qm,notInConstruct:Gm},{character:":",before:"[ps]",after:"\\/",inConstruct:qm,notInConstruct:Gm}]}}function Z9(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function $m(e){this.config.enter.autolinkProtocol.call(this,e)}function J9(e){this.config.exit.autolinkProtocol.call(this,e)}function e7(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function t7(e){this.config.exit.autolinkEmail.call(this,e)}function n7(e){this.exit(e)}function i7(e){G9(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,a7],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,r7]],{ignore:["link","linkReference"]})}function a7(e,t,n,i,a){let r="";if(!$T(a)||(/^w/i.test(t)&&(n=t+n,t="",r="http://"),!s7(n)))return!1;const s=o7(n+i);if(!s[0])return!1;const o={type:"link",title:null,url:r+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function r7(e,t,n,i){return!$T(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function s7(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function o7(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const a=YT(e,"(");let r=YT(e,")");for(;i!==-1&&a>r;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),r++;return[e,n]}function $T(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Xr(n)||Td(n))&&(!t||n!==47)}function Ci(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}XT.peek=g7;function l7(){this.buffer()}function u7(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function c7(){this.buffer()}function d7(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function f7(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ci(this.sliceSerialize(e)).toLowerCase(),n.label=t}function h7(e){this.exit(e)}function p7(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ci(this.sliceSerialize(e)).toLowerCase(),n.label=t}function m7(e){this.exit(e)}function g7(){return"["}function XT(e,t,n,i){const a=n.createTracker(i);let r=a.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return r+=a.move(n.safe(n.associationId(e),{after:"]",before:r})),o(),s(),r+=a.move("]"),r}function b7(){return{enter:{gfmFootnoteCallString:l7,gfmFootnoteCall:u7,gfmFootnoteDefinitionLabelString:c7,gfmFootnoteDefinition:d7},exit:{gfmFootnoteCallString:f7,gfmFootnoteCall:h7,gfmFootnoteDefinitionLabelString:p7,gfmFootnoteDefinition:m7}}}function v7(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:XT},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,a,r,s){const o=r.createTracker(s);let l=o.move("[^");const u=r.enter("footnoteDefinition"),c=r.enter("label");return l+=o.move(r.safe(r.associationId(i),{before:l,after:"]"})),c(),l+=o.move("]:"),i.children&&i.children.length>0&&(o.shift(4),l+=o.move((t?`
267
- `:" ")+r.indentLines(r.containerFlow(i,o.current()),t?KT:y7))),u(),l}}function y7(e,t,n){return t===0?e:KT(e,t,n)}function KT(e,t,n){return(n?"":" ")+e}const x7=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];QT.peek=S7;function _7(){return{canContainEols:["delete"],enter:{strikethrough:T7},exit:{strikethrough:w7}}}function E7(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:x7}],handlers:{delete:QT}}}function T7(e){this.enter({type:"delete",children:[]},e)}function w7(e){this.exit(e)}function QT(e,t,n,i){const a=n.createTracker(i),r=n.enter("strikethrough");let s=a.move("~~");return s+=n.containerPhrasing(e,{...a.current(),before:s,after:"~"}),s+=a.move("~~"),r(),s}function S7(){return"~"}function A7(e){return e.length}function C7(e,t){const n=t||{},i=(n.align||[]).concat(),a=n.stringLength||A7,r=[],s=[],o=[],l=[];let u=0,c=-1;for(;++c<e.length;){const y=[],E=[];let m=-1;for(e[c].length>u&&(u=e[c].length);++m<e[c].length;){const v=k7(e[c][m]);if(n.alignDelimiters!==!1){const x=a(v);E[m]=x,(l[m]===void 0||x>l[m])&&(l[m]=x)}y.push(v)}s[c]=y,o[c]=E}let d=-1;if(typeof i=="object"&&"length"in i)for(;++d<u;)r[d]=WT(i[d]);else{const y=WT(i);for(;++d<u;)r[d]=y}d=-1;const f=[],h=[];for(;++d<u;){const y=r[d];let E="",m="";y===99?(E=":",m=":"):y===108?E=":":y===114&&(m=":");let v=n.alignDelimiters===!1?1:Math.max(1,l[d]-E.length-m.length);const x=E+"-".repeat(v)+m;n.alignDelimiters!==!1&&(v=E.length+v+m.length,v>l[d]&&(l[d]=v),h[d]=v),f[d]=x}s.splice(1,0,f),o.splice(1,0,h),c=-1;const g=[];for(;++c<s.length;){const y=s[c],E=o[c];d=-1;const m=[];for(;++d<u;){const v=y[d]||"";let x="",T="";if(n.alignDelimiters!==!1){const S=l[d]-(E[d]||0),A=r[d];A===114?x=" ".repeat(S):A===99?S%2?(x=" ".repeat(S/2+.5),T=" ".repeat(S/2-.5)):(x=" ".repeat(S/2),T=x):T=" ".repeat(S)}n.delimiterStart!==!1&&!d&&m.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&v==="")&&(n.delimiterStart!==!1||d)&&m.push(" "),n.alignDelimiters!==!1&&m.push(x),m.push(v),n.alignDelimiters!==!1&&m.push(T),n.padding!==!1&&m.push(" "),(n.delimiterEnd!==!1||d!==u-1)&&m.push("|")}g.push(n.delimiterEnd===!1?m.join("").replace(/ +$/,""):m.join(""))}return g.join(`
268
- `)}function k7(e){return e==null?"":String(e)}function WT(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const ZT={}.hasOwnProperty;function JT(e,t){const n=t||{};function i(a,...r){let s=i.invalid;const o=i.handlers;if(a&&ZT.call(a,e)){const l=String(a[e]);s=ZT.call(o,l)?o[l]:i.unknown}if(s)return s.call(this,a,...r)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}function O7(e,t,n,i){const a=n.enter("blockquote"),r=n.createTracker(i);r.move("> "),r.shift(2);const s=n.indentLines(n.containerFlow(e,r.current()),N7);return a(),s}function N7(e,t,n){return">"+(n?"":" ")+e}function R7(e,t){return e2(e,t.inConstruct,!0)&&!e2(e,t.notInConstruct,!1)}function e2(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function t2(e,t,n,i){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
269
- `&&R7(n.stack,n.unsafe[a]))return/[ \t]/.test(i.before)?"":" ";return`\\
270
- `}function D7(e,t){const n=String(e);let i=n.indexOf(t),a=i,r=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===a?++r>s&&(s=r):r=1,a=i+t.length,i=n.indexOf(t,a);return s}function M7(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function L7(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function I7(e,t,n,i){const a=L7(n),r=e.value||"",s=a==="`"?"GraveAccent":"Tilde";if(M7(e,n)){const d=n.enter("codeIndented"),f=n.indentLines(r,P7);return d(),f}const o=n.createTracker(i),l=a.repeat(Math.max(D7(r,a)+1,3)),u=n.enter("codeFenced");let c=o.move(l);if(e.lang){const d=n.enter(`codeFencedLang${s}`);c+=o.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${s}`);c+=o.move(" "),c+=o.move(n.safe(e.meta,{before:c,after:`
271
- `,encode:["`"],...o.current()})),d()}return c+=o.move(`
272
- `),r&&(c+=o.move(r+`
273
- `)),c+=o.move(l),u(),c}function P7(e,t,n){return(n?"":" ")+e}function Xm(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function B7(e,t,n,i){const a=Xm(n),r=a==='"'?"Quote":"Apostrophe",s=n.enter("definition");let o=n.enter("label");const l=n.createTracker(i);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":`
274
- `,...l.current()}))),o(),e.title&&(o=n.enter(`title${r}`),u+=l.move(" "+a),u+=l.move(n.safe(e.title,{before:u,after:a,...l.current()})),u+=l.move(a),o()),s(),u}function j7(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Vl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Js(e){if(e===null||Xe(e)||Xr(e))return 1;if(Td(e))return 2}function Ad(e,t,n){const i=Js(e),a=Js(t);return i===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}n2.peek=z7;function n2(e,t,n,i){const a=j7(n),r=n.enter("emphasis"),s=n.createTracker(i),o=s.move(a);let l=s.move(n.containerPhrasing(e,{after:a,before:o,...s.current()}));const u=l.charCodeAt(0),c=Ad(i.before.charCodeAt(i.before.length-1),u,a);c.inside&&(l=Vl(u)+l.slice(1));const d=l.charCodeAt(l.length-1),f=Ad(i.after.charCodeAt(0),d,a);f.inside&&(l=l.slice(0,-1)+Vl(d));const h=s.move(a);return r(),n.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},o+l+h}function z7(e,t,n){return n.options.emphasis||"*"}function Cd(e,t,n,i){let a,r,s;typeof t=="function"&&typeof n!="function"?(r=void 0,s=t,a=n):(r=t,s=n,a=i),GT(e,r,o,a);function o(l,u){const c=u[u.length-1],d=c?c.children.indexOf(l):void 0;return s(l,d,c)}}const U7={};function Km(e,t){const n=U7,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return i2(e,i,a)}function i2(e,t,n){if(H7(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return a2(e.children,t,n)}return Array.isArray(e)?a2(e,t,n):""}function a2(e,t,n){const i=[];let a=-1;for(;++a<e.length;)i[a]=i2(e[a],t,n);return i.join("")}function H7(e){return!!(e&&typeof e=="object")}function F7(e,t){let n=!1;return Cd(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,Ym}),!!((!e.depth||e.depth<3)&&Km(e)&&(t.options.setext||n))}function V7(e,t,n,i){const a=Math.max(Math.min(6,e.depth||1),1),r=n.createTracker(i);if(F7(e,n)){const c=n.enter("headingSetext"),d=n.enter("phrasing"),f=n.containerPhrasing(e,{...r.current(),before:`
275
- `,after:`
276
- `});return d(),c(),f+`
277
- `+(a===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(`
278
- `))+1))}const s="#".repeat(a),o=n.enter("headingAtx"),l=n.enter("phrasing");r.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
279
- `,...r.current()});return/^[\t ]/.test(u)&&(u=Vl(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),o(),u}r2.peek=Y7;function r2(e){return e.value||""}function Y7(){return"<"}s2.peek=q7;function s2(e,t,n,i){const a=Xm(n),r=a==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const l=n.createTracker(i);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=n.enter(`title${r}`),u+=l.move(" "+a),u+=l.move(n.safe(e.title,{before:u,after:a,...l.current()})),u+=l.move(a),o()),u+=l.move(")"),s(),u}function q7(){return"!"}o2.peek=G7;function o2(e,t,n,i){const a=e.referenceType,r=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(i);let l=o.move("![");const u=n.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=c,r(),a==="full"||!u||u!==d?l+=o.move(d+"]"):a==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function G7(){return"!"}l2.peek=$7;function l2(e,t,n){let i=e.value||"",a="`",r=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(i);)a+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++r<n.unsafe.length;){const s=n.unsafe[r],o=n.compilePattern(s);let l;if(s.atBreak)for(;l=o.exec(i);){let u=l.index;i.charCodeAt(u)===10&&i.charCodeAt(u-1)===13&&u--,i=i.slice(0,u)+" "+i.slice(l.index+1)}}return a+i+a}function $7(){return"`"}function u2(e,t){const n=Km(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}c2.peek=X7;function c2(e,t,n,i){const a=Xm(n),r=a==='"'?"Quote":"Apostrophe",s=n.createTracker(i);let o,l;if(u2(e,n)){const c=n.stack;n.stack=[],o=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),o(),n.stack=c,d}o=n.enter("link"),l=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${r}`),u+=s.move(" "+a),u+=s.move(n.safe(e.title,{before:u,after:a,...s.current()})),u+=s.move(a),l()),u+=s.move(")"),o(),u}function X7(e,t,n){return u2(e,n)?"<":"["}d2.peek=K7;function d2(e,t,n,i){const a=e.referenceType,r=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(i);let l=o.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=c,r(),a==="full"||!u||u!==d?l+=o.move(d+"]"):a==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function K7(){return"["}function Qm(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Q7(e){const t=Qm(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function W7(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function f2(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Z7(e,t,n,i){const a=n.enter("list"),r=n.bulletCurrent;let s=e.ordered?W7(n):Qm(n);const o=e.ordered?s==="."?")":".":Q7(n);let l=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),f2(n)===s&&c){let d=-1;for(;++d<e.children.length;){const f=e.children[d];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=o),n.bulletCurrent=s;const u=n.containerFlow(e,i);return n.bulletLastUsed=s,n.bulletCurrent=r,a(),u}function J7(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function eB(e,t,n,i){const a=J7(n);let r=n.bulletCurrent||Qm(n);t&&t.type==="list"&&t.ordered&&(r=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+r);let s=r.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(i);o.move(r+" ".repeat(s-r.length)),o.shift(s);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),c);return l(),u;function c(d,f,h){return f?(h?"":" ".repeat(s))+d:(h?r:r+" ".repeat(s-r.length))+d}}function tB(e,t,n,i){const a=n.enter("paragraph"),r=n.enter("phrasing"),s=n.containerPhrasing(e,i);return r(),a(),s}const nB=wd(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function iB(e,t,n,i){return(e.children.some(function(s){return nB(s)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function aB(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}h2.peek=rB;function h2(e,t,n,i){const a=aB(n),r=n.enter("strong"),s=n.createTracker(i),o=s.move(a+a);let l=s.move(n.containerPhrasing(e,{after:a,before:o,...s.current()}));const u=l.charCodeAt(0),c=Ad(i.before.charCodeAt(i.before.length-1),u,a);c.inside&&(l=Vl(u)+l.slice(1));const d=l.charCodeAt(l.length-1),f=Ad(i.after.charCodeAt(0),d,a);f.inside&&(l=l.slice(0,-1)+Vl(d));const h=s.move(a+a);return r(),n.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},o+l+h}function rB(e,t,n){return n.options.strong||"*"}function sB(e,t,n,i){return n.safe(e.value,i)}function oB(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function lB(e,t,n){const i=(f2(n)+(n.options.ruleSpaces?" ":"")).repeat(oB(n));return n.options.ruleSpaces?i.slice(0,-1):i}const p2={blockquote:O7,break:t2,code:I7,definition:B7,emphasis:n2,hardBreak:t2,heading:V7,html:r2,image:s2,imageReference:o2,inlineCode:l2,link:c2,linkReference:d2,list:Z7,listItem:eB,paragraph:tB,root:iB,strong:h2,text:sB,thematicBreak:lB},m2=document.createElement("i");function Wm(e){const t="&"+e+";";m2.innerHTML=t;const n=m2.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function g2(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const uB=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function cB(e){return e.replace(uB,dB)}function dB(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),r=a===120||a===88;return g2(n.slice(r?2:1),r?16:10)}return Wm(n)||e}function fB(){return{enter:{table:hB,tableData:b2,tableHeader:b2,tableRow:mB},exit:{codeText:gB,table:pB,tableData:Zm,tableHeader:Zm,tableRow:Zm}}}function hB(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function pB(e){this.exit(e),this.data.inTable=void 0}function mB(e){this.enter({type:"tableRow",children:[]},e)}function Zm(e){this.exit(e)}function b2(e){this.enter({type:"tableCell",children:[]},e)}function gB(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,bB));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function bB(e,t){return t==="|"?t:e}function vB(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,a=t.stringLength,r=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
280
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:s,tableCell:l,tableRow:o}};function s(h,g,y,E){return u(c(h,y,E),h.align)}function o(h,g,y,E){const m=d(h,y,E),v=u([m]);return v.slice(0,v.indexOf(`
281
- `))}function l(h,g,y,E){const m=y.enter("tableCell"),v=y.enter("phrasing"),x=y.containerPhrasing(h,{...E,before:r,after:r});return v(),m(),x}function u(h,g){return C7(h,{align:g,alignDelimiters:i,padding:n,stringLength:a})}function c(h,g,y){const E=h.children;let m=-1;const v=[],x=g.enter("table");for(;++m<E.length;)v[m]=d(E[m],g,y);return x(),v}function d(h,g,y){const E=h.children;let m=-1;const v=[],x=g.enter("tableRow");for(;++m<E.length;)v[m]=l(E[m],h,g,y);return x(),v}function f(h,g,y){let E=p2.inlineCode(h,g,y);return y.stack.includes("tableCell")&&(E=E.replace(/\|/g,"\\$&")),E}}function yB(){return{exit:{taskListCheckValueChecked:v2,taskListCheckValueUnchecked:v2,paragraph:_B}}}function xB(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:EB}}}function v2(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function _B(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const a=t.children;let r=-1,s;for(;++r<a.length;){const o=a[r];if(o.type==="paragraph"){s=o;break}}s===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function EB(e,t,n,i){const a=e.children[0],r=typeof e.checked=="boolean"&&a&&a.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=n.createTracker(i);r&&o.move(s);let l=p2.listItem(e,t,n,{...i,...o.current()});return r&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+s}}function TB(){return[Q9(),b7(),_7(),fB(),yB()]}function wB(e){return{extensions:[W9(),v7(e),E7(),vB(e),xB()]}}function Un(e,t,n,i){const a=e.length;let r=0,s;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,i.length<1e4)s=Array.from(i),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);r<i.length;)s=i.slice(r,r+1e4),s.unshift(t,0),e.splice(...s),r+=1e4,t+=1e4}function li(e,t){return e.length>0?(Un(e,e.length,0,t),e):t}const y2={}.hasOwnProperty;function x2(e){const t={};let n=-1;for(;++n<e.length;)SB(t,e[n]);return t}function SB(e,t){let n;for(n in t){const a=(y2.call(e,n)?e[n]:void 0)||(e[n]={}),r=t[n];let s;if(r)for(s in r){y2.call(a,s)||(a[s]=[]);const o=r[s];AB(a[s],Array.isArray(o)?o:o?[o]:[])}}}function AB(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);Un(e,0,0,i)}const CB={tokenize:MB,partial:!0},_2={tokenize:LB,partial:!0},E2={tokenize:IB,partial:!0},T2={tokenize:PB,partial:!0},kB={tokenize:BB,partial:!0},w2={name:"wwwAutolink",tokenize:RB,previous:A2},S2={name:"protocolAutolink",tokenize:DB,previous:C2},pa={name:"emailAutolink",tokenize:NB,previous:k2},qi={};function OB(){return{text:qi}}let Kr=48;for(;Kr<123;)qi[Kr]=pa,Kr++,Kr===58?Kr=65:Kr===91&&(Kr=97);qi[43]=pa,qi[45]=pa,qi[46]=pa,qi[95]=pa,qi[72]=[pa,S2],qi[104]=[pa,S2],qi[87]=[pa,w2],qi[119]=[pa,w2];function NB(e,t,n){const i=this;let a,r;return s;function s(d){return!Jm(d)||!k2.call(i,i.previous)||e0(i.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(d))}function o(d){return Jm(d)?(e.consume(d),o):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(kB,c,u)(d):d===45||d===95||on(d)?(r=!0,e.consume(d),l):c(d)}function u(d){return e.consume(d),a=!0,l}function c(d){return r&&a&&vn(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function RB(e,t,n){const i=this;return a;function a(s){return s!==87&&s!==119||!A2.call(i,i.previous)||e0(i.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(CB,e.attempt(_2,e.attempt(E2,r),n),n)(s))}function r(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function DB(e,t,n){const i=this;let a="",r=!1;return s;function s(d){return(d===72||d===104)&&C2.call(i,i.previous)&&!e0(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(d),e.consume(d),o):n(d)}function o(d){if(vn(d)&&a.length<5)return a+=String.fromCodePoint(d),e.consume(d),o;if(d===58){const f=a.toLowerCase();if(f==="http"||f==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),r?u:(r=!0,l)):n(d)}function u(d){return d===null||Ed(d)||Xe(d)||Xr(d)||Td(d)?n(d):e.attempt(_2,e.attempt(E2,c),n)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function MB(e,t,n){let i=0;return a;function a(s){return(s===87||s===119)&&i<3?(i++,e.consume(s),a):s===46&&i===3?(e.consume(s),r):n(s)}function r(s){return s===null?n(s):t(s)}}function LB(e,t,n){let i,a,r;return s;function s(u){return u===46||u===95?e.check(T2,l,o)(u):u===null||Xe(u)||Xr(u)||u!==45&&Td(u)?l(u):(r=!0,e.consume(u),s)}function o(u){return u===95?i=!0:(a=i,i=void 0),e.consume(u),s}function l(u){return a||i||!r?n(u):t(u)}}function IB(e,t){let n=0,i=0;return a;function a(s){return s===40?(n++,e.consume(s),a):s===41&&i<n?r(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(T2,t,r)(s):s===null||Xe(s)||Xr(s)?t(s):(e.consume(s),a)}function r(s){return s===41&&i++,e.consume(s),a}}function PB(e,t,n){return i;function i(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),i):o===38?(e.consume(o),r):o===93?(e.consume(o),a):o===60||o===null||Xe(o)||Xr(o)?t(o):n(o)}function a(o){return o===null||o===40||o===91||Xe(o)||Xr(o)?t(o):i(o)}function r(o){return vn(o)?s(o):n(o)}function s(o){return o===59?(e.consume(o),i):vn(o)?(e.consume(o),s):n(o)}}function BB(e,t,n){return i;function i(r){return e.consume(r),a}function a(r){return on(r)?n(r):t(r)}}function A2(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Xe(e)}function C2(e){return!vn(e)}function k2(e){return!(e===47||Jm(e))}function Jm(e){return e===43||e===45||e===46||e===95||on(e)}function e0(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function eo(e){const t=[];let n=-1,i=0,a=0;for(;++n<e.length;){const r=e.charCodeAt(n);let s="";if(r===37&&on(e.charCodeAt(n+1))&&on(e.charCodeAt(n+2)))a=2;else if(r<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(r))||(s=String.fromCharCode(r));else if(r>55295&&r<57344){const o=e.charCodeAt(n+1);r<56320&&o>56319&&o<57344?(s=String.fromCharCode(r,o),a=1):s="�"}else s=String.fromCharCode(r);s&&(t.push(e.slice(i,n),encodeURIComponent(s)),i=n+a+1,s=""),a&&(n+=a,a=0)}return t.join("")+e.slice(i)}function kd(e,t,n){const i=[];let a=-1;for(;++a<e.length;){const r=e[a].resolveAll;r&&!i.includes(r)&&(t=r(t,n),i.push(r))}return t}const t0={name:"attention",resolveAll:jB,tokenize:zB};function jB(e,t){let n=-1,i,a,r,s,o,l,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[i][1].end},f={...e[n][1].start};O2(d,-l),O2(f,l),s={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[i][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},r={type:l>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},a={type:l>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[i][1].end={...s.start},e[n][1].start={...o.end},u=[],e[i][1].end.offset-e[i][1].start.offset&&(u=li(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=li(u,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",r,t]]),u=li(u,kd(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),u=li(u,[["exit",r,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=li(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Un(e,i-1,n-i+3,u),n=i+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function zB(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,a=Js(i);let r;return s;function s(l){return r=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===r)return e.consume(l),o;const u=e.exit("attentionSequence"),c=Js(l),d=!c||c===2&&a||n.includes(l),f=!a||a===2&&c||n.includes(i);return u._open=!!(r===42?d:d&&(a||!f)),u._close=!!(r===42?f:f&&(c||!d)),t(l)}}function O2(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const UB={name:"autolink",tokenize:HB};function HB(e,t,n){let i=0;return a;function a(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),r}function r(h){return vn(h)?(e.consume(h),s):h===64?n(h):u(h)}function s(h){return h===43||h===45||h===46||on(h)?(i=1,o(h)):u(h)}function o(h){return h===58?(e.consume(h),i=0,l):(h===43||h===45||h===46||on(h))&&i++<32?(e.consume(h),o):(i=0,u(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Ed(h)?n(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):L9(h)?(e.consume(h),u):n(h)}function c(h){return on(h)?d(h):n(h)}function d(h){return h===46?(e.consume(h),i=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):f(h)}function f(h){if((h===45||on(h))&&i++<63){const g=h===45?f:d;return e.consume(h),g}return n(h)}}function Le(e,t,n,i){const a=i?i-1:Number.POSITIVE_INFINITY;let r=0;return s;function s(l){return Ne(l)?(e.enter(n),o(l)):t(l)}function o(l){return Ne(l)&&r++<a?(e.consume(l),o):(e.exit(n),t(l))}}const Yl={partial:!0,tokenize:FB};function FB(e,t,n){return i;function i(r){return Ne(r)?Le(e,a,"linePrefix")(r):a(r)}function a(r){return r===null||he(r)?t(r):n(r)}}const N2={continuation:{tokenize:YB},exit:qB,name:"blockQuote",tokenize:VB};function VB(e,t,n){const i=this;return a;function a(s){if(s===62){const o=i.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),r}return n(s)}function r(s){return Ne(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function YB(e,t,n){const i=this;return a;function a(s){return Ne(s)?Le(e,r,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):r(s)}function r(s){return e.attempt(N2,t,n)(s)}}function qB(e){e.exit("blockQuote")}const R2={name:"characterEscape",tokenize:GB};function GB(e,t,n){return i;function i(r){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(r),e.exit("escapeMarker"),a}function a(r){return P9(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}const D2={name:"characterReference",tokenize:$B};function $B(e,t,n){const i=this;let a=0,r,s;return o;function o(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),r=31,s=on,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,s=I9,c):(e.enter("characterReferenceValue"),r=7,s=Vm,c(d))}function c(d){if(d===59&&a){const f=e.exit("characterReferenceValue");return s===on&&!Wm(i.sliceSerialize(f))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&a++<r?(e.consume(d),c):n(d)}}const M2={partial:!0,tokenize:KB},L2={concrete:!0,name:"codeFenced",tokenize:XB};function XB(e,t,n){const i=this,a={partial:!0,tokenize:S};let r=0,s=0,o;return l;function l(A){return u(A)}function u(A){const D=i.events[i.events.length-1];return r=D&&D[1].type==="linePrefix"?D[2].sliceSerialize(D[1],!0).length:0,o=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(A)}function c(A){return A===o?(s++,e.consume(A),c):s<3?n(A):(e.exit("codeFencedFenceSequence"),Ne(A)?Le(e,d,"whitespace")(A):d(A))}function d(A){return A===null||he(A)?(e.exit("codeFencedFence"),i.interrupt?t(A):e.check(M2,y,T)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(A))}function f(A){return A===null||he(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(A)):Ne(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Le(e,h,"whitespace")(A)):A===96&&A===o?n(A):(e.consume(A),f)}function h(A){return A===null||he(A)?d(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(A))}function g(A){return A===null||he(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(A)):A===96&&A===o?n(A):(e.consume(A),g)}function y(A){return e.attempt(a,T,E)(A)}function E(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),m}function m(A){return r>0&&Ne(A)?Le(e,v,"linePrefix",r+1)(A):v(A)}function v(A){return A===null||he(A)?e.check(M2,y,T)(A):(e.enter("codeFlowValue"),x(A))}function x(A){return A===null||he(A)?(e.exit("codeFlowValue"),v(A)):(e.consume(A),x)}function T(A){return e.exit("codeFenced"),t(A)}function S(A,D,L){let B=0;return O;function O(Q){return A.enter("lineEnding"),A.consume(Q),A.exit("lineEnding"),Y}function Y(Q){return A.enter("codeFencedFence"),Ne(Q)?Le(A,U,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):U(Q)}function U(Q){return Q===o?(A.enter("codeFencedFenceSequence"),ae(Q)):L(Q)}function ae(Q){return Q===o?(B++,A.consume(Q),ae):B>=s?(A.exit("codeFencedFenceSequence"),Ne(Q)?Le(A,ee,"whitespace")(Q):ee(Q)):L(Q)}function ee(Q){return Q===null||he(Q)?(A.exit("codeFencedFence"),D(Q)):L(Q)}}}function KB(e,t,n){const i=this;return a;function a(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r)}function r(s){return i.parser.lazy[i.now().line]?n(s):t(s)}}const n0={name:"codeIndented",tokenize:WB},QB={partial:!0,tokenize:ZB};function WB(e,t,n){const i=this;return a;function a(u){return e.enter("codeIndented"),Le(e,r,"linePrefix",5)(u)}function r(u){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):he(u)?e.attempt(QB,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||he(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function ZB(e,t,n){const i=this;return a;function a(s){return i.parser.lazy[i.now().line]?n(s):he(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):Le(e,r,"linePrefix",5)(s)}function r(s){const o=i.events[i.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):he(s)?a(s):n(s)}}const JB={name:"codeText",previous:tj,resolve:ej,tokenize:nj};function ej(e){let t=e.length-4,n=3,i,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)a===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(a=i):(i===t||e[i][1].type==="lineEnding")&&(e[a][1].type="codeTextData",i!==a+2&&(e[a][1].end=e[i-1][1].end,e.splice(a+2,i-a-2),t-=i-a-2,i=a+2),a=void 0);return e}function tj(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function nj(e,t,n){let i=0,a,r;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),o(d)}function o(d){return d===96?(e.consume(d),i++,o):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(r=e.enter("codeTextSequence"),a=0,c(d)):he(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||he(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),u)}function c(d){return d===96?(e.consume(d),a++,c):a===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(r.type="codeTextData",u(d))}}class ij{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const a=n||0;this.setCursor(Math.trunc(t));const r=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return i&&ql(this.left,i),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ql(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ql(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);ql(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ql(this.left,n.reverse())}}}function ql(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function I2(e){const t={};let n=-1,i,a,r,s,o,l,u;const c=new ij(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(i=c.get(n),n&&i[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=i[1]._tokenizer.events,r=0,r<l.length&&l[r][1].type==="lineEndingBlank"&&(r+=2),r<l.length&&l[r][1].type==="content"))for(;++r<l.length&&l[r][1].type!=="content";)l[r][1].type==="chunkText"&&(l[r][1]._isInFirstContentOfListItem=!0,r++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,aj(c,n)),n=t[n],u=!0);else if(i[1]._container){for(r=n,a=void 0;r--;)if(s=c.get(r),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(a&&(c.get(a)[1].type="lineEndingBlank"),s[1].type="lineEnding",a=r);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;a&&(i[1].end={...c.get(a)[1].start},o=c.slice(a,n),o.unshift(i),c.splice(a,n-a+1,o))}}return Un(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function aj(e,t){const n=e.get(t)[1],i=e.get(t)[2];let a=t-1;const r=[];let s=n._tokenizer;s||(s=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,l=[],u={};let c,d,f=-1,h=n,g=0,y=0;const E=[y];for(;h;){for(;e.get(++a)[1]!==h;);r.push(a),h._tokenizer||(c=i.sliceStream(h),h.next||c.push(null),d&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++f<o.length;)o[f][0]==="exit"&&o[f-1][0]==="enter"&&o[f][1].type===o[f-1][1].type&&o[f][1].start.line!==o[f][1].end.line&&(y=f+1,E.push(y),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):E.pop(),f=E.length;f--;){const m=o.slice(E[f],E[f+1]),v=r.pop();l.push([v,v+m.length-1]),e.splice(v,2,m)}for(l.reverse(),f=-1;++f<l.length;)u[g+l[f][0]]=g+l[f][1],g+=l[f][1]-l[f][0]-1;return u}const rj={resolve:oj,tokenize:lj},sj={partial:!0,tokenize:uj};function oj(e){return I2(e),e}function lj(e,t){let n;return i;function i(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(o)}function a(o){return o===null?r(o):he(o)?e.check(sj,s,r)(o):(e.consume(o),a)}function r(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function uj(e,t,n){const i=this;return a;function a(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Le(e,r,"linePrefix")}function r(s){if(s===null||he(s))return n(s);const o=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(i.parser.constructs.flow,n,t)(s)}}function P2(e,t,n,i,a,r,s,o,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(m){return m===60?(e.enter(i),e.enter(a),e.enter(r),e.consume(m),e.exit(r),f):m===null||m===32||m===41||Ed(m)?n(m):(e.enter(i),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),y(m))}function f(m){return m===62?(e.enter(r),e.consume(m),e.exit(r),e.exit(a),e.exit(i),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),h(m))}function h(m){return m===62?(e.exit("chunkString"),e.exit(o),f(m)):m===null||m===60||he(m)?n(m):(e.consume(m),m===92?g:h)}function g(m){return m===60||m===62||m===92?(e.consume(m),h):h(m)}function y(m){return!c&&(m===null||m===41||Xe(m))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(i),t(m)):c<u&&m===40?(e.consume(m),c++,y):m===41?(e.consume(m),c--,y):m===null||m===32||m===40||Ed(m)?n(m):(e.consume(m),m===92?E:y)}function E(m){return m===40||m===41||m===92?(e.consume(m),y):y(m)}}function B2(e,t,n,i,a,r){const s=this;let o=0,l;return u;function u(h){return e.enter(i),e.enter(a),e.consume(h),e.exit(a),e.enter(r),c}function c(h){return o>999||h===null||h===91||h===93&&!l||h===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):h===93?(e.exit(r),e.enter(a),e.consume(h),e.exit(a),e.exit(i),t):he(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===null||h===91||h===93||he(h)||o++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!Ne(h)),h===92?f:d)}function f(h){return h===91||h===92||h===93?(e.consume(h),o++,d):d(h)}}function j2(e,t,n,i,a,r){let s;return o;function o(f){return f===34||f===39||f===40?(e.enter(i),e.enter(a),e.consume(f),e.exit(a),s=f===40?41:f,l):n(f)}function l(f){return f===s?(e.enter(a),e.consume(f),e.exit(a),e.exit(i),t):(e.enter(r),u(f))}function u(f){return f===s?(e.exit(r),l(s)):f===null?n(f):he(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Le(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===s||f===null||he(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===s||f===92?(e.consume(f),c):c(f)}}function Gl(e,t){let n;return i;function i(a){return he(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,i):Ne(a)?Le(e,i,n?"linePrefix":"lineSuffix")(a):t(a)}}const cj={name:"definition",tokenize:fj},dj={partial:!0,tokenize:hj};function fj(e,t,n){const i=this;let a;return r;function r(h){return e.enter("definition"),s(h)}function s(h){return B2.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function o(h){return a=Ci(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return Xe(h)?Gl(e,u)(h):u(h)}function u(h){return P2(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(dj,d,d)(h)}function d(h){return Ne(h)?Le(e,f,"whitespace")(h):f(h)}function f(h){return h===null||he(h)?(e.exit("definition"),i.parser.defined.push(a),t(h)):n(h)}}function hj(e,t,n){return i;function i(o){return Xe(o)?Gl(e,a)(o):n(o)}function a(o){return j2(e,r,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function r(o){return Ne(o)?Le(e,s,"whitespace")(o):s(o)}function s(o){return o===null||he(o)?t(o):n(o)}}const pj={name:"hardBreakEscape",tokenize:mj};function mj(e,t,n){return i;function i(r){return e.enter("hardBreakEscape"),e.consume(r),a}function a(r){return he(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}const gj={name:"headingAtx",resolve:bj,tokenize:vj};function bj(e,t){let n=e.length-2,i=3,a,r;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(a={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},r={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},Un(e,i,n-i+1,[["enter",a,t],["enter",r,t],["exit",r,t],["exit",a,t]])),e}function vj(e,t,n){let i=0;return a;function a(c){return e.enter("atxHeading"),r(c)}function r(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&i++<6?(e.consume(c),s):c===null||Xe(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||he(c)?(e.exit("atxHeading"),t(c)):Ne(c)?Le(e,o,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),o(c))}function u(c){return c===null||c===35||Xe(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),u)}}const yj=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],z2=["pre","script","style","textarea"],xj={concrete:!0,name:"htmlFlow",resolveTo:Tj,tokenize:wj},_j={partial:!0,tokenize:Aj},Ej={partial:!0,tokenize:Sj};function Tj(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function wj(e,t,n){const i=this;let a,r,s,o,l;return u;function u(M){return c(M)}function c(M){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(M),d}function d(M){return M===33?(e.consume(M),f):M===47?(e.consume(M),r=!0,y):M===63?(e.consume(M),a=3,i.interrupt?t:N):vn(M)?(e.consume(M),s=String.fromCharCode(M),E):n(M)}function f(M){return M===45?(e.consume(M),a=2,h):M===91?(e.consume(M),a=5,o=0,g):vn(M)?(e.consume(M),a=4,i.interrupt?t:N):n(M)}function h(M){return M===45?(e.consume(M),i.interrupt?t:N):n(M)}function g(M){const Be="CDATA[";return M===Be.charCodeAt(o++)?(e.consume(M),o===Be.length?i.interrupt?t:U:g):n(M)}function y(M){return vn(M)?(e.consume(M),s=String.fromCharCode(M),E):n(M)}function E(M){if(M===null||M===47||M===62||Xe(M)){const Be=M===47,ge=s.toLowerCase();return!Be&&!r&&z2.includes(ge)?(a=1,i.interrupt?t(M):U(M)):yj.includes(s.toLowerCase())?(a=6,Be?(e.consume(M),m):i.interrupt?t(M):U(M)):(a=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(M):r?v(M):x(M))}return M===45||on(M)?(e.consume(M),s+=String.fromCharCode(M),E):n(M)}function m(M){return M===62?(e.consume(M),i.interrupt?t:U):n(M)}function v(M){return Ne(M)?(e.consume(M),v):O(M)}function x(M){return M===47?(e.consume(M),O):M===58||M===95||vn(M)?(e.consume(M),T):Ne(M)?(e.consume(M),x):O(M)}function T(M){return M===45||M===46||M===58||M===95||on(M)?(e.consume(M),T):S(M)}function S(M){return M===61?(e.consume(M),A):Ne(M)?(e.consume(M),S):x(M)}function A(M){return M===null||M===60||M===61||M===62||M===96?n(M):M===34||M===39?(e.consume(M),l=M,D):Ne(M)?(e.consume(M),A):L(M)}function D(M){return M===l?(e.consume(M),l=null,B):M===null||he(M)?n(M):(e.consume(M),D)}function L(M){return M===null||M===34||M===39||M===47||M===60||M===61||M===62||M===96||Xe(M)?S(M):(e.consume(M),L)}function B(M){return M===47||M===62||Ne(M)?x(M):n(M)}function O(M){return M===62?(e.consume(M),Y):n(M)}function Y(M){return M===null||he(M)?U(M):Ne(M)?(e.consume(M),Y):n(M)}function U(M){return M===45&&a===2?(e.consume(M),F):M===60&&a===1?(e.consume(M),V):M===62&&a===4?(e.consume(M),be):M===63&&a===3?(e.consume(M),N):M===93&&a===5?(e.consume(M),te):he(M)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(_j,nt,ae)(M)):M===null||he(M)?(e.exit("htmlFlowData"),ae(M)):(e.consume(M),U)}function ae(M){return e.check(Ej,ee,nt)(M)}function ee(M){return e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),Q}function Q(M){return M===null||he(M)?ae(M):(e.enter("htmlFlowData"),U(M))}function F(M){return M===45?(e.consume(M),N):U(M)}function V(M){return M===47?(e.consume(M),s="",H):U(M)}function H(M){if(M===62){const Be=s.toLowerCase();return z2.includes(Be)?(e.consume(M),be):U(M)}return vn(M)&&s.length<8?(e.consume(M),s+=String.fromCharCode(M),H):U(M)}function te(M){return M===93?(e.consume(M),N):U(M)}function N(M){return M===62?(e.consume(M),be):M===45&&a===2?(e.consume(M),N):U(M)}function be(M){return M===null||he(M)?(e.exit("htmlFlowData"),nt(M)):(e.consume(M),be)}function nt(M){return e.exit("htmlFlow"),t(M)}}function Sj(e,t,n){const i=this;return a;function a(s){return he(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r):n(s)}function r(s){return i.parser.lazy[i.now().line]?n(s):t(s)}}function Aj(e,t,n){return i;function i(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Yl,t,n)}}const Cj={name:"htmlText",tokenize:kj};function kj(e,t,n){const i=this;let a,r,s;return o;function o(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),l}function l(N){return N===33?(e.consume(N),u):N===47?(e.consume(N),S):N===63?(e.consume(N),x):vn(N)?(e.consume(N),L):n(N)}function u(N){return N===45?(e.consume(N),c):N===91?(e.consume(N),r=0,g):vn(N)?(e.consume(N),v):n(N)}function c(N){return N===45?(e.consume(N),h):n(N)}function d(N){return N===null?n(N):N===45?(e.consume(N),f):he(N)?(s=d,V(N)):(e.consume(N),d)}function f(N){return N===45?(e.consume(N),h):d(N)}function h(N){return N===62?F(N):N===45?f(N):d(N)}function g(N){const be="CDATA[";return N===be.charCodeAt(r++)?(e.consume(N),r===be.length?y:g):n(N)}function y(N){return N===null?n(N):N===93?(e.consume(N),E):he(N)?(s=y,V(N)):(e.consume(N),y)}function E(N){return N===93?(e.consume(N),m):y(N)}function m(N){return N===62?F(N):N===93?(e.consume(N),m):y(N)}function v(N){return N===null||N===62?F(N):he(N)?(s=v,V(N)):(e.consume(N),v)}function x(N){return N===null?n(N):N===63?(e.consume(N),T):he(N)?(s=x,V(N)):(e.consume(N),x)}function T(N){return N===62?F(N):x(N)}function S(N){return vn(N)?(e.consume(N),A):n(N)}function A(N){return N===45||on(N)?(e.consume(N),A):D(N)}function D(N){return he(N)?(s=D,V(N)):Ne(N)?(e.consume(N),D):F(N)}function L(N){return N===45||on(N)?(e.consume(N),L):N===47||N===62||Xe(N)?B(N):n(N)}function B(N){return N===47?(e.consume(N),F):N===58||N===95||vn(N)?(e.consume(N),O):he(N)?(s=B,V(N)):Ne(N)?(e.consume(N),B):F(N)}function O(N){return N===45||N===46||N===58||N===95||on(N)?(e.consume(N),O):Y(N)}function Y(N){return N===61?(e.consume(N),U):he(N)?(s=Y,V(N)):Ne(N)?(e.consume(N),Y):B(N)}function U(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),a=N,ae):he(N)?(s=U,V(N)):Ne(N)?(e.consume(N),U):(e.consume(N),ee)}function ae(N){return N===a?(e.consume(N),a=void 0,Q):N===null?n(N):he(N)?(s=ae,V(N)):(e.consume(N),ae)}function ee(N){return N===null||N===34||N===39||N===60||N===61||N===96?n(N):N===47||N===62||Xe(N)?B(N):(e.consume(N),ee)}function Q(N){return N===47||N===62||Xe(N)?B(N):n(N)}function F(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):n(N)}function V(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),H}function H(N){return Ne(N)?Le(e,te,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):te(N)}function te(N){return e.enter("htmlTextData"),s(N)}}const i0={name:"labelEnd",resolveAll:Dj,resolveTo:Mj,tokenize:Lj},Oj={tokenize:Ij},Nj={tokenize:Pj},Rj={tokenize:Bj};function Dj(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const a=i.type==="labelImage"?4:2;i.type="data",t+=a}}return e.length!==n.length&&Un(e,0,e.length,n),e}function Mj(e,t){let n=e.length,i=0,a,r,s,o;for(;n--;)if(a=e[n][1],r){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(r=n,a.type!=="labelLink")){i=2;break}}else a.type==="labelEnd"&&(s=n);const l={type:e[r][1].type==="labelLink"?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[r+i+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",l,t],["enter",u,t]],o=li(o,e.slice(r+1,r+i+3)),o=li(o,[["enter",c,t]]),o=li(o,kd(t.parser.constructs.insideSpan.null,e.slice(r+i+4,s-3),t)),o=li(o,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),o=li(o,e.slice(s+1)),o=li(o,[["exit",l,t]]),Un(e,r,e.length,o),e}function Lj(e,t,n){const i=this;let a=i.events.length,r,s;for(;a--;)if((i.events[a][1].type==="labelImage"||i.events[a][1].type==="labelLink")&&!i.events[a][1]._balanced){r=i.events[a][1];break}return o;function o(f){return r?r._inactive?d(f):(s=i.parser.defined.includes(Ci(i.sliceSerialize({start:r.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):n(f)}function l(f){return f===40?e.attempt(Oj,c,s?c:d)(f):f===91?e.attempt(Nj,c,s?u:d)(f):s?c(f):d(f)}function u(f){return e.attempt(Rj,c,d)(f)}function c(f){return t(f)}function d(f){return r._balanced=!0,n(f)}}function Ij(e,t,n){return i;function i(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),a}function a(d){return Xe(d)?Gl(e,r)(d):r(d)}function r(d){return d===41?c(d):P2(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return Xe(d)?Gl(e,l)(d):c(d)}function o(d){return n(d)}function l(d){return d===34||d===39||d===40?j2(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return Xe(d)?Gl(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function Pj(e,t,n){const i=this;return a;function a(o){return B2.call(i,e,r,s,"reference","referenceMarker","referenceString")(o)}function r(o){return i.parser.defined.includes(Ci(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function Bj(e,t,n){return i;function i(r){return e.enter("reference"),e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),a}function a(r){return r===93?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}const jj={name:"labelStartImage",resolveAll:i0.resolveAll,tokenize:zj};function zj(e,t,n){const i=this;return a;function a(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),r}function r(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(o):t(o)}}const Uj={name:"labelStartLink",resolveAll:i0.resolveAll,tokenize:Hj};function Hj(e,t,n){const i=this;return a;function a(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),r}function r(s){return s===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(s):t(s)}}const a0={name:"lineEnding",tokenize:Fj};function Fj(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Le(e,t,"linePrefix")}}const Od={name:"thematicBreak",tokenize:Vj};function Vj(e,t,n){let i=0,a;return r;function r(u){return e.enter("thematicBreak"),s(u)}function s(u){return a=u,o(u)}function o(u){return u===a?(e.enter("thematicBreakSequence"),l(u)):i>=3&&(u===null||he(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===a?(e.consume(u),i++,l):(e.exit("thematicBreakSequence"),Ne(u)?Le(e,o,"whitespace")(u):o(u))}}const Sn={continuation:{tokenize:$j},exit:Kj,name:"list",tokenize:Gj},Yj={partial:!0,tokenize:Qj},qj={partial:!0,tokenize:Xj};function Gj(e,t,n){const i=this,a=i.events[i.events.length-1];let r=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,s=0;return o;function o(h){const g=i.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!i.containerState.marker||h===i.containerState.marker:Vm(h)){if(i.containerState.type||(i.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Od,n,u)(h):u(h);if(!i.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return Vm(h)&&++s<10?(e.consume(h),l):(!i.interrupt||s<2)&&(i.containerState.marker?h===i.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||h,e.check(Yl,i.interrupt?n:c,e.attempt(Yj,f,d))}function c(h){return i.containerState.initialBlankLine=!0,r++,f(h)}function d(h){return Ne(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),f):n(h)}function f(h){return i.containerState.size=r+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function $j(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(Yl,a,r);function a(o){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Le(e,t,"listItemIndent",i.containerState.size+1)(o)}function r(o){return i.containerState.furtherBlankLines||!Ne(o)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,s(o)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(qj,t,s)(o))}function s(o){return i.containerState._closeFlow=!0,i.interrupt=void 0,Le(e,e.attempt(Sn,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Xj(e,t,n){const i=this;return Le(e,a,"listItemIndent",i.containerState.size+1);function a(r){const s=i.events[i.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===i.containerState.size?t(r):n(r)}}function Kj(e){e.exit(this.containerState.type)}function Qj(e,t,n){const i=this;return Le(e,a,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(r){const s=i.events[i.events.length-1];return!Ne(r)&&s&&s[1].type==="listItemPrefixWhitespace"?t(r):n(r)}}const U2={name:"setextUnderline",resolveTo:Wj,tokenize:Zj};function Wj(e,t){let n=e.length,i,a,r;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!r&&e[n][1].type==="definition"&&(r=n);const s={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",r?(e.splice(a,0,["enter",s,t]),e.splice(r+1,0,["exit",e[i][1],t]),e[i][1].end={...e[r][1].end}):e[i][1]=s,e.push(["exit",s,t]),e}function Zj(e,t,n){const i=this;let a;return r;function r(u){let c=i.events.length,d;for(;c--;)if(i.events[c][1].type!=="lineEnding"&&i.events[c][1].type!=="linePrefix"&&i.events[c][1].type!=="content"){d=i.events[c][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||d)?(e.enter("setextHeadingLine"),a=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===a?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),Ne(u)?Le(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||he(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Jj={tokenize:oz,partial:!0};function ez(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:az,continuation:{tokenize:rz},exit:sz}},text:{91:{name:"gfmFootnoteCall",tokenize:iz},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:tz,resolveTo:nz}}}}function tz(e,t,n){const i=this;let a=i.events.length;const r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s;for(;a--;){const l=i.events[a][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return n(l);const u=Ci(i.sliceSerialize({start:s.end,end:i.now()}));return u.codePointAt(0)!==94||!r.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function nz(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const r={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},r.start),end:Object.assign({},r.end)},o=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",r,t],["enter",s,t],["exit",s,t],["exit",r,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...o),e}function iz(e,t,n){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let r=0,s;return o;function o(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(r>999||d===93&&!s||d===null||d===91||Xe(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return a.includes(Ci(i.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Xe(d)||(s=!0),r++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),r++,u):u(d)}}function az(e,t,n){const i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let r,s=0,o;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(g)}function c(g){if(s>999||g===93&&!o||g===null||g===91||Xe(g))return n(g);if(g===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return r=Ci(i.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Xe(g)||(o=!0),s++,e.consume(g),g===92?d:c}function d(g){return g===91||g===92||g===93?(e.consume(g),s++,c):c(g)}function f(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),a.includes(r)||a.push(r),Le(e,h,"gfmFootnoteDefinitionWhitespace")):n(g)}function h(g){return t(g)}}function rz(e,t,n){return e.check(Yl,t,e.attempt(Jj,t,n))}function sz(e){e.exit("gfmFootnoteDefinition")}function oz(e,t,n){const i=this;return Le(e,a,"gfmFootnoteDefinitionIndent",5);function a(r){const s=i.events[i.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(r):n(r)}}function lz(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:r,resolveAll:a};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function a(s,o){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},d={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},f=[["enter",c,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",d,o]],h=o.parser.constructs.insideSpan.null;h&&Un(f,f.length,0,kd(h,s.slice(u+1,l),o)),Un(f,f.length,0,[["exit",d,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",c,o]]),Un(s,u-1,l-u+3,f),l=u+f.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function r(s,o,l){const u=this.previous,c=this.events;let d=0;return f;function f(g){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(g):(s.enter("strikethroughSequenceTemporary"),h(g))}function h(g){const y=Js(u);if(g===126)return d>1?l(g):(s.consume(g),d++,h);if(d<2&&!n)return l(g);const E=s.exit("strikethroughSequenceTemporary"),m=Js(g);return E._open=!m||m===2&&!!y,E._close=!y||y===2&&!!m,o(g)}}}class uz{constructor(){this.map=[]}add(t,n,i){cz(this,t,n,i)}consume(t){if(this.map.sort(function(r,s){return r[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let a=i.pop();for(;a;){for(const r of a)t.push(r);a=i.pop()}this.map.length=0}}function cz(e,t,n,i){let a=0;if(!(n===0&&i.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...i);return}a+=1}e.map.push([t,n,i])}}function dz(e,t){let n=!1;const i=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const r=i.length-1;i[r]=i[r]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function fz(){return{flow:{null:{name:"table",tokenize:hz,resolveAll:pz}}}}function hz(e,t,n){const i=this;let a=0,r=0,s;return o;function o(O){let Y=i.events.length-1;for(;Y>-1;){const ee=i.events[Y][1].type;if(ee==="lineEnding"||ee==="linePrefix")Y--;else break}const U=Y>-1?i.events[Y][1].type:null,ae=U==="tableHead"||U==="tableRow"?A:l;return ae===A&&i.parser.lazy[i.now().line]?n(O):ae(O)}function l(O){return e.enter("tableHead"),e.enter("tableRow"),u(O)}function u(O){return O===124||(s=!0,r+=1),c(O)}function c(O){return O===null?n(O):he(O)?r>1?(r=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),h):n(O):Ne(O)?Le(e,c,"whitespace")(O):(r+=1,s&&(s=!1,a+=1),O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),d(O)))}function d(O){return O===null||O===124||Xe(O)?(e.exit("data"),c(O)):(e.consume(O),O===92?f:d)}function f(O){return O===92||O===124?(e.consume(O),d):d(O)}function h(O){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(O):(e.enter("tableDelimiterRow"),s=!1,Ne(O)?Le(e,g,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):g(O))}function g(O){return O===45||O===58?E(O):O===124?(s=!0,e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),y):S(O)}function y(O){return Ne(O)?Le(e,E,"whitespace")(O):E(O)}function E(O){return O===58?(r+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),m):O===45?(r+=1,m(O)):O===null||he(O)?T(O):S(O)}function m(O){return O===45?(e.enter("tableDelimiterFiller"),v(O)):S(O)}function v(O){return O===45?(e.consume(O),v):O===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(O))}function x(O){return Ne(O)?Le(e,T,"whitespace")(O):T(O)}function T(O){return O===124?g(O):O===null||he(O)?!s||a!==r?S(O):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(O)):S(O)}function S(O){return n(O)}function A(O){return e.enter("tableRow"),D(O)}function D(O){return O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),D):O===null||he(O)?(e.exit("tableRow"),t(O)):Ne(O)?Le(e,D,"whitespace")(O):(e.enter("data"),L(O))}function L(O){return O===null||O===124||Xe(O)?(e.exit("data"),D(O)):(e.consume(O),O===92?B:L)}function B(O){return O===92||O===124?(e.consume(O),L):L(O)}}function pz(e,t){let n=-1,i=!0,a=0,r=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,c,d;const f=new uz;for(;++n<e.length;){const h=e[n],g=h[1];h[0]==="enter"?g.type==="tableHead"?(o=!1,l!==0&&(H2(f,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},f.add(n,0,[["enter",u,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(i=!0,d=void 0,r=[0,0,0,0],s=[0,n+1,0,0],o&&(o=!1,c={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},f.add(n,0,[["enter",c,t]])),a=g.type==="tableDelimiterRow"?2:c?3:1):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(i=!1,s[2]===0&&(r[1]!==0&&(s[0]=s[1],d=Nd(f,t,r,a,void 0,d),r=[0,0,0,0]),s[2]=n)):g.type==="tableCellDivider"&&(i?i=!1:(r[1]!==0&&(s[0]=s[1],d=Nd(f,t,r,a,void 0,d)),r=s,s=[r[1],n,0,0])):g.type==="tableHead"?(o=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,r[1]!==0?(s[0]=s[1],d=Nd(f,t,r,a,n,d)):s[1]!==0&&(d=Nd(f,t,s,a,n,d)),a=0):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(s[3]=n)}for(l!==0&&H2(f,t,l,u,c),f.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=dz(t.events,n))}return e}function Nd(e,t,n,i,a,r){const s=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(r.end=Object.assign({},to(t.events,n[0])),e.add(n[0],0,[["exit",r,t]]));const l=to(t.events,n[1]);if(r={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",r,t]]),n[2]!==0){const u=to(t.events,n[2]),c=to(t.events,n[3]),d={type:o,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",d,t]]),i!==2){const f=t.events[n[2]],h=t.events[n[3]];if(f[1].end=Object.assign({},h[1].end),f[1].type="chunkText",f[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,y=n[3]-n[2]-1;e.add(g,y,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return a!==void 0&&(r.end=Object.assign({},to(t.events,a)),e.add(a,0,[["exit",r,t]]),r=void 0),r}function H2(e,t,n,i,a){const r=[],s=to(t.events,n);a&&(a.end=Object.assign({},s),r.push(["exit",a,t])),i.end=Object.assign({},s),r.push(["exit",i,t]),e.add(n+1,0,r)}function to(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const mz={name:"tasklistCheck",tokenize:bz};function gz(){return{text:{91:mz}}}function bz(e,t,n){const i=this;return a;function a(l){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),r)}function r(l){return Xe(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(l)}function o(l){return he(l)?t(l):Ne(l)?e.check({tokenize:vz},t,n)(l):n(l)}}function vz(e,t,n){return Le(e,i,"whitespace");function i(a){return a===null?n(a):t(a)}}function yz(e){return x2([OB(),ez(),lz(e),fz(),gz()])}const xz={};function F2(e){const t=this,n=e||xz,i=t.data(),a=i.micromarkExtensions||(i.micromarkExtensions=[]),r=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);a.push(yz(n)),r.push(TB()),s.push(wB(n))}function V2(e){const t=[],n=String(e||"");let i=n.indexOf(","),a=0,r=!1;for(;!r;){i===-1&&(i=n.length,r=!0);const s=n.slice(a,i).trim();(s||!r)&&t.push(s),a=i+1,i=n.indexOf(",",a)}return t}function Y2(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const _z=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ez=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Tz={};function q2(e,t){return(Tz.jsx?Ez:_z).test(e)}const wz=/[ \t\n\f\r]/g;function Sz(e){return typeof e=="object"?e.type==="text"?G2(e.value):!1:G2(e)}function G2(e){return e.replace(wz,"")===""}let $l=class{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}};$l.prototype.normal={},$l.prototype.property={},$l.prototype.space=void 0;function $2(e,t){const n={},i={};for(const a of e)Object.assign(n,a.property),Object.assign(i,a.normal);return new $l(n,i,t)}function Xl(e){return e.toLowerCase()}let An=class{constructor(t,n){this.attribute=n,this.property=t}};An.prototype.attribute="",An.prototype.booleanish=!1,An.prototype.boolean=!1,An.prototype.commaOrSpaceSeparated=!1,An.prototype.commaSeparated=!1,An.prototype.defined=!1,An.prototype.mustUseProperty=!1,An.prototype.number=!1,An.prototype.overloadedBoolean=!1,An.prototype.property="",An.prototype.spaceSeparated=!1,An.prototype.space=void 0;let Az=0;const we=Qr(),kt=Qr(),r0=Qr(),W=Qr(),Je=Qr(),no=Qr(),Hn=Qr();function Qr(){return 2**++Az}const s0=Object.freeze(Object.defineProperty({__proto__:null,boolean:we,booleanish:kt,commaOrSpaceSeparated:Hn,commaSeparated:no,number:W,overloadedBoolean:r0,spaceSeparated:Je},Symbol.toStringTag,{value:"Module"})),o0=Object.keys(s0);let l0=class extends An{constructor(t,n,i,a){let r=-1;if(super(t,n),X2(this,"space",a),typeof i=="number")for(;++r<o0.length;){const s=o0[r];X2(this,o0[r],(i&s0[s])===s0[s])}}};l0.prototype.defined=!0;function X2(e,t,n){n&&(e[t]=n)}function io(e){const t={},n={};for(const[i,a]of Object.entries(e.properties)){const r=new l0(i,e.transform(e.attributes||{},i),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(r.mustUseProperty=!0),t[i]=r,n[Xl(i)]=i,n[Xl(r.attribute)]=i}return new $l(t,n,e.space)}const K2=io({properties:{ariaActiveDescendant:null,ariaAtomic:kt,ariaAutoComplete:null,ariaBusy:kt,ariaChecked:kt,ariaColCount:W,ariaColIndex:W,ariaColSpan:W,ariaControls:Je,ariaCurrent:null,ariaDescribedBy:Je,ariaDetails:null,ariaDisabled:kt,ariaDropEffect:Je,ariaErrorMessage:null,ariaExpanded:kt,ariaFlowTo:Je,ariaGrabbed:kt,ariaHasPopup:null,ariaHidden:kt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Je,ariaLevel:W,ariaLive:null,ariaModal:kt,ariaMultiLine:kt,ariaMultiSelectable:kt,ariaOrientation:null,ariaOwns:Je,ariaPlaceholder:null,ariaPosInSet:W,ariaPressed:kt,ariaReadOnly:kt,ariaRelevant:null,ariaRequired:kt,ariaRoleDescription:Je,ariaRowCount:W,ariaRowIndex:W,ariaRowSpan:W,ariaSelected:kt,ariaSetSize:W,ariaSort:null,ariaValueMax:W,ariaValueMin:W,ariaValueNow:W,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Q2(e,t){return t in e?e[t]:t}function W2(e,t){return Q2(e,t.toLowerCase())}const Cz=io({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:no,acceptCharset:Je,accessKey:Je,action:null,allow:null,allowFullScreen:we,allowPaymentRequest:we,allowUserMedia:we,alt:null,as:null,async:we,autoCapitalize:null,autoComplete:Je,autoFocus:we,autoPlay:we,blocking:Je,capture:null,charSet:null,checked:we,cite:null,className:Je,cols:W,colSpan:null,content:null,contentEditable:kt,controls:we,controlsList:Je,coords:W|no,crossOrigin:null,data:null,dateTime:null,decoding:null,default:we,defer:we,dir:null,dirName:null,disabled:we,download:r0,draggable:kt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:we,formTarget:null,headers:Je,height:W,hidden:r0,high:W,href:null,hrefLang:null,htmlFor:Je,httpEquiv:Je,id:null,imageSizes:null,imageSrcSet:null,inert:we,inputMode:null,integrity:null,is:null,isMap:we,itemId:null,itemProp:Je,itemRef:Je,itemScope:we,itemType:Je,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:we,low:W,manifest:null,max:null,maxLength:W,media:null,method:null,min:null,minLength:W,multiple:we,muted:we,name:null,nonce:null,noModule:we,noValidate:we,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:we,optimum:W,pattern:null,ping:Je,placeholder:null,playsInline:we,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:we,referrerPolicy:null,rel:Je,required:we,reversed:we,rows:W,rowSpan:W,sandbox:Je,scope:null,scoped:we,seamless:we,selected:we,shadowRootClonable:we,shadowRootDelegatesFocus:we,shadowRootMode:null,shape:null,size:W,sizes:null,slot:null,span:W,spellCheck:kt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:W,step:null,style:null,tabIndex:W,target:null,title:null,translate:null,type:null,typeMustMatch:we,useMap:null,value:kt,width:W,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Je,axis:null,background:null,bgColor:null,border:W,borderColor:null,bottomMargin:W,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:we,declare:we,event:null,face:null,frame:null,frameBorder:null,hSpace:W,leftMargin:W,link:null,longDesc:null,lowSrc:null,marginHeight:W,marginWidth:W,noResize:we,noHref:we,noShade:we,noWrap:we,object:null,profile:null,prompt:null,rev:null,rightMargin:W,rules:null,scheme:null,scrolling:kt,standby:null,summary:null,text:null,topMargin:W,valueType:null,version:null,vAlign:null,vLink:null,vSpace:W,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:we,disableRemotePlayback:we,prefix:null,property:null,results:W,security:null,unselectable:null},space:"html",transform:W2}),kz=io({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Hn,accentHeight:W,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:W,amplitude:W,arabicForm:null,ascent:W,attributeName:null,attributeType:null,azimuth:W,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:W,by:null,calcMode:null,capHeight:W,className:Je,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:W,diffuseConstant:W,direction:null,display:null,dur:null,divisor:W,dominantBaseline:null,download:we,dx:null,dy:null,edgeMode:null,editable:null,elevation:W,enableBackground:null,end:null,event:null,exponent:W,externalResourcesRequired:null,fill:null,fillOpacity:W,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:no,g2:no,glyphName:no,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:W,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:W,horizOriginX:W,horizOriginY:W,id:null,ideographic:W,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:W,k:W,k1:W,k2:W,k3:W,k4:W,kernelMatrix:Hn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:W,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:W,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:W,overlineThickness:W,paintOrder:null,panose1:null,path:null,pathLength:W,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Je,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:W,pointsAtY:W,pointsAtZ:W,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Hn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Hn,rev:Hn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Hn,requiredFeatures:Hn,requiredFonts:Hn,requiredFormats:Hn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:W,specularExponent:W,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:W,strikethroughThickness:W,string:null,stroke:null,strokeDashArray:Hn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:W,strokeOpacity:W,strokeWidth:null,style:null,surfaceScale:W,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Hn,tabIndex:W,tableValues:null,target:null,targetX:W,targetY:W,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Hn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:W,underlineThickness:W,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:W,values:null,vAlphabetic:W,vMathematical:W,vectorEffect:null,vHanging:W,vIdeographic:W,version:null,vertAdvY:W,vertOriginX:W,vertOriginY:W,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:W,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Q2}),Z2=io({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),J2=io({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:W2}),ew=io({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Oz={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Nz=/[A-Z]/g,tw=/-[a-z]/g,Rz=/^data[-\w.:]+$/i;function u0(e,t){const n=Xl(t);let i=t,a=An;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Rz.test(t)){if(t.charAt(4)==="-"){const r=t.slice(5).replace(tw,Mz);i="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{const r=t.slice(4);if(!tw.test(r)){let s=r.replace(Nz,Dz);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=l0}return new a(i,t)}function Dz(e){return"-"+e.toLowerCase()}function Mz(e){return e.charAt(1).toUpperCase()}const Rd=$2([K2,Cz,Z2,J2,ew],"html"),ao=$2([K2,kz,Z2,J2,ew],"svg");function nw(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function iw(e){return e.join(" ").trim()}var c0={},aw=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Lz=/\n/g,Iz=/^\s*/,Pz=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Bz=/^:\s*/,jz=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,zz=/^[;\s]*/,Uz=/^\s+|\s+$/g,Hz=`
282
- `,rw="/",sw="*",Wr="",Fz="comment",Vz="declaration",Yz=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,i=1;function a(g){var y=g.match(Lz);y&&(n+=y.length);var E=g.lastIndexOf(Hz);i=~E?g.length-E:i+g.length}function r(){var g={line:n,column:i};return function(y){return y.position=new s(g),u(),y}}function s(g){this.start=g,this.end={line:n,column:i},this.source=t.source}s.prototype.content=e;function o(g){var y=new Error(t.source+":"+n+":"+i+": "+g);if(y.reason=g,y.filename=t.source,y.line=n,y.column=i,y.source=e,!t.silent)throw y}function l(g){var y=g.exec(e);if(y){var E=y[0];return a(E),e=e.slice(E.length),y}}function u(){l(Iz)}function c(g){var y;for(g=g||[];y=d();)y!==!1&&g.push(y);return g}function d(){var g=r();if(!(rw!=e.charAt(0)||sw!=e.charAt(1))){for(var y=2;Wr!=e.charAt(y)&&(sw!=e.charAt(y)||rw!=e.charAt(y+1));)++y;if(y+=2,Wr===e.charAt(y-1))return o("End of comment missing");var E=e.slice(2,y-2);return i+=2,a(E),e=e.slice(y),i+=2,g({type:Fz,comment:E})}}function f(){var g=r(),y=l(Pz);if(y){if(d(),!l(Bz))return o("property missing ':'");var E=l(jz),m=g({type:Vz,property:ow(y[0].replace(aw,Wr)),value:E?ow(E[0].replace(aw,Wr)):Wr});return l(zz),m}}function h(){var g=[];c(g);for(var y;y=f();)y!==!1&&(g.push(y),c(g));return g}return u(),h()};function ow(e){return e?e.replace(Uz,Wr):Wr}var qz=za&&za.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(c0,"__esModule",{value:!0}),c0.default=$z;var Gz=qz(Yz);function $z(e,t){var n=null;if(!e||typeof e!="string")return n;var i=(0,Gz.default)(e),a=typeof t=="function";return i.forEach(function(r){if(r.type==="declaration"){var s=r.property,o=r.value;a?t(s,o,r):o&&(n=n||{},n[s]=o)}}),n}var Dd={};Object.defineProperty(Dd,"__esModule",{value:!0}),Dd.camelCase=void 0;var Xz=/^--[a-zA-Z0-9_-]+$/,Kz=/-([a-z])/g,Qz=/^[^-]+$/,Wz=/^-(webkit|moz|ms|o|khtml)-/,Zz=/^-(ms)-/,Jz=function(e){return!e||Qz.test(e)||Xz.test(e)},eU=function(e,t){return t.toUpperCase()},lw=function(e,t){return"".concat(t,"-")},tU=function(e,t){return t===void 0&&(t={}),Jz(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(Zz,lw):e=e.replace(Wz,lw),e.replace(Kz,eU))};Dd.camelCase=tU;var nU=za&&za.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},iU=nU(c0),aU=Dd;function d0(e,t){var n={};return!e||typeof e!="string"||(0,iU.default)(e,function(i,a){i&&a&&(n[(0,aU.camelCase)(i,t)]=a)}),n}d0.default=d0;var rU=d0;const sU=hl(rU),Md=uw("end"),Gi=uw("start");function uw(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function oU(e){const t=Gi(e),n=Md(e);if(t&&n)return{start:t,end:n}}function Kl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?cw(e.position):"start"in e||"end"in e?cw(e):"line"in e||"column"in e?f0(e):""}function f0(e){return dw(e&&e.line)+":"+dw(e&&e.column)}function cw(e){return f0(e&&e.start)+"-"+f0(e&&e.end)}function dw(e){return e&&typeof e=="number"?e:1}class ln extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let a="",r={},s=!1;if(n&&("line"in n&&"column"in n?r={place:n}:"start"in n&&"end"in n?r={place:n}:"type"in n?r={ancestors:[n],place:n.position}:r={...n}),typeof t=="string"?a=t:!r.cause&&t&&(s=!0,a=t.message,r.cause=t),!r.ruleId&&!r.source&&typeof i=="string"){const l=i.indexOf(":");l===-1?r.ruleId=i:(r.source=i.slice(0,l),r.ruleId=i.slice(l+1))}if(!r.place&&r.ancestors&&r.ancestors){const l=r.ancestors[r.ancestors.length-1];l&&(r.place=l.position)}const o=r.place&&"start"in r.place?r.place.start:r.place;this.ancestors=r.ancestors||void 0,this.cause=r.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=o?o.line:void 0,this.name=Kl(r.place)||"1:1",this.place=r.place||void 0,this.reason=this.message,this.ruleId=r.ruleId||void 0,this.source=r.source||void 0,this.stack=s&&r.cause&&typeof r.cause.stack=="string"?r.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ln.prototype.file="",ln.prototype.name="",ln.prototype.reason="",ln.prototype.message="",ln.prototype.stack="",ln.prototype.column=void 0,ln.prototype.line=void 0,ln.prototype.ancestors=void 0,ln.prototype.cause=void 0,ln.prototype.fatal=void 0,ln.prototype.place=void 0,ln.prototype.ruleId=void 0,ln.prototype.source=void 0;const h0={}.hasOwnProperty,lU=new Map,uU=/[A-Z]/g,cU=new Set(["table","tbody","thead","tfoot","tr"]),dU=new Set(["td","th"]),fw="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function fU(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=xU(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=yU(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ao:Rd,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},r=hw(a,e,void 0);return r&&typeof r!="string"?r:a.create(e,a.Fragment,{children:r||void 0},void 0)}function hw(e,t,n){if(t.type==="element")return hU(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return pU(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return gU(e,t,n);if(t.type==="mdxjsEsm")return mU(e,t);if(t.type==="root")return bU(e,t,n);if(t.type==="text")return vU(e,t)}function hU(e,t,n){const i=e.schema;let a=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(a=ao,e.schema=a),e.ancestors.push(t);const r=mw(e,t.tagName,!1),s=_U(e,t);let o=m0(e,t);return cU.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!Sz(l):!0})),pw(e,s,r,t),p0(s,o),e.ancestors.pop(),e.schema=i,e.create(t,r,s,n)}function pU(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Ql(e,t.position)}function mU(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ql(e,t.position)}function gU(e,t,n){const i=e.schema;let a=i;t.name==="svg"&&i.space==="html"&&(a=ao,e.schema=a),e.ancestors.push(t);const r=t.name===null?e.Fragment:mw(e,t.name,!0),s=EU(e,t),o=m0(e,t);return pw(e,s,r,t),p0(s,o),e.ancestors.pop(),e.schema=i,e.create(t,r,s,n)}function bU(e,t,n){const i={};return p0(i,m0(e,t)),e.create(t,e.Fragment,i,n)}function vU(e,t){return t.value}function pw(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function p0(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function yU(e,t,n){return i;function i(a,r,s,o){const u=Array.isArray(s.children)?n:t;return o?u(r,s,o):u(r,s)}}function xU(e,t){return n;function n(i,a,r,s){const o=Array.isArray(r.children),l=Gi(i);return t(a,r,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function _U(e,t){const n={};let i,a;for(a in t.properties)if(a!=="children"&&h0.call(t.properties,a)){const r=TU(e,a,t.properties[a]);if(r){const[s,o]=r;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&dU.has(t.tagName)?i=o:n[s]=o}}if(i){const r=n.style||(n.style={});r[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function EU(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const r=i.data.estree.body[0];r.type;const s=r.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Ql(e,t.position);else{const a=i.name;let r;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const o=i.value.data.estree.body[0];o.type,r=e.evaluater.evaluateExpression(o.expression)}else Ql(e,t.position);else r=i.value===null?!0:i.value;n[a]=r}return n}function m0(e,t){const n=[];let i=-1;const a=e.passKeys?new Map:lU;for(;++i<t.children.length;){const r=t.children[i];let s;if(e.passKeys){const l=r.type==="element"?r.tagName:r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement"?r.name:void 0;if(l){const u=a.get(l)||0;s=l+"-"+u,a.set(l,u+1)}}const o=hw(e,r,s);o!==void 0&&n.push(o)}return n}function TU(e,t,n){const i=u0(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?Y2(n):iw(n)),i.property==="style"){let a=typeof n=="object"?n:wU(e,String(n));return e.stylePropertyNameCase==="css"&&(a=SU(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&i.space?Oz[i.property]||i.property:i.attribute,n]}}function wU(e,t){try{return sU(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,a=new ln("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=fw+"#cannot-parse-style-attribute",a}}function mw(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let r=-1,s;for(;++r<a.length;){const o=q2(a[r])?{type:"Identifier",name:a[r]}:{type:"Literal",value:a[r]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(r&&o.type==="Literal"),optional:!1}:o}i=s}else i=q2(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const a=i.value;return h0.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(i);Ql(e)}function Ql(e,t){const n=new ln("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=fw+"#cannot-handle-mdx-estrees-without-createevaluater",n}function SU(e){const t={};let n;for(n in e)h0.call(e,n)&&(t[AU(n)]=e[n]);return t}function AU(e){let t=e.replace(uU,CU);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function CU(e){return"-"+e.toLowerCase()}const g0={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},kU={tokenize:OU};function OU(e){const t=e.attempt(this.parser.constructs.contentInitial,i,a);let n;return t;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Le(e,t,"linePrefix")}function a(o){return e.enter("paragraph"),r(o)}function r(o){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return he(o)?(e.consume(o),e.exit("chunkText"),r):(e.consume(o),s)}}const NU={tokenize:RU},gw={tokenize:DU};function RU(e){const t=this,n=[];let i=0,a,r,s;return o;function o(x){if(i<n.length){const T=n[i];return t.containerState=T[1],e.attempt(T[0].continuation,l,u)(x)}return u(x)}function l(x){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&v();const T=t.events.length;let S=T,A;for(;S--;)if(t.events[S][0]==="exit"&&t.events[S][1].type==="chunkFlow"){A=t.events[S][1].end;break}m(i);let D=T;for(;D<t.events.length;)t.events[D][1].end={...A},D++;return Un(t.events,S+1,0,t.events.slice(T)),t.events.length=D,u(x)}return o(x)}function u(x){if(i===n.length){if(!a)return f(x);if(a.currentConstruct&&a.currentConstruct.concrete)return g(x);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(gw,c,d)(x)}function c(x){return a&&v(),m(i),f(x)}function d(x){return t.parser.lazy[t.now().line]=i!==n.length,s=t.now().offset,g(x)}function f(x){return t.containerState={},e.attempt(gw,h,g)(x)}function h(x){return i++,n.push([t.currentConstruct,t.containerState]),f(x)}function g(x){if(x===null){a&&v(),m(0),e.consume(x);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:r}),y(x)}function y(x){if(x===null){E(e.exit("chunkFlow"),!0),m(0),e.consume(x);return}return he(x)?(e.consume(x),E(e.exit("chunkFlow")),i=0,t.interrupt=void 0,o):(e.consume(x),y)}function E(x,T){const S=t.sliceStream(x);if(T&&S.push(null),x.previous=r,r&&(r.next=x),r=x,a.defineSkip(x.start),a.write(S),t.parser.lazy[x.start.line]){let A=a.events.length;for(;A--;)if(a.events[A][1].start.offset<s&&(!a.events[A][1].end||a.events[A][1].end.offset>s))return;const D=t.events.length;let L=D,B,O;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(B){O=t.events[L][1].end;break}B=!0}for(m(i),A=D;A<t.events.length;)t.events[A][1].end={...O},A++;Un(t.events,L+1,0,t.events.slice(D)),t.events.length=A}}function m(x){let T=n.length;for(;T-- >x;){const S=n[T];t.containerState=S[1],S[0].exit.call(t,e)}n.length=x}function v(){a.write([null]),r=void 0,a=void 0,t.containerState._closeFlow=void 0}}function DU(e,t,n){return Le(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const MU={tokenize:LU};function LU(e){const t=this,n=e.attempt(Yl,i,e.attempt(this.parser.constructs.flowInitial,a,Le(e,e.attempt(this.parser.constructs.flow,a,e.attempt(rj,a)),"linePrefix")));return n;function i(r){if(r===null){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(r){if(r===null){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const IU={resolveAll:vw()},PU=bw("string"),BU=bw("text");function bw(e){return{resolveAll:vw(e==="text"?jU:void 0),tokenize:t};function t(n){const i=this,a=this.parser.constructs[e],r=n.attempt(a,s,o);return s;function s(c){return u(c)?r(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),r(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const d=a[c];let f=-1;if(d)for(;++f<d.length;){const h=d[f];if(!h.previous||h.previous.call(i,i.previous))return!0}return!1}}}function vw(e){return t;function t(n,i){let a=-1,r;for(;++a<=n.length;)r===void 0?n[a]&&n[a][1].type==="data"&&(r=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==r+2&&(n[r][1].end=n[a-1][1].end,n.splice(r+2,a-r-2),a=r+2),r=void 0);return e?e(n,i):n}}function jU(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],a=t.sliceStream(i);let r=a.length,s=-1,o=0,l;for(;r--;){const u=a[r];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(u===-2)l=!0,o++;else if(u!==-1){r++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const u={type:n===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:r?s:i.start._bufferIndex+s,_index:i.start._index+r,line:i.end.line,column:i.end.column-o,offset:i.end.offset-o},end:{...i.end}};i.end={...u.start},i.start.offset===i.end.offset?Object.assign(i,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const zU=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:cj},disable:{null:[]},document:{42:Sn,43:Sn,45:Sn,48:Sn,49:Sn,50:Sn,51:Sn,52:Sn,53:Sn,54:Sn,55:Sn,56:Sn,57:Sn,62:N2},flow:{35:gj,42:Od,45:[U2,Od],60:xj,61:U2,95:Od,96:L2,126:L2},flowInitial:{[-2]:n0,[-1]:n0,32:n0},insideSpan:{null:[t0,IU]},string:{38:D2,92:R2},text:{[-5]:a0,[-4]:a0,[-3]:a0,33:jj,38:D2,42:t0,60:[UB,Cj],91:Uj,92:[pj,R2],93:i0,95:t0,96:JB}},Symbol.toStringTag,{value:"Module"}));function UU(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},r=[];let s=[],o=[];const l={attempt:D(S),check:D(A),consume:v,enter:x,exit:T,interrupt:D(A,{interrupt:!0})},u={code:null,containerState:{},defineSkip:y,events:[],now:g,parser:e,previous:null,sliceSerialize:f,sliceStream:h,write:d};let c=t.tokenize.call(u,l);return t.resolveAll&&r.push(t),u;function d(Y){return s=li(s,Y),E(),s[s.length-1]!==null?[]:(L(t,0),u.events=kd(r,u.events,u),u.events)}function f(Y,U){return FU(h(Y),U)}function h(Y){return HU(s,Y)}function g(){const{_bufferIndex:Y,_index:U,line:ae,column:ee,offset:Q}=i;return{_bufferIndex:Y,_index:U,line:ae,column:ee,offset:Q}}function y(Y){a[Y.line]=Y.column,O()}function E(){let Y;for(;i._index<s.length;){const U=s[i._index];if(typeof U=="string")for(Y=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===Y&&i._bufferIndex<U.length;)m(U.charCodeAt(i._bufferIndex));else m(U)}}function m(Y){c=c(Y)}function v(Y){he(Y)?(i.line++,i.column=1,i.offset+=Y===-3?2:1,O()):Y!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===s[i._index].length&&(i._bufferIndex=-1,i._index++)),u.previous=Y}function x(Y,U){const ae=U||{};return ae.type=Y,ae.start=g(),u.events.push(["enter",ae,u]),o.push(ae),ae}function T(Y){const U=o.pop();return U.end=g(),u.events.push(["exit",U,u]),U}function S(Y,U){L(Y,U.from)}function A(Y,U){U.restore()}function D(Y,U){return ae;function ae(ee,Q,F){let V,H,te,N;return Array.isArray(ee)?nt(ee):"tokenize"in ee?nt([ee]):be(ee);function be(je){return fn;function fn(Ze){const qt=Ze!==null&&je[Ze],Mt=Ze!==null&&je.null,Gt=[...Array.isArray(qt)?qt:qt?[qt]:[],...Array.isArray(Mt)?Mt:Mt?[Mt]:[]];return nt(Gt)(Ze)}}function nt(je){return V=je,H=0,je.length===0?F:M(je[H])}function M(je){return fn;function fn(Ze){return N=B(),te=je,je.partial||(u.currentConstruct=je),je.name&&u.parser.constructs.disable.null.includes(je.name)?ge():je.tokenize.call(U?Object.assign(Object.create(u),U):u,l,Be,ge)(Ze)}}function Be(je){return Y(te,N),Q}function ge(je){return N.restore(),++H<V.length?M(V[H]):F}}}function L(Y,U){Y.resolveAll&&!r.includes(Y)&&r.push(Y),Y.resolve&&Un(u.events,U,u.events.length-U,Y.resolve(u.events.slice(U),u)),Y.resolveTo&&(u.events=Y.resolveTo(u.events,u))}function B(){const Y=g(),U=u.previous,ae=u.currentConstruct,ee=u.events.length,Q=Array.from(o);return{from:ee,restore:F};function F(){i=Y,u.previous=U,u.currentConstruct=ae,u.events.length=ee,o=Q,O()}}function O(){i.line in a&&i.column<2&&(i.column=a[i.line],i.offset+=a[i.line]-1)}}function HU(e,t){const n=t.start._index,i=t.start._bufferIndex,a=t.end._index,r=t.end._bufferIndex;let s;if(n===a)s=[e[n].slice(i,r)];else{if(s=e.slice(n,a),i>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(i):s.shift()}r>0&&s.push(e[a].slice(0,r))}return s}function FU(e,t){let n=-1;const i=[];let a;for(;++n<e.length;){const r=e[n];let s;if(typeof r=="string")s=r;else switch(r){case-5:{s="\r";break}case-4:{s=`
283
- `;break}case-3:{s=`\r
284
- `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&a)continue;s=" ";break}default:s=String.fromCharCode(r)}a=r===-2,i.push(s)}return i.join("")}function VU(e){const i={constructs:x2([zU,...(e||{}).extensions||[]]),content:a(kU),defined:[],document:a(NU),flow:a(MU),lazy:{},string:a(PU),text:a(BU)};return i;function a(r){return s;function s(o){return UU(i,r,o)}}}function YU(e){for(;!I2(e););return e}const yw=/[\0\t\n\r]/g;function qU(){let e=1,t="",n=!0,i;return a;function a(r,s,o){const l=[];let u,c,d,f,h;for(r=t+(typeof r=="string"?r.toString():new TextDecoder(s||void 0).decode(r)),d=0,t="",n&&(r.charCodeAt(0)===65279&&d++,n=void 0);d<r.length;){if(yw.lastIndex=d,u=yw.exec(r),f=u&&u.index!==void 0?u.index:r.length,h=r.charCodeAt(f),!u){t=r.slice(d);break}if(h===10&&d===f&&i)l.push(-3),i=void 0;else switch(i&&(l.push(-5),i=void 0),d<f&&(l.push(r.slice(d,f)),e+=f-d),h){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:i=!0,e=1}d=f+1}return o&&(i&&l.push(-5),t&&l.push(t),l.push(null)),l}}const xw={}.hasOwnProperty;function GU(e,t,n){return typeof t!="string"&&(n=t,t=void 0),$U(n)(YU(VU(n).document().write(qU()(e,t,!0))))}function $U(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(jt),autolinkProtocol:B,autolinkEmail:B,atxHeading:r(Li),blockQuote:r(Mt),characterEscape:B,characterReference:B,codeFenced:r(Gt),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:r(Gt,s),codeText:r(tn,s),codeTextData:B,data:B,codeFlowValue:B,definition:r($t),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:r(re),hardBreakEscape:r(Ii),hardBreakTrailing:r(Ii),htmlFlow:r(xn,s),htmlFlowData:B,htmlText:r(xn,s),htmlTextData:B,image:r(xt),label:s,link:r(jt),listItem:r(Lr),listItemValue:f,listOrdered:r(hn,d),listUnordered:r(hn),paragraph:r(nn),reference:M,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:r(Li),strong:r(Ts),thematicBreak:r(fe)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:qt,autolinkProtocol:Ze,blockQuote:l(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:je,characterReference:fn,codeFenced:l(E),codeFencedFence:y,codeFencedFenceInfo:h,codeFencedFenceMeta:g,codeFlowValue:O,codeIndented:l(m),codeText:l(Q),codeTextData:O,data:O,definition:l(),definitionDestinationString:T,definitionLabelString:v,definitionTitleString:x,emphasis:l(),hardBreakEscape:l(U),hardBreakTrailing:l(U),htmlFlow:l(ae),htmlFlowData:O,htmlText:l(ee),htmlTextData:O,image:l(V),label:te,labelText:H,lineEnding:Y,link:l(F),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Be,resourceDestinationString:N,resourceTitleString:be,resource:nt,setextHeading:l(L),setextHeadingLineSequence:D,setextHeadingText:A,strong:l(),thematicBreak:l()}};_w(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(j){let $={type:"root",children:[]};const ue={stack:[$],tokenStack:[],config:t,enter:o,exit:u,buffer:s,resume:c,data:n},_e=[];let ve=-1;for(;++ve<j.length;)if(j[ve][1].type==="listOrdered"||j[ve][1].type==="listUnordered")if(j[ve][0]==="enter")_e.push(ve);else{const Xt=_e.pop();ve=a(j,Xt,ve)}for(ve=-1;++ve<j.length;){const Xt=t[j[ve][0]];xw.call(Xt,j[ve][1].type)&&Xt[j[ve][1].type].call(Object.assign({sliceSerialize:j[ve][2].sliceSerialize},ue),j[ve][1])}if(ue.tokenStack.length>0){const Xt=ue.tokenStack[ue.tokenStack.length-1];(Xt[1]||Ew).call(ue,void 0,Xt[0])}for($.position={start:Za(j.length>0?j[0][1].start:{line:1,column:1,offset:0}),end:Za(j.length>0?j[j.length-2][1].end:{line:1,column:1,offset:0})},ve=-1;++ve<t.transforms.length;)$=t.transforms[ve]($)||$;return $}function a(j,$,ue){let _e=$-1,ve=-1,Xt=!1,Mn,_n,ei,Ln;for(;++_e<=ue;){const Lt=j[_e];switch(Lt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Lt[0]==="enter"?ve++:ve--,Ln=void 0;break}case"lineEndingBlank":{Lt[0]==="enter"&&(Mn&&!Ln&&!ve&&!ei&&(ei=_e),Ln=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ln=void 0}if(!ve&&Lt[0]==="enter"&&Lt[1].type==="listItemPrefix"||ve===-1&&Lt[0]==="exit"&&(Lt[1].type==="listUnordered"||Lt[1].type==="listOrdered")){if(Mn){let ti=_e;for(_n=void 0;ti--;){const En=j[ti];if(En[1].type==="lineEnding"||En[1].type==="lineEndingBlank"){if(En[0]==="exit")continue;_n&&(j[_n][1].type="lineEndingBlank",Xt=!0),En[1].type="lineEnding",_n=ti}else if(!(En[1].type==="linePrefix"||En[1].type==="blockQuotePrefix"||En[1].type==="blockQuotePrefixWhitespace"||En[1].type==="blockQuoteMarker"||En[1].type==="listItemIndent"))break}ei&&(!_n||ei<_n)&&(Mn._spread=!0),Mn.end=Object.assign({},_n?j[_n][1].start:Lt[1].end),j.splice(_n||_e,0,["exit",Mn,Lt[2]]),_e++,ue++}if(Lt[1].type==="listItemPrefix"){const ti={type:"listItem",_spread:!1,start:Object.assign({},Lt[1].start),end:void 0};Mn=ti,j.splice(_e,0,["enter",ti,Lt[2]]),_e++,ue++,ei=void 0,Ln=!0}}}return j[$][1]._spread=Xt,ue}function r(j,$){return ue;function ue(_e){o.call(this,j(_e),_e),$&&$.call(this,_e)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(j,$,ue){this.stack[this.stack.length-1].children.push(j),this.stack.push(j),this.tokenStack.push([$,ue||void 0]),j.position={start:Za($.start),end:void 0}}function l(j){return $;function $(ue){j&&j.call(this,ue),u.call(this,ue)}}function u(j,$){const ue=this.stack.pop(),_e=this.tokenStack.pop();if(_e)_e[0].type!==j.type&&($?$.call(this,j,_e[0]):(_e[1]||Ew).call(this,j,_e[0]));else throw new Error("Cannot close `"+j.type+"` ("+Kl({start:j.start,end:j.end})+"): it’s not open");ue.position.end=Za(j.end)}function c(){return Km(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(j){if(this.data.expectingFirstListItemValue){const $=this.stack[this.stack.length-2];$.start=Number.parseInt(this.sliceSerialize(j),10),this.data.expectingFirstListItemValue=void 0}}function h(){const j=this.resume(),$=this.stack[this.stack.length-1];$.lang=j}function g(){const j=this.resume(),$=this.stack[this.stack.length-1];$.meta=j}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const j=this.resume(),$=this.stack[this.stack.length-1];$.value=j.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const j=this.resume(),$=this.stack[this.stack.length-1];$.value=j.replace(/(\r?\n|\r)$/g,"")}function v(j){const $=this.resume(),ue=this.stack[this.stack.length-1];ue.label=$,ue.identifier=Ci(this.sliceSerialize(j)).toLowerCase()}function x(){const j=this.resume(),$=this.stack[this.stack.length-1];$.title=j}function T(){const j=this.resume(),$=this.stack[this.stack.length-1];$.url=j}function S(j){const $=this.stack[this.stack.length-1];if(!$.depth){const ue=this.sliceSerialize(j).length;$.depth=ue}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function D(j){const $=this.stack[this.stack.length-1];$.depth=this.sliceSerialize(j).codePointAt(0)===61?1:2}function L(){this.data.setextHeadingSlurpLineEnding=void 0}function B(j){const ue=this.stack[this.stack.length-1].children;let _e=ue[ue.length-1];(!_e||_e.type!=="text")&&(_e=ne(),_e.position={start:Za(j.start),end:void 0},ue.push(_e)),this.stack.push(_e)}function O(j){const $=this.stack.pop();$.value+=this.sliceSerialize(j),$.position.end=Za(j.end)}function Y(j){const $=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ue=$.children[$.children.length-1];ue.position.end=Za(j.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes($.type)&&(B.call(this,j),O.call(this,j))}function U(){this.data.atHardBreak=!0}function ae(){const j=this.resume(),$=this.stack[this.stack.length-1];$.value=j}function ee(){const j=this.resume(),$=this.stack[this.stack.length-1];$.value=j}function Q(){const j=this.resume(),$=this.stack[this.stack.length-1];$.value=j}function F(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=$,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function V(){const j=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";j.type+="Reference",j.referenceType=$,delete j.url,delete j.title}else delete j.identifier,delete j.label;this.data.referenceType=void 0}function H(j){const $=this.sliceSerialize(j),ue=this.stack[this.stack.length-2];ue.label=cB($),ue.identifier=Ci($).toLowerCase()}function te(){const j=this.stack[this.stack.length-1],$=this.resume(),ue=this.stack[this.stack.length-1];if(this.data.inReference=!0,ue.type==="link"){const _e=j.children;ue.children=_e}else ue.alt=$}function N(){const j=this.resume(),$=this.stack[this.stack.length-1];$.url=j}function be(){const j=this.resume(),$=this.stack[this.stack.length-1];$.title=j}function nt(){this.data.inReference=void 0}function M(){this.data.referenceType="collapsed"}function Be(j){const $=this.resume(),ue=this.stack[this.stack.length-1];ue.label=$,ue.identifier=Ci(this.sliceSerialize(j)).toLowerCase(),this.data.referenceType="full"}function ge(j){this.data.characterReferenceType=j.type}function je(j){const $=this.sliceSerialize(j),ue=this.data.characterReferenceType;let _e;ue?(_e=g2($,ue==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):_e=Wm($);const ve=this.stack[this.stack.length-1];ve.value+=_e}function fn(j){const $=this.stack.pop();$.position.end=Za(j.end)}function Ze(j){O.call(this,j);const $=this.stack[this.stack.length-1];$.url=this.sliceSerialize(j)}function qt(j){O.call(this,j);const $=this.stack[this.stack.length-1];$.url="mailto:"+this.sliceSerialize(j)}function Mt(){return{type:"blockquote",children:[]}}function Gt(){return{type:"code",lang:null,meta:null,value:""}}function tn(){return{type:"inlineCode",value:""}}function $t(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function re(){return{type:"emphasis",children:[]}}function Li(){return{type:"heading",depth:0,children:[]}}function Ii(){return{type:"break"}}function xn(){return{type:"html",value:""}}function xt(){return{type:"image",title:null,url:"",alt:null}}function jt(){return{type:"link",title:null,url:"",children:[]}}function hn(j){return{type:"list",ordered:j.type==="listOrdered",start:null,spread:j._spread,children:[]}}function Lr(j){return{type:"listItem",spread:j._spread,checked:null,children:[]}}function nn(){return{type:"paragraph",children:[]}}function Ts(){return{type:"strong",children:[]}}function ne(){return{type:"text",value:""}}function fe(){return{type:"thematicBreak"}}}function Za(e){return{line:e.line,column:e.column,offset:e.offset}}function _w(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?_w(e,i):XU(e,i)}}function XU(e,t){let n;for(n in t)if(xw.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function Ew(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Kl({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Kl({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Kl({start:t.start,end:t.end})+") is still open")}function KU(e){const t=this;t.parser=n;function n(i){return GU(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function QU(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function WU(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
285
- `}]}function ZU(e,t){const n=t.value?t.value+`
286
- `:"",i={};t.lang&&(i.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function JU(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function eH(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function tH(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=eo(i.toLowerCase()),r=e.footnoteOrder.indexOf(i);let s,o=e.footnoteCounts.get(i);o===void 0?(o=0,e.footnoteOrder.push(i),s=e.footnoteOrder.length):s=r+1,o+=1,e.footnoteCounts.set(i,o);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function nH(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function iH(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Tw(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const a=e.all(t),r=a[0];r&&r.type==="text"?r.value="["+r.value:a.unshift({type:"text",value:"["});const s=a[a.length-1];return s&&s.type==="text"?s.value+=i:a.push({type:"text",value:i}),a}function aH(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return Tw(e,t);const a={src:eo(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(a.title=i.title);const r={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,r),e.applyData(t,r)}function rH(e,t){const n={src:eo(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function sH(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function oH(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return Tw(e,t);const a={href:eo(i.url||"")};i.title!==null&&i.title!==void 0&&(a.title=i.title);const r={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function lH(e,t){const n={href:eo(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function uH(e,t,n){const i=e.all(t),a=n?cH(n):ww(t),r={},s=[];if(typeof t.checked=="boolean"){const c=i[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},i.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),r.className=["task-list-item"]}let o=-1;for(;++o<i.length;){const c=i[o];(a||o!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
287
- `}),c.type==="element"&&c.tagName==="p"&&!a?s.push(...c.children):s.push(c)}const l=i[i.length-1];l&&(a||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
288
- `});const u={type:"element",tagName:"li",properties:r,children:s};return e.patch(t,u),e.applyData(t,u)}function cH(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=ww(n[i])}return t}function ww(e){const t=e.spread;return t??e.children.length>1}function dH(e,t){const n={},i=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<i.length;){const s=i[a];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const r={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,r),e.applyData(t,r)}function fH(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function hH(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function pH(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function mH(e,t){const n=e.all(t),i=n.shift(),a=[];if(i){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],s),a.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Gi(t.children[1]),l=Md(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),a.push(s)}const r={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,r),e.applyData(t,r)}function gH(e,t,n){const i=n?n.children:void 0,r=(i?i.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let l=-1;const u=[];for(;++l<o;){const d=t.children[l],f={},h=s?s[l]:void 0;h&&(f.align=h);let g={type:"element",tagName:r,properties:f,children:[]};d&&(g.children=e.all(d),e.patch(d,g),g=e.applyData(d,g)),u.push(g)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function bH(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Sw=9,Aw=32;function vH(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),a=0;const r=[];for(;i;)r.push(Cw(t.slice(a,i.index),a>0,!0),i[0]),a=i.index+i[0].length,i=n.exec(t);return r.push(Cw(t.slice(a),a>0,!1)),r.join("")}function Cw(e,t,n){let i=0,a=e.length;if(t){let r=e.codePointAt(i);for(;r===Sw||r===Aw;)i++,r=e.codePointAt(i)}if(n){let r=e.codePointAt(a-1);for(;r===Sw||r===Aw;)a--,r=e.codePointAt(a-1)}return a>i?e.slice(i,a):""}function yH(e,t){const n={type:"text",value:vH(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function xH(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const _H={blockquote:QU,break:WU,code:ZU,delete:JU,emphasis:eH,footnoteReference:tH,heading:nH,html:iH,imageReference:aH,image:rH,inlineCode:sH,linkReference:oH,link:lH,listItem:uH,list:dH,paragraph:fH,root:hH,strong:pH,table:mH,tableCell:bH,tableRow:gH,text:yH,thematicBreak:xH,toml:Ld,yaml:Ld,definition:Ld,footnoteDefinition:Ld};function Ld(){}const kw=-1,Id=0,Wl=1,Pd=2,b0=3,v0=4,y0=5,x0=6,Ow=7,Nw=8,Rw=typeof self=="object"?self:globalThis,EH=(e,t)=>{const n=(a,r)=>(e.set(r,a),a),i=a=>{if(e.has(a))return e.get(a);const[r,s]=t[a];switch(r){case Id:case kw:return n(s,a);case Wl:{const o=n([],a);for(const l of s)o.push(i(l));return o}case Pd:{const o=n({},a);for(const[l,u]of s)o[i(l)]=i(u);return o}case b0:return n(new Date(s),a);case v0:{const{source:o,flags:l}=s;return n(new RegExp(o,l),a)}case y0:{const o=n(new Map,a);for(const[l,u]of s)o.set(i(l),i(u));return o}case x0:{const o=n(new Set,a);for(const l of s)o.add(i(l));return o}case Ow:{const{name:o,message:l}=s;return n(new Rw[o](l),a)}case Nw:return n(BigInt(s),a);case"BigInt":return n(Object(BigInt(s)),a);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}}return n(new Rw[r](s),a)};return i},Dw=e=>EH(new Map,e)(0),ro="",{toString:TH}={},{keys:wH}=Object,Zl=e=>{const t=typeof e;if(t!=="object"||!e)return[Id,t];const n=TH.call(e).slice(8,-1);switch(n){case"Array":return[Wl,ro];case"Object":return[Pd,ro];case"Date":return[b0,ro];case"RegExp":return[v0,ro];case"Map":return[y0,ro];case"Set":return[x0,ro];case"DataView":return[Wl,n]}return n.includes("Array")?[Wl,n]:n.includes("Error")?[Ow,n]:[Pd,n]},Bd=([e,t])=>e===Id&&(t==="function"||t==="symbol"),SH=(e,t,n,i)=>{const a=(s,o)=>{const l=i.push(s)-1;return n.set(o,l),l},r=s=>{if(n.has(s))return n.get(s);let[o,l]=Zl(s);switch(o){case Id:{let c=s;switch(l){case"bigint":o=Nw,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return a([kw],s)}return a([o,c],s)}case Wl:{if(l){let f=s;return l==="DataView"?f=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(f=new Uint8Array(s)),a([l,[...f]],s)}const c=[],d=a([o,c],s);for(const f of s)c.push(r(f));return d}case Pd:{if(l)switch(l){case"BigInt":return a([l,s.toString()],s);case"Boolean":case"Number":case"String":return a([l,s.valueOf()],s)}if(t&&"toJSON"in s)return r(s.toJSON());const c=[],d=a([o,c],s);for(const f of wH(s))(e||!Bd(Zl(s[f])))&&c.push([r(f),r(s[f])]);return d}case b0:return a([o,s.toISOString()],s);case v0:{const{source:c,flags:d}=s;return a([o,{source:c,flags:d}],s)}case y0:{const c=[],d=a([o,c],s);for(const[f,h]of s)(e||!(Bd(Zl(f))||Bd(Zl(h))))&&c.push([r(f),r(h)]);return d}case x0:{const c=[],d=a([o,c],s);for(const f of s)(e||!Bd(Zl(f)))&&c.push(r(f));return d}}const{message:u}=s;return a([o,{name:l,message:u}],s)};return r},Mw=(e,{json:t,lossy:n}={})=>{const i=[];return SH(!(t||n),!!t,new Map,i)(e),i},so=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Dw(Mw(e,t)):structuredClone(e):(e,t)=>Dw(Mw(e,t));function AH(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function CH(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function kH(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||AH,i=e.options.footnoteBackLabel||CH,a=e.options.footnoteLabel||"Footnotes",r=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),d=String(u.identifier).toUpperCase(),f=eo(d.toLowerCase());let h=0;const g=[],y=e.footnoteCounts.get(d);for(;y!==void 0&&++h<=y;){g.length>0&&g.push({type:"text",value:" "});let v=typeof n=="string"?n:n(l,h);typeof v=="string"&&(v={type:"text",value:v}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(l,h),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const E=c[c.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const v=E.children[E.children.length-1];v&&v.type==="text"?v.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...g)}else c.push(...g);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,m),o.push(m)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:r,properties:{...so(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
289
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
290
- `}]}}const _0={}.hasOwnProperty,OH={};function NH(e,t){const n=t||OH,i=new Map,a=new Map,r=new Map,s={..._H,...n.handlers},o={all:u,applyData:DH,definitionById:i,footnoteById:a,footnoteCounts:r,footnoteOrder:[],handlers:s,one:l,options:n,patch:RH,wrap:LH};return Cd(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const d=c.type==="definition"?i:a,f=String(c.identifier).toUpperCase();d.has(f)||d.set(f,c)}}),o;function l(c,d){const f=c.type,h=o.handlers[f];if(_0.call(o.handlers,f)&&h)return h(o,c,d);if(o.options.passThrough&&o.options.passThrough.includes(f)){if("children"in c){const{children:y,...E}=c,m=so(E);return m.children=o.all(c),m}return so(c)}return(o.options.unknownHandler||MH)(o,c,d)}function u(c){const d=[];if("children"in c){const f=c.children;let h=-1;for(;++h<f.length;){const g=o.one(f[h],c);if(g){if(h&&f[h-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=Lw(g.value)),!Array.isArray(g)&&g.type==="element")){const y=g.children[0];y&&y.type==="text"&&(y.value=Lw(y.value))}Array.isArray(g)?d.push(...g):d.push(g)}}}return d}}function RH(e,t){e.position&&(t.position=oU(e))}function DH(e,t){let n=t;if(e&&e.data){const i=e.data.hName,a=e.data.hChildren,r=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const s="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:s}}n.type==="element"&&r&&Object.assign(n.properties,so(r)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function MH(e,t){const n=t.data||{},i="value"in t&&!(_0.call(n,"hProperties")||_0.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function LH(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
291
- `});++i<e.length;)i&&n.push({type:"text",value:`
292
- `}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
293
- `}),n}function Lw(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Iw(e,t){const n=NH(e,t),i=n.one(e,void 0),a=kH(n),r=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return a&&r.children.push({type:"text",value:`
294
- `},a),r}function IH(e,t){return e&&"run"in e?async function(n,i){const a=Iw(n,{file:i,...t});await e.run(a,i)}:function(n,i){return Iw(n,{file:i,...e||t})}}function Pw(e){if(e)throw e}var jd=Object.prototype.hasOwnProperty,Bw=Object.prototype.toString,jw=Object.defineProperty,zw=Object.getOwnPropertyDescriptor,Uw=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Bw.call(t)==="[object Array]"},Hw=function(t){if(!t||Bw.call(t)!=="[object Object]")return!1;var n=jd.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&jd.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!i)return!1;var a;for(a in t);return typeof a>"u"||jd.call(t,a)},Fw=function(t,n){jw&&n.name==="__proto__"?jw(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Vw=function(t,n){if(n==="__proto__")if(jd.call(t,n)){if(zw)return zw(t,n).value}else return;return t[n]},PH=function e(){var t,n,i,a,r,s,o=arguments[0],l=1,u=arguments.length,c=!1;for(typeof o=="boolean"&&(c=o,o=arguments[1]||{},l=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});l<u;++l)if(t=arguments[l],t!=null)for(n in t)i=Vw(o,n),a=Vw(t,n),o!==a&&(c&&a&&(Hw(a)||(r=Uw(a)))?(r?(r=!1,s=i&&Uw(i)?i:[]):s=i&&Hw(i)?i:{},Fw(o,{name:n,newValue:e(c,s,a)})):typeof a<"u"&&Fw(o,{name:n,newValue:a}));return o};const E0=hl(PH);function T0(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function BH(){const e=[],t={run:n,use:i};return t;function n(...a){let r=-1;const s=a.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...a);function o(l,...u){const c=e[++r];let d=-1;if(l){s(l);return}for(;++d<a.length;)(u[d]===null||u[d]===void 0)&&(u[d]=a[d]);a=u,c?jH(c,o)(...u):s(null,...u)}}function i(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function jH(e,t){let n;return i;function i(...s){const o=e.length>s.length;let l;o&&s.push(a);try{l=e.apply(this,s)}catch(u){const c=u;if(o&&n)throw c;return a(c)}o||(l&&l.then&&typeof l.then=="function"?l.then(r,a):l instanceof Error?a(l):r(l))}function a(s,...o){n||(n=!0,t(s,...o))}function r(s){a(null,s)}}const $i={basename:zH,dirname:UH,extname:HH,join:FH,sep:"/"};function zH(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Jl(e);let n=0,i=-1,a=e.length,r;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(r){n=a+1;break}}else i<0&&(r=!0,i=a+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let s=-1,o=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(r){n=a+1;break}}else s<0&&(r=!0,s=a+1),o>-1&&(e.codePointAt(a)===t.codePointAt(o--)?o<0&&(i=a):(o=-1,i=s));return n===i?i=s:i<0&&(i=e.length),e.slice(n,i)}function UH(e){if(Jl(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function HH(e){Jl(e);let t=e.length,n=-1,i=0,a=-1,r=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){i=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?a<0?a=t:r!==1&&(r=1):a>-1&&(r=-1)}return a<0||n<0||r===0||r===1&&a===n-1&&a===i+1?"":e.slice(a,n)}function FH(...e){let t=-1,n;for(;++t<e.length;)Jl(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":VH(n)}function VH(e){Jl(e);const t=e.codePointAt(0)===47;let n=YH(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function YH(e,t){let n="",i=0,a=-1,r=0,s=-1,o,l;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(a===s-1||r===1))if(a!==s-1&&r===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",i=0):(n=n.slice(0,l),i=n.length-1-n.lastIndexOf("/")),a=s,r=0;continue}}else if(n.length>0){n="",i=0,a=s,r=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(a+1,s):n=e.slice(a+1,s),i=s-a-1;a=s,r=0}else o===46&&r>-1?r++:r=-1}return n}function Jl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const qH={cwd:GH};function GH(){return"/"}function w0(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function $H(e){if(typeof e=="string")e=new URL(e);else if(!w0(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return XH(e)}function XH(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const S0=["history","path","basename","stem","extname","dirname"];class Yw{constructor(t){let n;t?w0(t)?n={path:t}:typeof t=="string"||KH(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":qH.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<S0.length;){const r=S0[i];r in n&&n[r]!==void 0&&n[r]!==null&&(this[r]=r==="history"?[...n[r]]:n[r])}let a;for(a in n)S0.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?$i.basename(this.path):void 0}set basename(t){C0(t,"basename"),A0(t,"basename"),this.path=$i.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?$i.dirname(this.path):void 0}set dirname(t){qw(this.basename,"dirname"),this.path=$i.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?$i.extname(this.path):void 0}set extname(t){if(A0(t,"extname"),qw(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=$i.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){w0(t)&&(t=$H(t)),C0(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?$i.basename(this.path,this.extname):void 0}set stem(t){C0(t,"stem"),A0(t,"stem"),this.path=$i.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const a=this.message(t,n,i);throw a.fatal=!0,a}info(t,n,i){const a=this.message(t,n,i);return a.fatal=void 0,a}message(t,n,i){const a=new ln(t,n,i);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function A0(e,t){if(e&&e.includes($i.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+$i.sep+"`")}function C0(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function qw(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function KH(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const QH=function(e){const i=this.constructor.prototype,a=i[e],r=function(){return a.apply(r,arguments)};return Object.setPrototypeOf(r,i),r},WH={}.hasOwnProperty;class k0 extends QH{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=BH()}copy(){const t=new k0;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(E0(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(R0("data",this.frozen),this.namespace[t]=n,this):WH.call(this.namespace,t)&&this.namespace[t]||void 0:t?(R0("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const a=n.call(t,...i);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=zd(t),i=this.parser||this.Parser;return O0("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),O0("process",this.parser||this.Parser),N0("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(r,s){const o=zd(t),l=i.parse(o);i.run(l,o,function(c,d,f){if(c||!d||!f)return u(c);const h=d,g=i.stringify(h,f);eF(g)?f.value=g:f.result=g,u(c,f)});function u(c,d){c||!d?s(c):r?r(d):n(void 0,d)}}}processSync(t){let n=!1,i;return this.freeze(),O0("processSync",this.parser||this.Parser),N0("processSync",this.compiler||this.Compiler),this.process(t,a),$w("processSync","process",n),i;function a(r,s){n=!0,Pw(r),i=s}}run(t,n,i){Gw(t),this.freeze();const a=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?r(void 0,i):new Promise(r);function r(s,o){const l=zd(n);a.run(t,l,u);function u(c,d,f){const h=d||t;c?o(c):s?s(h):i(void 0,h,f)}}}runSync(t,n){let i=!1,a;return this.run(t,n,r),$w("runSync","run",i),a;function r(s,o){Pw(s),a=o,i=!0}}stringify(t,n){this.freeze();const i=zd(n),a=this.compiler||this.Compiler;return N0("stringify",a),Gw(t),a(t,i)}use(t,...n){const i=this.attachers,a=this.namespace;if(R0("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function r(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...d]=u;l(c,d)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(u.plugins),u.settings&&(a.settings=E0(!0,a.settings,u.settings))}function o(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const d=u[c];r(d)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let d=-1,f=-1;for(;++d<i.length;)if(i[d][0]===u){f=d;break}if(f===-1)i.push([u,...c]);else if(c.length>0){let[h,...g]=c;const y=i[f][1];T0(y)&&T0(h)&&(h=E0(!0,y,h)),i[f]=[u,h,...g]}}}}const ZH=new k0().freeze();function O0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function N0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function R0(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Gw(e){if(!T0(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function $w(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function zd(e){return JH(e)?e:new Yw(e)}function JH(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function eF(e){return typeof e=="string"||tF(e)}function tF(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const nF="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Xw=[],Kw={allowDangerousHtml:!0},iF=/^(https?|ircs?|mailto|xmpp)$/i,aF=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function rF(e){const t=sF(e),n=oF(e);return lF(t.runSync(t.parse(n),n),e)}function sF(e){const t=e.rehypePlugins||Xw,n=e.remarkPlugins||Xw,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Kw}:Kw;return ZH().use(KU).use(n).use(IH,i).use(t)}function oF(e){const t=e.children||"",n=new Yw;return typeof t=="string"&&(n.value=t),n}function lF(e,t){const n=t.allowedElements,i=t.allowElement,a=t.components,r=t.disallowedElements,s=t.skipHtml,o=t.unwrapDisallowed,l=t.urlTransform||uF;for(const c of aF)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+nF+c.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),Cd(e,u),fU(e,{Fragment:b.Fragment,components:a,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0});function u(c,d,f){if(c.type==="raw"&&f&&typeof d=="number")return s?f.children.splice(d,1):f.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let h;for(h in g0)if(Object.hasOwn(g0,h)&&Object.hasOwn(c.properties,h)){const g=c.properties[h],y=g0[h];(y===null||y.includes(c.tagName))&&(c.properties[h]=l(String(g||""),h,c))}}if(c.type==="element"){let h=n?!n.includes(c.tagName):r?r.includes(c.tagName):!1;if(!h&&i&&typeof d=="number"&&(h=!i(c,d,f)),h&&f&&typeof d=="number")return o&&c.children?f.children.splice(d,1,...c.children):f.children.splice(d,1),d}}}function uF(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||i!==-1&&t>i||iF.test(e.slice(0,t))?e:""}const Qw=/[#.]/g;function cF(e,t){const n=e||"",i={};let a=0,r,s;for(;a<n.length;){Qw.lastIndex=a;const o=Qw.exec(n),l=n.slice(a,o?o.index:n.length);l&&(r?r==="#"?i.id=l:Array.isArray(i.className)?i.className.push(l):i.className=[l]:s=l,a+=l.length),o&&(r=o[0],a++)}return{type:"element",tagName:s||t||"div",properties:i,children:[]}}function Ww(e,t,n){const i=n?pF(n):void 0;function a(r,s,...o){let l;if(r==null){l={type:"root",children:[]};const u=s;o.unshift(u)}else{l=cF(r,t);const u=l.tagName.toLowerCase(),c=i?i.get(u):void 0;if(l.tagName=c||u,dF(s))o.unshift(s);else for(const[d,f]of Object.entries(s))fF(e,l.properties,d,f)}for(const u of o)D0(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return a}function dF(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const i of n){const a=t[i];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const r=a;for(const s of r)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function fF(e,t,n,i){const a=u0(e,n);let r;if(i!=null){if(typeof i=="number"){if(Number.isNaN(i))return;r=i}else typeof i=="boolean"?r=i:typeof i=="string"?a.spaceSeparated?r=nw(i):a.commaSeparated?r=V2(i):a.commaOrSpaceSeparated?r=nw(V2(i).join(" ")):r=Zw(a,a.property,i):Array.isArray(i)?r=[...i]:r=a.property==="style"?hF(i):String(i);if(Array.isArray(r)){const s=[];for(const o of r)s.push(Zw(a,a.property,o));r=s}a.property==="className"&&Array.isArray(t.className)&&(r=t.className.concat(r)),t[a.property]=r}}function D0(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)D0(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?D0(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Zw(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Xl(n)===Xl(t)))return!0}return n}function hF(e){const t=[];for(const[n,i]of Object.entries(e))t.push([n,i].join(": "));return t.join("; ")}function pF(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const mF=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],gF=Ww(Rd,"div"),bF=Ww(ao,"g",mF);function vF(e){const t=String(e),n=[];return{toOffset:a,toPoint:i};function i(r){if(typeof r=="number"&&r>-1&&r<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const l=Jw(t,n[s-1]);o=l===-1?t.length+1:l+1,n[s]=o}if(o>r)return{line:s+1,column:r-(s>0?n[s-1]:0)+1,offset:r};s++}}}function a(r){if(r&&typeof r.line=="number"&&typeof r.column=="number"&&!Number.isNaN(r.line)&&!Number.isNaN(r.column)){for(;n.length<r.line;){const o=n[n.length-1],l=Jw(t,o),u=l===-1?t.length+1:l+1;if(o===u)break;n.push(u)}const s=(r.line>1?n[r.line-2]:0)+r.column-1;if(s<n[r.line-1])return s}}}function Jw(e,t){const n=e.indexOf("\r",t),i=e.indexOf(`
295
- `,t);return i===-1?n:n===-1||n+1===i?i:n<i?n:i}const Zr={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},eS={}.hasOwnProperty,yF=Object.prototype;function xF(e,t){const n=t||{};return M0({file:n.file||void 0,location:!1,schema:n.space==="svg"?ao:Rd,verbose:n.verbose||!1},e)}function M0(e,t){let n;switch(t.nodeName){case"#comment":{const i=t;return n={type:"comment",value:i.data},Ud(e,i,n),n}case"#document":case"#document-fragment":{const i=t,a="mode"in i?i.mode==="quirks"||i.mode==="limited-quirks":!1;if(n={type:"root",children:tS(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const r=String(e.file),s=vF(r),o=s.toPoint(0),l=s.toPoint(r.length);n.position={start:o,end:l}}return n}case"#documentType":{const i=t;return n={type:"doctype"},Ud(e,i,n),n}case"#text":{const i=t;return n={type:"text",value:i.value},Ud(e,i,n),n}default:return n=_F(e,t),n}}function tS(e,t){let n=-1;const i=[];for(;++n<t.length;){const a=M0(e,t[n]);i.push(a)}return i}function _F(e,t){const n=e.schema;e.schema=t.namespaceURI===Zr.svg?ao:Rd;let i=-1;const a={};for(;++i<t.attrs.length;){const o=t.attrs[i],l=(o.prefix?o.prefix+":":"")+o.name;eS.call(yF,l)||(a[l]=o.value)}const s=(e.schema.space==="svg"?bF:gF)(t.tagName,a,tS(e,t.childNodes));if(Ud(e,t,s),s.tagName==="template"){const o=t,l=o.sourceCodeLocation,u=l&&l.startTag&&oo(l.startTag),c=l&&l.endTag&&oo(l.endTag),d=M0(e,o.content);u&&c&&e.file&&(d.position={start:u.end,end:c.start}),s.content=d}return e.schema=n,s}function Ud(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const i=EF(e,n,t.sourceCodeLocation);i&&(e.location=!0,n.position=i)}}function EF(e,t,n){const i=oo(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(i&&!n.endTag&&a&&a.position&&a.position.end&&(i.end=Object.assign({},a.position.end)),e.verbose){const r={};let s;if(n.attrs)for(s in n.attrs)eS.call(n.attrs,s)&&(r[u0(e.schema,s).property]=oo(n.attrs[s]));n.startTag;const o=oo(n.startTag),l=n.endTag?oo(n.endTag):void 0,u={opening:o};l&&(u.closing=l),u.properties=r,t.data={position:u}}}return i}function oo(e){const t=nS({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=nS({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function nS(e){return e.line&&e.column?e:void 0}class eu{constructor(t,n,i){this.property=t,this.normal=n,i&&(this.space=i)}}eu.prototype.property={},eu.prototype.normal={},eu.prototype.space=null;function iS(e,t){const n={},i={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(i,e[a].normal);return new eu(n,i,t)}function L0(e){return e.toLowerCase()}class ui{constructor(t,n){this.property=t,this.attribute=n}}ui.prototype.space=null,ui.prototype.boolean=!1,ui.prototype.booleanish=!1,ui.prototype.overloadedBoolean=!1,ui.prototype.number=!1,ui.prototype.commaSeparated=!1,ui.prototype.spaceSeparated=!1,ui.prototype.commaOrSpaceSeparated=!1,ui.prototype.mustUseProperty=!1,ui.prototype.defined=!1;let TF=0;const Ee=Jr(),Ot=Jr(),aS=Jr(),Z=Jr(),et=Jr(),lo=Jr(),Fn=Jr();function Jr(){return 2**++TF}const I0=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ee,booleanish:Ot,commaOrSpaceSeparated:Fn,commaSeparated:lo,number:Z,overloadedBoolean:aS,spaceSeparated:et},Symbol.toStringTag,{value:"Module"})),P0=Object.keys(I0);class B0 extends ui{constructor(t,n,i,a){let r=-1;if(super(t,n),rS(this,"space",a),typeof i=="number")for(;++r<P0.length;){const s=P0[r];rS(this,P0[r],(i&I0[s])===I0[s])}}}B0.prototype.defined=!0;function rS(e,t,n){n&&(e[t]=n)}const wF={}.hasOwnProperty;function uo(e){const t={},n={};let i;for(i in e.properties)if(wF.call(e.properties,i)){const a=e.properties[i],r=new B0(i,e.transform(e.attributes||{},i),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(r.mustUseProperty=!0),t[i]=r,n[L0(i)]=i,n[L0(r.attribute)]=i}return new eu(t,n,e.space)}const sS=uo({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),oS=uo({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function lS(e,t){return t in e?e[t]:t}function uS(e,t){return lS(e,t.toLowerCase())}const cS=uo({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:uS,properties:{xmlns:null,xmlnsXLink:null}}),dS=uo({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Ot,ariaAutoComplete:null,ariaBusy:Ot,ariaChecked:Ot,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:et,ariaCurrent:null,ariaDescribedBy:et,ariaDetails:null,ariaDisabled:Ot,ariaDropEffect:et,ariaErrorMessage:null,ariaExpanded:Ot,ariaFlowTo:et,ariaGrabbed:Ot,ariaHasPopup:null,ariaHidden:Ot,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:et,ariaLevel:Z,ariaLive:null,ariaModal:Ot,ariaMultiLine:Ot,ariaMultiSelectable:Ot,ariaOrientation:null,ariaOwns:et,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:Ot,ariaReadOnly:Ot,ariaRelevant:null,ariaRequired:Ot,ariaRoleDescription:et,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:Ot,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null}}),SF=uo({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:uS,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:lo,acceptCharset:et,accessKey:et,action:null,allow:null,allowFullScreen:Ee,allowPaymentRequest:Ee,allowUserMedia:Ee,alt:null,as:null,async:Ee,autoCapitalize:null,autoComplete:et,autoFocus:Ee,autoPlay:Ee,blocking:et,capture:null,charSet:null,checked:Ee,cite:null,className:et,cols:Z,colSpan:null,content:null,contentEditable:Ot,controls:Ee,controlsList:et,coords:Z|lo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ee,defer:Ee,dir:null,dirName:null,disabled:Ee,download:aS,draggable:Ot,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ee,formTarget:null,headers:et,height:Z,hidden:Ee,high:Z,href:null,hrefLang:null,htmlFor:et,httpEquiv:et,id:null,imageSizes:null,imageSrcSet:null,inert:Ee,inputMode:null,integrity:null,is:null,isMap:Ee,itemId:null,itemProp:et,itemRef:et,itemScope:Ee,itemType:et,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ee,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:Ee,muted:Ee,name:null,nonce:null,noModule:Ee,noValidate:Ee,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ee,optimum:Z,pattern:null,ping:et,placeholder:null,playsInline:Ee,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ee,referrerPolicy:null,rel:et,required:Ee,reversed:Ee,rows:Z,rowSpan:Z,sandbox:et,scope:null,scoped:Ee,seamless:Ee,selected:Ee,shadowRootClonable:Ee,shadowRootDelegatesFocus:Ee,shadowRootMode:null,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:Ot,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:Ee,useMap:null,value:Ot,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:et,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ee,declare:Ee,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:Ee,noHref:Ee,noShade:Ee,noWrap:Ee,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:Ot,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ee,disableRemotePlayback:Ee,prefix:null,property:null,results:Z,security:null,unselectable:null}}),AF=uo({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:lS,properties:{about:Fn,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,className:et,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:Ee,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:lo,g2:lo,glyphName:lo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:Fn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Z,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:et,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Fn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Fn,rev:Fn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Fn,requiredFeatures:Fn,requiredFonts:Fn,requiredFormats:Fn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:Fn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Fn,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Fn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),CF=/^data[-\w.:]+$/i,fS=/-[a-z]/g,kF=/[A-Z]/g;function OF(e,t){const n=L0(t);let i=t,a=ui;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&CF.test(t)){if(t.charAt(4)==="-"){const r=t.slice(5).replace(fS,RF);i="data"+r.charAt(0).toUpperCase()+r.slice(1)}else{const r=t.slice(4);if(!fS.test(r)){let s=r.replace(kF,NF);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=B0}return new a(i,t)}function NF(e){return"-"+e.toLowerCase()}function RF(e){return e.charAt(1).toUpperCase()}const DF=iS([oS,sS,cS,dS,SF],"html"),hS=iS([oS,sS,cS,dS,AF],"svg"),MF={},LF={}.hasOwnProperty,pS=JT("type",{handlers:{root:PF,element:HF,text:zF,comment:UF,doctype:jF}});function IF(e,t){const i=(t||MF).space;return pS(e,i==="svg"?hS:DF)}function PF(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=j0(e.children,n,t),co(e,n),n}function BF(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=j0(e.children,n,t),co(e,n),n}function jF(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return co(e,t),t}function zF(e){const t={nodeName:"#text",value:e.value,parentNode:null};return co(e,t),t}function UF(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return co(e,t),t}function HF(e,t){const n=t;let i=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=hS);const a=[];let r;if(e.properties){for(r in e.properties)if(r!=="children"&&LF.call(e.properties,r)){const l=FF(i,r,e.properties[r]);l&&a.push(l)}}const s=i.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Zr[s],childNodes:[],parentNode:null};return o.childNodes=j0(e.children,o,i),co(e,o),e.tagName==="template"&&e.content&&(o.content=BF(e.content,i)),o}function FF(e,t,n){const i=OF(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&i.boolean)return;Array.isArray(n)&&(n=i.commaSeparated?Y2(n):iw(n));const a={name:i.attribute,value:n===!0?"":String(n)};if(i.space&&i.space!=="html"&&i.space!=="svg"){const r=a.name.indexOf(":");r<0?a.prefix="":(a.name=a.name.slice(r+1),a.prefix=i.attribute.slice(0,r)),a.namespace=Zr[i.space]}return a}function j0(e,t,n){let i=-1;const a=[];if(e)for(;++i<e.length;){const r=pS(e[i],n);r.parentNode=t,a.push(r)}return a}function co(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const VF=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],YF=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),lt="�";var w;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(w||(w={}));const Cn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function mS(e){return e>=55296&&e<=57343}function qF(e){return e>=56320&&e<=57343}function GF(e,t){return(e-55296)*1024+9216+t}function gS(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function bS(e){return e>=64976&&e<=65007||YF.has(e)}var z;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(z||(z={}));const $F=65536;class XF{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=$F,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:i,col:a,offset:r}=this,s=a+n,o=r+n;return{code:t,startLine:i,endLine:i,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(qF(n))return this.pos++,this._addGap(),GF(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,w.EOF;return this._err(z.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let i=0;i<t.length;i++)if((this.html.charCodeAt(this.pos+i)|32)!==t.charCodeAt(i))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,w.EOF;const i=this.html.charCodeAt(n);return i===w.CARRIAGE_RETURN?w.LINE_FEED:i}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,w.EOF;let t=this.html.charCodeAt(this.pos);return t===w.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,w.LINE_FEED):t===w.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,mS(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===w.LINE_FEED||t===w.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){gS(t)?this._err(z.controlCharacterInInputStream):bS(t)&&this._err(z.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var ke;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(ke||(ke={}));function vS(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const KF=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),QF=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function WF(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=QF.get(e))!==null&&t!==void 0?t:e}var zt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(zt||(zt={}));const ZF=32;var Ja;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ja||(Ja={}));function z0(e){return e>=zt.ZERO&&e<=zt.NINE}function JF(e){return e>=zt.UPPER_A&&e<=zt.UPPER_F||e>=zt.LOWER_A&&e<=zt.LOWER_F}function eV(e){return e>=zt.UPPER_A&&e<=zt.UPPER_Z||e>=zt.LOWER_A&&e<=zt.LOWER_Z||z0(e)}function tV(e){return e===zt.EQUALS||eV(e)}var Ut;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Ut||(Ut={}));var ma;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(ma||(ma={}));class nV{constructor(t,n,i){this.decodeTree=t,this.emitCodePoint=n,this.errors=i,this.state=Ut.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=ma.Strict}startEntity(t){this.decodeMode=t,this.state=Ut.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Ut.EntityStart:return t.charCodeAt(n)===zt.NUM?(this.state=Ut.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Ut.NamedEntity,this.stateNamedEntity(t,n));case Ut.NumericStart:return this.stateNumericStart(t,n);case Ut.NumericDecimal:return this.stateNumericDecimal(t,n);case Ut.NumericHex:return this.stateNumericHex(t,n);case Ut.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|ZF)===zt.LOWER_X?(this.state=Ut.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Ut.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,i,a){if(n!==i){const r=i-n;this.result=this.result*Math.pow(a,r)+Number.parseInt(t.substr(n,r),a),this.consumed+=r}}stateNumericHex(t,n){const i=n;for(;n<t.length;){const a=t.charCodeAt(n);if(z0(a)||JF(a))n+=1;else return this.addToNumericResult(t,i,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,i,n,16),-1}stateNumericDecimal(t,n){const i=n;for(;n<t.length;){const a=t.charCodeAt(n);if(z0(a))n+=1;else return this.addToNumericResult(t,i,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,i,n,10),-1}emitNumericEntity(t,n){var i;if(this.consumed<=n)return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===zt.SEMI)this.consumed+=1;else if(this.decodeMode===ma.Strict)return 0;return this.emitCodePoint(WF(this.result),this.consumed),this.errors&&(t!==zt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:i}=this;let a=i[this.treeIndex],r=(a&Ja.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=iV(i,a,this.treeIndex+Math.max(1,r),s),this.treeIndex<0)return this.result===0||this.decodeMode===ma.Attribute&&(r===0||tV(s))?0:this.emitNotTerminatedNamedEntity();if(a=i[this.treeIndex],r=(a&Ja.VALUE_LENGTH)>>14,r!==0){if(s===zt.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==ma.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:i}=this,a=(i[n]&Ja.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,i){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~Ja.VALUE_LENGTH:a[t+1],i),n===3&&this.emitCodePoint(a[t+2],i),i}end(){var t;switch(this.state){case Ut.NamedEntity:return this.result!==0&&(this.decodeMode!==ma.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ut.NumericDecimal:return this.emitNumericEntity(0,2);case Ut.NumericHex:return this.emitNumericEntity(0,3);case Ut.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ut.EntityStart:return 0}}}function iV(e,t,n,i){const a=(t&Ja.BRANCH_LENGTH)>>7,r=t&Ja.JUMP_TABLE;if(a===0)return r!==0&&i===r?n:-1;if(r){const l=i-r;return l<0||l>=a?-1:e[n+l]-1}let s=n,o=s+a-1;for(;s<=o;){const l=s+o>>>1,u=e[l];if(u<i)s=l+1;else if(u>i)o=l-1;else return e[l+a]}return-1}var X;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(X||(X={}));var es;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(es||(es={}));var ci;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(ci||(ci={}));var P;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(P||(P={}));var p;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(p||(p={}));const aV=new Map([[P.A,p.A],[P.ADDRESS,p.ADDRESS],[P.ANNOTATION_XML,p.ANNOTATION_XML],[P.APPLET,p.APPLET],[P.AREA,p.AREA],[P.ARTICLE,p.ARTICLE],[P.ASIDE,p.ASIDE],[P.B,p.B],[P.BASE,p.BASE],[P.BASEFONT,p.BASEFONT],[P.BGSOUND,p.BGSOUND],[P.BIG,p.BIG],[P.BLOCKQUOTE,p.BLOCKQUOTE],[P.BODY,p.BODY],[P.BR,p.BR],[P.BUTTON,p.BUTTON],[P.CAPTION,p.CAPTION],[P.CENTER,p.CENTER],[P.CODE,p.CODE],[P.COL,p.COL],[P.COLGROUP,p.COLGROUP],[P.DD,p.DD],[P.DESC,p.DESC],[P.DETAILS,p.DETAILS],[P.DIALOG,p.DIALOG],[P.DIR,p.DIR],[P.DIV,p.DIV],[P.DL,p.DL],[P.DT,p.DT],[P.EM,p.EM],[P.EMBED,p.EMBED],[P.FIELDSET,p.FIELDSET],[P.FIGCAPTION,p.FIGCAPTION],[P.FIGURE,p.FIGURE],[P.FONT,p.FONT],[P.FOOTER,p.FOOTER],[P.FOREIGN_OBJECT,p.FOREIGN_OBJECT],[P.FORM,p.FORM],[P.FRAME,p.FRAME],[P.FRAMESET,p.FRAMESET],[P.H1,p.H1],[P.H2,p.H2],[P.H3,p.H3],[P.H4,p.H4],[P.H5,p.H5],[P.H6,p.H6],[P.HEAD,p.HEAD],[P.HEADER,p.HEADER],[P.HGROUP,p.HGROUP],[P.HR,p.HR],[P.HTML,p.HTML],[P.I,p.I],[P.IMG,p.IMG],[P.IMAGE,p.IMAGE],[P.INPUT,p.INPUT],[P.IFRAME,p.IFRAME],[P.KEYGEN,p.KEYGEN],[P.LABEL,p.LABEL],[P.LI,p.LI],[P.LINK,p.LINK],[P.LISTING,p.LISTING],[P.MAIN,p.MAIN],[P.MALIGNMARK,p.MALIGNMARK],[P.MARQUEE,p.MARQUEE],[P.MATH,p.MATH],[P.MENU,p.MENU],[P.META,p.META],[P.MGLYPH,p.MGLYPH],[P.MI,p.MI],[P.MO,p.MO],[P.MN,p.MN],[P.MS,p.MS],[P.MTEXT,p.MTEXT],[P.NAV,p.NAV],[P.NOBR,p.NOBR],[P.NOFRAMES,p.NOFRAMES],[P.NOEMBED,p.NOEMBED],[P.NOSCRIPT,p.NOSCRIPT],[P.OBJECT,p.OBJECT],[P.OL,p.OL],[P.OPTGROUP,p.OPTGROUP],[P.OPTION,p.OPTION],[P.P,p.P],[P.PARAM,p.PARAM],[P.PLAINTEXT,p.PLAINTEXT],[P.PRE,p.PRE],[P.RB,p.RB],[P.RP,p.RP],[P.RT,p.RT],[P.RTC,p.RTC],[P.RUBY,p.RUBY],[P.S,p.S],[P.SCRIPT,p.SCRIPT],[P.SEARCH,p.SEARCH],[P.SECTION,p.SECTION],[P.SELECT,p.SELECT],[P.SOURCE,p.SOURCE],[P.SMALL,p.SMALL],[P.SPAN,p.SPAN],[P.STRIKE,p.STRIKE],[P.STRONG,p.STRONG],[P.STYLE,p.STYLE],[P.SUB,p.SUB],[P.SUMMARY,p.SUMMARY],[P.SUP,p.SUP],[P.TABLE,p.TABLE],[P.TBODY,p.TBODY],[P.TEMPLATE,p.TEMPLATE],[P.TEXTAREA,p.TEXTAREA],[P.TFOOT,p.TFOOT],[P.TD,p.TD],[P.TH,p.TH],[P.THEAD,p.THEAD],[P.TITLE,p.TITLE],[P.TR,p.TR],[P.TRACK,p.TRACK],[P.TT,p.TT],[P.U,p.U],[P.UL,p.UL],[P.SVG,p.SVG],[P.VAR,p.VAR],[P.WBR,p.WBR],[P.XMP,p.XMP]]);function fo(e){var t;return(t=aV.get(e))!==null&&t!==void 0?t:p.UNKNOWN}const K=p,rV={[X.HTML]:new Set([K.ADDRESS,K.APPLET,K.AREA,K.ARTICLE,K.ASIDE,K.BASE,K.BASEFONT,K.BGSOUND,K.BLOCKQUOTE,K.BODY,K.BR,K.BUTTON,K.CAPTION,K.CENTER,K.COL,K.COLGROUP,K.DD,K.DETAILS,K.DIR,K.DIV,K.DL,K.DT,K.EMBED,K.FIELDSET,K.FIGCAPTION,K.FIGURE,K.FOOTER,K.FORM,K.FRAME,K.FRAMESET,K.H1,K.H2,K.H3,K.H4,K.H5,K.H6,K.HEAD,K.HEADER,K.HGROUP,K.HR,K.HTML,K.IFRAME,K.IMG,K.INPUT,K.LI,K.LINK,K.LISTING,K.MAIN,K.MARQUEE,K.MENU,K.META,K.NAV,K.NOEMBED,K.NOFRAMES,K.NOSCRIPT,K.OBJECT,K.OL,K.P,K.PARAM,K.PLAINTEXT,K.PRE,K.SCRIPT,K.SECTION,K.SELECT,K.SOURCE,K.STYLE,K.SUMMARY,K.TABLE,K.TBODY,K.TD,K.TEMPLATE,K.TEXTAREA,K.TFOOT,K.TH,K.THEAD,K.TITLE,K.TR,K.TRACK,K.UL,K.WBR,K.XMP]),[X.MATHML]:new Set([K.MI,K.MO,K.MN,K.MS,K.MTEXT,K.ANNOTATION_XML]),[X.SVG]:new Set([K.TITLE,K.FOREIGN_OBJECT,K.DESC]),[X.XLINK]:new Set,[X.XML]:new Set,[X.XMLNS]:new Set},U0=new Set([K.H1,K.H2,K.H3,K.H4,K.H5,K.H6]);P.STYLE,P.SCRIPT,P.XMP,P.IFRAME,P.NOEMBED,P.NOFRAMES,P.PLAINTEXT;var k;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(k||(k={}));const wt={DATA:k.DATA,RCDATA:k.RCDATA,RAWTEXT:k.RAWTEXT,SCRIPT_DATA:k.SCRIPT_DATA,PLAINTEXT:k.PLAINTEXT,CDATA_SECTION:k.CDATA_SECTION};function sV(e){return e>=w.DIGIT_0&&e<=w.DIGIT_9}function tu(e){return e>=w.LATIN_CAPITAL_A&&e<=w.LATIN_CAPITAL_Z}function oV(e){return e>=w.LATIN_SMALL_A&&e<=w.LATIN_SMALL_Z}function er(e){return oV(e)||tu(e)}function yS(e){return er(e)||sV(e)}function Hd(e){return e+32}function xS(e){return e===w.SPACE||e===w.LINE_FEED||e===w.TABULATION||e===w.FORM_FEED}function _S(e){return xS(e)||e===w.SOLIDUS||e===w.GREATER_THAN_SIGN}function lV(e){return e===w.NULL?z.nullCharacterReference:e>1114111?z.characterReferenceOutsideUnicodeRange:mS(e)?z.surrogateCharacterReference:bS(e)?z.noncharacterCharacterReference:gS(e)||e===w.CARRIAGE_RETURN?z.controlCharacterReference:null}class uV{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=k.DATA,this.returnState=k.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new XF(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new nV(KF,(i,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(i)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(z.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:i=>{this._err(z.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+i)},validateNumericCharacterReference:i=>{const a=lV(i);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var i,a;(a=(i=this.handler).onParseError)===null||a===void 0||a.call(i,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,i){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||i==null||i()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:ke.START_TAG,tagName:"",tagID:p.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ke.END_TAG,tagName:"",tagID:p.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:ke.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:ke.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const i=this.currentToken;if(vS(i,this.currentAttr.name)===null){if(i.attrs.push(this.currentAttr),i.location&&this.currentLocation){const a=(t=(n=i.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(z.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=fo(t.tagName),t.type===ke.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(z.endTagWithAttributes),t.selfClosing&&this._err(z.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case ke.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case ke.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case ke.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:ke.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=xS(t)?ke.WHITESPACE_CHARACTER:t===w.NULL?ke.NULL_CHARACTER:ke.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(ke.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=k.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?ma.Attribute:ma.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===k.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===k.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===k.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case k.DATA:{this._stateData(t);break}case k.RCDATA:{this._stateRcdata(t);break}case k.RAWTEXT:{this._stateRawtext(t);break}case k.SCRIPT_DATA:{this._stateScriptData(t);break}case k.PLAINTEXT:{this._statePlaintext(t);break}case k.TAG_OPEN:{this._stateTagOpen(t);break}case k.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case k.TAG_NAME:{this._stateTagName(t);break}case k.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case k.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case k.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case k.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case k.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case k.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case k.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case k.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case k.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case k.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case k.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case k.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case k.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case k.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case k.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case k.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case k.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case k.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case k.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case k.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case k.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case k.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case k.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case k.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case k.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case k.BOGUS_COMMENT:{this._stateBogusComment(t);break}case k.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case k.COMMENT_START:{this._stateCommentStart(t);break}case k.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case k.COMMENT:{this._stateComment(t);break}case k.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case k.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case k.COMMENT_END:{this._stateCommentEnd(t);break}case k.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case k.DOCTYPE:{this._stateDoctype(t);break}case k.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case k.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case k.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case k.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case k.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case k.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case k.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case k.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case k.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case k.CDATA_SECTION:{this._stateCdataSection(t);break}case k.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case k.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case k.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case k.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case w.LESS_THAN_SIGN:{this.state=k.TAG_OPEN;break}case w.AMPERSAND:{this._startCharacterReference();break}case w.NULL:{this._err(z.unexpectedNullCharacter),this._emitCodePoint(t);break}case w.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case w.AMPERSAND:{this._startCharacterReference();break}case w.LESS_THAN_SIGN:{this.state=k.RCDATA_LESS_THAN_SIGN;break}case w.NULL:{this._err(z.unexpectedNullCharacter),this._emitChars(lt);break}case w.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case w.LESS_THAN_SIGN:{this.state=k.RAWTEXT_LESS_THAN_SIGN;break}case w.NULL:{this._err(z.unexpectedNullCharacter),this._emitChars(lt);break}case w.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case w.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_LESS_THAN_SIGN;break}case w.NULL:{this._err(z.unexpectedNullCharacter),this._emitChars(lt);break}case w.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case w.NULL:{this._err(z.unexpectedNullCharacter),this._emitChars(lt);break}case w.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(er(t))this._createStartTagToken(),this.state=k.TAG_NAME,this._stateTagName(t);else switch(t){case w.EXCLAMATION_MARK:{this.state=k.MARKUP_DECLARATION_OPEN;break}case w.SOLIDUS:{this.state=k.END_TAG_OPEN;break}case w.QUESTION_MARK:{this._err(z.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t);break}case w.EOF:{this._err(z.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(z.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=k.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(er(t))this._createEndTagToken(),this.state=k.TAG_NAME,this._stateTagName(t);else switch(t){case w.GREATER_THAN_SIGN:{this._err(z.missingEndTagName),this.state=k.DATA;break}case w.EOF:{this._err(z.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(z.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=k.BEFORE_ATTRIBUTE_NAME;break}case w.SOLIDUS:{this.state=k.SELF_CLOSING_START_TAG;break}case w.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentTagToken();break}case w.NULL:{this._err(z.unexpectedNullCharacter),n.tagName+=lt;break}case w.EOF:{this._err(z.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(tu(t)?Hd(t):t)}}_stateRcdataLessThanSign(t){t===w.SOLIDUS?this.state=k.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=k.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){er(t)?(this.state=k.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=k.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=k.BEFORE_ATTRIBUTE_NAME,!1;case w.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=k.SELF_CLOSING_START_TAG,!1;case w.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=k.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===w.SOLIDUS?this.state=k.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){er(t)?(this.state=k.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case w.SOLIDUS:{this.state=k.SCRIPT_DATA_END_TAG_OPEN;break}case w.EXCLAMATION_MARK:{this.state=k.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=k.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){er(t)?(this.state=k.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===w.HYPHEN_MINUS?(this.state=k.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===w.HYPHEN_MINUS?(this.state=k.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case w.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case w.NULL:{this._err(z.unexpectedNullCharacter),this._emitChars(lt);break}case w.EOF:{this._err(z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case w.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case w.NULL:{this._err(z.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_ESCAPED,this._emitChars(lt);break}case w.EOF:{this._err(z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case w.HYPHEN_MINUS:{this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case w.GREATER_THAN_SIGN:{this.state=k.SCRIPT_DATA,this._emitChars(">");break}case w.NULL:{this._err(z.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_ESCAPED,this._emitChars(lt);break}case w.EOF:{this._err(z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===w.SOLIDUS?this.state=k.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:er(t)?(this._emitChars("<"),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){er(t)?(this.state=k.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Cn.SCRIPT,!1)&&_S(this.preprocessor.peek(Cn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Cn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case w.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case w.NULL:{this._err(z.unexpectedNullCharacter),this._emitChars(lt);break}case w.EOF:{this._err(z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case w.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case w.NULL:{this._err(z.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(lt);break}case w.EOF:{this._err(z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case w.HYPHEN_MINUS:{this._emitChars("-");break}case w.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case w.GREATER_THAN_SIGN:{this.state=k.SCRIPT_DATA,this._emitChars(">");break}case w.NULL:{this._err(z.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(lt);break}case w.EOF:{this._err(z.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===w.SOLIDUS?(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Cn.SCRIPT,!1)&&_S(this.preprocessor.peek(Cn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Cn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=k.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.SOLIDUS:case w.GREATER_THAN_SIGN:case w.EOF:{this.state=k.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case w.EQUALS_SIGN:{this._err(z.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=k.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=k.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:case w.SOLIDUS:case w.GREATER_THAN_SIGN:case w.EOF:{this._leaveAttrName(),this.state=k.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case w.EQUALS_SIGN:{this._leaveAttrName(),this.state=k.BEFORE_ATTRIBUTE_VALUE;break}case w.QUOTATION_MARK:case w.APOSTROPHE:case w.LESS_THAN_SIGN:{this._err(z.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case w.NULL:{this._err(z.unexpectedNullCharacter),this.currentAttr.name+=lt;break}default:this.currentAttr.name+=String.fromCodePoint(tu(t)?Hd(t):t)}}_stateAfterAttributeName(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.SOLIDUS:{this.state=k.SELF_CLOSING_START_TAG;break}case w.EQUALS_SIGN:{this.state=k.BEFORE_ATTRIBUTE_VALUE;break}case w.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentTagToken();break}case w.EOF:{this._err(z.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=k.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.QUOTATION_MARK:{this.state=k.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case w.APOSTROPHE:{this.state=k.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case w.GREATER_THAN_SIGN:{this._err(z.missingAttributeValue),this.state=k.DATA,this.emitCurrentTagToken();break}default:this.state=k.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case w.QUOTATION_MARK:{this.state=k.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case w.AMPERSAND:{this._startCharacterReference();break}case w.NULL:{this._err(z.unexpectedNullCharacter),this.currentAttr.value+=lt;break}case w.EOF:{this._err(z.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case w.APOSTROPHE:{this.state=k.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case w.AMPERSAND:{this._startCharacterReference();break}case w.NULL:{this._err(z.unexpectedNullCharacter),this.currentAttr.value+=lt;break}case w.EOF:{this._err(z.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this._leaveAttrValue(),this.state=k.BEFORE_ATTRIBUTE_NAME;break}case w.AMPERSAND:{this._startCharacterReference();break}case w.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=k.DATA,this.emitCurrentTagToken();break}case w.NULL:{this._err(z.unexpectedNullCharacter),this.currentAttr.value+=lt;break}case w.QUOTATION_MARK:case w.APOSTROPHE:case w.LESS_THAN_SIGN:case w.EQUALS_SIGN:case w.GRAVE_ACCENT:{this._err(z.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case w.EOF:{this._err(z.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this._leaveAttrValue(),this.state=k.BEFORE_ATTRIBUTE_NAME;break}case w.SOLIDUS:{this._leaveAttrValue(),this.state=k.SELF_CLOSING_START_TAG;break}case w.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=k.DATA,this.emitCurrentTagToken();break}case w.EOF:{this._err(z.eofInTag),this._emitEOFToken();break}default:this._err(z.missingWhitespaceBetweenAttributes),this.state=k.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case w.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=k.DATA,this.emitCurrentTagToken();break}case w.EOF:{this._err(z.eofInTag),this._emitEOFToken();break}default:this._err(z.unexpectedSolidusInTag),this.state=k.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case w.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentComment(n);break}case w.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case w.NULL:{this._err(z.unexpectedNullCharacter),n.data+=lt;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Cn.DASH_DASH,!0)?(this._createCommentToken(Cn.DASH_DASH.length+1),this.state=k.COMMENT_START):this._consumeSequenceIfMatch(Cn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Cn.DOCTYPE.length+1),this.state=k.DOCTYPE):this._consumeSequenceIfMatch(Cn.CDATA_START,!0)?this.inForeignNode?this.state=k.CDATA_SECTION:(this._err(z.cdataInHtmlContent),this._createCommentToken(Cn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=k.BOGUS_COMMENT):this._ensureHibernation()||(this._err(z.incorrectlyOpenedComment),this._createCommentToken(2),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case w.HYPHEN_MINUS:{this.state=k.COMMENT_START_DASH;break}case w.GREATER_THAN_SIGN:{this._err(z.abruptClosingOfEmptyComment),this.state=k.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=k.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case w.HYPHEN_MINUS:{this.state=k.COMMENT_END;break}case w.GREATER_THAN_SIGN:{this._err(z.abruptClosingOfEmptyComment),this.state=k.DATA,this.emitCurrentComment(n);break}case w.EOF:{this._err(z.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=k.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case w.HYPHEN_MINUS:{this.state=k.COMMENT_END_DASH;break}case w.LESS_THAN_SIGN:{n.data+="<",this.state=k.COMMENT_LESS_THAN_SIGN;break}case w.NULL:{this._err(z.unexpectedNullCharacter),n.data+=lt;break}case w.EOF:{this._err(z.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case w.EXCLAMATION_MARK:{n.data+="!",this.state=k.COMMENT_LESS_THAN_SIGN_BANG;break}case w.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=k.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===w.HYPHEN_MINUS?this.state=k.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=k.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===w.HYPHEN_MINUS?this.state=k.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=k.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==w.GREATER_THAN_SIGN&&t!==w.EOF&&this._err(z.nestedComment),this.state=k.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case w.HYPHEN_MINUS:{this.state=k.COMMENT_END;break}case w.EOF:{this._err(z.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=k.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case w.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentComment(n);break}case w.EXCLAMATION_MARK:{this.state=k.COMMENT_END_BANG;break}case w.HYPHEN_MINUS:{n.data+="-";break}case w.EOF:{this._err(z.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=k.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case w.HYPHEN_MINUS:{n.data+="--!",this.state=k.COMMENT_END_DASH;break}case w.GREATER_THAN_SIGN:{this._err(z.incorrectlyClosedComment),this.state=k.DATA,this.emitCurrentComment(n);break}case w.EOF:{this._err(z.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=k.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_NAME;break}case w.GREATER_THAN_SIGN:{this.state=k.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case w.EOF:{this._err(z.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(z.missingWhitespaceBeforeDoctypeName),this.state=k.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(tu(t))this._createDoctypeToken(String.fromCharCode(Hd(t))),this.state=k.DOCTYPE_NAME;else switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.NULL:{this._err(z.unexpectedNullCharacter),this._createDoctypeToken(lt),this.state=k.DOCTYPE_NAME;break}case w.GREATER_THAN_SIGN:{this._err(z.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case w.EOF:{this._err(z.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=k.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=k.AFTER_DOCTYPE_NAME;break}case w.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(n);break}case w.NULL:{this._err(z.unexpectedNullCharacter),n.name+=lt;break}case w.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(tu(t)?Hd(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(n);break}case w.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Cn.PUBLIC,!1)?this.state=k.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Cn.SYSTEM,!1)?this.state=k.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(z.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case w.QUOTATION_MARK:{this._err(z.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{this._err(z.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case w.GREATER_THAN_SIGN:{this._err(z.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case w.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(z.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.QUOTATION_MARK:{n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case w.GREATER_THAN_SIGN:{this._err(z.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case w.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(z.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case w.QUOTATION_MARK:{this.state=k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case w.NULL:{this._err(z.unexpectedNullCharacter),n.publicId+=lt;break}case w.GREATER_THAN_SIGN:{this._err(z.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case w.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case w.APOSTROPHE:{this.state=k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case w.NULL:{this._err(z.unexpectedNullCharacter),n.publicId+=lt;break}case w.GREATER_THAN_SIGN:{this._err(z.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case w.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=k.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case w.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(n);break}case w.QUOTATION_MARK:{this._err(z.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{this._err(z.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case w.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(z.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=k.DATA;break}case w.QUOTATION_MARK:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case w.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(z.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case w.QUOTATION_MARK:{this._err(z.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{this._err(z.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case w.GREATER_THAN_SIGN:{this._err(z.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case w.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(z.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.QUOTATION_MARK:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case w.APOSTROPHE:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case w.GREATER_THAN_SIGN:{this._err(z.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case w.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(z.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case w.QUOTATION_MARK:{this.state=k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case w.NULL:{this._err(z.unexpectedNullCharacter),n.systemId+=lt;break}case w.GREATER_THAN_SIGN:{this._err(z.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case w.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case w.APOSTROPHE:{this.state=k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case w.NULL:{this._err(z.unexpectedNullCharacter),n.systemId+=lt;break}case w.GREATER_THAN_SIGN:{this._err(z.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case w.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case w.SPACE:case w.LINE_FEED:case w.TABULATION:case w.FORM_FEED:break;case w.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=k.DATA;break}case w.EOF:{this._err(z.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(z.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case w.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=k.DATA;break}case w.NULL:{this._err(z.unexpectedNullCharacter);break}case w.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case w.RIGHT_SQUARE_BRACKET:{this.state=k.CDATA_SECTION_BRACKET;break}case w.EOF:{this._err(z.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===w.RIGHT_SQUARE_BRACKET?this.state=k.CDATA_SECTION_END:(this._emitChars("]"),this.state=k.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case w.GREATER_THAN_SIGN:{this.state=k.DATA;break}case w.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=k.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(w.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&yS(this.preprocessor.peek(1))?k.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){yS(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===w.SEMICOLON&&this._err(z.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const ES=new Set([p.DD,p.DT,p.LI,p.OPTGROUP,p.OPTION,p.P,p.RB,p.RP,p.RT,p.RTC]),TS=new Set([...ES,p.CAPTION,p.COLGROUP,p.TBODY,p.TD,p.TFOOT,p.TH,p.THEAD,p.TR]),Fd=new Set([p.APPLET,p.CAPTION,p.HTML,p.MARQUEE,p.OBJECT,p.TABLE,p.TD,p.TEMPLATE,p.TH]),cV=new Set([...Fd,p.OL,p.UL]),dV=new Set([...Fd,p.BUTTON]),wS=new Set([p.ANNOTATION_XML,p.MI,p.MN,p.MO,p.MS,p.MTEXT]),SS=new Set([p.DESC,p.FOREIGN_OBJECT,p.TITLE]),fV=new Set([p.TR,p.TEMPLATE,p.HTML]),hV=new Set([p.TBODY,p.TFOOT,p.THEAD,p.TEMPLATE,p.HTML]),pV=new Set([p.TABLE,p.TEMPLATE,p.HTML]),mV=new Set([p.TD,p.TH]);class gV{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,i){this.treeAdapter=n,this.handler=i,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=p.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===p.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===X.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const i=this._indexOf(t);this.items[i]=n,i===this.stackTop&&(this.current=n)}insertAfter(t,n,i){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,i),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==X.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const i=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(i,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(U0,X.HTML)}popUntilTableCellPopped(){this.popUntilPopped(mV,X.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let i=this.stackTop;i>=0;i--)if(t.has(this.tagIDs[i])&&this.treeAdapter.getNamespaceURI(this.items[i])===n)return i;return-1}clearBackTo(t,n){const i=this._indexOfTagNames(t,n);this.shortenToLength(i+1)}clearBackToTableContext(){this.clearBackTo(pV,X.HTML)}clearBackToTableBodyContext(){this.clearBackTo(hV,X.HTML)}clearBackToTableRowContext(){this.clearBackTo(fV,X.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===p.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===p.HTML}hasInDynamicScope(t,n){for(let i=this.stackTop;i>=0;i--){const a=this.tagIDs[i];switch(this.treeAdapter.getNamespaceURI(this.items[i])){case X.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case X.SVG:{if(SS.has(a))return!1;break}case X.MATHML:{if(wS.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Fd)}hasInListItemScope(t){return this.hasInDynamicScope(t,cV)}hasInButtonScope(t){return this.hasInDynamicScope(t,dV)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case X.HTML:{if(U0.has(n))return!0;if(Fd.has(n))return!1;break}case X.SVG:{if(SS.has(n))return!1;break}case X.MATHML:{if(wS.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===X.HTML)switch(this.tagIDs[n]){case t:return!0;case p.TABLE:case p.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===X.HTML)switch(this.tagIDs[t]){case p.TBODY:case p.THEAD:case p.TFOOT:return!0;case p.TABLE:case p.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===X.HTML)switch(this.tagIDs[n]){case t:return!0;case p.OPTION:case p.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&ES.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&TS.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&TS.has(this.currentTagId);)this.pop()}}const H0=3;var Xi;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Xi||(Xi={}));const AS={type:Xi.Marker};class bV{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const i=[],a=n.length,r=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const l=this.entries[o];if(l.type===Xi.Marker)break;const{element:u}=l;if(this.treeAdapter.getTagName(u)===r&&this.treeAdapter.getNamespaceURI(u)===s){const c=this.treeAdapter.getAttrList(u);c.length===a&&i.push({idx:o,attrs:c})}}return i}_ensureNoahArkCondition(t){if(this.entries.length<H0)return;const n=this.treeAdapter.getAttrList(t),i=this._getNoahArkConditionCandidates(t,n);if(i.length<H0)return;const a=new Map(n.map(s=>[s.name,s.value]));let r=0;for(let s=0;s<i.length;s++){const o=i[s];o.attrs.every(l=>a.get(l.name)===l.value)&&(r+=1,r>=H0&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(AS)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Xi.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const i=this.entries.indexOf(this.bookmark);this.entries.splice(i,0,{type:Xi.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(AS);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(i=>i.type===Xi.Marker||this.treeAdapter.getTagName(i.element)===t);return n&&n.type===Xi.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Xi.Element&&n.element===t)}}const tr={createDocument(){return{nodeName:"#document",mode:ci.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const i=e.childNodes.indexOf(n);e.childNodes.splice(i,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,i){const a=e.childNodes.find(r=>r.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=i;else{const r={nodeName:"#documentType",name:t,publicId:n,systemId:i,parentNode:null};tr.appendChild(e,r)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(tr.isTextNode(n)){n.value+=t;return}}tr.appendChild(e,tr.createTextNode(t))},insertTextBefore(e,t,n){const i=e.childNodes[e.childNodes.indexOf(n)-1];i&&tr.isTextNode(i)?i.value+=t:tr.insertBefore(e,tr.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(i=>i.name));for(let i=0;i<t.length;i++)n.has(t[i].name)||e.attrs.push(t[i])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},CS="html",vV="about:legacy-compat",yV="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",kS=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],xV=[...kS,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],_V=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),OS=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],EV=[...OS,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function NS(e,t){return t.some(n=>e.startsWith(n))}function TV(e){return e.name===CS&&e.publicId===null&&(e.systemId===null||e.systemId===vV)}function wV(e){if(e.name!==CS)return ci.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===yV)return ci.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),_V.has(n))return ci.QUIRKS;let i=t===null?xV:kS;if(NS(n,i))return ci.QUIRKS;if(i=t===null?OS:EV,NS(n,i))return ci.LIMITED_QUIRKS}return ci.NO_QUIRKS}const RS={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},SV="definitionurl",AV="definitionURL",CV=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),kV=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:X.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:X.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:X.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:X.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:X.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:X.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:X.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:X.XML}],["xml:space",{prefix:"xml",name:"space",namespace:X.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:X.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:X.XMLNS}]]),OV=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),NV=new Set([p.B,p.BIG,p.BLOCKQUOTE,p.BODY,p.BR,p.CENTER,p.CODE,p.DD,p.DIV,p.DL,p.DT,p.EM,p.EMBED,p.H1,p.H2,p.H3,p.H4,p.H5,p.H6,p.HEAD,p.HR,p.I,p.IMG,p.LI,p.LISTING,p.MENU,p.META,p.NOBR,p.OL,p.P,p.PRE,p.RUBY,p.S,p.SMALL,p.SPAN,p.STRONG,p.STRIKE,p.SUB,p.SUP,p.TABLE,p.TT,p.U,p.UL,p.VAR]);function RV(e){const t=e.tagID;return t===p.FONT&&e.attrs.some(({name:i})=>i===es.COLOR||i===es.SIZE||i===es.FACE)||NV.has(t)}function DS(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===SV){e.attrs[t].name=AV;break}}function MS(e){for(let t=0;t<e.attrs.length;t++){const n=CV.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function F0(e){for(let t=0;t<e.attrs.length;t++){const n=kV.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function DV(e){const t=OV.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=fo(e.tagName))}function MV(e,t){return t===X.MATHML&&(e===p.MI||e===p.MO||e===p.MN||e===p.MS||e===p.MTEXT)}function LV(e,t,n){if(t===X.MATHML&&e===p.ANNOTATION_XML){for(let i=0;i<n.length;i++)if(n[i].name===es.ENCODING){const a=n[i].value.toLowerCase();return a===RS.TEXT_HTML||a===RS.APPLICATION_XML}}return t===X.SVG&&(e===p.FOREIGN_OBJECT||e===p.DESC||e===p.TITLE)}function IV(e,t,n,i){return(!i||i===X.HTML)&&LV(e,t,n)||(!i||i===X.MATHML)&&MV(e,t)}const PV="hidden",BV=8,jV=3;var R;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(R||(R={}));const zV={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},LS=new Set([p.TABLE,p.TBODY,p.TFOOT,p.THEAD,p.TR]),IS={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:tr,onParseError:null};class PS{constructor(t,n,i=null,a=null){this.fragmentContext=i,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=R.INITIAL,this.originalInsertionMode=R.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...IS,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new uV(this.options,this),this.activeFormattingElements=new bV(this.treeAdapter),this.fragmentContextID=i?fo(this.treeAdapter.getTagName(i)):p.UNKNOWN,this._setContextModes(i??this.document,this.fragmentContextID),this.openElements=new gV(this.document,this.treeAdapter,this)}static parse(t,n){const i=new this(n);return i.tokenizer.write(t,!0),i.document}static getFragmentParser(t,n){const i={...IS,...n};t??(t=i.treeAdapter.createElement(P.TEMPLATE,X.HTML,[]));const a=i.treeAdapter.createElement("documentmock",X.HTML,[]),r=new this(i,a,t);return r.fragmentContextID===p.TEMPLATE&&r.tmplInsertionModeStack.unshift(R.IN_TEMPLATE),r._initTokenizerForFragmentParsing(),r._insertFakeRootElement(),r._resetInsertionMode(),r._findFormInFragmentContext(),r}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,i){var a;if(!this.onParseError)return;const r=(a=t.location)!==null&&a!==void 0?a:zV,s={code:n,startLine:r.startLine,startCol:r.startCol,startOffset:r.startOffset,endLine:i?r.startLine:r.endLine,endCol:i?r.startCol:r.endCol,endOffset:i?r.startOffset:r.endOffset};this.onParseError(s)}onItemPush(t,n,i){var a,r;(r=(a=this.treeAdapter).onItemPush)===null||r===void 0||r.call(a,t),i&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var i,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(i=this.treeAdapter).onItemPop)===null||a===void 0||a.call(i,t,this.openElements.current),n){let r,s;this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,s=this.fragmentContextID):{current:r,currentTagId:s}=this.openElements,this._setContextModes(r,s)}}_setContextModes(t,n){const i=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===X.HTML;this.currentNotInHTML=!i,this.tokenizer.inForeignNode=!i&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,X.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=R.TEXT}switchToPlaintextParsing(){this.insertionMode=R.TEXT,this.originalInsertionMode=R.IN_BODY,this.tokenizer.state=wt.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===P.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==X.HTML))switch(this.fragmentContextID){case p.TITLE:case p.TEXTAREA:{this.tokenizer.state=wt.RCDATA;break}case p.STYLE:case p.XMP:case p.IFRAME:case p.NOEMBED:case p.NOFRAMES:case p.NOSCRIPT:{this.tokenizer.state=wt.RAWTEXT;break}case p.SCRIPT:{this.tokenizer.state=wt.SCRIPT_DATA;break}case p.PLAINTEXT:{this.tokenizer.state=wt.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",i=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,i,a),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const i=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,i)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const i=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(i??this.document,t)}}_appendElement(t,n){const i=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(i,t.location)}_insertElement(t,n){const i=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(i,t.location),this.openElements.push(i,t.tagID)}_insertFakeElement(t,n){const i=this.treeAdapter.createElement(t,X.HTML,[]);this._attachElementToTree(i,null),this.openElements.push(i,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,X.HTML,t.attrs),i=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,i),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(P.HTML,X.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,p.HTML)}_appendCommentNode(t,n){const i=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,i),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}_insertCharacters(t){let n,i;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:i}=this._findFosterParentingLocation(),i?this.treeAdapter.insertTextBefore(n,t.chars,i):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),r=i?a.lastIndexOf(i):a.length,s=a[r-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:u,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:u,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let i=this.treeAdapter.getFirstChild(t);i;i=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(i),this.treeAdapter.appendChild(n,i)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,a=this.treeAdapter.getTagName(t),r=n.type===ke.END_TAG&&a===n.tagName?{endTag:{...i},endLine:i.endLine,endCol:i.endCol,endOffset:i.endOffset}:{endLine:i.startLine,endCol:i.startCol,endOffset:i.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,r)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,i;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,i=this.fragmentContextID):{current:n,currentTagId:i}=this.openElements,t.tagID===p.SVG&&this.treeAdapter.getTagName(n)===P.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===X.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===p.MGLYPH||t.tagID===p.MALIGNMARK)&&i!==void 0&&!this._isIntegrationPoint(i,n,X.HTML)}_processToken(t){switch(t.type){case ke.CHARACTER:{this.onCharacter(t);break}case ke.NULL_CHARACTER:{this.onNullCharacter(t);break}case ke.COMMENT:{this.onComment(t);break}case ke.DOCTYPE:{this.onDoctype(t);break}case ke.START_TAG:{this._processStartTag(t);break}case ke.END_TAG:{this.onEndTag(t);break}case ke.EOF:{this.onEof(t);break}case ke.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,i){const a=this.treeAdapter.getNamespaceURI(n),r=this.treeAdapter.getAttrList(n);return IV(t,a,r,i)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===Xi.Marker||this.openElements.contains(a.element)),i=n===-1?t-1:n-1;for(let a=i;a>=0;a--){const r=this.activeFormattingElements.entries[a];this._insertElement(r.token,this.treeAdapter.getNamespaceURI(r.element)),r.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=R.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(p.P),this.openElements.popUntilTagNamePopped(p.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case p.TR:{this.insertionMode=R.IN_ROW;return}case p.TBODY:case p.THEAD:case p.TFOOT:{this.insertionMode=R.IN_TABLE_BODY;return}case p.CAPTION:{this.insertionMode=R.IN_CAPTION;return}case p.COLGROUP:{this.insertionMode=R.IN_COLUMN_GROUP;return}case p.TABLE:{this.insertionMode=R.IN_TABLE;return}case p.BODY:{this.insertionMode=R.IN_BODY;return}case p.FRAMESET:{this.insertionMode=R.IN_FRAMESET;return}case p.SELECT:{this._resetInsertionModeForSelect(t);return}case p.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case p.HTML:{this.insertionMode=this.headElement?R.AFTER_HEAD:R.BEFORE_HEAD;return}case p.TD:case p.TH:{if(t>0){this.insertionMode=R.IN_CELL;return}break}case p.HEAD:{if(t>0){this.insertionMode=R.IN_HEAD;return}break}}this.insertionMode=R.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const i=this.openElements.tagIDs[n];if(i===p.TEMPLATE)break;if(i===p.TABLE){this.insertionMode=R.IN_SELECT_IN_TABLE;return}}this.insertionMode=R.IN_SELECT}_isElementCausesFosterParenting(t){return LS.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case p.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===X.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case p.TABLE:{const i=this.treeAdapter.getParentNode(n);return i?{parent:i,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const i=this.treeAdapter.getNamespaceURI(t);return rV[i].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){mq(this,t);return}switch(this.insertionMode){case R.INITIAL:{nu(this,t);break}case R.BEFORE_HTML:{iu(this,t);break}case R.BEFORE_HEAD:{au(this,t);break}case R.IN_HEAD:{ru(this,t);break}case R.IN_HEAD_NO_SCRIPT:{su(this,t);break}case R.AFTER_HEAD:{ou(this,t);break}case R.IN_BODY:case R.IN_CAPTION:case R.IN_CELL:case R.IN_TEMPLATE:{jS(this,t);break}case R.TEXT:case R.IN_SELECT:case R.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case R.IN_TABLE:case R.IN_TABLE_BODY:case R.IN_ROW:{G0(this,t);break}case R.IN_TABLE_TEXT:{GS(this,t);break}case R.IN_COLUMN_GROUP:{qd(this,t);break}case R.AFTER_BODY:{Xd(this,t);break}case R.AFTER_AFTER_BODY:{Kd(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){pq(this,t);return}switch(this.insertionMode){case R.INITIAL:{nu(this,t);break}case R.BEFORE_HTML:{iu(this,t);break}case R.BEFORE_HEAD:{au(this,t);break}case R.IN_HEAD:{ru(this,t);break}case R.IN_HEAD_NO_SCRIPT:{su(this,t);break}case R.AFTER_HEAD:{ou(this,t);break}case R.TEXT:{this._insertCharacters(t);break}case R.IN_TABLE:case R.IN_TABLE_BODY:case R.IN_ROW:{G0(this,t);break}case R.IN_COLUMN_GROUP:{qd(this,t);break}case R.AFTER_BODY:{Xd(this,t);break}case R.AFTER_AFTER_BODY:{Kd(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Y0(this,t);return}switch(this.insertionMode){case R.INITIAL:case R.BEFORE_HTML:case R.BEFORE_HEAD:case R.IN_HEAD:case R.IN_HEAD_NO_SCRIPT:case R.AFTER_HEAD:case R.IN_BODY:case R.IN_TABLE:case R.IN_CAPTION:case R.IN_COLUMN_GROUP:case R.IN_TABLE_BODY:case R.IN_ROW:case R.IN_CELL:case R.IN_SELECT:case R.IN_SELECT_IN_TABLE:case R.IN_TEMPLATE:case R.IN_FRAMESET:case R.AFTER_FRAMESET:{Y0(this,t);break}case R.IN_TABLE_TEXT:{cu(this,t);break}case R.AFTER_BODY:{GV(this,t);break}case R.AFTER_AFTER_BODY:case R.AFTER_AFTER_FRAMESET:{$V(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case R.INITIAL:{XV(this,t);break}case R.BEFORE_HEAD:case R.IN_HEAD:case R.IN_HEAD_NO_SCRIPT:case R.AFTER_HEAD:{this._err(t,z.misplacedDoctype);break}case R.IN_TABLE_TEXT:{cu(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,z.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?gq(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case R.INITIAL:{nu(this,t);break}case R.BEFORE_HTML:{KV(this,t);break}case R.BEFORE_HEAD:{WV(this,t);break}case R.IN_HEAD:{ki(this,t);break}case R.IN_HEAD_NO_SCRIPT:{eY(this,t);break}case R.AFTER_HEAD:{nY(this,t);break}case R.IN_BODY:{un(this,t);break}case R.IN_TABLE:{ho(this,t);break}case R.IN_TABLE_TEXT:{cu(this,t);break}case R.IN_CAPTION:{ZY(this,t);break}case R.IN_COLUMN_GROUP:{$0(this,t);break}case R.IN_TABLE_BODY:{Gd(this,t);break}case R.IN_ROW:{$d(this,t);break}case R.IN_CELL:{tq(this,t);break}case R.IN_SELECT:{KS(this,t);break}case R.IN_SELECT_IN_TABLE:{iq(this,t);break}case R.IN_TEMPLATE:{rq(this,t);break}case R.AFTER_BODY:{oq(this,t);break}case R.IN_FRAMESET:{lq(this,t);break}case R.AFTER_FRAMESET:{cq(this,t);break}case R.AFTER_AFTER_BODY:{fq(this,t);break}case R.AFTER_AFTER_FRAMESET:{hq(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?bq(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case R.INITIAL:{nu(this,t);break}case R.BEFORE_HTML:{QV(this,t);break}case R.BEFORE_HEAD:{ZV(this,t);break}case R.IN_HEAD:{JV(this,t);break}case R.IN_HEAD_NO_SCRIPT:{tY(this,t);break}case R.AFTER_HEAD:{iY(this,t);break}case R.IN_BODY:{Yd(this,t);break}case R.TEXT:{FY(this,t);break}case R.IN_TABLE:{lu(this,t);break}case R.IN_TABLE_TEXT:{cu(this,t);break}case R.IN_CAPTION:{JY(this,t);break}case R.IN_COLUMN_GROUP:{eq(this,t);break}case R.IN_TABLE_BODY:{X0(this,t);break}case R.IN_ROW:{XS(this,t);break}case R.IN_CELL:{nq(this,t);break}case R.IN_SELECT:{QS(this,t);break}case R.IN_SELECT_IN_TABLE:{aq(this,t);break}case R.IN_TEMPLATE:{sq(this,t);break}case R.AFTER_BODY:{ZS(this,t);break}case R.IN_FRAMESET:{uq(this,t);break}case R.AFTER_FRAMESET:{dq(this,t);break}case R.AFTER_AFTER_BODY:{Kd(this,t);break}}}onEof(t){switch(this.insertionMode){case R.INITIAL:{nu(this,t);break}case R.BEFORE_HTML:{iu(this,t);break}case R.BEFORE_HEAD:{au(this,t);break}case R.IN_HEAD:{ru(this,t);break}case R.IN_HEAD_NO_SCRIPT:{su(this,t);break}case R.AFTER_HEAD:{ou(this,t);break}case R.IN_BODY:case R.IN_TABLE:case R.IN_CAPTION:case R.IN_COLUMN_GROUP:case R.IN_TABLE_BODY:case R.IN_ROW:case R.IN_CELL:case R.IN_SELECT:case R.IN_SELECT_IN_TABLE:{YS(this,t);break}case R.TEXT:{VY(this,t);break}case R.IN_TABLE_TEXT:{cu(this,t);break}case R.IN_TEMPLATE:{WS(this,t);break}case R.AFTER_BODY:case R.IN_FRAMESET:case R.AFTER_FRAMESET:case R.AFTER_AFTER_BODY:case R.AFTER_AFTER_FRAMESET:{q0(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===w.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case R.IN_HEAD:case R.IN_HEAD_NO_SCRIPT:case R.AFTER_HEAD:case R.TEXT:case R.IN_COLUMN_GROUP:case R.IN_SELECT:case R.IN_SELECT_IN_TABLE:case R.IN_FRAMESET:case R.AFTER_FRAMESET:{this._insertCharacters(t);break}case R.IN_BODY:case R.IN_CAPTION:case R.IN_CELL:case R.IN_TEMPLATE:case R.AFTER_BODY:case R.AFTER_AFTER_BODY:case R.AFTER_AFTER_FRAMESET:{BS(this,t);break}case R.IN_TABLE:case R.IN_TABLE_BODY:case R.IN_ROW:{G0(this,t);break}case R.IN_TABLE_TEXT:{qS(this,t);break}}}}function UV(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):VS(e,t),n}function HV(e,t){let n=null,i=e.openElements.stackTop;for(;i>=0;i--){const a=e.openElements.items[i];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[i])&&(n=a)}return n||(e.openElements.shortenToLength(Math.max(i,0)),e.activeFormattingElements.removeEntry(t)),n}function FV(e,t,n){let i=t,a=e.openElements.getCommonAncestor(t);for(let r=0,s=a;s!==n;r++,s=a){a=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),l=o&&r>=jV;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=VV(e,o),i===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(s,i),i=s)}return i}function VV(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),i=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,i),t.element=i,i}function YV(e,t,n){const i=e.treeAdapter.getTagName(t),a=fo(i);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const r=e.treeAdapter.getNamespaceURI(t);a===p.TEMPLATE&&r===X.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function qV(e,t,n){const i=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,r=e.treeAdapter.createElement(a.tagName,i,a.attrs);e._adoptNodes(t,r),e.treeAdapter.appendChild(t,r),e.activeFormattingElements.insertElementAfterBookmark(r,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,r,a.tagID)}function V0(e,t){for(let n=0;n<BV;n++){const i=UV(e,t);if(!i)break;const a=HV(e,i);if(!a)break;e.activeFormattingElements.bookmark=i;const r=FV(e,a,i.element),s=e.openElements.getCommonAncestor(i.element);e.treeAdapter.detachNode(r),s&&YV(e,s,r),qV(e,a,i)}}function Y0(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function GV(e,t){e._appendCommentNode(t,e.openElements.items[0])}function $V(e,t){e._appendCommentNode(t,e.document)}function q0(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let i=e.openElements.stackTop;i>=n;i--)e._setEndLocation(e.openElements.items[i],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const i=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(i);if(a&&!a.endTag&&(e._setEndLocation(i,t),e.openElements.stackTop>=1)){const r=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(r);s&&!s.endTag&&e._setEndLocation(r,t)}}}}function XV(e,t){e._setDocumentType(t);const n=t.forceQuirks?ci.QUIRKS:wV(t);TV(t)||e._err(t,z.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=R.BEFORE_HTML}function nu(e,t){e._err(t,z.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,ci.QUIRKS),e.insertionMode=R.BEFORE_HTML,e._processToken(t)}function KV(e,t){t.tagID===p.HTML?(e._insertElement(t,X.HTML),e.insertionMode=R.BEFORE_HEAD):iu(e,t)}function QV(e,t){const n=t.tagID;(n===p.HTML||n===p.HEAD||n===p.BODY||n===p.BR)&&iu(e,t)}function iu(e,t){e._insertFakeRootElement(),e.insertionMode=R.BEFORE_HEAD,e._processToken(t)}function WV(e,t){switch(t.tagID){case p.HTML:{un(e,t);break}case p.HEAD:{e._insertElement(t,X.HTML),e.headElement=e.openElements.current,e.insertionMode=R.IN_HEAD;break}default:au(e,t)}}function ZV(e,t){const n=t.tagID;n===p.HEAD||n===p.BODY||n===p.HTML||n===p.BR?au(e,t):e._err(t,z.endTagWithoutMatchingOpenElement)}function au(e,t){e._insertFakeElement(P.HEAD,p.HEAD),e.headElement=e.openElements.current,e.insertionMode=R.IN_HEAD,e._processToken(t)}function ki(e,t){switch(t.tagID){case p.HTML:{un(e,t);break}case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case p.TITLE:{e._switchToTextParsing(t,wt.RCDATA);break}case p.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,wt.RAWTEXT):(e._insertElement(t,X.HTML),e.insertionMode=R.IN_HEAD_NO_SCRIPT);break}case p.NOFRAMES:case p.STYLE:{e._switchToTextParsing(t,wt.RAWTEXT);break}case p.SCRIPT:{e._switchToTextParsing(t,wt.SCRIPT_DATA);break}case p.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=R.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(R.IN_TEMPLATE);break}case p.HEAD:{e._err(t,z.misplacedStartTagForHeadElement);break}default:ru(e,t)}}function JV(e,t){switch(t.tagID){case p.HEAD:{e.openElements.pop(),e.insertionMode=R.AFTER_HEAD;break}case p.BODY:case p.BR:case p.HTML:{ru(e,t);break}case p.TEMPLATE:{ts(e,t);break}default:e._err(t,z.endTagWithoutMatchingOpenElement)}}function ts(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==p.TEMPLATE&&e._err(t,z.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(p.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,z.endTagWithoutMatchingOpenElement)}function ru(e,t){e.openElements.pop(),e.insertionMode=R.AFTER_HEAD,e._processToken(t)}function eY(e,t){switch(t.tagID){case p.HTML:{un(e,t);break}case p.BASEFONT:case p.BGSOUND:case p.HEAD:case p.LINK:case p.META:case p.NOFRAMES:case p.STYLE:{ki(e,t);break}case p.NOSCRIPT:{e._err(t,z.nestedNoscriptInHead);break}default:su(e,t)}}function tY(e,t){switch(t.tagID){case p.NOSCRIPT:{e.openElements.pop(),e.insertionMode=R.IN_HEAD;break}case p.BR:{su(e,t);break}default:e._err(t,z.endTagWithoutMatchingOpenElement)}}function su(e,t){const n=t.type===ke.EOF?z.openElementsLeftAfterEof:z.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=R.IN_HEAD,e._processToken(t)}function nY(e,t){switch(t.tagID){case p.HTML:{un(e,t);break}case p.BODY:{e._insertElement(t,X.HTML),e.framesetOk=!1,e.insertionMode=R.IN_BODY;break}case p.FRAMESET:{e._insertElement(t,X.HTML),e.insertionMode=R.IN_FRAMESET;break}case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:case p.NOFRAMES:case p.SCRIPT:case p.STYLE:case p.TEMPLATE:case p.TITLE:{e._err(t,z.abandonedHeadElementChild),e.openElements.push(e.headElement,p.HEAD),ki(e,t),e.openElements.remove(e.headElement);break}case p.HEAD:{e._err(t,z.misplacedStartTagForHeadElement);break}default:ou(e,t)}}function iY(e,t){switch(t.tagID){case p.BODY:case p.HTML:case p.BR:{ou(e,t);break}case p.TEMPLATE:{ts(e,t);break}default:e._err(t,z.endTagWithoutMatchingOpenElement)}}function ou(e,t){e._insertFakeElement(P.BODY,p.BODY),e.insertionMode=R.IN_BODY,Vd(e,t)}function Vd(e,t){switch(t.type){case ke.CHARACTER:{jS(e,t);break}case ke.WHITESPACE_CHARACTER:{BS(e,t);break}case ke.COMMENT:{Y0(e,t);break}case ke.START_TAG:{un(e,t);break}case ke.END_TAG:{Yd(e,t);break}case ke.EOF:{YS(e,t);break}}}function BS(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function jS(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function aY(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function rY(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function sY(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,X.HTML),e.insertionMode=R.IN_FRAMESET)}function oY(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,X.HTML)}function lY(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&U0.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,X.HTML)}function uY(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function cY(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,X.HTML),n||(e.formElement=e.openElements.current))}function dY(e,t){e.framesetOk=!1;const n=t.tagID;for(let i=e.openElements.stackTop;i>=0;i--){const a=e.openElements.tagIDs[i];if(n===p.LI&&a===p.LI||(n===p.DD||n===p.DT)&&(a===p.DD||a===p.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==p.ADDRESS&&a!==p.DIV&&a!==p.P&&e._isSpecialElement(e.openElements.items[i],a))break}e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,X.HTML)}function fY(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.tokenizer.state=wt.PLAINTEXT}function hY(e,t){e.openElements.hasInScope(p.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.framesetOk=!1}function pY(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(P.A);n&&(V0(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function mY(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function gY(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(p.NOBR)&&(V0(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,X.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function bY(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function vY(e,t){e.treeAdapter.getDocumentMode(e.document)!==ci.QUIRKS&&e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.framesetOk=!1,e.insertionMode=R.IN_TABLE}function zS(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,X.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function US(e){const t=vS(e,es.TYPE);return t!=null&&t.toLowerCase()===PV}function yY(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,X.HTML),US(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function xY(e,t){e._appendElement(t,X.HTML),t.ackSelfClosing=!0}function _Y(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._appendElement(t,X.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function EY(e,t){t.tagName=P.IMG,t.tagID=p.IMG,zS(e,t)}function TY(e,t){e._insertElement(t,X.HTML),e.skipNextNewLine=!0,e.tokenizer.state=wt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=R.TEXT}function wY(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,wt.RAWTEXT)}function SY(e,t){e.framesetOk=!1,e._switchToTextParsing(t,wt.RAWTEXT)}function HS(e,t){e._switchToTextParsing(t,wt.RAWTEXT)}function AY(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===R.IN_TABLE||e.insertionMode===R.IN_CAPTION||e.insertionMode===R.IN_TABLE_BODY||e.insertionMode===R.IN_ROW||e.insertionMode===R.IN_CELL?R.IN_SELECT_IN_TABLE:R.IN_SELECT}function CY(e,t){e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML)}function kY(e,t){e.openElements.hasInScope(p.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,X.HTML)}function OY(e,t){e.openElements.hasInScope(p.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(p.RTC),e._insertElement(t,X.HTML)}function NY(e,t){e._reconstructActiveFormattingElements(),DS(t),F0(t),t.selfClosing?e._appendElement(t,X.MATHML):e._insertElement(t,X.MATHML),t.ackSelfClosing=!0}function RY(e,t){e._reconstructActiveFormattingElements(),MS(t),F0(t),t.selfClosing?e._appendElement(t,X.SVG):e._insertElement(t,X.SVG),t.ackSelfClosing=!0}function FS(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML)}function un(e,t){switch(t.tagID){case p.I:case p.S:case p.B:case p.U:case p.EM:case p.TT:case p.BIG:case p.CODE:case p.FONT:case p.SMALL:case p.STRIKE:case p.STRONG:{mY(e,t);break}case p.A:{pY(e,t);break}case p.H1:case p.H2:case p.H3:case p.H4:case p.H5:case p.H6:{lY(e,t);break}case p.P:case p.DL:case p.OL:case p.UL:case p.DIV:case p.DIR:case p.NAV:case p.MAIN:case p.MENU:case p.ASIDE:case p.CENTER:case p.FIGURE:case p.FOOTER:case p.HEADER:case p.HGROUP:case p.DIALOG:case p.DETAILS:case p.ADDRESS:case p.ARTICLE:case p.SEARCH:case p.SECTION:case p.SUMMARY:case p.FIELDSET:case p.BLOCKQUOTE:case p.FIGCAPTION:{oY(e,t);break}case p.LI:case p.DD:case p.DT:{dY(e,t);break}case p.BR:case p.IMG:case p.WBR:case p.AREA:case p.EMBED:case p.KEYGEN:{zS(e,t);break}case p.HR:{_Y(e,t);break}case p.RB:case p.RTC:{kY(e,t);break}case p.RT:case p.RP:{OY(e,t);break}case p.PRE:case p.LISTING:{uY(e,t);break}case p.XMP:{wY(e,t);break}case p.SVG:{RY(e,t);break}case p.HTML:{aY(e,t);break}case p.BASE:case p.LINK:case p.META:case p.STYLE:case p.TITLE:case p.SCRIPT:case p.BGSOUND:case p.BASEFONT:case p.TEMPLATE:{ki(e,t);break}case p.BODY:{rY(e,t);break}case p.FORM:{cY(e,t);break}case p.NOBR:{gY(e,t);break}case p.MATH:{NY(e,t);break}case p.TABLE:{vY(e,t);break}case p.INPUT:{yY(e,t);break}case p.PARAM:case p.TRACK:case p.SOURCE:{xY(e,t);break}case p.IMAGE:{EY(e,t);break}case p.BUTTON:{hY(e,t);break}case p.APPLET:case p.OBJECT:case p.MARQUEE:{bY(e,t);break}case p.IFRAME:{SY(e,t);break}case p.SELECT:{AY(e,t);break}case p.OPTION:case p.OPTGROUP:{CY(e,t);break}case p.NOEMBED:case p.NOFRAMES:{HS(e,t);break}case p.FRAMESET:{sY(e,t);break}case p.TEXTAREA:{TY(e,t);break}case p.NOSCRIPT:{e.options.scriptingEnabled?HS(e,t):FS(e,t);break}case p.PLAINTEXT:{fY(e,t);break}case p.COL:case p.TH:case p.TD:case p.TR:case p.HEAD:case p.FRAME:case p.TBODY:case p.TFOOT:case p.THEAD:case p.CAPTION:case p.COLGROUP:break;default:FS(e,t)}}function DY(e,t){if(e.openElements.hasInScope(p.BODY)&&(e.insertionMode=R.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function MY(e,t){e.openElements.hasInScope(p.BODY)&&(e.insertionMode=R.AFTER_BODY,ZS(e,t))}function LY(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function IY(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(p.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(p.FORM):n&&e.openElements.remove(n))}function PY(e){e.openElements.hasInButtonScope(p.P)||e._insertFakeElement(P.P,p.P),e._closePElement()}function BY(e){e.openElements.hasInListItemScope(p.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(p.LI),e.openElements.popUntilTagNamePopped(p.LI))}function jY(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function zY(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function UY(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function HY(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(P.BR,p.BR),e.openElements.pop(),e.framesetOk=!1}function VS(e,t){const n=t.tagName,i=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const r=e.openElements.items[a],s=e.openElements.tagIDs[a];if(i===s&&(i!==p.UNKNOWN||e.treeAdapter.getTagName(r)===n)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(r,s))break}}function Yd(e,t){switch(t.tagID){case p.A:case p.B:case p.I:case p.S:case p.U:case p.EM:case p.TT:case p.BIG:case p.CODE:case p.FONT:case p.NOBR:case p.SMALL:case p.STRIKE:case p.STRONG:{V0(e,t);break}case p.P:{PY(e);break}case p.DL:case p.UL:case p.OL:case p.DIR:case p.DIV:case p.NAV:case p.PRE:case p.MAIN:case p.MENU:case p.ASIDE:case p.BUTTON:case p.CENTER:case p.FIGURE:case p.FOOTER:case p.HEADER:case p.HGROUP:case p.DIALOG:case p.ADDRESS:case p.ARTICLE:case p.DETAILS:case p.SEARCH:case p.SECTION:case p.SUMMARY:case p.LISTING:case p.FIELDSET:case p.BLOCKQUOTE:case p.FIGCAPTION:{LY(e,t);break}case p.LI:{BY(e);break}case p.DD:case p.DT:{jY(e,t);break}case p.H1:case p.H2:case p.H3:case p.H4:case p.H5:case p.H6:{zY(e);break}case p.BR:{HY(e);break}case p.BODY:{DY(e,t);break}case p.HTML:{MY(e,t);break}case p.FORM:{IY(e);break}case p.APPLET:case p.OBJECT:case p.MARQUEE:{UY(e,t);break}case p.TEMPLATE:{ts(e,t);break}default:VS(e,t)}}function YS(e,t){e.tmplInsertionModeStack.length>0?WS(e,t):q0(e,t)}function FY(e,t){var n;t.tagID===p.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function VY(e,t){e._err(t,z.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function G0(e,t){if(e.openElements.currentTagId!==void 0&&LS.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=R.IN_TABLE_TEXT,t.type){case ke.CHARACTER:{GS(e,t);break}case ke.WHITESPACE_CHARACTER:{qS(e,t);break}}else uu(e,t)}function YY(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,X.HTML),e.insertionMode=R.IN_CAPTION}function qY(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,X.HTML),e.insertionMode=R.IN_COLUMN_GROUP}function GY(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(P.COLGROUP,p.COLGROUP),e.insertionMode=R.IN_COLUMN_GROUP,$0(e,t)}function $Y(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,X.HTML),e.insertionMode=R.IN_TABLE_BODY}function XY(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(P.TBODY,p.TBODY),e.insertionMode=R.IN_TABLE_BODY,Gd(e,t)}function KY(e,t){e.openElements.hasInTableScope(p.TABLE)&&(e.openElements.popUntilTagNamePopped(p.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function QY(e,t){US(t)?e._appendElement(t,X.HTML):uu(e,t),t.ackSelfClosing=!0}function WY(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,X.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function ho(e,t){switch(t.tagID){case p.TD:case p.TH:case p.TR:{XY(e,t);break}case p.STYLE:case p.SCRIPT:case p.TEMPLATE:{ki(e,t);break}case p.COL:{GY(e,t);break}case p.FORM:{WY(e,t);break}case p.TABLE:{KY(e,t);break}case p.TBODY:case p.TFOOT:case p.THEAD:{$Y(e,t);break}case p.INPUT:{QY(e,t);break}case p.CAPTION:{YY(e,t);break}case p.COLGROUP:{qY(e,t);break}default:uu(e,t)}}function lu(e,t){switch(t.tagID){case p.TABLE:{e.openElements.hasInTableScope(p.TABLE)&&(e.openElements.popUntilTagNamePopped(p.TABLE),e._resetInsertionMode());break}case p.TEMPLATE:{ts(e,t);break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TBODY:case p.TD:case p.TFOOT:case p.TH:case p.THEAD:case p.TR:break;default:uu(e,t)}}function uu(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Vd(e,t),e.fosterParentingEnabled=n}function qS(e,t){e.pendingCharacterTokens.push(t)}function GS(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function cu(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)uu(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const $S=new Set([p.CAPTION,p.COL,p.COLGROUP,p.TBODY,p.TD,p.TFOOT,p.TH,p.THEAD,p.TR]);function ZY(e,t){const n=t.tagID;$S.has(n)?e.openElements.hasInTableScope(p.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=R.IN_TABLE,ho(e,t)):un(e,t)}function JY(e,t){const n=t.tagID;switch(n){case p.CAPTION:case p.TABLE:{e.openElements.hasInTableScope(p.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=R.IN_TABLE,n===p.TABLE&&lu(e,t));break}case p.BODY:case p.COL:case p.COLGROUP:case p.HTML:case p.TBODY:case p.TD:case p.TFOOT:case p.TH:case p.THEAD:case p.TR:break;default:Yd(e,t)}}function $0(e,t){switch(t.tagID){case p.HTML:{un(e,t);break}case p.COL:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case p.TEMPLATE:{ki(e,t);break}default:qd(e,t)}}function eq(e,t){switch(t.tagID){case p.COLGROUP:{e.openElements.currentTagId===p.COLGROUP&&(e.openElements.pop(),e.insertionMode=R.IN_TABLE);break}case p.TEMPLATE:{ts(e,t);break}case p.COL:break;default:qd(e,t)}}function qd(e,t){e.openElements.currentTagId===p.COLGROUP&&(e.openElements.pop(),e.insertionMode=R.IN_TABLE,e._processToken(t))}function Gd(e,t){switch(t.tagID){case p.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,X.HTML),e.insertionMode=R.IN_ROW;break}case p.TH:case p.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(P.TR,p.TR),e.insertionMode=R.IN_ROW,$d(e,t);break}case p.CAPTION:case p.COL:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=R.IN_TABLE,ho(e,t));break}default:ho(e,t)}}function X0(e,t){const n=t.tagID;switch(t.tagID){case p.TBODY:case p.TFOOT:case p.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=R.IN_TABLE);break}case p.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=R.IN_TABLE,lu(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TD:case p.TH:case p.TR:break;default:lu(e,t)}}function $d(e,t){switch(t.tagID){case p.TH:case p.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,X.HTML),e.insertionMode=R.IN_CELL,e.activeFormattingElements.insertMarker();break}case p.CAPTION:case p.COL:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:case p.TR:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=R.IN_TABLE_BODY,Gd(e,t));break}default:ho(e,t)}}function XS(e,t){switch(t.tagID){case p.TR:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=R.IN_TABLE_BODY);break}case p.TABLE:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=R.IN_TABLE_BODY,X0(e,t));break}case p.TBODY:case p.TFOOT:case p.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(p.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=R.IN_TABLE_BODY,X0(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TD:case p.TH:break;default:lu(e,t)}}function tq(e,t){const n=t.tagID;$S.has(n)?(e.openElements.hasInTableScope(p.TD)||e.openElements.hasInTableScope(p.TH))&&(e._closeTableCell(),$d(e,t)):un(e,t)}function nq(e,t){const n=t.tagID;switch(n){case p.TD:case p.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=R.IN_ROW);break}case p.TABLE:case p.TBODY:case p.TFOOT:case p.THEAD:case p.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),XS(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:break;default:Yd(e,t)}}function KS(e,t){switch(t.tagID){case p.HTML:{un(e,t);break}case p.OPTION:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e._insertElement(t,X.HTML);break}case p.OPTGROUP:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop(),e._insertElement(t,X.HTML);break}case p.HR:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop(),e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case p.INPUT:case p.KEYGEN:case p.TEXTAREA:case p.SELECT:{e.openElements.hasInSelectScope(p.SELECT)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),t.tagID!==p.SELECT&&e._processStartTag(t));break}case p.SCRIPT:case p.TEMPLATE:{ki(e,t);break}}}function QS(e,t){switch(t.tagID){case p.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===p.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===p.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop();break}case p.OPTION:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop();break}case p.SELECT:{e.openElements.hasInSelectScope(p.SELECT)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode());break}case p.TEMPLATE:{ts(e,t);break}}}function iq(e,t){const n=t.tagID;n===p.CAPTION||n===p.TABLE||n===p.TBODY||n===p.TFOOT||n===p.THEAD||n===p.TR||n===p.TD||n===p.TH?(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),e._processStartTag(t)):KS(e,t)}function aq(e,t){const n=t.tagID;n===p.CAPTION||n===p.TABLE||n===p.TBODY||n===p.TFOOT||n===p.THEAD||n===p.TR||n===p.TD||n===p.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),e.onEndTag(t)):QS(e,t)}function rq(e,t){switch(t.tagID){case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:case p.NOFRAMES:case p.SCRIPT:case p.STYLE:case p.TEMPLATE:case p.TITLE:{ki(e,t);break}case p.CAPTION:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:{e.tmplInsertionModeStack[0]=R.IN_TABLE,e.insertionMode=R.IN_TABLE,ho(e,t);break}case p.COL:{e.tmplInsertionModeStack[0]=R.IN_COLUMN_GROUP,e.insertionMode=R.IN_COLUMN_GROUP,$0(e,t);break}case p.TR:{e.tmplInsertionModeStack[0]=R.IN_TABLE_BODY,e.insertionMode=R.IN_TABLE_BODY,Gd(e,t);break}case p.TD:case p.TH:{e.tmplInsertionModeStack[0]=R.IN_ROW,e.insertionMode=R.IN_ROW,$d(e,t);break}default:e.tmplInsertionModeStack[0]=R.IN_BODY,e.insertionMode=R.IN_BODY,un(e,t)}}function sq(e,t){t.tagID===p.TEMPLATE&&ts(e,t)}function WS(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(p.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):q0(e,t)}function oq(e,t){t.tagID===p.HTML?un(e,t):Xd(e,t)}function ZS(e,t){var n;if(t.tagID===p.HTML){if(e.fragmentContext||(e.insertionMode=R.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===p.HTML){e._setEndLocation(e.openElements.items[0],t);const i=e.openElements.items[1];i&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(i))===null||n===void 0)&&n.endTag)&&e._setEndLocation(i,t)}}else Xd(e,t)}function Xd(e,t){e.insertionMode=R.IN_BODY,Vd(e,t)}function lq(e,t){switch(t.tagID){case p.HTML:{un(e,t);break}case p.FRAMESET:{e._insertElement(t,X.HTML);break}case p.FRAME:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case p.NOFRAMES:{ki(e,t);break}}}function uq(e,t){t.tagID===p.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==p.FRAMESET&&(e.insertionMode=R.AFTER_FRAMESET))}function cq(e,t){switch(t.tagID){case p.HTML:{un(e,t);break}case p.NOFRAMES:{ki(e,t);break}}}function dq(e,t){t.tagID===p.HTML&&(e.insertionMode=R.AFTER_AFTER_FRAMESET)}function fq(e,t){t.tagID===p.HTML?un(e,t):Kd(e,t)}function Kd(e,t){e.insertionMode=R.IN_BODY,Vd(e,t)}function hq(e,t){switch(t.tagID){case p.HTML:{un(e,t);break}case p.NOFRAMES:{ki(e,t);break}}}function pq(e,t){t.chars=lt,e._insertCharacters(t)}function mq(e,t){e._insertCharacters(t),e.framesetOk=!1}function JS(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==X.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function gq(e,t){if(RV(t))JS(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(n);i===X.MATHML?DS(t):i===X.SVG&&(DV(t),MS(t)),F0(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}function bq(e,t){if(t.tagID===p.P||t.tagID===p.BR){JS(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const i=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(i)===X.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(i);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}P.AREA,P.BASE,P.BASEFONT,P.BGSOUND,P.BR,P.COL,P.EMBED,P.FRAME,P.HR,P.IMG,P.INPUT,P.KEYGEN,P.LINK,P.META,P.PARAM,P.SOURCE,P.TRACK,P.WBR;const vq=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,yq=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),eA={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function tA(e,t){const n=Oq(e),i=JT("type",{handlers:{root:xq,element:_q,text:Eq,comment:iA,doctype:Tq,raw:Sq},unknown:Aq}),a={parser:n?new PS(eA):PS.getFragmentParser(void 0,eA),handle(o){i(o,a)},stitches:!1,options:t||{}};i(e,a),po(a,Gi());const r=n?a.parser.document:a.parser.getFragment(),s=xF(r,{file:a.options.file});return a.stitches&&Cd(s,"comment",function(o,l,u){const c=o;if(c.value.stitch&&u&&l!==void 0){const d=u.children;return d[l]=c.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function nA(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function xq(e,t){nA(e.children,t)}function _q(e,t){Cq(e,t),nA(e.children,t),kq(e,t)}function Eq(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:ke.CHARACTER,chars:e.value,location:du(e)};po(t,Gi(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Tq(e,t){const n={type:ke.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:du(e)};po(t,Gi(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function wq(e,t){t.stitches=!0;const n=Nq(e);if("children"in e&&"children"in n){const i=tA({type:"root",children:e.children},t.options);n.children=i.children}iA({type:"comment",value:{stitch:n}},t)}function iA(e,t){const n=e.value,i={type:ke.COMMENT,data:n,location:du(e)};po(t,Gi(e)),t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken)}function Sq(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,aA(t,Gi(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(vq,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function Aq(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))wq(n,t);else{let i="";throw yq.has(n.type)&&(i=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+i)}}function po(e,t){aA(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=wt.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function aA(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function Cq(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===wt.PLAINTEXT)return;po(t,Gi(e));const i=t.parser.openElements.current;let a="namespaceURI"in i?i.namespaceURI:Zr.html;a===Zr.html&&n==="svg"&&(a=Zr.svg);const r=IF({...e,children:[]},{space:a===Zr.svg?"svg":"html"}),s={type:ke.START_TAG,tagName:n,tagID:fo(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in r?r.attrs:[],location:du(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function kq(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&VF.includes(n)||t.parser.tokenizer.state===wt.PLAINTEXT)return;po(t,Md(e));const i={type:ke.END_TAG,tagName:n,tagID:fo(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:du(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===wt.RCDATA||t.parser.tokenizer.state===wt.RAWTEXT||t.parser.tokenizer.state===wt.SCRIPT_DATA)&&(t.parser.tokenizer.state=wt.DATA)}function Oq(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function du(e){const t=Gi(e)||{line:void 0,column:void 0,offset:void 0},n=Md(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Nq(e){return"children"in e?so({...e,children:[]}):so(e)}function rA(e){return function(t,n){return tA(t,{...e,file:n})}}var sA={exports:{}},oA={};/**
296
- * @license React
297
- * use-sync-external-store-shim.production.js
298
- *
299
- * Copyright (c) Meta Platforms, Inc. and affiliates.
300
- *
301
- * This source code is licensed under the MIT license found in the
302
- * LICENSE file in the root directory of this source tree.
303
- */var mo=_;function Rq(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Dq=typeof Object.is=="function"?Object.is:Rq,Mq=mo.useState,Lq=mo.useEffect,Iq=mo.useLayoutEffect,Pq=mo.useDebugValue;function Bq(e,t){var n=t(),i=Mq({inst:{value:n,getSnapshot:t}}),a=i[0].inst,r=i[1];return Iq(function(){a.value=n,a.getSnapshot=t,K0(a)&&r({inst:a})},[e,n,t]),Lq(function(){return K0(a)&&r({inst:a}),e(function(){K0(a)&&r({inst:a})})},[e]),Pq(n),n}function K0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Dq(e,n)}catch{return!0}}function jq(e,t){return t()}var zq=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?jq:Bq;oA.useSyncExternalStore=mo.useSyncExternalStore!==void 0?mo.useSyncExternalStore:zq,sA.exports=oA;var Uq=sA.exports;function Hq(){return Uq.useSyncExternalStore(Fq,()=>!0,()=>!1)}function Fq(){return()=>{}}var Q0="Avatar",[Vq,DJ]=Oc(Q0),[Yq,lA]=Vq(Q0),uA=_.forwardRef((e,t)=>{const{__scopeAvatar:n,...i}=e,[a,r]=_.useState("idle");return b.jsx(Yq,{scope:n,imageLoadingStatus:a,onImageLoadingStatusChange:r,children:b.jsx(In.span,{...i,ref:t})})});uA.displayName=Q0;var cA="AvatarImage",dA=_.forwardRef((e,t)=>{const{__scopeAvatar:n,src:i,onLoadingStatusChange:a=()=>{},...r}=e,s=lA(cA,n),o=qq(i,r),l=jr(u=>{a(u),s.onImageLoadingStatusChange(u)});return ji(()=>{o!=="idle"&&l(o)},[o,l]),o==="loaded"?b.jsx(In.img,{...r,ref:t,src:i}):null});dA.displayName=cA;var fA="AvatarFallback",hA=_.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:i,...a}=e,r=lA(fA,n),[s,o]=_.useState(i===void 0);return _.useEffect(()=>{if(i!==void 0){const l=window.setTimeout(()=>o(!0),i);return()=>window.clearTimeout(l)}},[i]),s&&r.imageLoadingStatus!=="loaded"?b.jsx(In.span,{...a,ref:t}):null});hA.displayName=fA;function pA(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function qq(e,{referrerPolicy:t,crossOrigin:n}){const i=Hq(),a=_.useRef(null),r=i?(a.current||(a.current=new window.Image),a.current):null,[s,o]=_.useState(()=>pA(r,e));return ji(()=>{o(pA(r,e))},[r,e]),ji(()=>{const l=d=>()=>{o(d)};if(!r)return;const u=l("loaded"),c=l("error");return r.addEventListener("load",u),r.addEventListener("error",c),t&&(r.referrerPolicy=t),typeof n=="string"&&(r.crossOrigin=n),()=>{r.removeEventListener("load",u),r.removeEventListener("error",c)}},[r,n,t]),s}var mA=uA,gA=dA,bA=hA;function W0(){return W0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},W0.apply(null,arguments)}function Gq(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}var vA,yA;typeof document<"u"&&(vA=document),typeof window<"u"&&(yA=window);var $q=mn.createContext({document:vA,window:yA}),Xq=["children","head","initialContent","src","mountTarget"],Z0=_.forwardRef((e,t)=>{var{children:n,head:i,initialContent:a,src:r,mountTarget:s}=e,o=Gq(e,Xq),[l,u]=_.useState(!1),[c,d]=_.useState(),f=T=>{T&&d(T)};_.useImperativeHandle(t,()=>c,[c]);var h=a||"<!DOCTYPE html><html><head></head><body></body></html>",g=()=>c?c.contentDocument:null,y=()=>{var T=g();return s?T==null?void 0:T.querySelector(s):T==null?void 0:T.body},E=_.useRef(),m=_.useCallback(T=>{E.current=T;var S=()=>setInterval(()=>m(T),500);clearInterval(S()),l||u(!0)},[l]);_.useMemo(()=>{!r&&o.onLoad&&l&&o.onLoad(E.current)},[l]),_.useEffect(()=>{if(c&&!r){var T;(T=c.contentWindow)==null||T.addEventListener("DOMContentLoaded",m)}return()=>{if(c&&!r){var S;(S=c.contentWindow)==null||S.removeEventListener("DOMContentLoaded",m)}}},[c,m]);var v=()=>{var T,S=g(),A=(T=g())==null?void 0:T.head,D=y(),L=(S==null?void 0:S.defaultView)||(S==null?void 0:S.parentView),B=b.jsx($q.Provider,{value:{document:S,window:L},children:n});return[A&&i&&ml.createPortal(i,A),c&&D&&ml.createPortal(B,D)]},x={};return r?(delete x.srcDoc,x.src=r,x.onLoad=o.onLoad):x.srcDoc=h,b.jsx("iframe",W0({title:o.title,ref:f},o,{onLoad:m},x,{children:l&&v()}))});Z0.displayName="IFrame";var Kq=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Qq="VisuallyHidden",xA=_.forwardRef((e,t)=>b.jsx(In.span,{...e,ref:t,style:{...Kq,...e.style}}));xA.displayName=Qq;var Wq=xA,[Qd,MJ]=Oc("Tooltip",[Uc]),Wd=Uc(),_A="TooltipProvider",Zq=700,J0="tooltip.open",[Jq,eg]=Qd(_A),EA=e=>{const{__scopeTooltip:t,delayDuration:n=Zq,skipDelayDuration:i=300,disableHoverableContent:a=!1,children:r}=e,s=_.useRef(!0),o=_.useRef(!1),l=_.useRef(0);return _.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),b.jsx(Jq,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:_.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:_.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,i)},[i]),isPointerInTransitRef:o,onPointerInTransitChange:_.useCallback(u=>{o.current=u},[]),disableHoverableContent:a,children:r})};EA.displayName=_A;var fu="Tooltip",[eG,Zd]=Qd(fu),TA=e=>{const{__scopeTooltip:t,children:n,open:i,defaultOpen:a,onOpenChange:r,disableHoverableContent:s,delayDuration:o}=e,l=eg(fu,e.__scopeTooltip),u=Wd(t),[c,d]=_.useState(null),f=Y1(),h=_.useRef(0),g=s??l.disableHoverableContent,y=o??l.delayDuration,E=_.useRef(!1),[m,v]=Sy({prop:i,defaultProp:a??!1,onChange:D=>{D?(l.onOpen(),document.dispatchEvent(new CustomEvent(J0))):l.onClose(),r==null||r(D)},caller:fu}),x=_.useMemo(()=>m?E.current?"delayed-open":"instant-open":"closed",[m]),T=_.useCallback(()=>{window.clearTimeout(h.current),h.current=0,E.current=!1,v(!0)},[v]),S=_.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v(!1)},[v]),A=_.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{E.current=!0,v(!0),h.current=0},y)},[y,v]);return _.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),b.jsx(Ey,{...u,children:b.jsx(eG,{scope:t,contentId:f,open:m,stateAttribute:x,trigger:c,onTriggerChange:d,onTriggerEnter:_.useCallback(()=>{l.isOpenDelayedRef.current?A():T()},[l.isOpenDelayedRef,A,T]),onTriggerLeave:_.useCallback(()=>{g?S():(window.clearTimeout(h.current),h.current=0)},[S,g]),onOpen:T,onClose:S,disableHoverableContent:g,children:n})})};TA.displayName=fu;var tg="TooltipTrigger",wA=_.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,a=Zd(tg,n),r=eg(tg,n),s=Wd(n),o=_.useRef(null),l=Bi(t,o,a.onTriggerChange),u=_.useRef(!1),c=_.useRef(!1),d=_.useCallback(()=>u.current=!1,[]);return _.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),b.jsx(bp,{asChild:!0,...s,children:b.jsx(In.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...i,ref:l,onPointerMove:Tn(e.onPointerMove,f=>{f.pointerType!=="touch"&&!c.current&&!r.isPointerInTransitRef.current&&(a.onTriggerEnter(),c.current=!0)}),onPointerLeave:Tn(e.onPointerLeave,()=>{a.onTriggerLeave(),c.current=!1}),onPointerDown:Tn(e.onPointerDown,()=>{a.open&&a.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:Tn(e.onFocus,()=>{u.current||a.onOpen()}),onBlur:Tn(e.onBlur,a.onClose),onClick:Tn(e.onClick,a.onClose)})})});wA.displayName=tg;var tG="TooltipPortal",[LJ,nG]=Qd(tG,{forceMount:void 0}),go="TooltipContent",SA=_.forwardRef((e,t)=>{const n=nG(go,e.__scopeTooltip),{forceMount:i=n.forceMount,side:a="top",...r}=e,s=Zd(go,e.__scopeTooltip);return b.jsx(vp,{present:i||s.open,children:s.disableHoverableContent?b.jsx(AA,{side:a,...r,ref:t}):b.jsx(iG,{side:a,...r,ref:t})})}),iG=_.forwardRef((e,t)=>{const n=Zd(go,e.__scopeTooltip),i=eg(go,e.__scopeTooltip),a=_.useRef(null),r=Bi(t,a),[s,o]=_.useState(null),{trigger:l,onClose:u}=n,c=a.current,{onPointerInTransitChange:d}=i,f=_.useCallback(()=>{o(null),d(!1)},[d]),h=_.useCallback((g,y)=>{const E=g.currentTarget,m={x:g.clientX,y:g.clientY},v=lG(m,E.getBoundingClientRect()),x=uG(m,v),T=cG(y.getBoundingClientRect()),S=fG([...x,...T]);o(S),d(!0)},[d]);return _.useEffect(()=>()=>f(),[f]),_.useEffect(()=>{if(l&&c){const g=E=>h(E,c),y=E=>h(E,l);return l.addEventListener("pointerleave",g),c.addEventListener("pointerleave",y),()=>{l.removeEventListener("pointerleave",g),c.removeEventListener("pointerleave",y)}}},[l,c,h,f]),_.useEffect(()=>{if(s){const g=y=>{const E=y.target,m={x:y.clientX,y:y.clientY},v=(l==null?void 0:l.contains(E))||(c==null?void 0:c.contains(E)),x=!dG(m,s);v?f():x&&(f(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,c,s,u,f]),b.jsx(AA,{...e,ref:r})}),[aG,rG]=Qd(fu,{isInside:!1}),sG=XN("TooltipContent"),AA=_.forwardRef((e,t)=>{const{__scopeTooltip:n,children:i,"aria-label":a,onEscapeKeyDown:r,onPointerDownOutside:s,...o}=e,l=Zd(go,n),u=Wd(n),{onClose:c}=l;return _.useEffect(()=>(document.addEventListener(J0,c),()=>document.removeEventListener(J0,c)),[c]),_.useEffect(()=>{if(l.trigger){const d=f=>{const h=f.target;h!=null&&h.contains(l.trigger)&&c()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,c]),b.jsx(Jh,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:d=>d.preventDefault(),onDismiss:c,children:b.jsxs(Ty,{"data-state":l.stateAttribute,...u,...o,ref:t,style:{...o.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[b.jsx(sG,{children:i}),b.jsx(aG,{scope:n,isInside:!0,children:b.jsx(Wq,{id:l.contentId,role:"tooltip",children:a||i})})]})})});SA.displayName=go;var CA="TooltipArrow",oG=_.forwardRef((e,t)=>{const{__scopeTooltip:n,...i}=e,a=Wd(n);return rG(CA,n).isInside?null:b.jsx(wy,{...a,...i,ref:t})});oG.displayName=CA;function lG(e,t){const n=Math.abs(t.top-e.y),i=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),r=Math.abs(t.left-e.x);switch(Math.min(n,i,a,r)){case r:return"left";case a:return"right";case n:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function uG(e,t,n=5){const i=[];switch(t){case"top":i.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":i.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":i.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":i.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return i}function cG(e){const{top:t,right:n,bottom:i,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:i},{x:a,y:i}]}function dG(e,t){const{x:n,y:i}=e;let a=!1;for(let r=0,s=t.length-1;r<t.length;s=r++){const o=t[r],l=t[s],u=o.x,c=o.y,d=l.x,f=l.y;c>i!=f>i&&n<(d-u)*(i-c)/(f-c)+u&&(a=!a)}return a}function fG(e){const t=e.slice();return t.sort((n,i)=>n.x<i.x?-1:n.x>i.x?1:n.y<i.y?-1:n.y>i.y?1:0),hG(t)}function hG(e){if(e.length<=1)return e.slice();const t=[];for(let i=0;i<e.length;i++){const a=e[i];for(;t.length>=2;){const r=t[t.length-1],s=t[t.length-2];if((r.x-s.x)*(a.y-s.y)>=(r.y-s.y)*(a.x-s.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let i=e.length-1;i>=0;i--){const a=e[i];for(;n.length>=2;){const r=n[n.length-1],s=n[n.length-2];if((r.x-s.x)*(a.y-s.y)>=(r.y-s.y)*(a.x-s.x))n.pop();else break}n.push(a)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var pG=EA,mG=TA,gG=wA,kA=SA;function Jd(e){"@babel/helpers - typeof";return Jd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jd(e)}var bG=/^\s+/,vG=/\s+$/;function de(e,t){if(e=e||"",t=t||{},e instanceof de)return e;if(!(this instanceof de))return new de(e,t);var n=yG(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}de.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,i,a,r,s,o;return n=t.r/255,i=t.g/255,a=t.b/255,n<=.03928?r=n/12.92:r=Math.pow((n+.055)/1.055,2.4),i<=.03928?s=i/12.92:s=Math.pow((i+.055)/1.055,2.4),a<=.03928?o=a/12.92:o=Math.pow((a+.055)/1.055,2.4),.2126*r+.7152*s+.0722*o},setAlpha:function(t){return this._a=LA(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=NA(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=NA(this._r,this._g,this._b),n=Math.round(t.h*360),i=Math.round(t.s*100),a=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+i+"%, "+a+"%)":"hsva("+n+", "+i+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var t=OA(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=OA(this._r,this._g,this._b),n=Math.round(t.h*360),i=Math.round(t.s*100),a=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+i+"%, "+a+"%)":"hsla("+n+", "+i+"%, "+a+"%, "+this._roundA+")"},toHex:function(t){return RA(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return TG(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(ut(this._r,255)*100)+"%",g:Math.round(ut(this._g,255)*100)+"%",b:Math.round(ut(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ut(this._r,255)*100)+"%, "+Math.round(ut(this._g,255)*100)+"%, "+Math.round(ut(this._b,255)*100)+"%)":"rgba("+Math.round(ut(this._r,255)*100)+"%, "+Math.round(ut(this._g,255)*100)+"%, "+Math.round(ut(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:IG[RA(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+DA(this._r,this._g,this._b,this._a),i=n,a=this._gradientType?"GradientType = 1, ":"";if(t){var r=de(t);i="#"+DA(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+n+",endColorstr="+i+")"},toString:function(t){var n=!!t;t=t||this._format;var i=!1,a=this._a<1&&this._a>=0,r=!n&&a&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return r?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(i=this.toRgbString()),t==="prgb"&&(i=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(i=this.toHexString()),t==="hex3"&&(i=this.toHexString(!0)),t==="hex4"&&(i=this.toHex8String(!0)),t==="hex8"&&(i=this.toHex8String()),t==="name"&&(i=this.toName()),t==="hsl"&&(i=this.toHslString()),t==="hsv"&&(i=this.toHsvString()),i||this.toHexString())},clone:function(){return de(this.toString())},_applyModification:function(t,n){var i=t.apply(null,[this].concat([].slice.call(n)));return this._r=i._r,this._g=i._g,this._b=i._b,this.setAlpha(i._a),this},lighten:function(){return this._applyModification(CG,arguments)},brighten:function(){return this._applyModification(kG,arguments)},darken:function(){return this._applyModification(OG,arguments)},desaturate:function(){return this._applyModification(wG,arguments)},saturate:function(){return this._applyModification(SG,arguments)},greyscale:function(){return this._applyModification(AG,arguments)},spin:function(){return this._applyModification(NG,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(MG,arguments)},complement:function(){return this._applyCombination(RG,arguments)},monochromatic:function(){return this._applyCombination(LG,arguments)},splitcomplement:function(){return this._applyCombination(DG,arguments)},triad:function(){return this._applyCombination(MA,[3])},tetrad:function(){return this._applyCombination(MA,[4])}},de.fromRatio=function(e,t){if(Jd(e)=="object"){var n={};for(var i in e)e.hasOwnProperty(i)&&(i==="a"?n[i]=e[i]:n[i]=hu(e[i]));e=n}return de(e,t)};function yG(e){var t={r:0,g:0,b:0},n=1,i=null,a=null,r=null,s=!1,o=!1;return typeof e=="string"&&(e=zG(e)),Jd(e)=="object"&&(ga(e.r)&&ga(e.g)&&ga(e.b)?(t=xG(e.r,e.g,e.b),s=!0,o=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ga(e.h)&&ga(e.s)&&ga(e.v)?(i=hu(e.s),a=hu(e.v),t=EG(e.h,i,a),s=!0,o="hsv"):ga(e.h)&&ga(e.s)&&ga(e.l)&&(i=hu(e.s),r=hu(e.l),t=_G(e.h,i,r),s=!0,o="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=LA(n),{ok:s,format:e.format||o,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function xG(e,t,n){return{r:ut(e,255)*255,g:ut(t,255)*255,b:ut(n,255)*255}}function OA(e,t,n){e=ut(e,255),t=ut(t,255),n=ut(n,255);var i=Math.max(e,t,n),a=Math.min(e,t,n),r,s,o=(i+a)/2;if(i==a)r=s=0;else{var l=i-a;switch(s=o>.5?l/(2-i-a):l/(i+a),i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4;break}r/=6}return{h:r,s,l:o}}function _G(e,t,n){var i,a,r;e=ut(e,360),t=ut(t,100),n=ut(n,100);function s(u,c,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?u+(c-u)*6*d:d<1/2?c:d<2/3?u+(c-u)*(2/3-d)*6:u}if(t===0)i=a=r=n;else{var o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;i=s(l,o,e+1/3),a=s(l,o,e),r=s(l,o,e-1/3)}return{r:i*255,g:a*255,b:r*255}}function NA(e,t,n){e=ut(e,255),t=ut(t,255),n=ut(n,255);var i=Math.max(e,t,n),a=Math.min(e,t,n),r,s,o=i,l=i-a;if(s=i===0?0:l/i,i==a)r=0;else{switch(i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4;break}r/=6}return{h:r,s,v:o}}function EG(e,t,n){e=ut(e,360)*6,t=ut(t,100),n=ut(n,100);var i=Math.floor(e),a=e-i,r=n*(1-t),s=n*(1-a*t),o=n*(1-(1-a)*t),l=i%6,u=[n,s,r,r,o,n][l],c=[o,n,n,s,r,r][l],d=[r,r,o,n,n,s][l];return{r:u*255,g:c*255,b:d*255}}function RA(e,t,n,i){var a=[Oi(Math.round(e).toString(16)),Oi(Math.round(t).toString(16)),Oi(Math.round(n).toString(16))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function TG(e,t,n,i,a){var r=[Oi(Math.round(e).toString(16)),Oi(Math.round(t).toString(16)),Oi(Math.round(n).toString(16)),Oi(IA(i))];return a&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)&&r[3].charAt(0)==r[3].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0)+r[3].charAt(0):r.join("")}function DA(e,t,n,i){var a=[Oi(IA(i)),Oi(Math.round(e).toString(16)),Oi(Math.round(t).toString(16)),Oi(Math.round(n).toString(16))];return a.join("")}de.equals=function(e,t){return!e||!t?!1:de(e).toRgbString()==de(t).toRgbString()},de.random=function(){return de.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function wG(e,t){t=t===0?0:t||10;var n=de(e).toHsl();return n.s-=t/100,n.s=ef(n.s),de(n)}function SG(e,t){t=t===0?0:t||10;var n=de(e).toHsl();return n.s+=t/100,n.s=ef(n.s),de(n)}function AG(e){return de(e).desaturate(100)}function CG(e,t){t=t===0?0:t||10;var n=de(e).toHsl();return n.l+=t/100,n.l=ef(n.l),de(n)}function kG(e,t){t=t===0?0:t||10;var n=de(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),de(n)}function OG(e,t){t=t===0?0:t||10;var n=de(e).toHsl();return n.l-=t/100,n.l=ef(n.l),de(n)}function NG(e,t){var n=de(e).toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,de(n)}function RG(e){var t=de(e).toHsl();return t.h=(t.h+180)%360,de(t)}function MA(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=de(e).toHsl(),i=[de(e)],a=360/t,r=1;r<t;r++)i.push(de({h:(n.h+r*a)%360,s:n.s,l:n.l}));return i}function DG(e){var t=de(e).toHsl(),n=t.h;return[de(e),de({h:(n+72)%360,s:t.s,l:t.l}),de({h:(n+216)%360,s:t.s,l:t.l})]}function MG(e,t,n){t=t||6,n=n||30;var i=de(e).toHsl(),a=360/n,r=[de(e)];for(i.h=(i.h-(a*t>>1)+720)%360;--t;)i.h=(i.h+a)%360,r.push(de(i));return r}function LG(e,t){t=t||6;for(var n=de(e).toHsv(),i=n.h,a=n.s,r=n.v,s=[],o=1/t;t--;)s.push(de({h:i,s:a,v:r})),r=(r+o)%1;return s}de.mix=function(e,t,n){n=n===0?0:n||50;var i=de(e).toRgb(),a=de(t).toRgb(),r=n/100,s={r:(a.r-i.r)*r+i.r,g:(a.g-i.g)*r+i.g,b:(a.b-i.b)*r+i.b,a:(a.a-i.a)*r+i.a};return de(s)},de.readability=function(e,t){var n=de(e),i=de(t);return(Math.max(n.getLuminance(),i.getLuminance())+.05)/(Math.min(n.getLuminance(),i.getLuminance())+.05)},de.isReadable=function(e,t,n){var i=de.readability(e,t),a,r;switch(r=!1,a=UG(n),a.level+a.size){case"AAsmall":case"AAAlarge":r=i>=4.5;break;case"AAlarge":r=i>=3;break;case"AAAsmall":r=i>=7;break}return r},de.mostReadable=function(e,t,n){var i=null,a=0,r,s,o,l;n=n||{},s=n.includeFallbackColors,o=n.level,l=n.size;for(var u=0;u<t.length;u++)r=de.readability(e,t[u]),r>a&&(a=r,i=de(t[u]));return de.isReadable(e,i,{level:o,size:l})||!s?i:(n.includeFallbackColors=!1,de.mostReadable(e,["#fff","#000"],n))};var ng=de.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",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:"663399",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"},IG=de.hexNames=PG(ng);function PG(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function LA(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ut(e,t){BG(e)&&(e="100%");var n=jG(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function ef(e){return Math.min(1,Math.max(0,e))}function Vn(e){return parseInt(e,16)}function BG(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function jG(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Oi(e){return e.length==1?"0"+e:""+e}function hu(e){return e<=1&&(e=e*100+"%"),e}function IA(e){return Math.round(parseFloat(e)*255).toString(16)}function PA(e){return Vn(e)/255}var Ni=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",a="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+i),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+i),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+i),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function ga(e){return!!Ni.CSS_UNIT.exec(e)}function zG(e){e=e.replace(bG,"").replace(vG,"").toLowerCase();var t=!1;if(ng[e])e=ng[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Ni.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Ni.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ni.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Ni.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ni.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Ni.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ni.hex8.exec(e))?{r:Vn(n[1]),g:Vn(n[2]),b:Vn(n[3]),a:PA(n[4]),format:t?"name":"hex8"}:(n=Ni.hex6.exec(e))?{r:Vn(n[1]),g:Vn(n[2]),b:Vn(n[3]),format:t?"name":"hex"}:(n=Ni.hex4.exec(e))?{r:Vn(n[1]+""+n[1]),g:Vn(n[2]+""+n[2]),b:Vn(n[3]+""+n[3]),a:PA(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=Ni.hex3.exec(e))?{r:Vn(n[1]+""+n[1]),g:Vn(n[2]+""+n[2]),b:Vn(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function UG(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var BA={exports:{}},HG="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",FG=HG,VG=FG;function jA(){}function zA(){}zA.resetWarningCache=jA;var YG=function(){function e(i,a,r,s,o,l){if(l!==VG){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:zA,resetWarningCache:jA};return n.PropTypes=n,n};BA.exports=YG();var qG=BA.exports;const Ke=hl(qG),GG=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function bo(e,t,n){const i=$G(e),{webkitRelativePath:a}=e,r=typeof t=="string"?t:typeof a=="string"&&a.length>0?a:`./${e.name}`;return typeof i.path!="string"&&UA(i,"path",r),UA(i,"relativePath",r),i}function $G(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const i=t.split(".").pop().toLowerCase(),a=GG.get(i);a&&Object.defineProperty(e,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return e}function UA(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const XG=[".DS_Store","Thumbs.db"];function KG(e){return ua(this,void 0,void 0,function*(){return tf(e)&&QG(e.dataTransfer)?e$(e.dataTransfer,e.type):WG(e)?ZG(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?JG(e):[]})}function QG(e){return tf(e)}function WG(e){return tf(e)&&tf(e.target)}function tf(e){return typeof e=="object"&&e!==null}function ZG(e){return ig(e.target.files).map(t=>bo(t))}function JG(e){return ua(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>bo(n))})}function e$(e,t){return ua(this,void 0,void 0,function*(){if(e.items){const n=ig(e.items).filter(a=>a.kind==="file");if(t!=="drop")return n;const i=yield Promise.all(n.map(t$));return HA(FA(i))}return HA(ig(e.files).map(n=>bo(n)))})}function HA(e){return e.filter(t=>XG.indexOf(t.name)===-1)}function ig(e){if(e===null)return[];const t=[];for(let n=0;n<e.length;n++){const i=e[n];t.push(i)}return t}function t$(e){if(typeof e.webkitGetAsEntry!="function")return VA(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?YA(t):VA(e,t)}function FA(e){return e.reduce((t,n)=>[...t,...Array.isArray(n)?FA(n):[n]],[])}function VA(e,t){return ua(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const r=yield e.getAsFileSystemHandle();if(r===null)throw new Error(`${e} is not a File`);if(r!==void 0){const s=yield r.getFile();return s.handle=r,bo(s)}}const i=e.getAsFile();if(!i)throw new Error(`${e} is not a File`);return bo(i,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0)})}function n$(e){return ua(this,void 0,void 0,function*(){return e.isDirectory?YA(e):i$(e)})}function YA(e){const t=e.createReader();return new Promise((n,i)=>{const a=[];function r(){t.readEntries(s=>ua(this,void 0,void 0,function*(){if(s.length){const o=Promise.all(s.map(n$));a.push(o),r()}else try{const o=yield Promise.all(a);n(o)}catch(o){i(o)}}),s=>{i(s)})}r()})}function i$(e){return ua(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(i=>{const a=bo(i,e.fullPath);t(a)},i=>{n(i)})})})}var ag=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var i=e.name||"",a=(e.type||"").toLowerCase(),r=a.replace(/\/.*$/,"");return n.some(function(s){var o=s.trim().toLowerCase();return o.charAt(0)==="."?i.toLowerCase().endsWith(o):o.endsWith("/*")?r===o.replace(/\/.*$/,""):a===o})}return!0};function qA(e){return s$(e)||r$(e)||KA(e)||a$()}function a$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
304
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function s$(e){if(Array.isArray(e))return rg(e)}function GA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,i)}return n}function $A(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GA(Object(n),!0).forEach(function(i){XA(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GA(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function XA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pu(e,t){return u$(e)||l$(e,t)||KA(e,t)||o$()}function o$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
305
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KA(e,t){if(e){if(typeof e=="string")return rg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rg(e,t)}}function rg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function l$(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],a=!0,r=!1,s,o;try{for(n=n.call(e);!(a=(s=n.next()).done)&&(i.push(s.value),!(t&&i.length===t));a=!0);}catch(l){r=!0,o=l}finally{try{!a&&n.return!=null&&n.return()}finally{if(r)throw o}}return i}}function u$(e){if(Array.isArray(e))return e}var c$=typeof ag=="function"?ag:ag.default,d$="file-invalid-type",f$="file-too-large",h$="file-too-small",p$="too-many-files",m$=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),i=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:d$,message:"File type must be ".concat(i)}},QA=function(t){return{code:f$,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},WA=function(t){return{code:h$,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},g$={code:p$,message:"Too many files"};function ZA(e,t){var n=e.type==="application/x-moz-file"||c$(e,t);return[n,n?null:m$(t)]}function JA(e,t,n){if(ns(e.size))if(ns(t)&&ns(n)){if(e.size>n)return[!1,QA(n)];if(e.size<t)return[!1,WA(t)]}else{if(ns(t)&&e.size<t)return[!1,WA(t)];if(ns(n)&&e.size>n)return[!1,QA(n)]}return[!0,null]}function ns(e){return e!=null}function b$(e){var t=e.files,n=e.accept,i=e.minSize,a=e.maxSize,r=e.multiple,s=e.maxFiles,o=e.validator;return!r&&t.length>1||r&&s>=1&&t.length>s?!1:t.every(function(l){var u=ZA(l,n),c=pu(u,1),d=c[0],f=JA(l,i,a),h=pu(f,1),g=h[0],y=o?o(l):null;return d&&g&&!y})}function nf(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function af(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function eC(e){e.preventDefault()}function v$(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function y$(e){return e.indexOf("Edge/")!==-1}function x$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return v$(e)||y$(e)}function Ki(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){for(var a=arguments.length,r=new Array(a>1?a-1:0),s=1;s<a;s++)r[s-1]=arguments[s];return t.some(function(o){return!nf(i)&&o&&o.apply(void 0,[i].concat(r)),nf(i)})}}function _$(){return"showOpenFilePicker"in window}function E$(e){if(ns(e)){var t=Object.entries(e).filter(function(n){var i=pu(n,2),a=i[0],r=i[1],s=!0;return tC(a)||(console.warn('Skipped "'.concat(a,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),s=!1),(!Array.isArray(r)||!r.every(nC))&&(console.warn('Skipped "'.concat(a,'" because an invalid file extension was provided.')),s=!1),s}).reduce(function(n,i){var a=pu(i,2),r=a[0],s=a[1];return $A($A({},n),{},XA({},r,s))},{});return[{description:"Files",accept:t}]}return e}function T$(e){if(ns(e))return Object.entries(e).reduce(function(t,n){var i=pu(n,2),a=i[0],r=i[1];return[].concat(qA(t),[a],qA(r))},[]).filter(function(t){return tC(t)||nC(t)}).join(",")}function w$(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function S$(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function tC(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function nC(e){return/^.*\.[\w]+$/.test(e)}var A$=["children"],C$=["open"],k$=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],O$=["refKey","onChange","onClick"];function N$(e){return M$(e)||D$(e)||iC(e)||R$()}function R$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
306
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function M$(e){if(Array.isArray(e))return og(e)}function sg(e,t){return P$(e)||I$(e,t)||iC(e,t)||L$()}function L$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
307
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iC(e,t){if(e){if(typeof e=="string")return og(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return og(e,t)}}function og(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function I$(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i=[],a=!0,r=!1,s,o;try{for(n=n.call(e);!(a=(s=n.next()).done)&&(i.push(s.value),!(t&&i.length===t));a=!0);}catch(l){r=!0,o=l}finally{try{!a&&n.return!=null&&n.return()}finally{if(r)throw o}}return i}}function P$(e){if(Array.isArray(e))return e}function aC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,i)}return n}function ht(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aC(Object(n),!0).forEach(function(i){lg(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aC(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function lg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rf(e,t){if(e==null)return{};var n=B$(e,t),i,a;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}function B$(e,t){if(e==null)return{};var n={},i=Object.keys(e),a,r;for(r=0;r<i.length;r++)a=i[r],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}var ug=_.forwardRef(function(e,t){var n=e.children,i=rf(e,A$),a=sC(i),r=a.open,s=rf(a,C$);return _.useImperativeHandle(t,function(){return{open:r}},[r]),mn.createElement(_.Fragment,null,n(ht(ht({},s),{},{open:r})))});ug.displayName="Dropzone";var rC={disabled:!1,getFilesFromEvent:KG,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};ug.defaultProps=rC,ug.propTypes={children:Ke.func,accept:Ke.objectOf(Ke.arrayOf(Ke.string)),multiple:Ke.bool,preventDropOnDocument:Ke.bool,noClick:Ke.bool,noKeyboard:Ke.bool,noDrag:Ke.bool,noDragEventsBubbling:Ke.bool,minSize:Ke.number,maxSize:Ke.number,maxFiles:Ke.number,disabled:Ke.bool,getFilesFromEvent:Ke.func,onFileDialogCancel:Ke.func,onFileDialogOpen:Ke.func,useFsAccessApi:Ke.bool,autoFocus:Ke.bool,onDragEnter:Ke.func,onDragLeave:Ke.func,onDragOver:Ke.func,onDrop:Ke.func,onDropAccepted:Ke.func,onDropRejected:Ke.func,onError:Ke.func,validator:Ke.func};var cg={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function sC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ht(ht({},rC),e),n=t.accept,i=t.disabled,a=t.getFilesFromEvent,r=t.maxSize,s=t.minSize,o=t.multiple,l=t.maxFiles,u=t.onDragEnter,c=t.onDragLeave,d=t.onDragOver,f=t.onDrop,h=t.onDropAccepted,g=t.onDropRejected,y=t.onFileDialogCancel,E=t.onFileDialogOpen,m=t.useFsAccessApi,v=t.autoFocus,x=t.preventDropOnDocument,T=t.noClick,S=t.noKeyboard,A=t.noDrag,D=t.noDragEventsBubbling,L=t.onError,B=t.validator,O=_.useMemo(function(){return T$(n)},[n]),Y=_.useMemo(function(){return E$(n)},[n]),U=_.useMemo(function(){return typeof E=="function"?E:oC},[E]),ae=_.useMemo(function(){return typeof y=="function"?y:oC},[y]),ee=_.useRef(null),Q=_.useRef(null),F=_.useReducer(j$,cg),V=sg(F,2),H=V[0],te=V[1],N=H.isFocused,be=H.isFileDialogActive,nt=_.useRef(typeof window<"u"&&window.isSecureContext&&m&&_$()),M=function(){!nt.current&&be&&setTimeout(function(){if(Q.current){var fe=Q.current.files;fe.length||(te({type:"closeDialog"}),ae())}},300)};_.useEffect(function(){return window.addEventListener("focus",M,!1),function(){window.removeEventListener("focus",M,!1)}},[Q,be,ae,nt]);var Be=_.useRef([]),ge=function(fe){ee.current&&ee.current.contains(fe.target)||(fe.preventDefault(),Be.current=[])};_.useEffect(function(){return x&&(document.addEventListener("dragover",eC,!1),document.addEventListener("drop",ge,!1)),function(){x&&(document.removeEventListener("dragover",eC),document.removeEventListener("drop",ge))}},[ee,x]),_.useEffect(function(){return!i&&v&&ee.current&&ee.current.focus(),function(){}},[ee,v,i]);var je=_.useCallback(function(ne){L?L(ne):console.error(ne)},[L]),fn=_.useCallback(function(ne){ne.preventDefault(),ne.persist(),hn(ne),Be.current=[].concat(N$(Be.current),[ne.target]),af(ne)&&Promise.resolve(a(ne)).then(function(fe){if(!(nf(ne)&&!D)){var j=fe.length,$=j>0&&b$({files:fe,accept:O,minSize:s,maxSize:r,multiple:o,maxFiles:l,validator:B}),ue=j>0&&!$;te({isDragAccept:$,isDragReject:ue,isDragActive:!0,type:"setDraggedFiles"}),u&&u(ne)}}).catch(function(fe){return je(fe)})},[a,u,je,D,O,s,r,o,l,B]),Ze=_.useCallback(function(ne){ne.preventDefault(),ne.persist(),hn(ne);var fe=af(ne);if(fe&&ne.dataTransfer)try{ne.dataTransfer.dropEffect="copy"}catch{}return fe&&d&&d(ne),!1},[d,D]),qt=_.useCallback(function(ne){ne.preventDefault(),ne.persist(),hn(ne);var fe=Be.current.filter(function($){return ee.current&&ee.current.contains($)}),j=fe.indexOf(ne.target);j!==-1&&fe.splice(j,1),Be.current=fe,!(fe.length>0)&&(te({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),af(ne)&&c&&c(ne))},[ee,c,D]),Mt=_.useCallback(function(ne,fe){var j=[],$=[];ne.forEach(function(ue){var _e=ZA(ue,O),ve=sg(_e,2),Xt=ve[0],Mn=ve[1],_n=JA(ue,s,r),ei=sg(_n,2),Ln=ei[0],Lt=ei[1],ti=B?B(ue):null;if(Xt&&Ln&&!ti)j.push(ue);else{var En=[Mn,Lt];ti&&(En=En.concat(ti)),$.push({file:ue,errors:En.filter(function(Pa){return Pa})})}}),(!o&&j.length>1||o&&l>=1&&j.length>l)&&(j.forEach(function(ue){$.push({file:ue,errors:[g$]})}),j.splice(0)),te({acceptedFiles:j,fileRejections:$,isDragReject:$.length>0,type:"setFiles"}),f&&f(j,$,fe),$.length>0&&g&&g($,fe),j.length>0&&h&&h(j,fe)},[te,o,O,s,r,l,f,h,g,B]),Gt=_.useCallback(function(ne){ne.preventDefault(),ne.persist(),hn(ne),Be.current=[],af(ne)&&Promise.resolve(a(ne)).then(function(fe){nf(ne)&&!D||Mt(fe,ne)}).catch(function(fe){return je(fe)}),te({type:"reset"})},[a,Mt,je,D]),tn=_.useCallback(function(){if(nt.current){te({type:"openDialog"}),U();var ne={multiple:o,types:Y};window.showOpenFilePicker(ne).then(function(fe){return a(fe)}).then(function(fe){Mt(fe,null),te({type:"closeDialog"})}).catch(function(fe){w$(fe)?(ae(fe),te({type:"closeDialog"})):S$(fe)?(nt.current=!1,Q.current?(Q.current.value=null,Q.current.click()):je(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):je(fe)});return}Q.current&&(te({type:"openDialog"}),U(),Q.current.value=null,Q.current.click())},[te,U,ae,m,Mt,je,Y,o]),$t=_.useCallback(function(ne){!ee.current||!ee.current.isEqualNode(ne.target)||(ne.key===" "||ne.key==="Enter"||ne.keyCode===32||ne.keyCode===13)&&(ne.preventDefault(),tn())},[ee,tn]),re=_.useCallback(function(){te({type:"focus"})},[]),Li=_.useCallback(function(){te({type:"blur"})},[]),Ii=_.useCallback(function(){T||(x$()?setTimeout(tn,0):tn())},[T,tn]),xn=function(fe){return i?null:fe},xt=function(fe){return S?null:xn(fe)},jt=function(fe){return A?null:xn(fe)},hn=function(fe){D&&fe.stopPropagation()},Lr=_.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},fe=ne.refKey,j=fe===void 0?"ref":fe,$=ne.role,ue=ne.onKeyDown,_e=ne.onFocus,ve=ne.onBlur,Xt=ne.onClick,Mn=ne.onDragEnter,_n=ne.onDragOver,ei=ne.onDragLeave,Ln=ne.onDrop,Lt=rf(ne,k$);return ht(ht(lg({onKeyDown:xt(Ki(ue,$t)),onFocus:xt(Ki(_e,re)),onBlur:xt(Ki(ve,Li)),onClick:xn(Ki(Xt,Ii)),onDragEnter:jt(Ki(Mn,fn)),onDragOver:jt(Ki(_n,Ze)),onDragLeave:jt(Ki(ei,qt)),onDrop:jt(Ki(Ln,Gt)),role:typeof $=="string"&&$!==""?$:"presentation"},j,ee),!i&&!S?{tabIndex:0}:{}),Lt)}},[ee,$t,re,Li,Ii,fn,Ze,qt,Gt,S,A,i]),nn=_.useCallback(function(ne){ne.stopPropagation()},[]),Ts=_.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},fe=ne.refKey,j=fe===void 0?"ref":fe,$=ne.onChange,ue=ne.onClick,_e=rf(ne,O$),ve=lg({accept:O,multiple:o,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:xn(Ki($,Gt)),onClick:xn(Ki(ue,nn)),tabIndex:-1},j,Q);return ht(ht({},ve),_e)}},[Q,n,o,Gt,i]);return ht(ht({},H),{},{isFocused:N&&!i,getRootProps:Lr,getInputProps:Ts,rootRef:ee,inputRef:Q,open:xn(tn)})}function j$(e,t){switch(t.type){case"focus":return ht(ht({},e),{},{isFocused:!0});case"blur":return ht(ht({},e),{},{isFocused:!1});case"openDialog":return ht(ht({},cg),{},{isFileDialogActive:!0});case"closeDialog":return ht(ht({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ht(ht({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ht(ht({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return ht({},cg);default:return e}}function oC(){}var lC={};const z$=wN(KR);var sf={},uC;function U$(){if(uC)return sf;uC=1,Object.defineProperty(sf,"__esModule",{value:!0});var e=_;function t(){var n=e.useRef(!1),i=e.useCallback(function(){return n.current},[]);return e.useEffect(function(){return n.current=!0,function(){n.current=!1}},[]),i}return sf.default=t,sf}Object.defineProperty(lC,"__esModule",{value:!0});var dg=z$,fg=_,H$=dg.__importDefault(U$());function F$(e,t,n){t===void 0&&(t=[]),n===void 0&&(n={loading:!1});var i=fg.useRef(0),a=H$.default(),r=fg.useState(n),s=r[0],o=r[1],l=fg.useCallback(function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];var d=++i.current;return s.loading||o(function(f){return dg.__assign(dg.__assign({},f),{loading:!0})}),e.apply(void 0,u).then(function(f){return a()&&d===i.current&&o({value:f,loading:!1}),f},function(f){return a()&&d===i.current&&o({error:f,loading:!1}),f})},t);return[s,l]}var V$=lC.default=F$,ze;(function(e){e.assertEqual=a=>{};function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const r={};for(const s of a)r[s]=s;return r},e.getValidEnumValues=a=>{const r=e.objectKeys(a).filter(o=>typeof a[a[o]]!="number"),s={};for(const o of r)s[o]=a[o];return e.objectValues(s)},e.objectValues=a=>e.objectKeys(a).map(function(r){return a[r]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const r=[];for(const s in a)Object.prototype.hasOwnProperty.call(a,s)&&r.push(s);return r},e.find=(a,r)=>{for(const s of a)if(r(s))return s},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function i(a,r=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(r)}e.joinValues=i,e.jsonStringifyReplacer=(a,r)=>typeof r=="bigint"?r.toString():r})(ze||(ze={}));var cC;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(cC||(cC={}));const le=ze.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),nr=e=>{switch(typeof e){case"undefined":return le.undefined;case"string":return le.string;case"number":return Number.isNaN(e)?le.nan:le.number;case"boolean":return le.boolean;case"function":return le.function;case"bigint":return le.bigint;case"symbol":return le.symbol;case"object":return Array.isArray(e)?le.array:e===null?le.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?le.promise:typeof Map<"u"&&e instanceof Map?le.map:typeof Set<"u"&&e instanceof Set?le.set:typeof Date<"u"&&e instanceof Date?le.date:le.object;default:return le.unknown}},J=ze.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ba extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(r){return r.message},i={_errors:[]},a=r=>{for(const s of r.issues)if(s.code==="invalid_union")s.unionErrors.map(a);else if(s.code==="invalid_return_type")a(s.returnTypeError);else if(s.code==="invalid_arguments")a(s.argumentsError);else if(s.path.length===0)i._errors.push(n(s));else{let o=i,l=0;for(;l<s.path.length;){const u=s.path[l];l===s.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(n(s))):o[u]=o[u]||{_errors:[]},o=o[u],l++}}};return a(this),i}static assert(t){if(!(t instanceof ba))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ze.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},i=[];for(const a of this.issues)if(a.path.length>0){const r=a.path[0];n[r]=n[r]||[],n[r].push(t(a))}else i.push(t(a));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}}ba.create=e=>new ba(e);const hg=(e,t)=>{let n;switch(e.code){case J.invalid_type:e.received===le.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case J.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ze.jsonStringifyReplacer)}`;break;case J.unrecognized_keys:n=`Unrecognized key(s) in object: ${ze.joinValues(e.keys,", ")}`;break;case J.invalid_union:n="Invalid input";break;case J.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ze.joinValues(e.options)}`;break;case J.invalid_enum_value:n=`Invalid enum value. Expected ${ze.joinValues(e.options)}, received '${e.received}'`;break;case J.invalid_arguments:n="Invalid function arguments";break;case J.invalid_return_type:n="Invalid function return type";break;case J.invalid_date:n="Invalid date";break;case J.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ze.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case J.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case J.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case J.custom:n="Invalid input";break;case J.invalid_intersection_types:n="Intersection results could not be merged";break;case J.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case J.not_finite:n="Number must be finite";break;default:n=t.defaultError,ze.assertNever(e)}return{message:n}};let Y$=hg;function q$(){return Y$}const G$=e=>{const{data:t,path:n,errorMaps:i,issueData:a}=e,r=[...n,...a.path||[]],s={...a,path:r};if(a.message!==void 0)return{...a,path:r,message:a.message};let o="";const l=i.filter(u=>!!u).slice().reverse();for(const u of l)o=u(s,{data:t,defaultError:o}).message;return{...a,path:r,message:o}};function ie(e,t){const n=q$(),i=G$({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===hg?void 0:hg].filter(a=>!!a)});e.common.issues.push(i)}class Yn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const i=[];for(const a of n){if(a.status==="aborted")return ye;a.status==="dirty"&&t.dirty(),i.push(a.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,n){const i=[];for(const a of n){const r=await a.key,s=await a.value;i.push({key:r,value:s})}return Yn.mergeObjectSync(t,i)}static mergeObjectSync(t,n){const i={};for(const a of n){const{key:r,value:s}=a;if(r.status==="aborted"||s.status==="aborted")return ye;r.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),r.value!=="__proto__"&&(typeof s.value<"u"||a.alwaysSet)&&(i[r.value]=s.value)}return{status:t.value,value:i}}}const ye=Object.freeze({status:"aborted"}),mu=e=>({status:"dirty",value:e}),di=e=>({status:"valid",value:e}),dC=e=>e.status==="aborted",fC=e=>e.status==="dirty",vo=e=>e.status==="valid",of=e=>typeof Promise<"u"&&e instanceof Promise;var ce;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ce||(ce={}));class ir{constructor(t,n,i,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=i,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const hC=(e,t)=>{if(vo(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new ba(e.common.issues);return this._error=n,this._error}}};function Oe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:i,description:a}=e;if(t&&(n||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(s,o)=>{const{message:l}=e;return s.code==="invalid_enum_value"?{message:l??o.defaultError}:typeof o.data>"u"?{message:l??i??o.defaultError}:s.code!=="invalid_type"?{message:o.defaultError}:{message:l??n??o.defaultError}},description:a}}class Pe{get description(){return this._def.description}_getType(t){return nr(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:nr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Yn,ctx:{common:t.parent.common,data:t.data,parsedType:nr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(of(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const i=this.safeParse(t,n);if(i.success)return i.data;throw i.error}safeParse(t,n){const i={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:nr(t)},a=this._parseSync({data:t,path:i.path,parent:i});return hC(i,a)}"~validate"(t){var i,a;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:nr(t)};if(!this["~standard"].async)try{const r=this._parseSync({data:t,path:[],parent:n});return vo(r)?{value:r.value}:{issues:n.common.issues}}catch(r){(a=(i=r==null?void 0:r.message)==null?void 0:i.toLowerCase())!=null&&a.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>vo(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){const i=await this.safeParseAsync(t,n);if(i.success)return i.data;throw i.error}async safeParseAsync(t,n){const i={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:nr(t)},a=this._parse({data:t,path:i.path,parent:i}),r=await(of(a)?a:Promise.resolve(a));return hC(i,r)}refine(t,n){const i=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,r)=>{const s=t(a),o=()=>r.addIssue({code:J.custom,...i(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(o(),!1)):s?!0:(o(),!1)})}refinement(t,n){return this._refinement((i,a)=>t(i)?!0:(a.addIssue(typeof n=="function"?n(i,a):n),!1))}_refinement(t){return new _o({schema:this,typeName:xe.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return sr.create(this,this._def)}nullable(){return Eo.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Qi.create(this)}promise(){return df.create(this,this._def)}or(t){return uf.create([this,t],this._def)}and(t){return cf.create(this,t,this._def)}transform(t){return new _o({...Oe(this._def),schema:this,typeName:xe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new gg({...Oe(this._def),innerType:this,defaultValue:n,typeName:xe.ZodDefault})}brand(){return new mX({typeName:xe.ZodBranded,type:this,...Oe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new bg({...Oe(this._def),innerType:this,catchValue:n,typeName:xe.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return vg.create(this,t)}readonly(){return yg.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const $$=/^c[^\s-]{8,}$/i,X$=/^[0-9a-z]+$/,K$=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Q$=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,W$=/^[a-z0-9_-]{21}$/i,Z$=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,J$=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,eX=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,tX="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let pg;const nX=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,iX=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,aX=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,rX=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,sX=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,oX=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,pC="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",lX=new RegExp(`^${pC}$`);function mC(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function uX(e){return new RegExp(`^${mC(e)}$`)}function cX(e){let t=`${pC}T${mC(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function dX(e,t){return!!((t==="v4"||!t)&&nX.test(e)||(t==="v6"||!t)&&aX.test(e))}function fX(e,t){if(!Z$.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const i=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(i));return!(typeof a!="object"||a===null||"typ"in a&&(a==null?void 0:a.typ)!=="JWT"||!a.alg||t&&a.alg!==t)}catch{return!1}}function hX(e,t){return!!((t==="v4"||!t)&&iX.test(e)||(t==="v6"||!t)&&rX.test(e))}class ar extends Pe{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==le.string){const r=this._getOrReturnCtx(t);return ie(r,{code:J.invalid_type,expected:le.string,received:r.parsedType}),ye}const i=new Yn;let a;for(const r of this._def.checks)if(r.kind==="min")t.data.length<r.value&&(a=this._getOrReturnCtx(t,a),ie(a,{code:J.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),i.dirty());else if(r.kind==="max")t.data.length>r.value&&(a=this._getOrReturnCtx(t,a),ie(a,{code:J.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),i.dirty());else if(r.kind==="length"){const s=t.data.length>r.value,o=t.data.length<r.value;(s||o)&&(a=this._getOrReturnCtx(t,a),s?ie(a,{code:J.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}):o&&ie(a,{code:J.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}),i.dirty())}else if(r.kind==="email")eX.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"email",code:J.invalid_string,message:r.message}),i.dirty());else if(r.kind==="emoji")pg||(pg=new RegExp(tX,"u")),pg.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"emoji",code:J.invalid_string,message:r.message}),i.dirty());else if(r.kind==="uuid")Q$.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"uuid",code:J.invalid_string,message:r.message}),i.dirty());else if(r.kind==="nanoid")W$.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"nanoid",code:J.invalid_string,message:r.message}),i.dirty());else if(r.kind==="cuid")$$.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"cuid",code:J.invalid_string,message:r.message}),i.dirty());else if(r.kind==="cuid2")X$.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"cuid2",code:J.invalid_string,message:r.message}),i.dirty());else if(r.kind==="ulid")K$.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"ulid",code:J.invalid_string,message:r.message}),i.dirty());else if(r.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),ie(a,{validation:"url",code:J.invalid_string,message:r.message}),i.dirty()}else r.kind==="regex"?(r.regex.lastIndex=0,r.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"regex",code:J.invalid_string,message:r.message}),i.dirty())):r.kind==="trim"?t.data=t.data.trim():r.kind==="includes"?t.data.includes(r.value,r.position)||(a=this._getOrReturnCtx(t,a),ie(a,{code:J.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),i.dirty()):r.kind==="toLowerCase"?t.data=t.data.toLowerCase():r.kind==="toUpperCase"?t.data=t.data.toUpperCase():r.kind==="startsWith"?t.data.startsWith(r.value)||(a=this._getOrReturnCtx(t,a),ie(a,{code:J.invalid_string,validation:{startsWith:r.value},message:r.message}),i.dirty()):r.kind==="endsWith"?t.data.endsWith(r.value)||(a=this._getOrReturnCtx(t,a),ie(a,{code:J.invalid_string,validation:{endsWith:r.value},message:r.message}),i.dirty()):r.kind==="datetime"?cX(r).test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{code:J.invalid_string,validation:"datetime",message:r.message}),i.dirty()):r.kind==="date"?lX.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{code:J.invalid_string,validation:"date",message:r.message}),i.dirty()):r.kind==="time"?uX(r).test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{code:J.invalid_string,validation:"time",message:r.message}),i.dirty()):r.kind==="duration"?J$.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"duration",code:J.invalid_string,message:r.message}),i.dirty()):r.kind==="ip"?dX(t.data,r.version)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"ip",code:J.invalid_string,message:r.message}),i.dirty()):r.kind==="jwt"?fX(t.data,r.alg)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"jwt",code:J.invalid_string,message:r.message}),i.dirty()):r.kind==="cidr"?hX(t.data,r.version)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"cidr",code:J.invalid_string,message:r.message}),i.dirty()):r.kind==="base64"?sX.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"base64",code:J.invalid_string,message:r.message}),i.dirty()):r.kind==="base64url"?oX.test(t.data)||(a=this._getOrReturnCtx(t,a),ie(a,{validation:"base64url",code:J.invalid_string,message:r.message}),i.dirty()):ze.assertNever(r);return{status:i.value,value:t.data}}_regex(t,n,i){return this.refinement(a=>t.test(a),{validation:n,code:J.invalid_string,...ce.errToObj(i)})}_addCheck(t){return new ar({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ce.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ce.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ce.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ce.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ce.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ce.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ce.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ce.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ce.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...ce.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...ce.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ce.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...ce.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...ce.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...ce.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ce.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ce.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ce.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ce.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ce.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ce.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ce.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ce.errToObj(n)})}nonempty(t){return this.min(1,ce.errToObj(t))}trim(){return new ar({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ar({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ar({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}ar.create=e=>new ar({checks:[],typeName:xe.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Oe(e)});function pX(e,t){const n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,a=n>i?n:i,r=Number.parseInt(e.toFixed(a).replace(".","")),s=Number.parseInt(t.toFixed(a).replace(".",""));return r%s/10**a}class gu extends Pe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==le.number){const r=this._getOrReturnCtx(t);return ie(r,{code:J.invalid_type,expected:le.number,received:r.parsedType}),ye}let i;const a=new Yn;for(const r of this._def.checks)r.kind==="int"?ze.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{code:J.invalid_type,expected:"integer",received:"float",message:r.message}),a.dirty()):r.kind==="min"?(r.inclusive?t.data<r.value:t.data<=r.value)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:J.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),a.dirty()):r.kind==="max"?(r.inclusive?t.data>r.value:t.data>=r.value)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:J.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),a.dirty()):r.kind==="multipleOf"?pX(t.data,r.value)!==0&&(i=this._getOrReturnCtx(t,i),ie(i,{code:J.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):r.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{code:J.not_finite,message:r.message}),a.dirty()):ze.assertNever(r);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ce.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ce.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ce.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ce.toString(n))}setLimit(t,n,i,a){return new gu({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:ce.toString(a)}]})}_addCheck(t){return new gu({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ce.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ce.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ce.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ce.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ce.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ce.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ce.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ce.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ce.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ze.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(n===null||i.value>n)&&(n=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(n)&&Number.isFinite(t)}}gu.create=e=>new gu({checks:[],typeName:xe.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Oe(e)});class bu extends Pe{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==le.bigint)return this._getInvalidInput(t);let i;const a=new Yn;for(const r of this._def.checks)r.kind==="min"?(r.inclusive?t.data<r.value:t.data<=r.value)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:J.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),a.dirty()):r.kind==="max"?(r.inclusive?t.data>r.value:t.data>=r.value)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:J.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),a.dirty()):r.kind==="multipleOf"?t.data%r.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),ie(i,{code:J.not_multiple_of,multipleOf:r.value,message:r.message}),a.dirty()):ze.assertNever(r);return{status:a.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return ie(n,{code:J.invalid_type,expected:le.bigint,received:n.parsedType}),ye}gte(t,n){return this.setLimit("min",t,!0,ce.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ce.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ce.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ce.toString(n))}setLimit(t,n,i,a){return new bu({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:ce.toString(a)}]})}_addCheck(t){return new bu({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ce.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ce.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ce.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ce.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ce.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}bu.create=e=>new bu({checks:[],typeName:xe.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Oe(e)});class gC extends Pe{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==le.boolean){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:le.boolean,received:i.parsedType}),ye}return di(t.data)}}gC.create=e=>new gC({typeName:xe.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Oe(e)});class lf extends Pe{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==le.date){const r=this._getOrReturnCtx(t);return ie(r,{code:J.invalid_type,expected:le.date,received:r.parsedType}),ye}if(Number.isNaN(t.data.getTime())){const r=this._getOrReturnCtx(t);return ie(r,{code:J.invalid_date}),ye}const i=new Yn;let a;for(const r of this._def.checks)r.kind==="min"?t.data.getTime()<r.value&&(a=this._getOrReturnCtx(t,a),ie(a,{code:J.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),i.dirty()):r.kind==="max"?t.data.getTime()>r.value&&(a=this._getOrReturnCtx(t,a),ie(a,{code:J.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),i.dirty()):ze.assertNever(r);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new lf({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ce.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ce.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}lf.create=e=>new lf({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:xe.ZodDate,...Oe(e)});class bC extends Pe{_parse(t){if(this._getType(t)!==le.symbol){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:le.symbol,received:i.parsedType}),ye}return di(t.data)}}bC.create=e=>new bC({typeName:xe.ZodSymbol,...Oe(e)});class vC extends Pe{_parse(t){if(this._getType(t)!==le.undefined){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:le.undefined,received:i.parsedType}),ye}return di(t.data)}}vC.create=e=>new vC({typeName:xe.ZodUndefined,...Oe(e)});class yC extends Pe{_parse(t){if(this._getType(t)!==le.null){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:le.null,received:i.parsedType}),ye}return di(t.data)}}yC.create=e=>new yC({typeName:xe.ZodNull,...Oe(e)});class xC extends Pe{constructor(){super(...arguments),this._any=!0}_parse(t){return di(t.data)}}xC.create=e=>new xC({typeName:xe.ZodAny,...Oe(e)});class _C extends Pe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return di(t.data)}}_C.create=e=>new _C({typeName:xe.ZodUnknown,...Oe(e)});class rr extends Pe{_parse(t){const n=this._getOrReturnCtx(t);return ie(n,{code:J.invalid_type,expected:le.never,received:n.parsedType}),ye}}rr.create=e=>new rr({typeName:xe.ZodNever,...Oe(e)});class EC extends Pe{_parse(t){if(this._getType(t)!==le.undefined){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:le.void,received:i.parsedType}),ye}return di(t.data)}}EC.create=e=>new EC({typeName:xe.ZodVoid,...Oe(e)});class Qi extends Pe{_parse(t){const{ctx:n,status:i}=this._processInputParams(t),a=this._def;if(n.parsedType!==le.array)return ie(n,{code:J.invalid_type,expected:le.array,received:n.parsedType}),ye;if(a.exactLength!==null){const s=n.data.length>a.exactLength.value,o=n.data.length<a.exactLength.value;(s||o)&&(ie(n,{code:s?J.too_big:J.too_small,minimum:o?a.exactLength.value:void 0,maximum:s?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),i.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(ie(n,{code:J.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),i.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(ie(n,{code:J.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((s,o)=>a.type._parseAsync(new ir(n,s,n.path,o)))).then(s=>Yn.mergeArray(i,s));const r=[...n.data].map((s,o)=>a.type._parseSync(new ir(n,s,n.path,o)));return Yn.mergeArray(i,r)}get element(){return this._def.type}min(t,n){return new Qi({...this._def,minLength:{value:t,message:ce.toString(n)}})}max(t,n){return new Qi({...this._def,maxLength:{value:t,message:ce.toString(n)}})}length(t,n){return new Qi({...this._def,exactLength:{value:t,message:ce.toString(n)}})}nonempty(t){return this.min(1,t)}}Qi.create=(e,t)=>new Qi({type:e,minLength:null,maxLength:null,exactLength:null,typeName:xe.ZodArray,...Oe(t)});function yo(e){if(e instanceof Nt){const t={};for(const n in e.shape){const i=e.shape[n];t[n]=sr.create(yo(i))}return new Nt({...e._def,shape:()=>t})}else return e instanceof Qi?new Qi({...e._def,type:yo(e.element)}):e instanceof sr?sr.create(yo(e.unwrap())):e instanceof Eo?Eo.create(yo(e.unwrap())):e instanceof is?is.create(e.items.map(t=>yo(t))):e}class Nt extends Pe{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=ze.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==le.object){const u=this._getOrReturnCtx(t);return ie(u,{code:J.invalid_type,expected:le.object,received:u.parsedType}),ye}const{status:i,ctx:a}=this._processInputParams(t),{shape:r,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof rr&&this._def.unknownKeys==="strip"))for(const u in a.data)s.includes(u)||o.push(u);const l=[];for(const u of s){const c=r[u],d=a.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new ir(a,d,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof rr){const u=this._def.unknownKeys;if(u==="passthrough")for(const c of o)l.push({key:{status:"valid",value:c},value:{status:"valid",value:a.data[c]}});else if(u==="strict")o.length>0&&(ie(a,{code:J.unrecognized_keys,keys:o}),i.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const c of o){const d=a.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new ir(a,d,a.path,c)),alwaysSet:c in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const u=[];for(const c of l){const d=await c.key,f=await c.value;u.push({key:d,value:f,alwaysSet:c.alwaysSet})}return u}).then(u=>Yn.mergeObjectSync(i,u)):Yn.mergeObjectSync(i,l)}get shape(){return this._def.shape()}strict(t){return ce.errToObj,new Nt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,i)=>{var r,s;const a=((s=(r=this._def).errorMap)==null?void 0:s.call(r,n,i).message)??i.defaultError;return n.code==="unrecognized_keys"?{message:ce.errToObj(t).message??a}:{message:a}}}:{}})}strip(){return new Nt({...this._def,unknownKeys:"strip"})}passthrough(){return new Nt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Nt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Nt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:xe.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Nt({...this._def,catchall:t})}pick(t){const n={};for(const i of ze.objectKeys(t))t[i]&&this.shape[i]&&(n[i]=this.shape[i]);return new Nt({...this._def,shape:()=>n})}omit(t){const n={};for(const i of ze.objectKeys(this.shape))t[i]||(n[i]=this.shape[i]);return new Nt({...this._def,shape:()=>n})}deepPartial(){return yo(this)}partial(t){const n={};for(const i of ze.objectKeys(this.shape)){const a=this.shape[i];t&&!t[i]?n[i]=a:n[i]=a.optional()}return new Nt({...this._def,shape:()=>n})}required(t){const n={};for(const i of ze.objectKeys(this.shape))if(t&&!t[i])n[i]=this.shape[i];else{let r=this.shape[i];for(;r instanceof sr;)r=r._def.innerType;n[i]=r}return new Nt({...this._def,shape:()=>n})}keyof(){return AC(ze.objectKeys(this.shape))}}Nt.create=(e,t)=>new Nt({shape:()=>e,unknownKeys:"strip",catchall:rr.create(),typeName:xe.ZodObject,...Oe(t)}),Nt.strictCreate=(e,t)=>new Nt({shape:()=>e,unknownKeys:"strict",catchall:rr.create(),typeName:xe.ZodObject,...Oe(t)}),Nt.lazycreate=(e,t)=>new Nt({shape:e,unknownKeys:"strip",catchall:rr.create(),typeName:xe.ZodObject,...Oe(t)});class uf extends Pe{_parse(t){const{ctx:n}=this._processInputParams(t),i=this._def.options;function a(r){for(const o of r)if(o.result.status==="valid")return o.result;for(const o of r)if(o.result.status==="dirty")return n.common.issues.push(...o.ctx.common.issues),o.result;const s=r.map(o=>new ba(o.ctx.common.issues));return ie(n,{code:J.invalid_union,unionErrors:s}),ye}if(n.common.async)return Promise.all(i.map(async r=>{const s={...n,common:{...n.common,issues:[]},parent:null};return{result:await r._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(a);{let r;const s=[];for(const l of i){const u={...n,common:{...n.common,issues:[]},parent:null},c=l._parseSync({data:n.data,path:n.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!r&&(r={result:c,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(r)return n.common.issues.push(...r.ctx.common.issues),r.result;const o=s.map(l=>new ba(l));return ie(n,{code:J.invalid_union,unionErrors:o}),ye}}get options(){return this._def.options}}uf.create=(e,t)=>new uf({options:e,typeName:xe.ZodUnion,...Oe(t)});function mg(e,t){const n=nr(e),i=nr(t);if(e===t)return{valid:!0,data:e};if(n===le.object&&i===le.object){const a=ze.objectKeys(t),r=ze.objectKeys(e).filter(o=>a.indexOf(o)!==-1),s={...e,...t};for(const o of r){const l=mg(e[o],t[o]);if(!l.valid)return{valid:!1};s[o]=l.data}return{valid:!0,data:s}}else if(n===le.array&&i===le.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let r=0;r<e.length;r++){const s=e[r],o=t[r],l=mg(s,o);if(!l.valid)return{valid:!1};a.push(l.data)}return{valid:!0,data:a}}else return n===le.date&&i===le.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class cf extends Pe{_parse(t){const{status:n,ctx:i}=this._processInputParams(t),a=(r,s)=>{if(dC(r)||dC(s))return ye;const o=mg(r.value,s.value);return o.valid?((fC(r)||fC(s))&&n.dirty(),{status:n.value,value:o.data}):(ie(i,{code:J.invalid_intersection_types}),ye)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([r,s])=>a(r,s)):a(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}cf.create=(e,t,n)=>new cf({left:e,right:t,typeName:xe.ZodIntersection,...Oe(n)});class is extends Pe{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==le.array)return ie(i,{code:J.invalid_type,expected:le.array,received:i.parsedType}),ye;if(i.data.length<this._def.items.length)return ie(i,{code:J.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ye;!this._def.rest&&i.data.length>this._def.items.length&&(ie(i,{code:J.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const r=[...i.data].map((s,o)=>{const l=this._def.items[o]||this._def.rest;return l?l._parse(new ir(i,s,i.path,o)):null}).filter(s=>!!s);return i.common.async?Promise.all(r).then(s=>Yn.mergeArray(n,s)):Yn.mergeArray(n,r)}get items(){return this._def.items}rest(t){return new is({...this._def,rest:t})}}is.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new is({items:e,typeName:xe.ZodTuple,rest:null,...Oe(t)})};class TC extends Pe{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==le.map)return ie(i,{code:J.invalid_type,expected:le.map,received:i.parsedType}),ye;const a=this._def.keyType,r=this._def.valueType,s=[...i.data.entries()].map(([o,l],u)=>({key:a._parse(new ir(i,o,i.path,[u,"key"])),value:r._parse(new ir(i,l,i.path,[u,"value"]))}));if(i.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const l of s){const u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return ye;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),o.set(u.value,c.value)}return{status:n.value,value:o}})}else{const o=new Map;for(const l of s){const u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return ye;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),o.set(u.value,c.value)}return{status:n.value,value:o}}}}TC.create=(e,t,n)=>new TC({valueType:t,keyType:e,typeName:xe.ZodMap,...Oe(n)});class vu extends Pe{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==le.set)return ie(i,{code:J.invalid_type,expected:le.set,received:i.parsedType}),ye;const a=this._def;a.minSize!==null&&i.data.size<a.minSize.value&&(ie(i,{code:J.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&i.data.size>a.maxSize.value&&(ie(i,{code:J.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const r=this._def.valueType;function s(l){const u=new Set;for(const c of l){if(c.status==="aborted")return ye;c.status==="dirty"&&n.dirty(),u.add(c.value)}return{status:n.value,value:u}}const o=[...i.data.values()].map((l,u)=>r._parse(new ir(i,l,i.path,u)));return i.common.async?Promise.all(o).then(l=>s(l)):s(o)}min(t,n){return new vu({...this._def,minSize:{value:t,message:ce.toString(n)}})}max(t,n){return new vu({...this._def,maxSize:{value:t,message:ce.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}vu.create=(e,t)=>new vu({valueType:e,minSize:null,maxSize:null,typeName:xe.ZodSet,...Oe(t)});class wC extends Pe{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}wC.create=(e,t)=>new wC({getter:e,typeName:xe.ZodLazy,...Oe(t)});class SC extends Pe{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ie(n,{received:n.data,code:J.invalid_literal,expected:this._def.value}),ye}return{status:"valid",value:t.data}}get value(){return this._def.value}}SC.create=(e,t)=>new SC({value:e,typeName:xe.ZodLiteral,...Oe(t)});function AC(e,t){return new xo({values:e,typeName:xe.ZodEnum,...Oe(t)})}class xo extends Pe{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),i=this._def.values;return ie(n,{expected:ze.joinValues(i),received:n.parsedType,code:J.invalid_type}),ye}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),i=this._def.values;return ie(n,{received:n.data,code:J.invalid_enum_value,options:i}),ye}return di(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return xo.create(t,{...this._def,...n})}exclude(t,n=this._def){return xo.create(this.options.filter(i=>!t.includes(i)),{...this._def,...n})}}xo.create=AC;class CC extends Pe{_parse(t){const n=ze.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==le.string&&i.parsedType!==le.number){const a=ze.objectValues(n);return ie(i,{expected:ze.joinValues(a),received:i.parsedType,code:J.invalid_type}),ye}if(this._cache||(this._cache=new Set(ze.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const a=ze.objectValues(n);return ie(i,{received:i.data,code:J.invalid_enum_value,options:a}),ye}return di(t.data)}get enum(){return this._def.values}}CC.create=(e,t)=>new CC({values:e,typeName:xe.ZodNativeEnum,...Oe(t)});class df extends Pe{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==le.promise&&n.common.async===!1)return ie(n,{code:J.invalid_type,expected:le.promise,received:n.parsedType}),ye;const i=n.parsedType===le.promise?n.data:Promise.resolve(n.data);return di(i.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}df.create=(e,t)=>new df({type:e,typeName:xe.ZodPromise,...Oe(t)});class _o extends Pe{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===xe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:i}=this._processInputParams(t),a=this._def.effect||null,r={addIssue:s=>{ie(i,s),s.fatal?n.abort():n.dirty()},get path(){return i.path}};if(r.addIssue=r.addIssue.bind(r),a.type==="preprocess"){const s=a.transform(i.data,r);if(i.common.async)return Promise.resolve(s).then(async o=>{if(n.value==="aborted")return ye;const l=await this._def.schema._parseAsync({data:o,path:i.path,parent:i});return l.status==="aborted"?ye:l.status==="dirty"||n.value==="dirty"?mu(l.value):l});{if(n.value==="aborted")return ye;const o=this._def.schema._parseSync({data:s,path:i.path,parent:i});return o.status==="aborted"?ye:o.status==="dirty"||n.value==="dirty"?mu(o.value):o}}if(a.type==="refinement"){const s=o=>{const l=a.refinement(o,r);if(i.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(i.common.async===!1){const o=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return o.status==="aborted"?ye:(o.status==="dirty"&&n.dirty(),s(o.value),{status:n.value,value:o.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(o=>o.status==="aborted"?ye:(o.status==="dirty"&&n.dirty(),s(o.value).then(()=>({status:n.value,value:o.value}))))}if(a.type==="transform")if(i.common.async===!1){const s=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!vo(s))return ye;const o=a.transform(s.value,r);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:o}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(s=>vo(s)?Promise.resolve(a.transform(s.value,r)).then(o=>({status:n.value,value:o})):ye);ze.assertNever(a)}}_o.create=(e,t,n)=>new _o({schema:e,typeName:xe.ZodEffects,effect:t,...Oe(n)}),_o.createWithPreprocess=(e,t,n)=>new _o({schema:t,effect:{type:"preprocess",transform:e},typeName:xe.ZodEffects,...Oe(n)});class sr extends Pe{_parse(t){return this._getType(t)===le.undefined?di(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}sr.create=(e,t)=>new sr({innerType:e,typeName:xe.ZodOptional,...Oe(t)});class Eo extends Pe{_parse(t){return this._getType(t)===le.null?di(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Eo.create=(e,t)=>new Eo({innerType:e,typeName:xe.ZodNullable,...Oe(t)});class gg extends Pe{_parse(t){const{ctx:n}=this._processInputParams(t);let i=n.data;return n.parsedType===le.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}gg.create=(e,t)=>new gg({innerType:e,typeName:xe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Oe(t)});class bg extends Pe{_parse(t){const{ctx:n}=this._processInputParams(t),i={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return of(a)?a.then(r=>({status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new ba(i.common.issues)},input:i.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new ba(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}bg.create=(e,t)=>new bg({innerType:e,typeName:xe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Oe(t)});class kC extends Pe{_parse(t){if(this._getType(t)!==le.nan){const i=this._getOrReturnCtx(t);return ie(i,{code:J.invalid_type,expected:le.nan,received:i.parsedType}),ye}return{status:"valid",value:t.data}}}kC.create=e=>new kC({typeName:xe.ZodNaN,...Oe(e)});class mX extends Pe{_parse(t){const{ctx:n}=this._processInputParams(t),i=n.data;return this._def.type._parse({data:i,path:n.path,parent:n})}unwrap(){return this._def.type}}class vg extends Pe{_parse(t){const{status:n,ctx:i}=this._processInputParams(t);if(i.common.async)return(async()=>{const r=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return r.status==="aborted"?ye:r.status==="dirty"?(n.dirty(),mu(r.value)):this._def.out._parseAsync({data:r.value,path:i.path,parent:i})})();{const a=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return a.status==="aborted"?ye:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:i.path,parent:i})}}static create(t,n){return new vg({in:t,out:n,typeName:xe.ZodPipeline})}}class yg extends Pe{_parse(t){const n=this._def.innerType._parse(t),i=a=>(vo(a)&&(a.value=Object.freeze(a.value)),a);return of(n)?n.then(a=>i(a)):i(n)}unwrap(){return this._def.innerType}}yg.create=(e,t)=>new yg({innerType:e,typeName:xe.ZodReadonly,...Oe(t)});var xe;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(xe||(xe={}));const OC=ar.create;rr.create,Qi.create;const gX=Nt.create;uf.create,cf.create,is.create,xo.create,df.create,sr.create,Eo.create;function Ue(e){return{"data-component":e}}const xg=[{kind:"csv",label:"CSV",mimes:["text/csv","application/csv"],extensions:["csv"]},{kind:"excel",label:"Excel",mimes:["application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],extensions:["xls","xlsx"]}],NC=Object.fromEntries(xg.flatMap(e=>e.mimes.map(t=>[t,e.extensions.map(n=>`.${n}`)]))),RC={"video/mp4":[".mp4"],"video/webm":[".webm"],"video/quicktime":[".mov"]};function DC({type:e,name:t}){var n,i;const a=((n=t.split(".").pop())==null?void 0:n.toLowerCase())??"",r=((i=e.toLowerCase().split(";")[0])==null?void 0:i.trim())??"";return xg.find(s=>a&&s.extensions.includes(a))??xg.find(s=>r&&s.mimes.includes(r))??null}function oe(...e){return uL(Vx(e))}const To={x:2,y:2},va=_.memo(_.forwardRef(({children:e,className:t,scale:n=1.02,off:i=!1},a)=>{const[r,s]=_.useState(!1),[o,l]=_.useState({x:0,y:0});if(i||/translate/.test(e.props.className||""))return e;const u=h=>{var g,y;const{clientX:E,clientY:m}=h,v=h.currentTarget.getBoundingClientRect(),x=E-(v.left+v.width/2),T=m-(v.top+v.height/2),S=Math.max(-1,Math.min(1,x/(v.width/2))),A=Math.max(-1,Math.min(1,T/(v.height/2))),D=S*To.x,L=A*To.y;l({x:D,y:L}),(y=(g=e.props).onMouseMove)==null||y.call(g,h)},c=()=>{var h,g;s(!0),(g=(h=e.props).onMouseEnter)==null||g.call(h)},d=()=>{var h,g;s(!1),l({x:0,y:0}),(g=(h=e.props).onMouseLeave)==null||g.call(h)},f={"--wobble-x":r?`${o.x}px`:"0px","--wobble-y":r?`${o.y}px`:"0px","--scale":1-(n-1)};return _.cloneElement(e,{ref:a,onMouseMove:u,onMouseEnter:c,onMouseLeave:d,style:{...f,...e.props.style},className:oe("translate-x-[var(--wobble-x)]","translate-y-[var(--wobble-y)]","hover:scale-[var(--scale)] active:hover:scale-[calc(var(--scale)-0.02)]",t,e.props.className,"transition-all ease-out")})}));va.displayName="Wobble";const bX=10,vX=(e,t,n)=>({initial:{opacity:0,x:-e,...t.initial},animate:{opacity:1,x:0,...t.animate,transition:{delay:n}},exit:{opacity:0,x:e,...t.exit}}),yX=(e,t,n)=>({initial:{opacity:0,x:e,...t.initial},animate:{opacity:1,x:0,...t.animate,transition:{delay:n}},exit:{opacity:0,x:-e,...t.exit}}),xX=(e,t,n)=>({initial:{opacity:0,y:e,...t.initial},animate:{opacity:1,y:0,...t.animate,transition:{delay:n}},exit:{opacity:0,y:-e,...t.exit}}),_X=(e,t,n)=>({initial:{opacity:0,y:-e,...t.initial},animate:{opacity:1,y:0,...t.animate,transition:{delay:n}},exit:{opacity:0,y:e,...t.exit}}),EX={right:vX,left:yX,up:xX,down:_X},Qe=_.forwardRef(({fadeIn:e="down",distance:t=bX,children:n,snapExit:i=!1,overrides:a={},delay:r=0,...s},o)=>{const l=e?EX[e](t,a,r):{};return i&&l.exit&&typeof l.exit=="object"&&!Array.isArray(l.exit)&&(l.exit.transition={duration:0}),b.jsx(Fl.div,{ref:o,...s,...l,children:n})});Qe.displayName="MotionDiv";const TX=VT(oe("inline-flex shrink-0 items-center justify-center gap-2","text-sm font-medium whitespace-nowrap","ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","active:scale-95 hover:active:scale-95","rounded-xl","transition"),{variants:{variant:{default:"bg-primary text-primary-foreground",destructive:"bg-destructive text-destructive-foreground",outline:"bg-background border",secondary:"bg-secondary text-secondary-foreground",ghost:"hover:bg-secondary",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"py-2 px-3.5 text-xs",lg:"min-h-12 px-4 rounded-[20px]",icon:"h-10 w-10",fit:"size-fit p-2",free:"p-2",selfless:"p-0"}},defaultVariants:{variant:"default",size:"default"}}),bt=_.forwardRef(({className:e,variant:t="default",size:n,asChild:i=!1,...a},r)=>b.jsx(va,{ref:r,children:b.jsx(i?GN:"button",{...Ue("ui_lib/btn"),"data-variant":t,className:oe(TX({variant:t,size:n,className:e})),...a})}));bt.displayName="Button";const MC=_.createContext(null);function wX({children:e}){const[t,n]=_.useState(!1),[i,a]=_.useState(null),r=o=>{a(o),n(!0)},s=()=>{n(!1),setTimeout(()=>{a(null)},200)};return b.jsxs(MC.Provider,{value:{open:r,close:s,isOpen:t,content:i},children:[b.jsx(SX,{}),e]})}function ff(){return _.useContext(MC)||(console.error("useDialoger must be used within a DialogerProvider"),{open:()=>{},close:()=>{},isOpen:!1,content:null})}function SX(){const{contentIframeRef:e}=Ct(),{isOpen:t,content:n,close:i}=ff();return _.useEffect(()=>{var a,r;const s=o=>{o.key==="Escape"&&i()};return(r=(a=e==null?void 0:e.current)==null?void 0:a.contentWindow)==null||r.document.addEventListener("keydown",s),()=>{var o,l;return(l=(o=e==null?void 0:e.current)==null?void 0:o.contentWindow)==null?void 0:l.document.removeEventListener("keydown",s)}},[]),b.jsx(Et,{mode:"wait",children:t&&n&&b.jsx(Qe,{overrides:{initial:{y:0},exit:{y:0}},className:"fixed inset-0 z-50 bg-black/60 backdrop-blur-sm",tabIndex:-1,onClick:i,children:n},"dialog-content")})}function hf({children:e,className:t,withClose:n=!1}){const{close:i}=ff();return b.jsxs("div",{className:oe("fixed left-[50%] top-[50%] z-50 flex flex-col gap-4 w-full max-w-[61.8%] translate-x-[-50%] translate-y-[-50%] border bg-background p-4 rounded-3xl",t),onClick:a=>a.stopPropagation(),children:[e,n&&b.jsxs(bt,{size:"fit",className:"rounded-full absolute top-4 right-4 opacity-50 hover:opacity-100",onClick:i,children:[b.jsx(td,{className:"h-4 w-4"}),b.jsx("span",{className:"sr-only",children:"Close"})]})]})}const _g=({className:e,...t})=>b.jsx("div",{className:oe("flex flex-col gap-2 text-center pt-2",e),...t});_g.displayName="DialogerHeader";const Eg=({className:e,...t})=>b.jsx("div",{className:oe("flex flex-col gap-2 text-center",e),...t});Eg.displayName="DialogerBody";const LC=({className:e,...t})=>b.jsx("div",{className:oe("flex flex-col gap-2",e),...t});LC.displayName="DialogerFooter";const Tg=mn.forwardRef(({className:e,...t},n)=>b.jsx("p",{ref:n,className:oe("text-lg font-semibold leading-none tracking-tight",e),...t}));Tg.displayName="DialogerTitle";const wg=mn.forwardRef(({className:e,...t},n)=>b.jsx("p",{ref:n,className:oe("text-sm text-muted-foreground",e),...t}));wg.displayName="DialogerDescription";function pf({children:e,trigger:t}){const{open:n}=ff();return _.cloneElement(t,{onClick:()=>{var i,a;n(e),(a=(i=t.props).onClick)==null||a.call(i)}})}const IC=1,PC=5,mf=.5,AX=2.5;function CX(e,t,n,i){if(!n||!i||t<=1)return{x:0,y:0};const a=n.getBoundingClientRect(),r=i.offsetWidth,s=i.offsetHeight,o=Math.max(0,(r*t-a.width)/(2*t)),l=Math.max(0,(s*t-a.height)/(2*t));return{x:Math.min(o,Math.max(-o,e.x)),y:Math.min(l,Math.max(-l,e.y))}}function BC({src:e,alt:t}){const[n,i]=_.useState(1),[a,r]=_.useState({x:0,y:0}),[s,o]=_.useState(!1),l=_.useRef({x:0,y:0}),u=_.useRef({x:0,y:0}),c=_.useRef(null),d=_.useRef(null),f=_.useRef(!1),h=S=>Math.min(PC,Math.max(IC,S)),g=_.useCallback(()=>{i(1),r({x:0,y:0})},[]),y=_.useCallback(()=>{i(S=>h(S+mf))},[]),E=_.useCallback(()=>{i(S=>{const A=h(S-mf);return A<=1&&r({x:0,y:0}),A})},[]);_.useCallback(S=>{S.preventDefault(),S.stopPropagation();const A=S.deltaY>0?-mf:mf;i(D=>{const L=h(D+A);return L<=1&&r({x:0,y:0}),L})},[]);const m=_.useCallback(S=>{S.preventDefault(),f.current=!1,o(!0),l.current={x:S.clientX,y:S.clientY},u.current={...a},S.target.setPointerCapture(S.pointerId)},[a]),v=_.useCallback(S=>{if(!s)return;const A=S.clientX-l.current.x,D=S.clientY-l.current.y;if((Math.abs(A)>3||Math.abs(D)>3)&&(f.current=!0),n<=1)return;const L={x:u.current.x+A/n,y:u.current.y+D/n};r(CX(L,n,c.current,d.current))},[s,n]),x=_.useCallback(()=>{const S=f.current;o(!1),!S&&i(A=>A>1?(r({x:0,y:0}),1):AX)},[]),T=n>1;return b.jsxs("div",{className:"relative size-full flex items-center justify-center select-none",onClick:S=>S.stopPropagation(),children:[b.jsx("div",{ref:c,className:oe("overflow-hidden max-h-full max-w-full rounded-2xl flex items-center justify-center",T&&"size-full"),onPointerDown:m,onPointerMove:v,onPointerUp:x,onPointerCancel:x,style:{cursor:s?"grabbing":T?"grab":"zoom-in",touchAction:"none"},children:b.jsx("img",{ref:d,src:e,alt:t,className:"block max-w-full object-contain pointer-events-none",draggable:!1,style:{maxHeight:"100vh",transform:`scale(${n}) translate(${a.x}px, ${a.y}px)`,transformOrigin:"center center"}})}),b.jsxs("div",{className:"absolute bottom-3 left-1/2 -translate-x-1/2 flex items-center gap-1 bg-black/60 backdrop-blur-sm rounded-full px-1.5 py-1 transition opacity-50 hover:opacity-100",children:[b.jsx(Sg,{onClick:E,label:"Zoom out",disabled:n<=IC,children:b.jsx(DM,{className:"size-3.5"})}),b.jsxs("span",{className:"text-white text-xs font-medium min-w-[3ch] text-center tabular-nums",children:[Math.round(n*100),"%"]}),b.jsx(Sg,{onClick:y,label:"Zoom in",disabled:n>=PC,children:b.jsx(RM,{className:"size-3.5"})}),T&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"w-px h-4 bg-white/30 mx-0.5"}),b.jsx(Sg,{onClick:g,label:"Reset zoom",children:b.jsx(wM,{className:"size-3.5"})})]})]})]})}function Sg({onClick:e,label:t,children:n,disabled:i}){return b.jsx("button",{onClick:e,"aria-label":t,disabled:i,className:"text-white/80 hover:text-white disabled:text-white/30 disabled:hover:bg-transparent p-1.5 rounded-full hover:bg-white/15 transition-colors",children:n})}function jC({url:e,name:t,size:n,icon:i,label:a}){return b.jsx(va,{children:b.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:oe("block size-fit max-w-[min(100%,16rem)] shrink-0 rounded-2xl border","bg-background/80 transition-colors hover:bg-accent/60","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"),children:b.jsxs("div",{className:"flex items-center gap-3 p-3 min-w-0",children:[b.jsx("div",{className:oe("flex size-10 shrink-0 items-center justify-center rounded-xl","bg-secondary text-muted-foreground"),"aria-hidden":!0,children:i}),b.jsxs("div",{className:"min-w-0 flex-1 flex flex-col gap-0.5 text-left",children:[b.jsx("span",{className:oe("text-xs font-medium text-foreground line-clamp-1","break-words [word-break:break-word]"),children:t}),b.jsxs("span",{className:"text-xs text-muted-foreground tabular-nums",children:[(n/1024).toFixed(2)," KB · ",a]})]})]})})})}function zC({attachment:e}){const{name:t,size:n,type:i,url:a}=e,r=i.startsWith("image/"),s=i.startsWith("video/"),o=i.startsWith("audio/"),l=i==="application/pdf";if(o)return b.jsx(va,{children:b.jsx("div",{className:"w-full shrink-0 overflow-hidden",children:b.jsxs("audio",{controls:!0,className:"w-full",children:[b.jsx("source",{src:a,type:i}),"Your browser does not support the audio tag."]})})});if(s)return b.jsx(va,{children:b.jsx("div",{className:"w-full border shrink-0 rounded-2xl overflow-hidden",children:b.jsxs("video",{controls:!0,children:[b.jsx("source",{src:a,type:i}),"Your browser does not support the video tag."]})})});if(r)return b.jsx(pf,{trigger:b.jsx("div",{children:b.jsx(va,{children:b.jsx("div",{className:"size-fit border shrink-0 rounded-2xl overflow-hidden",children:b.jsx("img",{src:a,className:"object-cover size-16",alt:t})})})}),children:b.jsx(hf,{className:"size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",withClose:!0,children:b.jsx(BC,{src:a,alt:t})})});if(l)return b.jsx(jC,{url:a,name:t,size:n,icon:b.jsx(Ux,{className:"size-5",strokeWidth:1.75}),label:"PDF"});const u=DC({type:i,name:t});return u?b.jsx(jC,{url:a,name:t,size:n,icon:b.jsx(zx,{className:"size-5",strokeWidth:1.75}),label:u.label}):b.jsx(va,{children:b.jsx("div",{className:"size-fit border shrink-0 rounded-2xl overflow-hidden",children:b.jsxs("div",{className:"flex items-end gap-2 p-2",children:[b.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:oe("text-xs text-blue-500 line-clamp-2 underline hover:text-blue-600","break-words [word-break:break-word]"),children:t}),b.jsxs("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:[(n/1024).toFixed(2)," KB"]})]})})})}const UC=mn.memo(rF,(e,t)=>e.children===t.children&&e.className===t.className);function Ag({children:e,messageType:t,messageId:n}){const{anchorTarget:i}=$e();return b.jsx(UC,{"data-type":t,"data-id":n,remarkPlugins:[F2],rehypePlugins:[rA],components:{a:({children:a,...r})=>b.jsx("a",{target:r.target||i||"_top",...r,children:a}),img:({src:a,alt:r,...s})=>a?b.jsx(pf,{trigger:b.jsx("img",{src:a,alt:r,...s,className:"cursor-pointer rounded-xl"}),children:b.jsx(hf,{className:"size-full max-w-full rounded-3xl flex items-center justify-center bg-transparent border-none gap-0",withClose:!0,children:b.jsx(BC,{src:a,alt:r})})}):b.jsx("img",{src:a,alt:r,...s})},children:e})}function ya(){const{widgetCtx:{org:e}}=Ct(),{sessionState:{session:t}}=ri(),n=$e(),{messagesState:{messages:i}}=wn(),{routerState:{screen:a}}=Si();return{react:mn,org:e,session:t,config:n,messages:i,currentScreen:a}}function kX({currentMessage:e}){var t;const n=ya(),i=(t=n.config.customComponents)==null?void 0:t["message::after"];return i?b.jsx(i,{...n,currentMessage:e}):null}function Cg(e){const{data:t,id:n,type:i,attachments:a,isFirstInGroup:r,isLastInGroup:s,isAloneInGroup:o,dataComponentNames:l,classNames:u}=e;if(i!=="AI"&&i!=="AGENT")return null;const{message:c,variant:d="default"}=t;return b.jsxs("div",{...Ue((l==null?void 0:l.messageContainer)??"chat/agent_msg/root"),className:oe("w-5/6 flex flex-col items-start gap-1",u==null?void 0:u.messageContainer),children:[a&&a.length>0&&b.jsx("div",{className:"w-full gap-1 flex flex-row flex-wrap items-center justify-start",children:a==null?void 0:a.map(f=>b.jsx(zC,{attachment:f},f.id))}),c.length>0&&b.jsxs("div",{className:"flex flex-row gap-2",children:[b.jsx("div",{...Ue((l==null?void 0:l.message)??"chat/agent_msg/msg"),"data-first":r,"data-last":s,"data-alone":o,"data-variant":d,className:oe("transition-all","w-fit py-3 px-4 rounded-3xl bg-secondary text-secondary-foreground","leading-snug text-sm prose prose-sm prose-a:decoration-primary prose-a:underline","break-words [word-break:break-word]",d==="error"&&"bg-destructive/15 text-destructive",r&&!o&&"rounded-bl-md",s&&!o&&"rounded-tl-md",!r&&!s&&!o&&"rounded-l-md",u==null?void 0:u.message),children:b.jsx(Ag,{messageType:i,messageId:n,children:c})}),b.jsx(kX,{currentMessage:e})]})]})}function OX(e){return b.jsx("div",{className:"w-full max-w-full overflow-auto shrink-0",children:b.jsx("pre",{className:"text-xs leading-tight whitespace-pre-wrap break-word",children:JSON.stringify(e,null,1)})})}const kg=_.forwardRef(({className:e,...t},n)=>b.jsx(mA,{ref:n,className:oe("relative flex size-6 aspect-square shrink-0 overflow-hidden rounded-full bg-secondary",e),...t}));kg.displayName=mA.displayName;const Og=_.forwardRef(({className:e,...t},n)=>b.jsx(gA,{ref:n,className:oe("aspect-square h-full w-full",e),...t}));Og.displayName=gA.displayName;const Ng=_.forwardRef(({className:e,...t},n)=>b.jsx(bA,{ref:n,className:oe("flex size-full text-xs items-center justify-center rounded-lg",e),...t}));Ng.displayName=bA.displayName;function Rg({agent:e,...t}){var n,i;return b.jsxs(kg,{...t,children:[b.jsx(Og,{src:(e==null?void 0:e.avatarUrl)||(e==null?void 0:e.avatar)||"",alt:"Agent Icon"}),(e==null?void 0:e.name)&&b.jsx(Ng,{children:(i=(n=e==null?void 0:e.name)==null?void 0:n.slice(0,1))==null?void 0:i.toUpperCase()})]})}function NX({agent:e}){return b.jsx(Et,{children:b.jsxs(Qe,{...Ue("chat/bot_loading/root"),className:"flex flex-row items-end w-full gap-2 animate-pulse",children:[b.jsx(Rg,{agent:e}),b.jsxs("div",{...Ue("chat/bot_loading/bouncing_dots_container"),className:oe("flex items-center [&_span]:bg-secondary-foreground [&_span]:size-1 gap-1 p-2 rounded-xl bg-secondary"),children:[b.jsx(Fl.span,{className:"rounded-full animate-bounce [animation-delay:-0.3s]"}),b.jsx(Fl.span,{className:"rounded-full animate-bounce [animation-delay:-0.15s]"}),b.jsx(Fl.span,{className:"rounded-full animate-bounce"})]})]})})}const HC='*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{-ms-overflow-style:none;scrollbar-width:none}*::-webkit-scrollbar{display:none}*{border-color:hsl(var(--opencx-border))}.\\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.bottom-3{bottom:.75rem}.end-6{inset-inline-end:1.5rem}.left-1\\/2{left:50%}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.right-4{right:1rem}.top-2{top:.5rem}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[50\\%\\]{top:50%}.isolate{isolation:isolate}.-z-10{z-index:-10}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-0\\.5{margin-left:.125rem;margin-right:.125rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ms-auto{margin-inline-start:auto}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-0{width:0px;height:0px}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-2{width:.5rem;height:.5rem}.size-3{width:.75rem;height:.75rem}.size-3\\.5{width:.875rem;height:.875rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-fit{width:fit-content;height:fit-content}.size-full{width:100%;height:100%}.h-0{height:0px}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-dvh{height:100dvh}.h-full{height:100%}.h-px{height:1px}.max-h-16{max-height:4rem}.max-h-40{max-height:10rem}.max-h-full{max-height:100%}.min-h-12{min-height:3rem}.w-0{width:0px}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\\/5{width:40%}.w-3\\.5{width:.875rem}.w-3\\/5{width:60%}.w-4{width:1rem}.w-5\\/6{width:83.333333%}.w-60{width:15rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-dvw{width:100dvw}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-80{min-width:20rem}.min-w-\\[3ch\\]{min-width:3ch}.min-w-\\[8rem\\]{min-width:8rem}.max-w-96{max-width:24rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-\\[min\\(100\\%\\,16rem\\)\\]{max-width:min(100%,16rem)}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-\\[2\\]{flex:2}.shrink-0{flex-shrink:0}.-translate-x-1\\/2,.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[var\\(--wobble-x\\)\\]{--tw-translate-x: var(--wobble-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[var\\(--wobble-y\\)\\]{--tw-translate-y: var(--wobble-y);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-\\[1px\\]{gap:1px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.self-center{align-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.scroll-smooth{scroll-behavior:smooth}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[20px\\]{border-radius:20px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-none{border-style:none}.border-transparent{border-color:transparent}.bg-\\[white\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--opencx-background))}.bg-background\\/80{background-color:hsl(var(--opencx-background) / .8)}.bg-black\\/50{background-color:#00000080}.bg-black\\/60{background-color:#0009}.bg-destructive{background-color:hsl(var(--opencx-destructive))}.bg-destructive\\/15{background-color:hsl(var(--opencx-destructive) / .15)}.bg-muted{background-color:hsl(var(--opencx-muted))}.bg-primary{background-color:hsl(var(--opencx-primary))}.bg-secondary{background-color:hsl(var(--opencx-secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\\/30{background-color:#ffffff4d}.bg-\\[radial-gradient\\(ellipse_at_top_left\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\,radial-gradient\\(ellipse_at_top_right\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\]{background-image:radial-gradient(ellipse at top left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse at top right,hsl(var(--opencx-primary)),transparent)}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pb-2{padding-bottom:.5rem}.pe-2{padding-inline-end:.5rem}.pe-4{padding-inline-end:1rem}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.ps-8{padding-inline-start:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\\[1\\.75rem\\]{font-size:1.75rem}.text-\\[10px\\]{font-size:10px}.text-\\[16px\\]{font-size:16px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--opencx-destructive))}.text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--opencx-foreground))}.text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}.text-muted-foreground\\/75{color:hsl(var(--opencx-muted-foreground) / .75)}.text-primary{color:hsl(var(--opencx-primary))}.text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}.text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\\/80{color:#fffc}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-20{opacity:.2}.opacity-35{opacity:.35}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-95{opacity:.95}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-8{outline-width:8px}.outline-background{outline-color:hsl(var(--opencx-background))}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[height\\]{transition-property:height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in{--tw-enter-scale: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}.\\[field-sizing\\:content\\;\\],.\\[field-sizing\\:content\\]{field-sizing:content}.\\[word-break\\:break-word\\]{word-break:break-word}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}.placeholder\\:text-muted-foreground\\/75::placeholder{color:hsl(var(--opencx-muted-foreground) / .75)}.focus-within\\:border-primary:focus-within{border-color:hsl(var(--opencx-primary))}.hover\\:scale-\\[var\\(--scale\\)\\]:hover{--tw-scale-x: var(--scale);--tw-scale-y: var(--scale);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:border-primary:hover{border-color:hsl(var(--opencx-primary))}.hover\\:bg-accent\\/60:hover{background-color:hsl(var(--opencx-accent) / .6)}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:bg-white\\/15:hover{background-color:#ffffff26}.hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\\:text-primary:hover{color:hsl(var(--opencx-primary))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:hover\\:scale-\\[calc\\(var\\(--scale\\)-0\\.02\\)\\]:hover:active{--tw-scale-x: calc(var(--scale) - .02);--tw-scale-y: calc(var(--scale) - .02);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:text-white\\/30:disabled{color:#ffffff4d}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:hover\\:bg-transparent:hover:disabled{background-color:transparent}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:active\\:scale-90:active,.group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}.prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}.rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}.\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\]\\:text-muted-foreground\\/70 svg{color:hsl(var(--opencx-muted-foreground) / .7)}.\\[\\&_svg\\]\\:hover\\:text-primary:hover svg{color:hsl(var(--opencx-primary))}',RX=pG,DX=mG,MX=gG,FC=_.forwardRef(({className:e,sideOffset:t=4,...n},i)=>b.jsx(kA,{ref:i,sideOffset:t,className:oe("z-50 overflow-hidden max-w-xs rounded-xl bg-primary border text-primary-foreground p-2 text-center align-middle text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));FC.displayName=kA.displayName;function yu({children:e,content:t,side:n,align:i}){const{disableTooltips:a}=$e();return!t||a?e:b.jsxs(DX,{children:[b.jsx(MX,{asChild:!0,children:e}),b.jsx(FC,{side:n,align:i,collisionPadding:8,avoidCollisions:!0,children:t})]})}function LX(e,t){const n=typeof(e==null?void 0:e.right)=="number",i=typeof(e==null?void 0:e.left)=="number";return n&&!i?"right":i&&!n||t==="rtl"?"left":"right"}const VC=450;function Wi(){const[e,t]=mn.useState(()=>(window.top||window).innerWidth<VC);return mn.useEffect(()=>{const n=window.top||window,i=()=>{t(n.innerWidth<VC)};return i(),n.addEventListener("resize",i),()=>{n.removeEventListener("resize",i)}},[]),{isSmallScreen:e}}const gf={transitionTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",transitionDuration:"1000ms"};function or(){var e,t,n,i,a,r,s,o,l,u,c,d,f,h,g,y,E,m,v,x,T,S,A,D,L,B,O,Y,U,ae,ee,Q,F,V,H,te,N,be,nt,M,Be,ge,je,fn,Ze,qt,Mt,Gt;const{dir:tn}=Np(),{isSmallScreen:$t}=Wi(),{theme:re,inline:Li}=$e(),Ii=ne=>Li?"100%":ne,xn=(ne,fe)=>$t?`100dv${ne}`:fe,xt=(ne,fe)=>Ii(xn(ne,fe)),jt=LX((e=re==null?void 0:re.widgetTrigger)==null?void 0:e.offset,tn),hn={zIndex:((t=re==null?void 0:re.widgetTrigger)==null?void 0:t.zIndex)??1e7,offset:{bottom:((i=(n=re==null?void 0:re.widgetTrigger)==null?void 0:n.offset)==null?void 0:i.bottom)??20,right:((r=(a=re==null?void 0:re.widgetTrigger)==null?void 0:a.offset)==null?void 0:r.right)??(jt==="right"?20:"initial"),left:((o=(s=re==null?void 0:re.widgetTrigger)==null?void 0:s.offset)==null?void 0:o.left)??(jt==="left"?20:"initial")},size:{button:((u=(l=re==null?void 0:re.widgetTrigger)==null?void 0:l.size)==null?void 0:u.button)??48,icon:((d=(c=re==null?void 0:re.widgetTrigger)==null?void 0:c.size)==null?void 0:d.icon)??24}},Lr=(()=>{const ne=jt==="right"?hn.offset.right:hn.offset.left;return typeof ne!="number"?0:ne})(),nn={palette:(re==null?void 0:re.palette)??"neutral",primaryColor:(re==null?void 0:re.primaryColor)??"hsl(0 0% 9%)",widgetTrigger:hn,widgetContentContainer:{borderRadius:$t?"0px":((f=re==null?void 0:re.widgetContentContainer)==null?void 0:f.borderRadius)??"32px",zIndex:((h=re==null?void 0:re.widgetContentContainer)==null?void 0:h.zIndex)??hn.zIndex+1,outline:((g=re==null?void 0:re.widgetContentContainer)==null?void 0:g.outline)??"none",outlineColor:((y=re==null?void 0:re.widgetContentContainer)==null?void 0:y.outlineColor)??"hsl(0 0% 50% / .5)",boxShadow:((E=re==null?void 0:re.widgetContentContainer)==null?void 0:E.boxShadow)??"0 0px 100px 0px rgb(0 0 0 / 0.25)",transitionProperty:((m=re==null?void 0:re.widgetContentContainer)==null?void 0:m.transitionProperty)??"all",transitionTimingFunction:((v=re==null?void 0:re.widgetContentContainer)==null?void 0:v.transitionTimingFunction)??gf.transitionTimingFunction,transitionDuration:((x=re==null?void 0:re.widgetContentContainer)==null?void 0:x.transitionDuration)??gf.transitionDuration,offset:{side:$t?0:hn.offset.bottom+hn.size.button+To.y*2+(((S=(T=re==null?void 0:re.widgetContentContainer)==null?void 0:T.offset)==null?void 0:S.side)??10),align:$t?0:Lr+(((D=(A=re==null?void 0:re.widgetContentContainer)==null?void 0:A.offset)==null?void 0:D.align)??0)}},screens:{welcome:{width:xt("w",((B=(L=re==null?void 0:re.screens)==null?void 0:L.welcome)==null?void 0:B.width)??"400px"),minHeight:xt("h",((Y=(O=re==null?void 0:re.screens)==null?void 0:O.welcome)==null?void 0:Y.minHeight)??"1px")},sessions:{width:xt("w",((ae=(U=re==null?void 0:re.screens)==null?void 0:U.sessions)==null?void 0:ae.width)??"450px"),height:xt("h",((Q=(ee=re==null?void 0:re.screens)==null?void 0:ee.sessions)==null?void 0:Q.height)??"600px")},chat:{width:xt("w",((V=(F=re==null?void 0:re.screens)==null?void 0:F.chat)==null?void 0:V.width)??"525px"),height:xt("h",((te=(H=re==null?void 0:re.screens)==null?void 0:H.chat)==null?void 0:te.height)??"700px"),withCanvas:{width:xt("w",((nt=(be=(N=re==null?void 0:re.screens)==null?void 0:N.chat)==null?void 0:be.withCanvas)==null?void 0:nt.width)??"min(1050px, 100vw)"),height:xt("h",((ge=(Be=(M=re==null?void 0:re.screens)==null?void 0:M.chat)==null?void 0:Be.withCanvas)==null?void 0:ge.height)??"min(800px, 100vh)"),transitionTimingFunction:((Ze=(fn=(je=re==null?void 0:re.screens)==null?void 0:je.chat)==null?void 0:fn.withCanvas)==null?void 0:Ze.transitionTimingFunction)??gf.transitionTimingFunction,transitionDuration:((Gt=(Mt=(qt=re==null?void 0:re.screens)==null?void 0:qt.chat)==null?void 0:Mt.withCanvas)==null?void 0:Gt.transitionDuration)??gf.transitionDuration}}}},Ts={maxHeight:xt("h",`calc(
308
- 100vh
309
- - ${nn.widgetTrigger.offset.bottom}px
310
- - ${nn.widgetContentContainer.offset.side}px
311
- - ${To.y*2}px
312
- )`),maxWidth:xt("w",`calc(
313
- 100vw
314
- - ${Lr*2}px
315
- )`),minHeight:xt("h",`min(
316
- ${nn.screens.welcome.minHeight},
317
- ${nn.screens.sessions.height},
318
- ${nn.screens.chat.height}
319
- )`),minWidth:xt("w",`min(
320
- ${nn.screens.welcome.width},
321
- ${nn.screens.sessions.width},
322
- ${nn.screens.chat.width}
323
- )`)};return{theme:nn,triggerSide:jt,computed:Ts,cssVars:IX({palette:nn.palette,primary:nn.primaryColor})}}function IX({palette:e,primary:t}){const n=YC(e),i=de(t).toHsl(),a=de(t).isLight()?n[950]:n[50];return{"--opencx-primary":`${i.h} ${i.s*100}% ${i.l*100}%`,"--opencx-primary-foreground":a,"--opencx-background":n[100],"--opencx-foreground":n[950],"--opencx-destructive":"0 72.2% 50.6%","--opencx-destructive-foreground":n[50],"--opencx-accent":n[200],"--opencx-accent-foreground":"var(--opencx-foreground)","--opencx-secondary":n[200],"--opencx-secondary-foreground":"var(--opencx-foreground)","--opencx-muted":n[200],"--opencx-muted-foreground":n[500],"--opencx-input":n[300],"--opencx-border":n[300],"--opencx-ring":"var(--opencx-foreground)"}}function YC(e){const t={50:"0 0% 98%",100:"0 0% 96.1%",200:"0 0% 89.8%",300:"0 0% 83.1%",400:"0 0% 63.9%",500:"0 0% 45.1%",600:"0 0% 32.2%",700:"0 0% 25.1%",800:"0 0% 14.9%",900:"0 0% 9%",950:"0 0% 3.9%"},n={50:"60 9.1% 97.8%",100:"60 4.8% 95.9%",200:"20 5.9% 90%",300:"24 5.7% 82.9%",400:"24 5.4% 63.9%",500:"25 5.3% 44.7%",600:"33.3 5.5% 32.4%",700:"30 6.3% 25.1%",800:"12 6.5% 15.1%",900:"24 9.8% 10%",950:"20 14.3% 4.1%"},i={50:"0 0% 98%",100:"240 4.8% 95.9%",200:"240 5.9% 90%",300:"240 4.9% 83.9%",400:"240 5% 64.9%",500:"240 3.8% 46.1%",600:"240 5.2% 33.9%",700:"240 5.3% 26.1%",800:"240 3.7% 15.9%",900:"240 5.9% 10%",950:"240 10% 3.9%"},a={50:"210 40% 98%",100:"210 40% 96.1%",200:"214.3 31.8% 91.4%",300:"212.7 26.8% 83.9%",400:"215 20.2% 65.1%",500:"215.4 16.3% 46.9%",600:"215.3 19.3% 34.5%",700:"215.3 25% 26.7%",800:"217.2 32.6% 17.5%",900:"222.2 47.4% 11.2%",950:"222.2 84% 4.9%"};switch(e){case"neutral":return t;case"stone":return n;case"zinc":return i;case"slate":return a;default:return ai(e,YC.name),t}}function qC(){const{contentIframeRef:e}=Ct(),{inline:t}=$e();return{setWidth:n=>{var i;(i=e==null?void 0:e.current)==null||i.style.setProperty("--opencx-widget-width",t?"100%":n)},setHeight:n=>{var i;(i=e==null?void 0:e.current)==null||i.style.setProperty("--opencx-widget-height",t?"100%":n)}}}function Dg({width:e,height:t}){const{isSmallScreen:n}=Wi(),{setWidth:i,setHeight:a}=qC();_.useEffect(()=>{e&&i(e),t&&a(t)},[n,t,e,i,a])}const GC=jx;function xu({name:e,className:t}){const n=(()=>{switch(e){case"Check":return oM;case"CheckCheck":return sM;case"CircleCheck":return Bx;case"CircleCheckBig":return fM;case"CircleX":return hM;case"Expand":return pM;case"Maximize":return _M;case"Maximize2":return xM;case"Minimize":return TM;case"Minimize2":return EM;case"Shrink":return AM;case"SquareCheck":return kM;case"SquareCheckBig":return CM;case"SquareX":return OM;case"X":return td;case void 0:return GC;default:return ai(e,xu.name),GC}})();return b.jsx(n,{className:oe("size-4",t)})}function PX(){var e;const t=ya(),n=(e=t.config.customComponents)==null?void 0:e.headerBottom;return n?b.jsx(n,{...t}):null}function BX({fallback:e}){var t;const n=ya(),i=(t=n.config.customComponents)==null?void 0:t.headerTitle;return i?b.jsx(i,{...n}):e}function Mg(){const{widgetCtx:{org:e}}=Ct(),{routerState:{screen:t}}=Si(),{textContent:n}=$e();return(()=>{var i,a;switch(t){case"chat":return(i=n==null?void 0:n.chatScreen)==null?void 0:i.headerTitle;case"sessions":return(a=n==null?void 0:n.sessionsScreen)==null?void 0:a.headerTitle;case"welcome":return;default:ai(t,Mg.name);return}})()??e.name??"Chat"}function jX(e){switch(e){case"chat":return Ue("chat/header");case"sessions":return Ue("sessions/header");case"welcome":return;default:ai(e,Mg.name);return}}function zX(){const{router:e}=$e(),{routerState:{screen:t},toSessionsScreen:n}=Si();return t!=="chat"||e!=null&&e.chatScreenOnly?null:b.jsx(bt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:n,children:b.jsx(uM,{className:"size-4 rtl:-scale-100"})})}function UX({button:e}){const{setIsOpen:t}=Hr(),{isSmallScreen:n}=Wi(),i=ya();return n&&e.hideOnSmallScreen||!n&&e.hideOnLargeScreen?null:b.jsx(bt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:()=>{var a;e.handleClick?e.handleClick():t(!1),(a=e.onClicked)==null||a.call(e,i)},children:b.jsx(xu,{name:e.icon})})}function Lg({button:e}){const[t,n]=_.useState(!1),{routerState:{screen:i}}=Si(),{isSmallScreen:a}=Wi(),{theme:r}=or(),{setWidth:s,setHeight:o}=qC(),l=ya();if(i!=="chat"&&i!=="sessions")return null;const u=(()=>{switch(i){case"chat":return r.screens.chat.height;case"sessions":return r.screens.sessions.height;default:return ai(i,Lg.name),r.screens.chat.height}})(),c=(()=>{switch(i){case"chat":return r.screens.chat.width;case"sessions":return r.screens.sessions.width;default:return ai(i,Lg.name),r.screens.chat.width}})(),d=()=>{var f;n(h=>{const g=!h;return o(g?"100vh":u),s(g?`max(40vw, ${c})`:c),g}),(f=e.onClicked)==null||f.call(e,l)};return a&&e.hideOnSmallScreen||!a&&e.hideOnLargeScreen?null:b.jsx(bt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:d,children:b.jsx(xu,{name:e.icon||(t?e.shrinkIcon:e.expandIcon)})})}function $C({button:e}){var t,n;const{close:i}=ff(),{widgetCtx:a}=Ct(),{setIsOpen:r}=Hr(),{resolveSession:s,sessionState:o}=ri(),{isSmallScreen:l}=Wi(),u=ya(),c=!o.session,d=((t=o.session)==null?void 0:t.isOpened)===!1,f=e.onResolved||"stay-in-chat",h=e.behaviorBeforeSessionCreation||"disabled",g=e.behaviorIfSessionIsResolved||"disabled",y=!!(o.isResolvingSession||c&&h==="disabled"||d&&g==="disabled"),E=async()=>{const{success:v,error:x}=await s();if(i(),!v)return console.error(x),!1;switch(f){case"stay-in-chat":break;case"close-widget":r(!1);break;case"reset-chat":a.resetChat();break;case"reset-chat-and-close-widget":r(!1),a.resetChat();break;default:ai(f,$C.name);break}return!0},m=()=>{if(c)switch(h){case"disabled":return;case"close-widget":r(!1);break;default:ai(h,m.name)}if(d)switch(g){case"disabled":return;case"close-widget":r(!1);break;case"reset-chat":a.resetChat();break;case"reset-chat-and-close-widget":r(!1),setTimeout(()=>{a.resetChat()},200);break;default:ai(g,m.name)}};return l&&e.hideOnSmallScreen||!l&&e.hideOnLargeScreen?null:((n=e.confirmation)==null?void 0:n.type)==="modal"&&!d&&!c?b.jsx(pf,{trigger:b.jsx(bt,{variant:"ghost",size:"fit",className:"rounded-full",disabled:y,onClick:()=>{var v;return(v=e.onClicked)==null?void 0:v.call(e,u)},children:b.jsx(xu,{name:e.icon})}),children:b.jsxs(hf,{children:[b.jsx(_g,{children:b.jsx(Tg,{children:e.confirmation.title||"Close conversation"})}),b.jsx(Eg,{children:b.jsx(wg,{children:e.confirmation.description||"Are you sure you want to close this conversation?"})}),b.jsxs(LC,{children:[b.jsx(bt,{variant:"secondary",onClick:i,disabled:o.isResolvingSession,children:e.confirmation.cancelButtonText||"No"}),b.jsx(bt,{variant:"destructive",onClick:async()=>{var v,x;await E()&&((x=(v=e.confirmation)==null?void 0:v.onResolved)==null||x.call(v,u))},disabled:o.isResolvingSession,children:e.confirmation.confirmButtonText||"Yes"})]})]})}):b.jsx(bt,{variant:"ghost",size:"fit",className:"rounded-full",onClick:()=>{var v;d||c?m():E(),(v=e.onClicked)==null||v.call(e,u)},disabled:y,children:b.jsx(xu,{name:e.icon})})}function Ig({button:e}){switch(e.functionality){case"close-widget":return b.jsx(UX,{button:e});case"expand-shrink":return b.jsx(Lg,{button:e});case"resolve-session":return b.jsx($C,{button:e});default:return ai(e,Ig.name),null}}const HX={functionality:"close-widget",hideOnLargeScreen:!0,icon:"X"};function FX(){const{routerState:{screen:e}}=Si(),{headerButtons:t}=$e(),n=e==="chat"?t==null?void 0:t.chatScreen:e==="sessions"?t==null?void 0:t.sessionsScreen:[];return!n||n.length===0?b.jsx(Ig,{button:HX}):b.jsx(b.Fragment,{children:n.map(i=>b.jsx(Ig,{button:i},`${i.functionality}-${i.icon}`))})}function XC(){const{routerState:{screen:e}}=Si(),t=jX(e),n=Mg();return b.jsxs("header",{...t,className:"py-2 px-4 shrink-0",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(zX,{}),b.jsx("div",{className:oe("flex-1 h-8 flex items-center",e==="sessions"&&"ps-2"),children:b.jsx(BX,{fallback:b.jsx("h2",{className:"font-semibold",children:n})})}),b.jsx(FX,{})]}),b.jsx(PX,{})]})}function KC({className:e}){return b.jsx(yM,{className:oe("size-4 animate-spin",e)})}function VX(){const{messagesState:{isInitialFetchLoading:e}}=wn(),{isSmallScreen:t}=Wi(),{activeMode:n,Component:i}=Mx();return{isCanvasOpen:!e&&!t&&!!n&&!!i}}function YX(){const e=ya(),{activeMode:t,Component:n}=Mx(),{sendMessage:i}=wn(),{createStateCheckpoint:a}=ri(),[r,s]=_.useState(!1),o=async l=>{try{s(!0),await i(l)}catch(u){console.error(u)}finally{s(!1)}};return!t||!n?null:b.jsx(n,{...e,mode:t,createStateCheckpoint:a,sendMessage:o,isSendingMessage:r})}function lr(){const{dir:e}=Np(),t=$e();return _.useMemo(()=>{const n=Q5(t.language)?t.language:"en";return{t:i=>W5(i,n,t.translationOverrides),language:n,dir:n==="ar"?"rtl":"ltr",hostDocumentDir:e}},[t.language,e])}const Zi=mn.forwardRef((e,t)=>{var n,i,a;return b.jsx(Qe,{...e,ref:t,className:oe("overflow-hidden",e.className),overrides:{initial:{height:0,opacity:0,...(n=e.overrides)==null?void 0:n.initial},animate:{height:"auto",opacity:1,...(i=e.overrides)==null?void 0:i.animate},exit:{height:0,opacity:0,...(a=e.overrides)==null?void 0:a.exit}}})});Zi.displayName="MotionDiv__VerticalReveal";const qX=[{label:"Terrible",value:1,emoji:"😡"},{label:"Poor",value:2,emoji:"😞"},{label:"Okay",value:3,emoji:"😐"},{label:"Good",value:4,emoji:"😊"},{label:"Great",value:5,emoji:"😍"}];function GX(){const{isSmallScreen:e}=Wi(),{t}=lr(),{submitCsat:n,isCsatRequested:i,isCsatSubmitted:a,submittedScore:r,submittedFeedback:s}=Lx(),[o,l]=_.useState(null),[u,c]=_.useState(null),d=h=>{l(g=>g===h?null:h)},f=()=>{o&&n({score:o,feedback:u||void 0})};return!i&&!a?null:b.jsxs("div",{className:"w-1/2 min-w-80 max-w-96 mx-auto overflow-hidden",children:[b.jsx(Et,{mode:"wait",children:i&&!o?b.jsx(Zi,{children:b.jsx("p",{className:"text-sm text-muted-foreground text-center pt-2",children:t("csat_title")})},"csat-requested-title"):a?b.jsx(Zi,{children:b.jsx("p",{className:"text-sm text-muted-foreground text-center pt-2",children:t("csat_submitted_title")})},"csat-submitted-title"):null}),b.jsx("div",{dir:"ltr",className:oe("flex gap-4 justify-between pt-2 px-2 pb-2","transition-all",a&&"gap-0 justify-center"),children:qX.map(h=>b.jsx(bt,{variant:h.value===o?"secondary":"ghost",size:"selfless",className:oe("transition-all overflow-hidden","text-2xl size-8 rounded-full","opacity-35","hover:opacity-100",!o&&"opacity-100",h.value===o&&"opacity-100",a&&h.value!==r&&"opacity-0 size-0",a&&h.value===r&&"opacity-100 size-fit text-4xl"),onClick:i?()=>d(h.value):void 0,children:h.emoji},h.value))}),b.jsx(Et,{mode:"wait",children:(o||r)&&b.jsx(Zi,{children:b.jsxs("div",{className:"pb-2 px-2 flex items-end",children:[b.jsx("textarea",{rows:3,className:oe("transition-all","max-h-40 [field-sizing:content]","w-full resize-none","bg-transparent outline-none","placeholder:text-muted-foreground",e?"text-[16px]":"text-sm",a&&"text-center"),value:a?s||"":u||"",onChange:i?h=>c(h.target.value):void 0,readOnly:a,placeholder:i?t("csat_feedback_placeholder"):void 0}),b.jsx(bt,{size:"fit",onClick:f,disabled:!o,className:oe("transition-all overflow-hidden","rounded-full size-8 flex items-center justify-center p-0",a&&"opacity-0 size-0"),children:b.jsx(Px,{className:"size-4"})})]})},"feedback-box")}),b.jsx("div",{className:oe("h-0 transition-[height]",a&&"h-4")})]})}function Pg({suggestion:e,className:t,...n}){const{sendMessage:i}=wn(),a=()=>{const r=e.trim();r&&i({content:r})};return b.jsx(bt,{...Ue("chat/suggested_reply_btn"),size:"sm",className:oe("rounded-xl w-fit",t),...n,onClick:a,children:e})}function $X(){const{t:e}=lr(),t=[e("i_need_more_help"),e("this_was_helpful")];return b.jsx("div",{...Ue("chat/might_solve_user_issue_suggested_replies_container"),className:"flex items-center gap-2 p-2 pb-0 flex-wrap",children:t.map(n=>b.jsx(Pg,{suggestion:n,className:"flex-1"},n))})}function QC(){const{sessionState:e}=ri(),{chatFooterItems:t}=$e(),n=!!e.session&&!e.session.isOpened,i=!n;return b.jsx(Et,{mode:"wait",children:t==null?void 0:t.map((a,r)=>a.showWhenSessionIsOpen===!1&&i||a.showWhenSessionIsResolved===!1&&n?null:b.jsx(Zi,{children:b.jsx("div",{className:"pb-2 text-center text-xs",children:b.jsx(Ag,{children:a.message})})},`${a.message}-${r}`))})}function XX({file:{status:e,file:t,error:n},onCancel:i}){const[a,r]=_.useState(null);_.useEffect(()=>{if(!t.type.startsWith("image/"))return;const l=new FileReader;return l.onload=()=>r(l.result),l.onerror=()=>console.error("Error reading file"),l.readAsDataURL(t),()=>l.abort()},[t]);const s=()=>{switch(e){case"uploading":return b.jsx(vM,{className:"size-4 animate-spin"});case"error":return b.jsx(dM,{className:"size-4 text-destructive"});default:return null}},o=()=>{const l=t.type.split("/")[0];return l==="image"&&a?b.jsx("img",{src:typeof a=="string"?a:"",className:"object-cover bg-secondary size-full",alt:t.name}):l==="audio"?b.jsx(mM,{className:"size-4 text-muted-foreground"}):l==="video"?b.jsx(gM,{className:"size-4 text-muted-foreground"}):t.type==="application/pdf"?b.jsx(Ux,{className:"size-4 text-muted-foreground"}):DC({type:t.type,name:t.name})?b.jsx(zx,{className:"size-4 text-muted-foreground"}):b.jsx(bM,{className:"size-4 text-muted-foreground"})};return b.jsx(yu,{side:"bottom",content:e==="error"?b.jsxs("span",{className:"text-destructive",children:["Failed to upload: ",n]}):t.name,children:b.jsxs("div",{className:oe(e==="uploading"&&"opacity-50","group","size-12 border rounded-2xl overflow-hidden relative","flex items-center justify-center shrink-0"),children:[b.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:s()}),b.jsx("button",{type:"button",className:oe("absolute bg-black/50 inset-0 size-full z-10 opacity-0","flex items-center justify-center","opacity-0 group-hover:opacity-100 transition"),onClick:i,children:b.jsx(td,{className:"size-4 text-primary-foreground"})}),b.jsx(o,{})]})})}const KX=25*1024*1024;function QX(){var e;const{isSmallScreen:t}=Wi(),n=_.useRef(null),{sendMessage:i}=wn(),{sessionState:a}=ri(),{disableSendingWhenAwaitingAIReply:r}=$e(),{t:s}=lr(),[o,l]=_.useState(""),{allFiles:u,emptyTheFiles:c,handleCancelUpload:d,appendFiles:f,isUploading:h,successFiles:g}=tM(),y=!!((e=a.session)!=null&&e.isHandedOff),{isAwaitingBotReply:E}=Rx(),m=r!==!1&&E,v=B=>{f(B)},x=!o.trim()&&g.length===0,T=async()=>{if(m||x)return;h&&console.info("please wait for the file(s) to upload");const B=o.trim();i({content:B,attachments:g.flatMap(O=>O.fileUrl?[{url:O.fileUrl,type:O.file.type,name:O.file.name,id:O.id,size:O.file.size}]:[])}),l(""),c()},{getRootProps:S,getInputProps:A,open:D}=sC({onDrop:v,noClick:!0,onDropRejected(){console.error("unsupported file type, or the file is too large")},maxSize:KX,accept:y?{"text/*":[".txt"],"image/*":[".png",".jpg",".jpeg",".gif"],"application/pdf":[".pdf"],...NC,...RC}:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg"],"image/gif":[".gif"],"image/webp":[".webp"],"application/pdf":[".pdf"],...NC,...RC}}),L=B=>{const O=B.clipboardData;O&&O.files.length>0&&v(Array.from(O.files))};return b.jsxs("div",{...Ue("chat/input_box/root"),className:"p-2 relative space-y-1",...S(),children:[b.jsx("input",{...A()}),b.jsxs("div",{...Ue("chat/input_box/inner_root"),className:oe("transition-all","bg-white","relative rounded-3xl flex flex-col gap-2 p-2","hover:border-primary focus-within:border-primary"),children:[b.jsxs("div",{...Ue("chat/input_box/textarea_and_attachments_container"),className:"flex flex-col gap-2",children:[u.length>0&&b.jsx("div",{...Ue("chat/input_box/attachments_container"),className:"flex items-center gap-1",children:b.jsx(Et,{mode:"popLayout",children:u.map(B=>b.jsx(Qe,{snapExit:!0,children:b.jsx(XX,{onCancel:()=>d(B.id),file:B})},B.id))})}),b.jsx("textarea",{...Ue("chat/input_box/textarea"),onPaste:L,ref:n,id:"chat-input",value:o,rows:3,className:oe("max-h-16 [field-sizing:content]","w-full resize-none px-2",u.length===0&&"pt-1","bg-transparent outline-none","placeholder:text-muted-foreground",t?"text-[16px]":"text-sm"),onChange:B=>l(B.target.value),onKeyDown:async B=>{B.key==="Enter"&&!B.shiftKey&&(B.preventDefault(),T())},placeholder:s("write_a_message_placeholder")})]}),b.jsxs("div",{className:"gap-2 flex justify-between",children:[b.jsx(yu,{side:"top",align:"start",content:"attach images, videos, PDFs, or spreadsheets (maximum size 25mb)",children:b.jsx(bt,{onClick:D,size:"fit",variant:"ghost",className:oe("rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"),children:b.jsx(Et,{mode:"wait",children:m?b.jsx(Qe,{children:b.jsx(Hx,{className:"size-4 opacity-50"})},"paper-clip-disabled"):b.jsx(Qe,{children:b.jsx(Hx,{className:"size-4"})},"paper-clip")})})}),b.jsx(yu,{content:"send message",side:"top",align:"end",children:b.jsx(bt,{size:"fit",onClick:T,disabled:m||h||x,className:"rounded-full size-8 flex items-center justify-center p-0",children:b.jsx(Et,{mode:"wait",children:m||h?b.jsx(Qe,{snapExit:!0,children:b.jsx(jx,{className:"size-4 animate-spin animate-iteration-infinite"})},"loading"):b.jsx(Qe,{snapExit:!0,children:b.jsx(Px,{className:"size-4"})},"send")})})})]})]})]})}function WC(){const{widgetCtx:e}=Ct(),{router:t}=$e(),{canCreateNewSession:n}=ri(),{toSessionsScreen:i}=Si(),{t:a}=lr();return b.jsx(b.Fragment,{children:n||t!=null&&t.chatScreenOnly?b.jsx(bt,{onClick:e.resetChat,className:"rounded-2xl w-full",children:a("new_conversation")}):b.jsx(bt,{onClick:i,className:"rounded-2xl w-full",children:a("back_to_conversations")})})}function WX(){const{t:e}=lr(),{isCsatRequested:t,isCsatSubmitted:n}=Lx();return b.jsx("div",{className:"p-2",children:b.jsx("div",{className:"p-2 bg-muted rounded-3xl",children:b.jsx(Et,{mode:"wait",children:t||n?b.jsxs(Zi,{children:[b.jsx(GX,{}),b.jsx(Et,{mode:"wait",children:n&&b.jsx(Zi,{children:b.jsx(WC,{})},"new-conv-or-back-to-convs-button")})]},"csat"):b.jsxs(Zi,{children:[b.jsxs("div",{className:"ps-2 flex items-center gap-1 pb-2",children:[b.jsx(Bx,{className:"size-4 text-emerald-600"}),b.jsx("h2",{className:"text-sm font-medium",children:e("your_issue_has_been_resolved")})]}),b.jsx(WC,{})]},"session-closed")})})})}function ZX(){var e;const{initialQuestions:t,initialQuestionsPosition:n,thisWasHelpfulOrNot:i}=$e(),{sessionState:a}=ri(),{messagesState:r}=wn(),s=r.messages.length===0;return b.jsx("footer",{children:b.jsx(Et,{mode:"wait",children:a.session&&!((e=a.session)!=null&&e.isOpened)?b.jsxs(Zi,{children:[b.jsx(WX,{}),b.jsx(QC,{})]},"session-closed"):b.jsxs(Zi,{children:[r.lastAIResMightSolveUserIssue&&(i==null?void 0:i.enabled)!==!1&&b.jsx($X,{}),s&&t&&n!=="below-initial-messages"&&b.jsx("div",{className:"flex items-center flex-row justify-end gap-2 flex-wrap px-2",children:t==null?void 0:t.map((o,l)=>b.jsx(Pg,{suggestion:o},`${o}-${l}`))}),b.jsx(QX,{}),b.jsx(QC,{})]},"chat-input")})})}function JX({isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n,...i}){const{componentStore:a}=Ct();if(i.type!=="AGENT"&&i.type!=="AI")return null;if(i.data.action){const s=a.getComponent(i.data.action.name);if(s)return b.jsx(s,{...i,id:i.id,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n})}const r=a.getComponent(i.component);return r?b.jsx(r,{...i,id:i.id,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n}):b.jsx(Cg,{...i,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n})}function ZC({messages:e,className:t,containerClassName:n}){var i,a;const{timestamps:r}=$e();if(!((i=r==null?void 0:r.perMessageGroup)!=null&&i.enabled))return null;const s=(a=e[e.length-1])==null?void 0:a.timestamp;if(!s)return null;const o=(()=>{try{return new Date(s).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!0})}catch(l){return console.error(l),null}})();return o?b.jsx("div",{className:n,children:b.jsx("span",{className:oe("text-xs text-muted-foreground",t),children:o})}):null}function bf({messages:e,agent:t,suggestedReplies:n}){return b.jsxs("div",{...Ue("chat/agent_msg_group/root"),className:oe("flex items-end gap-2"),children:[b.jsx(yu,{content:t==null?void 0:t.name,side:"right",align:"end",children:b.jsx(Rg,{...Ue("chat/agent_msg_group/root/avatar"),agent:t,className:"hidden"})}),b.jsxs("div",{className:oe("flex-1 flex flex-col gap-1"),children:[b.jsxs("div",{...Ue("chat/agent_msg_group/avatar_and_msgs/root"),className:oe("flex items-end gap-2"),children:[b.jsx(yu,{content:t==null?void 0:t.name,side:"right",align:"end",children:b.jsx(Rg,{...Ue("chat/agent_msg_group/avatar_and_msgs/avatar"),agent:t})}),b.jsxs("div",{...Ue("chat/agent_msg_group/avatar_and_msgs/msgs"),className:oe("flex-1 flex flex-col gap-1"),children:[e.map((i,a,r)=>b.jsx(JX,{isFirstInGroup:a===0,isLastInGroup:a===r.length-1,isAloneInGroup:r.length===1,...i},i.id)),b.jsx(ZC,{messages:e})]})]}),n&&n.length>0&&b.jsx("div",{...Ue("chat/agent_msg_group/suggestions"),className:oe("flex flex-col gap-1 ps-8"),children:n==null?void 0:n.map((i,a)=>b.jsx(Pg,{suggestion:i},`${i}-${a}`))})]})]})}function eK(){var e,t;const n=ya();if((e=n.session)!=null&&e.isOpened||!n.session)return null;const i=(t=n.config.customComponents)==null?void 0:t.onSessionResolved;return i?b.jsx(i,{...n}):null}function tK({message:e,isFirstInGroup:t,isLastInGroup:n,isAloneInGroup:i}){var a;return b.jsxs("div",{...Ue("chat/user_msg/root"),className:"w-5/6 flex flex-col items-end gap-1",children:[e.attachments&&e.attachments.length>0&&b.jsx("div",{className:"w-full flex gap-1 flex-wrap justify-end",children:(a=e.attachments)==null?void 0:a.map(r=>b.jsx(zC,{attachment:r},r.id))}),e.content.length>0&&b.jsx("div",{...Ue("chat/user_msg/msg"),"data-first":t,"data-last":n,"data-alone":i,className:oe("transition-all","w-fit py-3 px-4 rounded-3xl text-sm","bg-primary text-primary-foreground","break-words [word-break:break-word]","whitespace-pre-wrap",t&&!i&&"rounded-br-md",n&&!i&&"rounded-tr-md",!t&&!n&&!i&&"rounded-r-md"),children:e.content})]})}function nK({messages:e}){return b.jsxs("div",{...Ue("chat/user_msg_group/root"),className:oe("group","flex flex-col gap-1 justify-end items-end"),children:[e.map((t,n,i)=>b.jsx(tK,{message:t,isFirstInGroup:n===0,isLastInGroup:n===i.length-1,isAloneInGroup:i.length===1},t.id)),b.jsx(ZC,{messages:e,containerClassName:"ms-auto"})]})}function iK(e){const t=[];let n=null;return e.forEach(i=>{var a,r,s,o,l,u;(((a=n==null?void 0:n[0])==null?void 0:a.type)!==i.type||((r=n[0])==null?void 0:r.type)==="AGENT"&&i.type==="AGENT"&&(((s=i.agent)==null?void 0:s.id)!==((o=n[0].agent)==null?void 0:o.id)||((l=i.agent)==null?void 0:l.name)!==((u=n[0].agent)==null?void 0:u.name)))&&(n=[],t.push(n)),n.push(i)}),t}function aK(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="USER"}function rK(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="AI"}function sK(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="AGENT"}function oK(){const{messagesState:{messages:e}}=wn(),{advancedInitialMessages:t=[],initialQuestionsPosition:n,initialQuestions:i,bot:a}=$e();return b.jsx(b.Fragment,{children:e.length===0&&t.length>0&&b.jsx(bf,{messages:t.map(({message:r},s)=>({component:"bot_message",data:{message:r},id:`${s}-${r}`,type:"AI",timestamp:null})),suggestedReplies:e.length===0&&n==="below-initial-messages"?i:void 0,agent:a?{...a,isAi:!0,id:null}:void 0})})}function lK(){const{messagesState:{messages:e}}=wn(),{chatBannerItems:t}=$e();return!(t!=null&&t.length)||e.length>0&&t.every(n=>!n.persistent)?null:b.jsx("div",{className:"w-full text-center text-xs",children:t.map(({message:n,persistent:i},a)=>e.length>0&&!i?null:b.jsx("div",{children:b.jsx(Ag,{children:n})},`${n}-${a}`))})}const uK=10*1024,JC=new Map;function cK(e){const t=JC.get(e);if(t!==void 0)return t;const n=dK(e);return JC.set(e,n),n}function dK(e){const t=e.trim();if(!t||t.length>uK||typeof DOMParser>"u")return null;const n=new DOMParser().parseFromString(t,"image/svg+xml"),i=n.documentElement;return i.localName!=="svg"||i.namespaceURI!=="http://www.w3.org/2000/svg"||n.getElementsByTagName("parsererror").length>0?null:`data:image/svg+xml,${encodeURIComponent(t)}`}const fK=VT("inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-xs font-medium transition-colors",{variants:{variant:{default:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",outline:"border text-foreground"}},defaultVariants:{variant:"default"}});function hK({className:e,variant:t,...n}){return b.jsx("div",{className:oe(fK({variant:t}),e),...n})}function ek({customStatus:e,className:t,dotClassName:n}){const i=e.icon?cK(e.icon):null,a=e.color||"currentColor";return i?b.jsx("span",{"aria-hidden":!0,className:oe("size-3.5 shrink-0",t),style:{backgroundColor:a,maskImage:`url("${i}")`,maskSize:"contain",maskRepeat:"no-repeat",maskPosition:"center",WebkitMaskImage:`url("${i}")`,WebkitMaskSize:"contain",WebkitMaskRepeat:"no-repeat",WebkitMaskPosition:"center"}}):b.jsx("span",{"aria-hidden":!0,className:oe("size-2 shrink-0 rounded-full",n),style:{backgroundColor:a}})}function tk({customStatus:e,className:t}){return b.jsxs(hK,{variant:"secondary",className:oe("relative isolate overflow-hidden max-w-full text-primary",t),title:e.description||void 0,style:e.color?{color:`color-mix(in srgb, ${e.color} 55%, hsl(var(--opencx-foreground)))`}:void 0,children:[e.color&&b.jsx("span",{"aria-hidden":!0,className:"absolute inset-0 -z-10 opacity-20",style:{backgroundColor:e.color}}),b.jsx(ek,{customStatus:e}),b.jsx("span",{className:"truncate",children:e.name})]})}function pK(){const{sessionState:{session:e}}=ri(),t=e==null?void 0:e.customStatus;return b.jsx(Et,{mode:"wait",children:t&&b.jsx(Qe,{className:"sticky top-2 z-10 self-center max-w-full",snapExit:!0,children:b.jsx(pf,{trigger:b.jsx(bt,{variant:"ghost",size:"selfless",className:"rounded-full",children:b.jsx(tk,{customStatus:t})}),children:b.jsxs(hf,{withClose:!0,children:[b.jsxs(_g,{children:[b.jsx(ek,{customStatus:t,className:"size-8 mx-auto",dotClassName:"size-3 mx-auto"}),b.jsx(Tg,{children:t.name})]}),t.description&&b.jsx(Eg,{children:b.jsx(wg,{children:t.description})})]})})},t.id)})}function mK(){const{messagesState:{messages:e}}=wn(),t=$e(),{advancedInitialMessages:n=[],initialQuestions:i,initialQuestionsPosition:a}=t,r=(()=>{var s;return n.length?[]:e.length?[]:(s=t.initialMessages)!=null&&s.length?t.initialMessages:["Hello, how can I help you?"]})();return b.jsx(b.Fragment,{children:e.length===0&&r.length>0&&b.jsx(bf,{messages:r.map((s,o)=>({component:"bot_message",data:{message:s},id:`${o}-${s}`,type:"AI",timestamp:null})),suggestedReplies:a==="below-initial-messages"?i:void 0,agent:t.bot?{...t.bot,isAi:!0,id:null}:void 0})})}function gK(){var e;const t=ya(),n=(e=t.config.customComponents)==null?void 0:e.chatBottomComponents;return n?b.jsx("div",{children:n.map(({key:i,component:a})=>b.jsx(a,{...t},i))}):null}function bK(){const{messagesState:{messages:e}}=wn(),{isAwaitingBotReply:t}=Rx(),{componentStore:n}=Ct(),{bot:i,humanAgent:a}=$e(),r=_.useMemo(()=>iK(e),[e]),s=n.getComponent("loading"),o=_.useRef(null);function l(){setTimeout(()=>{const u=o.current;u&&(u.scrollTop=u.scrollHeight)},0)}return _.useEffect(()=>{l()},[e]),b.jsxs("div",{...Ue("chat/msgs/root"),ref:o,className:"max-h-full scroll-smooth relative flex-1 py-2 px-4 flex flex-col gap-2 overflow-auto",children:[b.jsx(pK,{}),b.jsx(lK,{}),b.jsx(oK,{}),b.jsx(mK,{}),r.map((u,c)=>{var d,f,h,g;const y=(d=u==null?void 0:u[0])==null?void 0:d.type,E=(f=u[0])==null?void 0:f.id;if(!y||!E)return null;if(aK(u))return b.jsx(nK,{messages:u},E);if(rK(u)){const m=c===r.length-1;return t&&m?null:((h=u[0])==null||h.agent,b.jsx(bf,{messages:u,agent:i?{...i,isAi:!0,id:null}:void 0},E))}if(sK(u)){const m=(g=u[0])==null?void 0:g.agent;return b.jsx(bf,{messages:u,agent:m?{...m,name:(a==null?void 0:a.name)||m.name||"",avatarUrl:(a==null?void 0:a.avatarUrl)||m.avatarUrl||null}:a?{isAi:!1,id:null,name:a.name||"",avatarUrl:a.avatarUrl||null}:void 0},E)}return null}),t&&s&&b.jsx(s,{agent:i}),b.jsx(gK,{}),b.jsx(eK,{})]})}function vK(){const{messagesState:{isInitialFetchLoading:e}}=wn(),{sessionState:{session:t}}=ri(),{isCanvasOpen:n}=VX(),{theme:i}=or();Dg({width:n?i.screens.chat.withCanvas.width:i.screens.chat.width,height:n?i.screens.chat.withCanvas.height:i.screens.chat.height});const a=_.useRef((t==null?void 0:t.id)||"chat").current;return b.jsx("div",{...Ue("chat/root"),className:oe("flex flex-col overflow-hidden"),style:{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh"},children:b.jsxs("div",{className:"size-full justify-between flex flex-col",children:[b.jsx(XC,{}),b.jsx(Et,{mode:"wait",children:e?b.jsx(Qe,{className:"flex flex-col items-center justify-center w-full flex-1",children:b.jsx(KC,{})},"loading"):b.jsxs(Qe,{className:"flex items-start h-full flex-1 overflow-auto",snapExit:!0,children:[b.jsxs("div",{...Ue("chat/main/root"),className:oe("flex flex-col h-full overflow-auto transition-all",n?"w-2/5":"w-full"),style:{transitionTimingFunction:i.screens.chat.withCanvas.transitionTimingFunction,transitionDuration:i.screens.chat.withCanvas.transitionDuration},children:[b.jsx(bK,{}),b.jsx(ZX,{})]}),b.jsx("div",{...Ue("chat/canvas/root"),className:oe("h-full overflow-auto transition-all",n?"w-3/5":"w-0"),style:{transitionTimingFunction:i.screens.chat.withCanvas.transitionTimingFunction,transitionDuration:i.screens.chat.withCanvas.transitionDuration},children:b.jsx(YX,{})})]},a)})]})})}function yK({className:e,...t}){return b.jsx("div",{className:oe("animate-pulse rounded-md bg-secondary",e),...t})}function xK({className:e}){return b.jsx("svg",{width:"26",height:"32",viewBox:"0 0 26 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:oe("text-primary-foreground",e),children:b.jsx("path",{d:"M1.34103 25.6132H5.44245C5.74203 25.6228 6.02673 25.7462 6.23867 25.9582C6.45062 26.1703 6.5739 26.4551 6.58348 26.7548V30.8584C6.59305 31.1581 6.71634 31.443 6.92828 31.655C7.14023 31.8671 7.42492 31.9904 7.7245 32H18.2894C18.589 31.9904 18.8737 31.8671 19.0856 31.655C19.2976 31.443 19.4209 31.1581 19.4304 30.8584V26.7548C19.4401 26.4545 19.5638 26.1692 19.7765 25.957C19.9892 25.7449 20.2748 25.6219 20.5749 25.6132H24.659C24.9586 25.6036 25.2433 25.4803 25.4552 25.2682C25.6671 25.0562 25.7904 24.7713 25.8 24.4716V7.52839C25.7904 7.22865 25.6671 6.94381 25.4552 6.73176C25.2433 6.5197 24.9586 6.39635 24.659 6.38677H20.561C20.2603 6.37802 19.9742 6.25457 19.7614 6.04169C19.5487 5.82881 19.4253 5.54261 19.4165 5.24168V1.14161C19.4072 0.84419 19.2858 0.561291 19.0768 0.349589C18.8678 0.137887 18.5865 0.0130193 18.2894 0L7.7245 0C7.42492 0.00957792 7.14023 0.132929 6.92828 0.344983C6.71634 0.557036 6.59305 0.841878 6.58348 1.14161V5.24168C6.57477 5.54203 6.45187 5.82773 6.23983 6.04052C6.0278 6.25331 5.74262 6.37715 5.44245 6.38677H1.34103C1.04144 6.39635 0.756749 6.5197 0.544805 6.73176C0.332861 6.94381 0.209574 7.22865 0.200001 7.52839V24.4716C0.209574 24.7713 0.332861 25.0562 0.544805 25.2682C0.756749 25.4803 1.04144 25.6036 1.34103 25.6132ZM6.58348 24.4716V7.52839C6.59305 7.22865 6.71634 6.94381 6.92828 6.73176C7.14023 6.5197 7.42492 6.39635 7.7245 6.38677H18.2894C18.589 6.39635 18.8737 6.5197 19.0856 6.73176C19.2976 6.94381 19.4209 7.22865 19.4304 7.52839V24.4716C19.4209 24.7713 19.2976 25.0562 19.0856 25.2682C18.8737 25.4803 18.589 25.6036 18.2894 25.6132H7.7245C7.42492 25.6036 7.14023 25.4803 6.92828 25.2682C6.71634 25.0562 6.59305 24.7713 6.58348 24.4716Z",fill:"currentColor"})})}function nk({className:e}){const{token:t}=$e();return b.jsx("div",{className:oe("flex items-center justify-center gap-2 p-2 pt-0",e),children:b.jsx(va,{children:b.jsxs("a",{href:`https://open.cx/?ref=${t}`,target:"_blank",rel:"noreferrer",className:oe("text-[10px] flex items-center","text-muted-foreground/70 [&_svg]:text-muted-foreground/70","hover:text-primary [&_svg]:hover:text-primary"),children:[b.jsx("span",{children:"Powered by"}),b.jsx("span",{children:" "}),b.jsxs("span",{className:"flex items-center gap-[1px]",children:[b.jsx("span",{children:b.jsx(xK,{className:"size-3 inline-block"})}),b.jsx("span",{className:"font-semibold",children:"open"})]})]})})})}function _K({children:e}){return b.jsx("p",{className:"ps-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight",children:e})}function ik({session:e,className:t}){const{bot:n,humanAgent:i}=$e(),{toChatScreen:a}=Si(),r=e.assignee.kind==="human"?(i==null?void 0:i.name)||e.assignee.name||"Support Agent":(n==null?void 0:n.name)||"AI Support Agent",s=e.assignee.kind==="human"?(i==null?void 0:i.avatarUrl)||e.assignee.avatarUrl||"":(n==null?void 0:n.avatarUrl)||(n==null?void 0:n.avatar)||"";return b.jsxs(bt,{variant:"ghost",size:"lg",className:oe("rounded-full p-2 pe-4 flex text-start justify-between w-full whitespace-normal",t),onClick:()=>a(e.id),children:[b.jsxs("div",{className:"flex-1 flex gap-2 items-center",children:[b.jsx(Et,{mode:"wait",children:b.jsx(Qe,{snapExit:!0,children:b.jsxs(kg,{className:"size-10",children:[b.jsx(Og,{src:s,alt:"Agent Icon"}),b.jsx(Ng,{children:b.jsx(NM,{className:"size-4"})})]})})}),b.jsxs("div",{className:"flex-1",children:[b.jsx(Et,{mode:"wait",children:b.jsx(Qe,{snapExit:!0,children:r},r)}),b.jsx(Et,{mode:"wait",children:e.lastMessage?b.jsx(Qe,{snapExit:!0,children:b.jsx(UC,{remarkPlugins:[F2],rehypePlugins:[rA],className:"line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",children:e.lastMessage})},e.lastMessage||"content"):b.jsx(Qe,{className:"w-1/2",snapExit:!0,children:b.jsx(yK,{className:"h-4 w-full"})},"skeleton")}),b.jsx(Et,{mode:"wait",children:e.customStatus&&b.jsx(Qe,{className:"mt-1",snapExit:!0,children:b.jsx(tk,{customStatus:e.customStatus})},e.customStatus.id)})]})]}),b.jsx(cM,{className:"size-4 text-muted-foreground shrink-0 rtl:-scale-100"})]})}function EK(){const{t:e}=lr(),{toChatScreen:t}=Si(),{sessionsState:{data:n,isInitialFetchLoading:i},openSessions:a,closedSessions:r,canCreateNewSession:s}=ri();return b.jsx("div",{className:"flex-1 flex flex-col overflow-scroll py-2 px-2",children:b.jsx(Et,{mode:"wait",children:i?b.jsx(Qe,{className:"flex-1 flex items-center justify-center",children:b.jsx(KC,{})},"loading"):b.jsx(Qe,{className:"flex-1 flex flex-col gap-2 relative",children:n.length?b.jsxs(b.Fragment,{children:[b.jsxs(Et,{children:[a.length>0&&b.jsx(Qe,{fadeIn:"up",delay:.2,className:"space-y-2",snapExit:!0,children:a.map(o=>b.jsx(ik,{session:o},o.id))},"open-sessions"),r.length>0&&b.jsxs(Qe,{className:"space-y-2",delay:.2,snapExit:!0,children:[b.jsx(_K,{children:e("closed_conversations")}),r.map(o=>b.jsx(ik,{session:o,className:"opacity-50 hover:opacity-100"},o.id))]},"closed-sessions")]}),s&&b.jsx("div",{className:"mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background",children:_.createElement(bt,{...Ue("sessions/new_conversation_btn"),size:"lg",key:"new-session",className:"w-full",onClick:()=>t()},e("new_conversation"))})]}):b.jsxs("div",{className:"flex-1 flex flex-col gap-2 items-center",children:[b.jsx("div",{className:"flex-1 flex items-center justify-center",children:b.jsx("p",{className:"text-muted-foreground",children:e("no_conversations_yet")})}),_.createElement(bt,{...Ue("sessions/new_conversation_btn"),size:"lg",key:"new-session",className:"w-full",onClick:()=>t()},e("new_conversation"))]})},"sessions")})})}function TK(){const{theme:e}=or();return Dg({width:e.screens.sessions.width,height:e.screens.sessions.height}),b.jsx("div",{...Ue("sessions/root"),className:oe("flex flex-col overflow-hidden bg-background"),style:{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh"},children:b.jsxs("div",{className:"size-full flex flex-col",children:[b.jsx(XC,{}),b.jsx(EK,{}),b.jsx(nk,{})]})})}const vf=_.forwardRef(({className:e,type:t,...n},i)=>{const{isSmallScreen:a}=Wi();return b.jsx("input",{ref:i,type:t,className:oe(a?"text-[16px]":"text-sm","flex w-full rounded-xl p-2 ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-primary-foreground placeholder:text-muted-foreground/75 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition","rounded-2xl px-4","border shadow-sm",e),...n})});vf.displayName="Input";function wK(){const{contentIframeRef:e}=Ct(),{inline:t}=$e(),n=_.useRef(null);return _.useEffect(()=>{const i=e==null?void 0:e.current;if(i&&n.current){const a=n.current;let r;const s=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{const o=a.offsetHeight;i.style.setProperty("--opencx-widget-height",t?"100%":`${o.toFixed(1)}px`)})});return s.observe(a),()=>{cancelAnimationFrame(r),s.unobserve(a)}}},[e,t]),{observedElementRef:n}}const SK=gX({name:OC().min(2),email:OC().email()});function AK(){var e,t,n,i,a,r,s,o;const{widgetCtx:{org:l}}=Ct(),{setIsOpen:u}=Hr(),{createUnverifiedContact:c}=Nx(),{isSmallScreen:d}=Wi(),f=$e(),{theme:h}=or(),{t:g}=lr(),{observedElementRef:y}=wK();Dg({height:void 0,width:h.screens.welcome.width});const[E,m]=_.useState(((e=f.prefillUserData)==null?void 0:e.name)||""),[v,x]=_.useState(((t=f.prefillUserData)==null?void 0:t.email)||""),T=(f.extraDataCollectionFields||[]).filter(B=>B!=="name"&&B!=="email"&&!!B),[S,A]=_.useState({}),[D,L]=V$(async B=>{B.preventDefault();const O=SK.safeParse({name:E,email:v});O.success&&await c({email:O.data.email,non_verified_name:O.data.name},Object.values(S).filter(Boolean).length?S:void 0)},[E,v,S]);return b.jsx("div",{style:{width:"100vw",maxWidth:"100vw",minHeight:h.screens.welcome.minHeight,height:"100vh",maxHeight:"100vh",overflowY:"auto"},children:b.jsxs("div",{ref:y,className:oe("flex flex-col",d&&"h-full","bg-[radial-gradient(ellipse_at_top_left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse_at_top_right,hsl(var(--opencx-primary)),transparent)]"),children:[b.jsxs("div",{className:oe("flex-1 flex flex-col px-4 py-12 text-start space-y-4 relative z-10","text-primary-foreground"),children:[d&&b.jsx(Qe,{className:"absolute top-6 end-6",children:b.jsx(bt,{size:"selfless",onClick:()=>u(!1),children:b.jsx(td,{className:"size-4"})})}),b.jsx("div",{className:"flex items-center justify-between w-full mb-2",children:(n=f.assets)!=null&&n.organizationLogo?b.jsx("img",{src:(i=f.assets)==null?void 0:i.organizationLogo,alt:"Company Logo",className:"h-8 w-auto object-contain"}):b.jsx("h2",{className:"font-bold text-sm",children:l.name})}),b.jsxs("div",{className:"space-y-2",children:[b.jsx("h1",{className:"text-[1.75rem] font-semibold tracking-tight leading-none",children:((r=(a=f.textContent)==null?void 0:a.welcomeScreen)==null?void 0:r.title)||g("welcome_screen_title")}),b.jsx("p",{className:"text-sm",children:((o=(s=f.textContent)==null?void 0:s.welcomeScreen)==null?void 0:o.description)||g("welcome_screen_description")})]})]}),b.jsxs("div",{className:oe("z-10 m-2 px-2 pt-2 bp-0 space-y-2","bg-[white]","border shadow","rounded-3xl"),children:[b.jsxs("form",{onSubmit:L,className:"space-y-2",children:[b.jsx(vf,{value:E,onChange:B=>m(B.target.value),required:!0,placeholder:g("your_name_placeholder"),name:"name"}),b.jsx(vf,{required:!0,value:v,onChange:B=>x(B.target.value),type:"email",placeholder:g("your_email_placeholder"),name:"email"}),T.map(B=>b.jsx(vf,{value:S[B],onChange:O=>A(Y=>({...Y,[B]:O.target.value})),placeholder:`${B} (${g("optional")})`},B)),b.jsxs(bt,{disabled:D.loading,className:"w-full",size:"lg",children:[D.loading?g("start_chat_button_loading"):g("start_chat_button"),b.jsx(SM,{className:"size-4 rtl:-scale-100"})]})]}),b.jsx(nk,{})]})]})})}function ak(){const{routerState:{screen:e}}=Si();return b.jsx("div",{className:"relative bg-background size-full",children:b.jsx(Et,{mode:"wait",children:(()=>{switch(e){case"welcome":return b.jsx(Qe,{fadeIn:"right",className:"size-full",snapExit:!0,children:b.jsx(AK,{})},e);case"sessions":return b.jsx(Qe,{fadeIn:"right",className:"size-full",snapExit:!0,children:b.jsx(TK,{})},e);case"chat":return b.jsx(Qe,{fadeIn:"right",className:"size-full",snapExit:!0,children:b.jsx(vK,{})},e);default:return ai(e,ak.name),null}})()})})}const CK="4.0.61",kK=`<!DOCTYPE html>
324
- <html>
325
- <head>
326
- <style>
327
- ${HC}
328
- html, body {
329
- height: 100%;
330
- width: 100%;
331
- margin: 0;
332
- padding: 0;
333
- font-size: 16px;
334
- }
335
- </style>
336
- <meta name="viewport" content="width=device-width, initial-scale=1, interactive-widget=resizes-content">
337
- </head>
338
- <body>
339
- </body>
340
- </html>`;function rk(){const{isOpen:e}=Hr(),{contentIframeRef:t}=Ct(),{cssOverrides:n,inline:i}=$e(),{theme:a,cssVars:r,computed:s}=or(),{dir:o}=lr();return b.jsx(Fl.div,{animate:e?"visible":"hidden",initial:"hidden",variants:{hidden:{opacity:0,y:8,transitionEnd:{display:"none"},transition:{duration:.15}},visible:{opacity:1,y:0,display:"block",height:i?"100%":void 0}},children:b.jsxs(Z0,{ref:t,initialContent:kK,allowFullScreen:!0,title:"OpenCX Live Chat",style:{"--opencx-widget-width":s.minWidth,"--opencx-widget-height":s.minHeight,minWidth:s.minWidth,width:"var(--opencx-widget-width)",maxWidth:s.maxWidth,minHeight:s.minHeight,height:"var(--opencx-widget-height)",maxHeight:s.maxHeight,overflow:"hidden",outline:a.widgetContentContainer.outline,outlineColor:a.widgetContentContainer.outlineColor,borderRadius:a.widgetContentContainer.borderRadius,boxShadow:a.widgetContentContainer.boxShadow,transitionProperty:a.widgetContentContainer.transitionProperty,transitionTimingFunction:a.widgetContentContainer.transitionTimingFunction,transitionDuration:a.widgetContentContainer.transitionDuration,boxSizing:"border-box",borderWidth:"0px"},children:[n&&b.jsx("style",{children:n}),b.jsx("div",{style:{...r,zIndex:a.widgetContentContainer.zIndex},"data-version":CK,className:oe("antialiased font-sans size-full overflow-hidden relative text-secondary-foreground isolate"),dir:o,children:b.jsx(RX,{delayDuration:200,disableHoverableContent:!0,children:b.jsx(wX,{children:b.jsx(ak,{})})})})]})})}function OK(){const{theme:e,triggerSide:t}=or(),{dir:n}=Np(),i=(n==="rtl"?t==="left":t==="right")?"end":"start";return b.jsx(FD,{onInteractOutside:a=>a.preventDefault(),forceMount:!0,style:{zIndex:e.widgetContentContainer.zIndex,fontSize:"16px"},side:"top",align:i,"aria-modal":"false","aria-label":"Support chat",sideOffset:e.widgetContentContainer.offset.side,alignOffset:e.widgetContentContainer.offset.align,avoidCollisions:!1,children:b.jsx(rk,{})})}function NK({className:e,style:t}){return b.jsxs("svg",{width:"32",height:"30",viewBox:"0 0 32 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:oe("text-primary-foreground",e),style:t,children:[b.jsx("path",{d:"M0 6.94263C0 3.62892 2.68629 0.942627 6 0.942627H26C29.3137 0.942627 32 3.62892 32 6.94263V17.9426C32 21.2563 29.3137 23.9426 26 23.9426H6C2.68629 23.9426 0 21.2563 0 17.9426V6.94263Z",fill:"currentColor"}),b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.9945 23.8935L26.237 23.8934C26.1982 24.3557 26.1712 25.2778 26.1704 26.2318C26.1688 28.2839 26.1376 28.7041 25.974 28.868C25.583 29.2598 25.2686 29.0967 24.0616 27.8754C23.4162 27.2222 22.1141 25.9522 21.1682 25.0531L19.9945 23.8935Z",fill:"currentColor"})]})}const RK=`<!DOCTYPE html>
341
- <html>
342
- <head>
343
- <style>
344
- ${HC}
345
- html, body {
346
- height: 100%;
347
- width: 100%;
348
- margin: 0;
349
- padding: 0;
350
- font-size: 16px;
351
- }
352
- </style>
353
- </head>
354
- <body>
355
- </body>
356
- </html>`;function DK(){var e,t,n;const{isOpen:i,setIsOpen:a}=Hr(),{cssOverrides:r,assets:s,customComponents:o,accessibility:l}=$e(),{theme:u,cssVars:c}=or(),d=((e=l==null?void 0:l.widgetTriggerButton)==null?void 0:e.label)??"Chat with us";return o!=null&&o.widgetTrigger?o.widgetTrigger({react:mn,isOpen:i,setIsOpen:f=>a(f)}):b.jsxs(Z0,{initialContent:RK,title:"OpenCX Live Chat Trigger",style:{height:`calc(${u.widgetTrigger.size.button}px + ${To.x*2}px)`,width:`calc(${u.widgetTrigger.size.button}px + ${To.y*2}px)`,fontSize:"16px",position:"fixed",zIndex:u.widgetTrigger.zIndex,right:u.widgetTrigger.offset.right,bottom:u.widgetTrigger.offset.bottom,left:u.widgetTrigger.offset.left,boxSizing:"border-box",borderWidth:"0px",borderRadius:"100%"},children:[r&&b.jsx("style",{children:r}),b.jsx("div",{style:{...c,width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:b.jsx(px,{"aria-label":d,title:d,className:oe("font-sans flex items-center justify-center rounded-full"),style:{height:u.widgetTrigger.size.button,width:u.widgetTrigger.size.button},children:b.jsx(va,{children:b.jsx("div",{...Ue("trigger/btn"),className:oe("relative size-full rounded-full","flex items-center justify-center","overflow-hidden","transition-all","bg-primary","text-primary-foreground"),children:b.jsx(Et,{mode:"wait",children:i?b.jsx(Qe,{snapExit:!0,fadeIn:"up",overrides:{initial:{rotate:45},animate:{rotate:0}},children:(t=s==null?void 0:s.widgetTrigger)!=null&&t.closeIcon?b.jsx("img",{src:s.widgetTrigger.closeIcon,alt:"Widget trigger close icon",style:{width:u.widgetTrigger.size.icon,height:u.widgetTrigger.size.icon}}):b.jsx(lM,{style:{width:u.widgetTrigger.size.icon,height:u.widgetTrigger.size.icon}})},"x-icon"):b.jsx(Qe,{snapExit:!0,overrides:{initial:{rotate:45},animate:{rotate:0}},children:(n=s==null?void 0:s.widgetTrigger)!=null&&n.openIcon?b.jsx("img",{src:s.widgetTrigger.openIcon,alt:"Widget trigger open icon",style:{width:u.widgetTrigger.size.icon,height:u.widgetTrigger.size.icon}}):b.jsx(NK,{style:{width:u.widgetTrigger.size.icon,height:u.widgetTrigger.size.icon},className:"mt-0.5 opacity-95"})},"message-icon")})})})})})]})}function MK(){const{triggerSide:e}=or();return b.jsx(HD,{style:{position:"fixed",bottom:0,right:e==="right"?0:void 0,left:e==="left"?0:void 0}})}function LK({widgetRef:e}){const{widgetCtx:t}=Ct(),{contactState:n}=Nx(),{setIsOpen:i,isOpen:a}=Hr(),{toChatScreen:r,routerState:{screen:s}}=Si(),{sendMessage:o}=wn();return mn.useImperativeHandle(e,()=>({newChat:async l=>{var u;if(!((u=n.contact)!=null&&u.token)){console.warn("Cannot start a new chat: contact not yet initialized.");return}console.log({isOpen:a}),a||i(!0),s==="chat"&&t.resetChat(),r(),l!=null&&l.message&&o({content:l.message})}}),[t,n,i,a,s,r,o]),null}function IK(){const{isOpen:e,setIsOpen:t}=Hr();return b.jsxs(UD,{open:e,onOpenChange:t,children:[b.jsx(MK,{}),b.jsx(DK,{}),b.jsx(OK,{})]})}const PK=[{key:"loading",component:NX},{key:"fallback",component:OX},{key:"bot_message",component:Cg},{key:"agent_message",component:Cg}],BK={get:async e=>localStorage.getItem(e),set:async(e,t)=>{localStorage.setItem(e,t)},remove:async e=>{localStorage.removeItem(e)}},sk=mn.forwardRef(function({options:e,components:t=[],loadingComponent:n},i){return b.jsx(eM,{components:[...PK,...t],options:e,storage:BK,loadingComponent:n,children:b.jsxs(nM,{children:[b.jsx(LK,{widgetRef:i}),e.inline?b.jsx(rk,{}):b.jsx(IK,{})]})})});sk.displayName="Widget";var ok={exports:{}},yf={},lk={exports:{}},uk={};/**
357
- * @license React
358
- * scheduler.production.js
359
- *
360
- * Copyright (c) Meta Platforms, Inc. and affiliates.
361
- *
362
- * This source code is licensed under the MIT license found in the
363
- * LICENSE file in the root directory of this source tree.
364
- */(function(e){function t(F,V){var H=F.length;F.push(V);e:for(;0<H;){var te=H-1>>>1,N=F[te];if(0<a(N,V))F[te]=V,F[H]=N,H=te;else break e}}function n(F){return F.length===0?null:F[0]}function i(F){if(F.length===0)return null;var V=F[0],H=F.pop();if(H!==V){F[0]=H;e:for(var te=0,N=F.length,be=N>>>1;te<be;){var nt=2*(te+1)-1,M=F[nt],Be=nt+1,ge=F[Be];if(0>a(M,H))Be<N&&0>a(ge,M)?(F[te]=ge,F[Be]=H,te=Be):(F[te]=M,F[nt]=H,te=nt);else if(Be<N&&0>a(ge,H))F[te]=ge,F[Be]=H,te=Be;else break e}}return V}function a(F,V){var H=F.sortIndex-V.sortIndex;return H!==0?H:F.id-V.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var r=performance;e.unstable_now=function(){return r.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],u=[],c=1,d=null,f=3,h=!1,g=!1,y=!1,E=!1,m=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function T(F){for(var V=n(u);V!==null;){if(V.callback===null)i(u);else if(V.startTime<=F)i(u),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(u)}}function S(F){if(y=!1,T(F),!g)if(n(l)!==null)g=!0,A||(A=!0,U());else{var V=n(u);V!==null&&Q(S,V.startTime-F)}}var A=!1,D=-1,L=5,B=-1;function O(){return E?!0:!(e.unstable_now()-B<L)}function Y(){if(E=!1,A){var F=e.unstable_now();B=F;var V=!0;try{e:{g=!1,y&&(y=!1,v(D),D=-1),h=!0;var H=f;try{t:{for(T(F),d=n(l);d!==null&&!(d.expirationTime>F&&O());){var te=d.callback;if(typeof te=="function"){d.callback=null,f=d.priorityLevel;var N=te(d.expirationTime<=F);if(F=e.unstable_now(),typeof N=="function"){d.callback=N,T(F),V=!0;break t}d===n(l)&&i(l),T(F)}else i(l);d=n(l)}if(d!==null)V=!0;else{var be=n(u);be!==null&&Q(S,be.startTime-F),V=!1}}break e}finally{d=null,f=H,h=!1}V=void 0}}finally{V?U():A=!1}}}var U;if(typeof x=="function")U=function(){x(Y)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,ee=ae.port2;ae.port1.onmessage=Y,U=function(){ee.postMessage(null)}}else U=function(){m(Y,0)};function Q(F,V){D=m(function(){F(e.unstable_now())},V)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(F){switch(f){case 1:case 2:case 3:var V=3;break;default:V=f}var H=f;f=V;try{return F()}finally{f=H}},e.unstable_requestPaint=function(){E=!0},e.unstable_runWithPriority=function(F,V){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var H=f;f=F;try{return V()}finally{f=H}},e.unstable_scheduleCallback=function(F,V,H){var te=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?te+H:te):H=te,F){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=H+N,F={id:c++,callback:V,priorityLevel:F,startTime:H,expirationTime:N,sortIndex:-1},H>te?(F.sortIndex=H,t(u,F),n(l)===null&&F===n(u)&&(y?(v(D),D=-1):y=!0,Q(S,H-te))):(F.sortIndex=N,t(l,F),g||h||(g=!0,A||(A=!0,U()))),F},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(F){var V=f;return function(){var H=f;f=V;try{return F.apply(this,arguments)}finally{f=H}}}})(uk),lk.exports=uk;var jK=lk.exports;/**
365
- * @license React
366
- * react-dom-client.production.js
367
- *
368
- * Copyright (c) Meta Platforms, Inc. and affiliates.
369
- *
370
- * This source code is licensed under the MIT license found in the
371
- * LICENSE file in the root directory of this source tree.
372
- */var It=jK,ck=_,zK=ml;function q(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function dk(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function _u(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function fk(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function hk(e){if(_u(e)!==e)throw Error(q(188))}function UK(e){var t=e.alternate;if(!t){if(t=_u(e),t===null)throw Error(q(188));return t!==e?null:e}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var r=a.alternate;if(r===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===r.child){for(r=a.child;r;){if(r===n)return hk(a),e;if(r===i)return hk(a),t;r=r.sibling}throw Error(q(188))}if(n.return!==i.return)n=a,i=r;else{for(var s=!1,o=a.child;o;){if(o===n){s=!0,n=a,i=r;break}if(o===i){s=!0,i=a,n=r;break}o=o.sibling}if(!s){for(o=r.child;o;){if(o===n){s=!0,n=r,i=a;break}if(o===i){s=!0,i=r,n=a;break}o=o.sibling}if(!s)throw Error(q(189))}}if(n.alternate!==i)throw Error(q(190))}if(n.tag!==3)throw Error(q(188));return n.stateNode.current===n?e:t}function pk(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=pk(e),t!==null)return t;e=e.sibling}return null}var rt=Object.assign,HK=Symbol.for("react.element"),xf=Symbol.for("react.transitional.element"),Eu=Symbol.for("react.portal"),wo=Symbol.for("react.fragment"),mk=Symbol.for("react.strict_mode"),Bg=Symbol.for("react.profiler"),FK=Symbol.for("react.provider"),gk=Symbol.for("react.consumer"),xa=Symbol.for("react.context"),jg=Symbol.for("react.forward_ref"),zg=Symbol.for("react.suspense"),Ug=Symbol.for("react.suspense_list"),Hg=Symbol.for("react.memo"),ur=Symbol.for("react.lazy"),Fg=Symbol.for("react.activity"),VK=Symbol.for("react.memo_cache_sentinel"),bk=Symbol.iterator;function Tu(e){return e===null||typeof e!="object"?null:(e=bk&&e[bk]||e["@@iterator"],typeof e=="function"?e:null)}var YK=Symbol.for("react.client.reference");function Vg(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===YK?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case wo:return"Fragment";case Bg:return"Profiler";case mk:return"StrictMode";case zg:return"Suspense";case Ug:return"SuspenseList";case Fg:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Eu:return"Portal";case xa:return(e.displayName||"Context")+".Provider";case gk:return(e._context.displayName||"Context")+".Consumer";case jg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hg:return t=e.displayName||null,t!==null?t:Vg(e.type)||"Memo";case ur:t=e._payload,e=e._init;try{return Vg(e(t))}catch{}}return null}var wu=Array.isArray,me=ck.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,He=zK.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,as={pending:!1,data:null,method:null,action:null},Yg=[],So=-1;function Ji(e){return{current:e}}function Ht(e){0>So||(e.current=Yg[So],Yg[So]=null,So--)}function ct(e,t){So++,Yg[So]=e.current,e.current=t}var ea=Ji(null),Su=Ji(null),cr=Ji(null),_f=Ji(null);function Ef(e,t){switch(ct(cr,t),ct(Su,e),ct(ea,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?jO(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=jO(t),e=zO(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Ht(ea),ct(ea,e)}function Ao(){Ht(ea),Ht(Su),Ht(cr)}function qg(e){e.memoizedState!==null&&ct(_f,e);var t=ea.current,n=zO(t,e.type);t!==n&&(ct(Su,e),ct(ea,n))}function Tf(e){Su.current===e&&(Ht(ea),Ht(Su)),_f.current===e&&(Ht(_f),vc._currentValue=as)}var Gg=Object.prototype.hasOwnProperty,$g=It.unstable_scheduleCallback,Xg=It.unstable_cancelCallback,qK=It.unstable_shouldYield,GK=It.unstable_requestPaint,ta=It.unstable_now,$K=It.unstable_getCurrentPriorityLevel,vk=It.unstable_ImmediatePriority,yk=It.unstable_UserBlockingPriority,wf=It.unstable_NormalPriority,XK=It.unstable_LowPriority,xk=It.unstable_IdlePriority,KK=It.log,QK=It.unstable_setDisableYieldValue,Au=null,qn=null;function dr(e){if(typeof KK=="function"&&QK(e),qn&&typeof qn.setStrictMode=="function")try{qn.setStrictMode(Au,e)}catch{}}var Gn=Math.clz32?Math.clz32:JK,WK=Math.log,ZK=Math.LN2;function JK(e){return e>>>=0,e===0?32:31-(WK(e)/ZK|0)|0}var Sf=256,Af=4194304;function rs(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Cf(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var a=0,r=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var o=i&134217727;return o!==0?(i=o&~r,i!==0?a=rs(i):(s&=o,s!==0?a=rs(s):n||(n=o&~e,n!==0&&(a=rs(n))))):(o=i&~r,o!==0?a=rs(o):s!==0?a=rs(s):n||(n=i&~e,n!==0&&(a=rs(n)))),a===0?0:t!==0&&t!==a&&!(t&r)&&(r=a&-a,n=t&-t,r>=n||r===32&&(n&4194048)!==0)?t:a}function Cu(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function eQ(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _k(){var e=Sf;return Sf<<=1,!(Sf&4194048)&&(Sf=256),e}function Ek(){var e=Af;return Af<<=1,!(Af&62914560)&&(Af=4194304),e}function Kg(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ku(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function tQ(e,t,n,i,a,r){var s=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(n=s&~n;0<n;){var c=31-Gn(n),d=1<<c;o[c]=0,l[c]=-1;var f=u[c];if(f!==null)for(u[c]=null,c=0;c<f.length;c++){var h=f[c];h!==null&&(h.lane&=-536870913)}n&=~d}i!==0&&Tk(e,i,0),r!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=r&~(s&~t))}function Tk(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Gn(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&4194090}function wk(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-Gn(n),a=1<<i;a&t|e[i]&t&&(e[i]|=t),n&=~a}}function Qg(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Wg(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Sk(){var e=He.p;return e!==0?e:(e=window.event,e===void 0?32:aN(e.type))}function nQ(e,t){var n=He.p;try{return He.p=e,t()}finally{He.p=n}}var fr=Math.random().toString(36).slice(2),cn="__reactFiber$"+fr,kn="__reactProps$"+fr,Co="__reactContainer$"+fr,Zg="__reactEvents$"+fr,iQ="__reactListeners$"+fr,aQ="__reactHandles$"+fr,Ak="__reactResources$"+fr,Ou="__reactMarker$"+fr;function Jg(e){delete e[cn],delete e[kn],delete e[Zg],delete e[iQ],delete e[aQ]}function ko(e){var t=e[cn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Co]||n[cn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=VO(e);e!==null;){if(n=e[cn])return n;e=VO(e)}return t}e=n,n=e.parentNode}return null}function Oo(e){if(e=e[cn]||e[Co]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Nu(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(q(33))}function No(e){var t=e[Ak];return t||(t=e[Ak]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ft(e){e[Ou]=!0}var Ck=new Set,kk={};function ss(e,t){Ro(e,t),Ro(e+"Capture",t)}function Ro(e,t){for(kk[e]=t,e=0;e<t.length;e++)Ck.add(t[e])}var rQ=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ok={},Nk={};function sQ(e){return Gg.call(Nk,e)?!0:Gg.call(Ok,e)?!1:rQ.test(e)?Nk[e]=!0:(Ok[e]=!0,!1)}function kf(e,t,n){if(sQ(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Of(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function _a(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}var eb,Rk;function Do(e){if(eb===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);eb=t&&t[1]||"",Rk=-1<n.stack.indexOf(`
373
- at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
374
- `+eb+e+Rk}var tb=!1;function nb(e,t){if(!e||tb)return"";tb=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(h){var f=h}Reflect.construct(e,[],d)}else{try{d.call()}catch(h){f=h}e.call(d.prototype)}}else{try{throw Error()}catch(h){f=h}(d=e())&&typeof d.catch=="function"&&d.catch(function(){})}}catch(h){if(h&&f&&typeof h.stack=="string")return[h.stack,f.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=i.DetermineComponentFrameRoot(),s=r[0],o=r[1];if(s&&o){var l=s.split(`
375
- `),u=o.split(`
376
- `);for(a=i=0;i<l.length&&!l[i].includes("DetermineComponentFrameRoot");)i++;for(;a<u.length&&!u[a].includes("DetermineComponentFrameRoot");)a++;if(i===l.length||a===u.length)for(i=l.length-1,a=u.length-1;1<=i&&0<=a&&l[i]!==u[a];)a--;for(;1<=i&&0<=a;i--,a--)if(l[i]!==u[a]){if(i!==1||a!==1)do if(i--,a--,0>a||l[i]!==u[a]){var c=`
377
- `+l[i].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=i&&0<=a);break}}}finally{tb=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Do(n):""}function oQ(e){switch(e.tag){case 26:case 27:case 5:return Do(e.type);case 16:return Do("Lazy");case 13:return Do("Suspense");case 19:return Do("SuspenseList");case 0:case 15:return nb(e.type,!1);case 11:return nb(e.type.render,!1);case 1:return nb(e.type,!0);case 31:return Do("Activity");default:return""}}function Dk(e){try{var t="";do t+=oQ(e),e=e.return;while(e);return t}catch(n){return`
378
- Error generating stack: `+n.message+`
379
- `+n.stack}}function fi(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Mk(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lQ(e){var t=Mk(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(s){i=""+s,r.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(s){i=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Nf(e){e._valueTracker||(e._valueTracker=lQ(e))}function Lk(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=Mk(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Rf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var uQ=/[\n"\\]/g;function hi(e){return e.replace(uQ,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ib(e,t,n,i,a,r,s,o){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+fi(t)):e.value!==""+fi(t)&&(e.value=""+fi(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?ab(e,s,fi(t)):n!=null?ab(e,s,fi(n)):i!=null&&e.removeAttribute("value"),a==null&&r!=null&&(e.defaultChecked=!!r),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+fi(o):e.removeAttribute("name")}function Ik(e,t,n,i,a,r,s,o){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||t!=null))return;n=n!=null?""+fi(n):"",t=t!=null?""+fi(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}i=i??a,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=o?e.checked:!!i,e.defaultChecked=!!i,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s)}function ab(e,t,n){t==="number"&&Rf(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Mo(e,t,n,i){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&i&&(e[n].defaultSelected=!0)}else{for(n=""+fi(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,i&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function Pk(e,t,n){if(t!=null&&(t=""+fi(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+fi(n):""}function Bk(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(q(92));if(wu(i)){if(1<i.length)throw Error(q(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=fi(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i)}function Lo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var cQ=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function jk(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||cQ.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function zk(e,t,n){if(t!=null&&typeof t!="object")throw Error(q(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var a in t)i=t[a],t.hasOwnProperty(a)&&n[a]!==i&&jk(e,a,i)}else for(var r in t)t.hasOwnProperty(r)&&jk(e,r,t[r])}function rb(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var dQ=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),fQ=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Df(e){return fQ.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var sb=null;function ob(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Io=null,Po=null;function Uk(e){var t=Oo(e);if(t&&(e=t.stateNode)){var n=e[kn]||null;e:switch(e=t.stateNode,t.type){case"input":if(ib(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+hi(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=i[kn]||null;if(!a)throw Error(q(90));ib(i,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&Lk(i)}break e;case"textarea":Pk(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Mo(e,!!n.multiple,t,!1)}}}var lb=!1;function Hk(e,t,n){if(lb)return e(t,n);lb=!0;try{var i=e(t);return i}finally{if(lb=!1,(Io!==null||Po!==null)&&(bh(),Io&&(t=Io,e=Po,Po=Io=null,Uk(t),e)))for(t=0;t<e.length;t++)Uk(e[t])}}function Ru(e,t){var n=e.stateNode;if(n===null)return null;var i=n[kn]||null;if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(q(231,t,typeof n));return n}var Ea=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ub=!1;if(Ea)try{var Du={};Object.defineProperty(Du,"passive",{get:function(){ub=!0}}),window.addEventListener("test",Du,Du),window.removeEventListener("test",Du,Du)}catch{ub=!1}var hr=null,cb=null,Mf=null;function Fk(){if(Mf)return Mf;var e,t=cb,n=t.length,i,a="value"in hr?hr.value:hr.textContent,r=a.length;for(e=0;e<n&&t[e]===a[e];e++);var s=n-e;for(i=1;i<=s&&t[n-i]===a[r-i];i++);return Mf=a.slice(e,1<i?1-i:void 0)}function Lf(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function If(){return!0}function Vk(){return!1}function On(e){function t(n,i,a,r,s){this._reactName=n,this._targetInst=a,this.type=i,this.nativeEvent=r,this.target=s,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(r):r[o]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?If:Vk,this.isPropagationStopped=Vk,this}return rt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=If)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=If)},persist:function(){},isPersistent:If}),t}var os={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pf=On(os),Mu=rt({},os,{view:0,detail:0}),hQ=On(Mu),db,fb,Lu,Bf=rt({},Mu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pb,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Lu&&(Lu&&e.type==="mousemove"?(db=e.screenX-Lu.screenX,fb=e.screenY-Lu.screenY):fb=db=0,Lu=e),db)},movementY:function(e){return"movementY"in e?e.movementY:fb}}),Yk=On(Bf),pQ=rt({},Bf,{dataTransfer:0}),mQ=On(pQ),gQ=rt({},Mu,{relatedTarget:0}),hb=On(gQ),bQ=rt({},os,{animationName:0,elapsedTime:0,pseudoElement:0}),vQ=On(bQ),yQ=rt({},os,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xQ=On(yQ),_Q=rt({},os,{data:0}),qk=On(_Q),EQ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},TQ={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},wQ={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function SQ(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wQ[e])?!!t[e]:!1}function pb(){return SQ}var AQ=rt({},Mu,{key:function(e){if(e.key){var t=EQ[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Lf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?TQ[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pb,charCode:function(e){return e.type==="keypress"?Lf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Lf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),CQ=On(AQ),kQ=rt({},Bf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gk=On(kQ),OQ=rt({},Mu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pb}),NQ=On(OQ),RQ=rt({},os,{propertyName:0,elapsedTime:0,pseudoElement:0}),DQ=On(RQ),MQ=rt({},Bf,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),LQ=On(MQ),IQ=rt({},os,{newState:0,oldState:0}),PQ=On(IQ),BQ=[9,13,27,32],mb=Ea&&"CompositionEvent"in window,Iu=null;Ea&&"documentMode"in document&&(Iu=document.documentMode);var jQ=Ea&&"TextEvent"in window&&!Iu,$k=Ea&&(!mb||Iu&&8<Iu&&11>=Iu),Xk=" ",Kk=!1;function Qk(e,t){switch(e){case"keyup":return BQ.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wk(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bo=!1;function zQ(e,t){switch(e){case"compositionend":return Wk(t);case"keypress":return t.which!==32?null:(Kk=!0,Xk);case"textInput":return e=t.data,e===Xk&&Kk?null:e;default:return null}}function UQ(e,t){if(Bo)return e==="compositionend"||!mb&&Qk(e,t)?(e=Fk(),Mf=cb=hr=null,Bo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return $k&&t.locale!=="ko"?null:t.data;default:return null}}var HQ={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Zk(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!HQ[e.type]:t==="textarea"}function Jk(e,t,n,i){Io?Po?Po.push(i):Po=[i]:Io=i,t=Th(t,"onChange"),0<t.length&&(n=new Pf("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Pu=null,Bu=null;function FQ(e){MO(e,0)}function jf(e){var t=Nu(e);if(Lk(t))return e}function e3(e,t){if(e==="change")return t}var t3=!1;if(Ea){var gb;if(Ea){var bb="oninput"in document;if(!bb){var n3=document.createElement("div");n3.setAttribute("oninput","return;"),bb=typeof n3.oninput=="function"}gb=bb}else gb=!1;t3=gb&&(!document.documentMode||9<document.documentMode)}function i3(){Pu&&(Pu.detachEvent("onpropertychange",a3),Bu=Pu=null)}function a3(e){if(e.propertyName==="value"&&jf(Bu)){var t=[];Jk(t,Bu,e,ob(e)),Hk(FQ,t)}}function VQ(e,t,n){e==="focusin"?(i3(),Pu=t,Bu=n,Pu.attachEvent("onpropertychange",a3)):e==="focusout"&&i3()}function YQ(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return jf(Bu)}function qQ(e,t){if(e==="click")return jf(t)}function GQ(e,t){if(e==="input"||e==="change")return jf(t)}function $Q(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $n=typeof Object.is=="function"?Object.is:$Q;function ju(e,t){if($n(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var a=n[i];if(!Gg.call(t,a)||!$n(e[a],t[a]))return!1}return!0}function r3(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function s3(e,t){var n=r3(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=r3(n)}}function o3(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?o3(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function l3(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Rf(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Rf(e.document)}return t}function vb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var XQ=Ea&&"documentMode"in document&&11>=document.documentMode,jo=null,yb=null,zu=null,xb=!1;function u3(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xb||jo==null||jo!==Rf(i)||(i=jo,"selectionStart"in i&&vb(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),zu&&ju(zu,i)||(zu=i,i=Th(yb,"onSelect"),0<i.length&&(t=new Pf("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=jo)))}function ls(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var zo={animationend:ls("Animation","AnimationEnd"),animationiteration:ls("Animation","AnimationIteration"),animationstart:ls("Animation","AnimationStart"),transitionrun:ls("Transition","TransitionRun"),transitionstart:ls("Transition","TransitionStart"),transitioncancel:ls("Transition","TransitionCancel"),transitionend:ls("Transition","TransitionEnd")},_b={},c3={};Ea&&(c3=document.createElement("div").style,"AnimationEvent"in window||(delete zo.animationend.animation,delete zo.animationiteration.animation,delete zo.animationstart.animation),"TransitionEvent"in window||delete zo.transitionend.transition);function us(e){if(_b[e])return _b[e];if(!zo[e])return e;var t=zo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in c3)return _b[e]=t[n];return e}var d3=us("animationend"),f3=us("animationiteration"),h3=us("animationstart"),KQ=us("transitionrun"),QQ=us("transitionstart"),WQ=us("transitioncancel"),p3=us("transitionend"),m3=new Map,Eb="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Eb.push("scrollEnd");function Ri(e,t){m3.set(e,t),ss(t,[e])}var g3=new WeakMap;function pi(e,t){if(typeof e=="object"&&e!==null){var n=g3.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Dk(t)},g3.set(e,t),t)}return{value:e,source:t,stack:Dk(t)}}var mi=[],Uo=0,Tb=0;function zf(){for(var e=Uo,t=Tb=Uo=0;t<e;){var n=mi[t];mi[t++]=null;var i=mi[t];mi[t++]=null;var a=mi[t];mi[t++]=null;var r=mi[t];if(mi[t++]=null,i!==null&&a!==null){var s=i.pending;s===null?a.next=a:(a.next=s.next,s.next=a),i.pending=a}r!==0&&b3(n,a,r)}}function Uf(e,t,n,i){mi[Uo++]=e,mi[Uo++]=t,mi[Uo++]=n,mi[Uo++]=i,Tb|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function wb(e,t,n,i){return Uf(e,t,n,i),Hf(e)}function Ho(e,t){return Uf(e,null,null,t),Hf(e)}function b3(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var a=!1,r=e.return;r!==null;)r.childLanes|=n,i=r.alternate,i!==null&&(i.childLanes|=n),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(a=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,a&&t!==null&&(a=31-Gn(n),e=r.hiddenUpdates,i=e[a],i===null?e[a]=[t]:i.push(t),t.lane=n|536870912),r):null}function Hf(e){if(50<cc)throw cc=0,Nv=null,Error(q(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Fo={};function ZQ(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xn(e,t,n,i){return new ZQ(e,t,n,i)}function Sb(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ta(e,t){var n=e.alternate;return n===null?(n=Xn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function v3(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ff(e,t,n,i,a,r){var s=0;if(i=e,typeof e=="function")Sb(e)&&(s=1);else if(typeof e=="string")s=eZ(e,n,ea.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Fg:return e=Xn(31,n,t,a),e.elementType=Fg,e.lanes=r,e;case wo:return cs(n.children,a,r,t);case mk:s=8,a|=24;break;case Bg:return e=Xn(12,n,t,a|2),e.elementType=Bg,e.lanes=r,e;case zg:return e=Xn(13,n,t,a),e.elementType=zg,e.lanes=r,e;case Ug:return e=Xn(19,n,t,a),e.elementType=Ug,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case FK:case xa:s=10;break e;case gk:s=9;break e;case jg:s=11;break e;case Hg:s=14;break e;case ur:s=16,i=null;break e}s=29,n=Error(q(130,e===null?"null":typeof e,"")),i=null}return t=Xn(s,n,t,a),t.elementType=e,t.type=i,t.lanes=r,t}function cs(e,t,n,i){return e=Xn(7,e,i,t),e.lanes=n,e}function Ab(e,t,n){return e=Xn(6,e,null,t),e.lanes=n,e}function Cb(e,t,n){return t=Xn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Vo=[],Yo=0,Vf=null,Yf=0,gi=[],bi=0,ds=null,wa=1,Sa="";function fs(e,t){Vo[Yo++]=Yf,Vo[Yo++]=Vf,Vf=e,Yf=t}function y3(e,t,n){gi[bi++]=wa,gi[bi++]=Sa,gi[bi++]=ds,ds=e;var i=wa;e=Sa;var a=32-Gn(i)-1;i&=~(1<<a),n+=1;var r=32-Gn(t)+a;if(30<r){var s=a-a%5;r=(i&(1<<s)-1).toString(32),i>>=s,a-=s,wa=1<<32-Gn(t)+a|n<<a|i,Sa=r+e}else wa=1<<r|n<<a|i,Sa=e}function kb(e){e.return!==null&&(fs(e,1),y3(e,1,0))}function Ob(e){for(;e===Vf;)Vf=Vo[--Yo],Vo[Yo]=null,Yf=Vo[--Yo],Vo[Yo]=null;for(;e===ds;)ds=gi[--bi],gi[bi]=null,Sa=gi[--bi],gi[bi]=null,wa=gi[--bi],gi[bi]=null}var yn=null,vt=null,Fe=!1,hs=null,na=!1,Nb=Error(q(519));function ps(e){var t=Error(q(418,""));throw Fu(pi(t,e)),Nb}function x3(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[cn]=e,t[kn]=i,n){case"dialog":De("cancel",t),De("close",t);break;case"iframe":case"object":case"embed":De("load",t);break;case"video":case"audio":for(n=0;n<fc.length;n++)De(fc[n],t);break;case"source":De("error",t);break;case"img":case"image":case"link":De("error",t),De("load",t);break;case"details":De("toggle",t);break;case"input":De("invalid",t),Ik(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0),Nf(t);break;case"select":De("invalid",t);break;case"textarea":De("invalid",t),Bk(t,i.value,i.defaultValue,i.children),Nf(t)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||BO(t.textContent,n)?(i.popover!=null&&(De("beforetoggle",t),De("toggle",t)),i.onScroll!=null&&De("scroll",t),i.onScrollEnd!=null&&De("scrollend",t),i.onClick!=null&&(t.onclick=wh),t=!0):t=!1,t||ps(e)}function _3(e){for(yn=e.return;yn;)switch(yn.tag){case 5:case 13:na=!1;return;case 27:case 3:na=!0;return;default:yn=yn.return}}function Uu(e){if(e!==yn)return!1;if(!Fe)return _3(e),Fe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Gv(e.type,e.memoizedProps)),n=!n),n&&vt&&ps(e),_3(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(q(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){vt=Mi(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}vt=null}}else t===27?(t=vt,Or(e.type)?(e=Qv,Qv=null,vt=e):vt=t):vt=yn?Mi(e.stateNode.nextSibling):null;return!0}function Hu(){vt=yn=null,Fe=!1}function E3(){var e=hs;return e!==null&&(Dn===null?Dn=e:Dn.push.apply(Dn,e),hs=null),e}function Fu(e){hs===null?hs=[e]:hs.push(e)}var Rb=Ji(null),ms=null,Aa=null;function pr(e,t,n){ct(Rb,t._currentValue),t._currentValue=n}function Ca(e){e._currentValue=Rb.current,Ht(Rb)}function Db(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Mb(e,t,n,i){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var r=a.dependencies;if(r!==null){var s=a.child;r=r.firstContext;e:for(;r!==null;){var o=r;r=a;for(var l=0;l<t.length;l++)if(o.context===t[l]){r.lanes|=n,o=r.alternate,o!==null&&(o.lanes|=n),Db(r.return,n,e),i||(s=null);break e}r=o.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(q(341));s.lanes|=n,r=s.alternate,r!==null&&(r.lanes|=n),Db(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Vu(e,t,n,i){e=null;for(var a=t,r=!1;a!==null;){if(!r){if(a.flags&524288)r=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(q(387));if(s=s.memoizedProps,s!==null){var o=a.type;$n(a.pendingProps.value,s.value)||(e!==null?e.push(o):e=[o])}}else if(a===_f.current){if(s=a.alternate,s===null)throw Error(q(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(vc):e=[vc])}a=a.return}e!==null&&Mb(t,e,n,i),t.flags|=262144}function qf(e){for(e=e.firstContext;e!==null;){if(!$n(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function gs(e){ms=e,Aa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function dn(e){return T3(ms,e)}function Gf(e,t){return ms===null&&gs(e),T3(e,t)}function T3(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Aa===null){if(e===null)throw Error(q(308));Aa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Aa=Aa.next=t;return n}var JQ=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},eW=It.unstable_scheduleCallback,tW=It.unstable_NormalPriority,Pt={$$typeof:xa,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Lb(){return{controller:new JQ,data:new Map,refCount:0}}function Yu(e){e.refCount--,e.refCount===0&&eW(tW,function(){e.controller.abort()})}var qu=null,Ib=0,qo=0,Go=null;function nW(e,t){if(qu===null){var n=qu=[];Ib=0,qo=Bv(),Go={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Ib++,t.then(w3,w3),t}function w3(){if(--Ib===0&&qu!==null){Go!==null&&(Go.status="fulfilled");var e=qu;qu=null,qo=0,Go=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function iW(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(i.status="rejected",i.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),i}var S3=me.S;me.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&nW(e,t),S3!==null&&S3(e,t)};var bs=Ji(null);function Pb(){var e=bs.current;return e!==null?e:tt.pooledCache}function $f(e,t){t===null?ct(bs,bs.current):ct(bs,t.pool)}function A3(){var e=Pb();return e===null?null:{parent:Pt._currentValue,pool:e}}var Gu=Error(q(460)),C3=Error(q(474)),Xf=Error(q(542)),Bb={then:function(){}};function k3(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Kf(){}function O3(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Kf,Kf),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,R3(e),e;default:if(typeof t.status=="string")t.then(Kf,Kf);else{if(e=tt,e!==null&&100<e.shellSuspendCounter)throw Error(q(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=i}},function(i){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,R3(e),e}throw $u=t,Gu}}var $u=null;function N3(){if($u===null)throw Error(q(459));var e=$u;return $u=null,e}function R3(e){if(e===Gu||e===Xf)throw Error(q(483))}var mr=!1;function jb(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function zb(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function gr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function br(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,Ve&2){var a=i.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),i.pending=t,t=Hf(e),b3(e,null,n),t}return Uf(e,i,t,n),Hf(e)}function Xu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,wk(e,n)}}function Ub(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var a=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?a=r=s:r=r.next=s,n=n.next}while(n!==null);r===null?a=r=t:r=r.next=t}else a=r=t;n={baseState:i.baseState,firstBaseUpdate:a,lastBaseUpdate:r,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Hb=!1;function Ku(){if(Hb){var e=Go;if(e!==null)throw e}}function Qu(e,t,n,i){Hb=!1;var a=e.updateQueue;mr=!1;var r=a.firstBaseUpdate,s=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var l=o,u=l.next;l.next=null,s===null?r=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,o=c.lastBaseUpdate,o!==s&&(o===null?c.firstBaseUpdate=u:o.next=u,c.lastBaseUpdate=l))}if(r!==null){var d=a.baseState;s=0,c=u=l=null,o=r;do{var f=o.lane&-536870913,h=f!==o.lane;if(h?(Ie&f)===f:(i&f)===f){f!==0&&f===qo&&(Hb=!0),c!==null&&(c=c.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var g=e,y=o;f=t;var E=n;switch(y.tag){case 1:if(g=y.payload,typeof g=="function"){d=g.call(E,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,f=typeof g=="function"?g.call(E,d,f):g,f==null)break e;d=rt({},d,f);break e;case 2:mr=!0}}f=o.callback,f!==null&&(e.flags|=64,h&&(e.flags|=8192),h=a.callbacks,h===null?a.callbacks=[f]:h.push(f))}else h={lane:f,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,s|=f;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;h=o,o=h.next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}while(!0);c===null&&(l=d),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=c,r===null&&(a.shared.lanes=0),Sr|=s,e.lanes=s,e.memoizedState=d}}function D3(e,t){if(typeof e!="function")throw Error(q(191,e));e.call(t)}function M3(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)D3(n[e],t)}var $o=Ji(null),Qf=Ji(0);function L3(e,t){e=La,ct(Qf,e),ct($o,t),La=e|t.baseLanes}function Fb(){ct(Qf,La),ct($o,$o.current)}function Vb(){La=Qf.current,Ht($o),Ht(Qf)}var vr=0,Ce=null,qe=null,Rt=null,Wf=!1,Xo=!1,vs=!1,Zf=0,Wu=0,Ko=null,aW=0;function St(){throw Error(q(321))}function Yb(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!$n(e[n],t[n]))return!1;return!0}function qb(e,t,n,i,a,r){return vr=r,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,me.H=e===null||e.memoizedState===null?b6:v6,vs=!1,r=n(i,a),vs=!1,Xo&&(r=P3(t,n,i,a)),I3(e),r}function I3(e){me.H=ah;var t=qe!==null&&qe.next!==null;if(vr=0,Rt=qe=Ce=null,Wf=!1,Wu=0,Ko=null,t)throw Error(q(300));e===null||Vt||(e=e.dependencies,e!==null&&qf(e)&&(Vt=!0))}function P3(e,t,n,i){Ce=e;var a=0;do{if(Xo&&(Ko=null),Wu=0,Xo=!1,25<=a)throw Error(q(301));if(a+=1,Rt=qe=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}me.H=dW,r=t(n,i)}while(Xo);return r}function rW(){var e=me.H,t=e.useState()[0];return t=typeof t.then=="function"?Zu(t):t,e=e.useState()[0],(qe!==null?qe.memoizedState:null)!==e&&(Ce.flags|=1024),t}function Gb(){var e=Zf!==0;return Zf=0,e}function $b(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Xb(e){if(Wf){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Wf=!1}vr=0,Rt=qe=Ce=null,Xo=!1,Wu=Zf=0,Ko=null}function Nn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Rt===null?Ce.memoizedState=Rt=e:Rt=Rt.next=e,Rt}function Dt(){if(qe===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var t=Rt===null?Ce.memoizedState:Rt.next;if(t!==null)Rt=t,qe=e;else{if(e===null)throw Ce.alternate===null?Error(q(467)):Error(q(310));qe=e,e={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},Rt===null?Ce.memoizedState=Rt=e:Rt=Rt.next=e}return Rt}function Kb(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Zu(e){var t=Wu;return Wu+=1,Ko===null&&(Ko=[]),e=O3(Ko,e,t),t=Ce,(Rt===null?t.memoizedState:Rt.next)===null&&(t=t.alternate,me.H=t===null||t.memoizedState===null?b6:v6),e}function Jf(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Zu(e);if(e.$$typeof===xa)return dn(e)}throw Error(q(438,String(e)))}function Qb(e){var t=null,n=Ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=Ce.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Kb(),Ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=VK;return t.index++,n}function ka(e,t){return typeof t=="function"?t(e):t}function eh(e){var t=Dt();return Wb(t,qe,e)}function Wb(e,t,n){var i=e.queue;if(i===null)throw Error(q(311));i.lastRenderedReducer=n;var a=e.baseQueue,r=i.pending;if(r!==null){if(a!==null){var s=a.next;a.next=r.next,r.next=s}t.baseQueue=a=r,i.pending=null}if(r=e.baseState,a===null)e.memoizedState=r;else{t=a.next;var o=s=null,l=null,u=t,c=!1;do{var d=u.lane&-536870913;if(d!==u.lane?(Ie&d)===d:(vr&d)===d){var f=u.revertLane;if(f===0)l!==null&&(l=l.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),d===qo&&(c=!0);else if((vr&f)===f){u=u.next,f===qo&&(c=!0);continue}else d={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(o=l=d,s=r):l=l.next=d,Ce.lanes|=f,Sr|=f;d=u.action,vs&&n(r,d),r=u.hasEagerState?u.eagerState:n(r,d)}else f={lane:d,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(o=l=f,s=r):l=l.next=f,Ce.lanes|=d,Sr|=d;u=u.next}while(u!==null&&u!==t);if(l===null?s=r:l.next=o,!$n(r,e.memoizedState)&&(Vt=!0,c&&(n=Go,n!==null)))throw n;e.memoizedState=r,e.baseState=s,e.baseQueue=l,i.lastRenderedState=r}return a===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Zb(e){var t=Dt(),n=t.queue;if(n===null)throw Error(q(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,r=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do r=e(r,s.action),s=s.next;while(s!==a);$n(r,t.memoizedState)||(Vt=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),n.lastRenderedState=r}return[r,i]}function B3(e,t,n){var i=Ce,a=Dt(),r=Fe;if(r){if(n===void 0)throw Error(q(407));n=n()}else n=t();var s=!$n((qe||a).memoizedState,n);s&&(a.memoizedState=n,Vt=!0),a=a.queue;var o=U3.bind(null,i,a,e);if(Ju(2048,8,o,[e]),a.getSnapshot!==t||s||Rt!==null&&Rt.memoizedState.tag&1){if(i.flags|=2048,Qo(9,th(),z3.bind(null,i,a,n,t),null),tt===null)throw Error(q(349));r||vr&124||j3(i,t,n)}return n}function j3(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t=Kb(),Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function z3(e,t,n,i){t.value=n,t.getSnapshot=i,H3(t)&&F3(e)}function U3(e,t,n){return n(function(){H3(t)&&F3(e)})}function H3(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$n(e,n)}catch{return!0}}function F3(e){var t=Ho(e,2);t!==null&&Jn(t,e,2)}function Jb(e){var t=Nn();if(typeof e=="function"){var n=e;if(e=n(),vs){dr(!0);try{n()}finally{dr(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ka,lastRenderedState:e},t}function V3(e,t,n,i){return e.baseState=n,Wb(e,qe,typeof i=="function"?i:ka)}function sW(e,t,n,i,a){if(ih(e))throw Error(q(485));if(e=t.action,e!==null){var r={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){r.listeners.push(s)}};me.T!==null?n(!0):r.isTransition=!1,i(r),n=t.pending,n===null?(r.next=t.pending=r,Y3(t,r)):(r.next=n.next,t.pending=n.next=r)}}function Y3(e,t){var n=t.action,i=t.payload,a=e.state;if(t.isTransition){var r=me.T,s={};me.T=s;try{var o=n(a,i),l=me.S;l!==null&&l(s,o),q3(e,t,o)}catch(u){ev(e,t,u)}finally{me.T=r}}else try{r=n(a,i),q3(e,t,r)}catch(u){ev(e,t,u)}}function q3(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){G3(e,t,i)},function(i){return ev(e,t,i)}):G3(e,t,n)}function G3(e,t,n){t.status="fulfilled",t.value=n,$3(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Y3(e,n)))}function ev(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,$3(t),t=t.next;while(t!==i)}e.action=null}function $3(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function X3(e,t){return t}function K3(e,t){if(Fe){var n=tt.formState;if(n!==null){e:{var i=Ce;if(Fe){if(vt){t:{for(var a=vt,r=na;a.nodeType!==8;){if(!r){a=null;break t}if(a=Mi(a.nextSibling),a===null){a=null;break t}}r=a.data,a=r==="F!"||r==="F"?a:null}if(a){vt=Mi(a.nextSibling),i=a.data==="F!";break e}}ps(i)}i=!1}i&&(t=n[0])}}return n=Nn(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:X3,lastRenderedState:t},n.queue=i,n=p6.bind(null,Ce,i),i.dispatch=n,i=Jb(!1),r=rv.bind(null,Ce,!1,i.queue),i=Nn(),a={state:t,dispatch:null,action:e,pending:null},i.queue=a,n=sW.bind(null,Ce,a,r,n),a.dispatch=n,i.memoizedState=e,[t,n,!1]}function Q3(e){var t=Dt();return W3(t,qe,e)}function W3(e,t,n){if(t=Wb(e,t,X3)[0],e=eh(ka)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Zu(t)}catch(s){throw s===Gu?Xf:s}else i=t;t=Dt();var a=t.queue,r=a.dispatch;return n!==t.memoizedState&&(Ce.flags|=2048,Qo(9,th(),oW.bind(null,a,n),null)),[i,r,e]}function oW(e,t){e.action=t}function Z3(e){var t=Dt(),n=qe;if(n!==null)return W3(t,n,e);Dt(),t=t.memoizedState,n=Dt();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function Qo(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=Kb(),Ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function th(){return{destroy:void 0,resource:void 0}}function J3(){return Dt().memoizedState}function nh(e,t,n,i){var a=Nn();i=i===void 0?null:i,Ce.flags|=e,a.memoizedState=Qo(1|t,th(),n,i)}function Ju(e,t,n,i){var a=Dt();i=i===void 0?null:i;var r=a.memoizedState.inst;qe!==null&&i!==null&&Yb(i,qe.memoizedState.deps)?a.memoizedState=Qo(t,r,n,i):(Ce.flags|=e,a.memoizedState=Qo(1|t,r,n,i))}function e6(e,t){nh(8390656,8,e,t)}function t6(e,t){Ju(2048,8,e,t)}function n6(e,t){return Ju(4,2,e,t)}function i6(e,t){return Ju(4,4,e,t)}function a6(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function r6(e,t,n){n=n!=null?n.concat([e]):null,Ju(4,4,a6.bind(null,t,e),n)}function tv(){}function s6(e,t){var n=Dt();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&Yb(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function o6(e,t){var n=Dt();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&Yb(t,i[1]))return i[0];if(i=e(),vs){dr(!0);try{e()}finally{dr(!1)}}return n.memoizedState=[i,t],i}function nv(e,t,n){return n===void 0||vr&1073741824?e.memoizedState=t:(e.memoizedState=n,e=cO(),Ce.lanes|=e,Sr|=e,n)}function l6(e,t,n,i){return $n(n,t)?n:$o.current!==null?(e=nv(e,n,i),$n(e,t)||(Vt=!0),e):vr&42?(e=cO(),Ce.lanes|=e,Sr|=e,t):(Vt=!0,e.memoizedState=n)}function u6(e,t,n,i,a){var r=He.p;He.p=r!==0&&8>r?r:8;var s=me.T,o={};me.T=o,rv(e,!1,t,n);try{var l=a(),u=me.S;if(u!==null&&u(o,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=iW(l,i);ec(e,t,c,Zn(e))}else ec(e,t,i,Zn(e))}catch(d){ec(e,t,{then:function(){},status:"rejected",reason:d},Zn())}finally{He.p=r,me.T=s}}function lW(){}function iv(e,t,n,i){if(e.tag!==5)throw Error(q(476));var a=c6(e).queue;u6(e,a,t,as,n===null?lW:function(){return d6(e),n(i)})}function c6(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:as,baseState:as,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ka,lastRenderedState:as},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ka,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function d6(e){var t=c6(e).next.queue;ec(e,t,{},Zn())}function av(){return dn(vc)}function f6(){return Dt().memoizedState}function h6(){return Dt().memoizedState}function uW(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Zn();e=gr(n);var i=br(t,e,n);i!==null&&(Jn(i,t,n),Xu(i,t,n)),t={cache:Lb()},e.payload=t;return}t=t.return}}function cW(e,t,n){var i=Zn();n={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},ih(e)?m6(t,n):(n=wb(e,t,n,i),n!==null&&(Jn(n,e,i),g6(n,t,i)))}function p6(e,t,n){var i=Zn();ec(e,t,n,i)}function ec(e,t,n,i){var a={lane:i,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(ih(e))m6(t,a);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var s=t.lastRenderedState,o=r(s,n);if(a.hasEagerState=!0,a.eagerState=o,$n(o,s))return Uf(e,t,a,0),tt===null&&zf(),!1}catch{}finally{}if(n=wb(e,t,a,i),n!==null)return Jn(n,e,i),g6(n,t,i),!0}return!1}function rv(e,t,n,i){if(i={lane:2,revertLane:Bv(),action:i,hasEagerState:!1,eagerState:null,next:null},ih(e)){if(t)throw Error(q(479))}else t=wb(e,n,i,2),t!==null&&Jn(t,e,2)}function ih(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function m6(e,t){Xo=Wf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function g6(e,t,n){if(n&4194048){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,wk(e,n)}}var ah={readContext:dn,use:Jf,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useLayoutEffect:St,useInsertionEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useSyncExternalStore:St,useId:St,useHostTransitionStatus:St,useFormState:St,useActionState:St,useOptimistic:St,useMemoCache:St,useCacheRefresh:St},b6={readContext:dn,use:Jf,useCallback:function(e,t){return Nn().memoizedState=[e,t===void 0?null:t],e},useContext:dn,useEffect:e6,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,nh(4194308,4,a6.bind(null,t,e),n)},useLayoutEffect:function(e,t){return nh(4194308,4,e,t)},useInsertionEffect:function(e,t){nh(4,2,e,t)},useMemo:function(e,t){var n=Nn();t=t===void 0?null:t;var i=e();if(vs){dr(!0);try{e()}finally{dr(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=Nn();if(n!==void 0){var a=n(t);if(vs){dr(!0);try{n(t)}finally{dr(!1)}}}else a=t;return i.memoizedState=i.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},i.queue=e,e=e.dispatch=cW.bind(null,Ce,e),[i.memoizedState,e]},useRef:function(e){var t=Nn();return e={current:e},t.memoizedState=e},useState:function(e){e=Jb(e);var t=e.queue,n=p6.bind(null,Ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:tv,useDeferredValue:function(e,t){var n=Nn();return nv(n,e,t)},useTransition:function(){var e=Jb(!1);return e=u6.bind(null,Ce,e.queue,!0,!1),Nn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=Ce,a=Nn();if(Fe){if(n===void 0)throw Error(q(407));n=n()}else{if(n=t(),tt===null)throw Error(q(349));Ie&124||j3(i,t,n)}a.memoizedState=n;var r={value:n,getSnapshot:t};return a.queue=r,e6(U3.bind(null,i,r,e),[e]),i.flags|=2048,Qo(9,th(),z3.bind(null,i,r,n,t),null),n},useId:function(){var e=Nn(),t=tt.identifierPrefix;if(Fe){var n=Sa,i=wa;n=(i&~(1<<32-Gn(i)-1)).toString(32)+n,t="«"+t+"R"+n,n=Zf++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=aW++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:av,useFormState:K3,useActionState:K3,useOptimistic:function(e){var t=Nn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=rv.bind(null,Ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:Qb,useCacheRefresh:function(){return Nn().memoizedState=uW.bind(null,Ce)}},v6={readContext:dn,use:Jf,useCallback:s6,useContext:dn,useEffect:t6,useImperativeHandle:r6,useInsertionEffect:n6,useLayoutEffect:i6,useMemo:o6,useReducer:eh,useRef:J3,useState:function(){return eh(ka)},useDebugValue:tv,useDeferredValue:function(e,t){var n=Dt();return l6(n,qe.memoizedState,e,t)},useTransition:function(){var e=eh(ka)[0],t=Dt().memoizedState;return[typeof e=="boolean"?e:Zu(e),t]},useSyncExternalStore:B3,useId:f6,useHostTransitionStatus:av,useFormState:Q3,useActionState:Q3,useOptimistic:function(e,t){var n=Dt();return V3(n,qe,e,t)},useMemoCache:Qb,useCacheRefresh:h6},dW={readContext:dn,use:Jf,useCallback:s6,useContext:dn,useEffect:t6,useImperativeHandle:r6,useInsertionEffect:n6,useLayoutEffect:i6,useMemo:o6,useReducer:Zb,useRef:J3,useState:function(){return Zb(ka)},useDebugValue:tv,useDeferredValue:function(e,t){var n=Dt();return qe===null?nv(n,e,t):l6(n,qe.memoizedState,e,t)},useTransition:function(){var e=Zb(ka)[0],t=Dt().memoizedState;return[typeof e=="boolean"?e:Zu(e),t]},useSyncExternalStore:B3,useId:f6,useHostTransitionStatus:av,useFormState:Z3,useActionState:Z3,useOptimistic:function(e,t){var n=Dt();return qe!==null?V3(n,qe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Qb,useCacheRefresh:h6},Wo=null,tc=0;function rh(e){var t=tc;return tc+=1,Wo===null&&(Wo=[]),O3(Wo,e,t)}function nc(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function sh(e,t){throw t.$$typeof===HK?Error(q(525)):(e=Object.prototype.toString.call(t),Error(q(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function y6(e){var t=e._init;return t(e._payload)}function x6(e){function t(m,v){if(e){var x=m.deletions;x===null?(m.deletions=[v],m.flags|=16):x.push(v)}}function n(m,v){if(!e)return null;for(;v!==null;)t(m,v),v=v.sibling;return null}function i(m){for(var v=new Map;m!==null;)m.key!==null?v.set(m.key,m):v.set(m.index,m),m=m.sibling;return v}function a(m,v){return m=Ta(m,v),m.index=0,m.sibling=null,m}function r(m,v,x){return m.index=x,e?(x=m.alternate,x!==null?(x=x.index,x<v?(m.flags|=67108866,v):x):(m.flags|=67108866,v)):(m.flags|=1048576,v)}function s(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function o(m,v,x,T){return v===null||v.tag!==6?(v=Ab(x,m.mode,T),v.return=m,v):(v=a(v,x),v.return=m,v)}function l(m,v,x,T){var S=x.type;return S===wo?c(m,v,x.props.children,T,x.key):v!==null&&(v.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===ur&&y6(S)===v.type)?(v=a(v,x.props),nc(v,x),v.return=m,v):(v=Ff(x.type,x.key,x.props,null,m.mode,T),nc(v,x),v.return=m,v)}function u(m,v,x,T){return v===null||v.tag!==4||v.stateNode.containerInfo!==x.containerInfo||v.stateNode.implementation!==x.implementation?(v=Cb(x,m.mode,T),v.return=m,v):(v=a(v,x.children||[]),v.return=m,v)}function c(m,v,x,T,S){return v===null||v.tag!==7?(v=cs(x,m.mode,T,S),v.return=m,v):(v=a(v,x),v.return=m,v)}function d(m,v,x){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=Ab(""+v,m.mode,x),v.return=m,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case xf:return x=Ff(v.type,v.key,v.props,null,m.mode,x),nc(x,v),x.return=m,x;case Eu:return v=Cb(v,m.mode,x),v.return=m,v;case ur:var T=v._init;return v=T(v._payload),d(m,v,x)}if(wu(v)||Tu(v))return v=cs(v,m.mode,x,null),v.return=m,v;if(typeof v.then=="function")return d(m,rh(v),x);if(v.$$typeof===xa)return d(m,Gf(m,v),x);sh(m,v)}return null}function f(m,v,x,T){var S=v!==null?v.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return S!==null?null:o(m,v,""+x,T);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case xf:return x.key===S?l(m,v,x,T):null;case Eu:return x.key===S?u(m,v,x,T):null;case ur:return S=x._init,x=S(x._payload),f(m,v,x,T)}if(wu(x)||Tu(x))return S!==null?null:c(m,v,x,T,null);if(typeof x.then=="function")return f(m,v,rh(x),T);if(x.$$typeof===xa)return f(m,v,Gf(m,x),T);sh(m,x)}return null}function h(m,v,x,T,S){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return m=m.get(x)||null,o(v,m,""+T,S);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case xf:return m=m.get(T.key===null?x:T.key)||null,l(v,m,T,S);case Eu:return m=m.get(T.key===null?x:T.key)||null,u(v,m,T,S);case ur:var A=T._init;return T=A(T._payload),h(m,v,x,T,S)}if(wu(T)||Tu(T))return m=m.get(x)||null,c(v,m,T,S,null);if(typeof T.then=="function")return h(m,v,x,rh(T),S);if(T.$$typeof===xa)return h(m,v,x,Gf(v,T),S);sh(v,T)}return null}function g(m,v,x,T){for(var S=null,A=null,D=v,L=v=0,B=null;D!==null&&L<x.length;L++){D.index>L?(B=D,D=null):B=D.sibling;var O=f(m,D,x[L],T);if(O===null){D===null&&(D=B);break}e&&D&&O.alternate===null&&t(m,D),v=r(O,v,L),A===null?S=O:A.sibling=O,A=O,D=B}if(L===x.length)return n(m,D),Fe&&fs(m,L),S;if(D===null){for(;L<x.length;L++)D=d(m,x[L],T),D!==null&&(v=r(D,v,L),A===null?S=D:A.sibling=D,A=D);return Fe&&fs(m,L),S}for(D=i(D);L<x.length;L++)B=h(D,m,L,x[L],T),B!==null&&(e&&B.alternate!==null&&D.delete(B.key===null?L:B.key),v=r(B,v,L),A===null?S=B:A.sibling=B,A=B);return e&&D.forEach(function(Y){return t(m,Y)}),Fe&&fs(m,L),S}function y(m,v,x,T){if(x==null)throw Error(q(151));for(var S=null,A=null,D=v,L=v=0,B=null,O=x.next();D!==null&&!O.done;L++,O=x.next()){D.index>L?(B=D,D=null):B=D.sibling;var Y=f(m,D,O.value,T);if(Y===null){D===null&&(D=B);break}e&&D&&Y.alternate===null&&t(m,D),v=r(Y,v,L),A===null?S=Y:A.sibling=Y,A=Y,D=B}if(O.done)return n(m,D),Fe&&fs(m,L),S;if(D===null){for(;!O.done;L++,O=x.next())O=d(m,O.value,T),O!==null&&(v=r(O,v,L),A===null?S=O:A.sibling=O,A=O);return Fe&&fs(m,L),S}for(D=i(D);!O.done;L++,O=x.next())O=h(D,m,L,O.value,T),O!==null&&(e&&O.alternate!==null&&D.delete(O.key===null?L:O.key),v=r(O,v,L),A===null?S=O:A.sibling=O,A=O);return e&&D.forEach(function(U){return t(m,U)}),Fe&&fs(m,L),S}function E(m,v,x,T){if(typeof x=="object"&&x!==null&&x.type===wo&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case xf:e:{for(var S=x.key;v!==null;){if(v.key===S){if(S=x.type,S===wo){if(v.tag===7){n(m,v.sibling),T=a(v,x.props.children),T.return=m,m=T;break e}}else if(v.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===ur&&y6(S)===v.type){n(m,v.sibling),T=a(v,x.props),nc(T,x),T.return=m,m=T;break e}n(m,v);break}else t(m,v);v=v.sibling}x.type===wo?(T=cs(x.props.children,m.mode,T,x.key),T.return=m,m=T):(T=Ff(x.type,x.key,x.props,null,m.mode,T),nc(T,x),T.return=m,m=T)}return s(m);case Eu:e:{for(S=x.key;v!==null;){if(v.key===S)if(v.tag===4&&v.stateNode.containerInfo===x.containerInfo&&v.stateNode.implementation===x.implementation){n(m,v.sibling),T=a(v,x.children||[]),T.return=m,m=T;break e}else{n(m,v);break}else t(m,v);v=v.sibling}T=Cb(x,m.mode,T),T.return=m,m=T}return s(m);case ur:return S=x._init,x=S(x._payload),E(m,v,x,T)}if(wu(x))return g(m,v,x,T);if(Tu(x)){if(S=Tu(x),typeof S!="function")throw Error(q(150));return x=S.call(x),y(m,v,x,T)}if(typeof x.then=="function")return E(m,v,rh(x),T);if(x.$$typeof===xa)return E(m,v,Gf(m,x),T);sh(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,v!==null&&v.tag===6?(n(m,v.sibling),T=a(v,x),T.return=m,m=T):(n(m,v),T=Ab(x,m.mode,T),T.return=m,m=T),s(m)):n(m,v)}return function(m,v,x,T){try{tc=0;var S=E(m,v,x,T);return Wo=null,S}catch(D){if(D===Gu||D===Xf)throw D;var A=Xn(29,D,null,m.mode);return A.lanes=T,A.return=m,A}finally{}}}var Zo=x6(!0),_6=x6(!1),vi=Ji(null),ia=null;function yr(e){var t=e.alternate;ct(Bt,Bt.current&1),ct(vi,e),ia===null&&(t===null||$o.current!==null||t.memoizedState!==null)&&(ia=e)}function E6(e){if(e.tag===22){if(ct(Bt,Bt.current),ct(vi,e),ia===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(ia=e)}}else xr()}function xr(){ct(Bt,Bt.current),ct(vi,vi.current)}function Oa(e){Ht(vi),ia===e&&(ia=null),Ht(Bt)}var Bt=Ji(0);function oh(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||Kv(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function sv(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:rt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ov={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=Zn(),a=gr(i);a.payload=t,n!=null&&(a.callback=n),t=br(e,a,i),t!==null&&(Jn(t,e,i),Xu(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=Zn(),a=gr(i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=br(e,a,i),t!==null&&(Jn(t,e,i),Xu(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Zn(),i=gr(n);i.tag=2,t!=null&&(i.callback=t),t=br(e,i,n),t!==null&&(Jn(t,e,n),Xu(t,e,n))}};function T6(e,t,n,i,a,r,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,r,s):t.prototype&&t.prototype.isPureReactComponent?!ju(n,i)||!ju(a,r):!0}function w6(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&ov.enqueueReplaceState(t,t.state,null)}function ys(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=rt({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}var lh=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function S6(e){lh(e)}function A6(e){console.error(e)}function C6(e){lh(e)}function uh(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function k6(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function lv(e,t,n){return n=gr(n),n.tag=3,n.payload={element:null},n.callback=function(){uh(e,t)},n}function O6(e){return e=gr(e),e.tag=3,e}function N6(e,t,n,i){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var r=i.value;e.payload=function(){return a(r)},e.callback=function(){k6(t,n,i)}}var s=n.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){k6(t,n,i),typeof a!="function"&&(Ar===null?Ar=new Set([this]):Ar.add(this));var o=i.stack;this.componentDidCatch(i.value,{componentStack:o!==null?o:""})})}function fW(e,t,n,i,a){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&Vu(t,n,a,!0),n=vi.current,n!==null){switch(n.tag){case 13:return ia===null?Dv():n.alternate===null&&yt===0&&(yt=3),n.flags&=-257,n.flags|=65536,n.lanes=a,i===Bb?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),Lv(e,i,a)),!1;case 22:return n.flags|=65536,i===Bb?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),Lv(e,i,a)),!1}throw Error(q(435,n.tag))}return Lv(e,i,a),Dv(),!1}if(Fe)return t=vi.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,i!==Nb&&(e=Error(q(422),{cause:i}),Fu(pi(e,n)))):(i!==Nb&&(t=Error(q(423),{cause:i}),Fu(pi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,i=pi(i,n),a=lv(e.stateNode,i,a),Ub(e,a),yt!==4&&(yt=2)),!1;var r=Error(q(520),{cause:i});if(r=pi(r,n),uc===null?uc=[r]:uc.push(r),yt!==4&&(yt=2),t===null)return!0;i=pi(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=lv(n.stateNode,i,e),Ub(n,e),!1;case 1:if(t=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Ar===null||!Ar.has(r))))return n.flags|=65536,a&=-a,n.lanes|=a,a=O6(a),N6(a,e,n,i),Ub(n,a),!1}n=n.return}while(n!==null);return!1}var R6=Error(q(461)),Vt=!1;function Zt(e,t,n,i){t.child=e===null?_6(t,null,n,i):Zo(t,e.child,n,i)}function D6(e,t,n,i,a){n=n.render;var r=t.ref;if("ref"in i){var s={};for(var o in i)o!=="ref"&&(s[o]=i[o])}else s=i;return gs(t),i=qb(e,t,n,s,r,a),o=Gb(),e!==null&&!Vt?($b(e,t,a),Na(e,t,a)):(Fe&&o&&kb(t),t.flags|=1,Zt(e,t,i,a),t.child)}function M6(e,t,n,i,a){if(e===null){var r=n.type;return typeof r=="function"&&!Sb(r)&&r.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=r,L6(e,t,r,i,a)):(e=Ff(n.type,null,i,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!gv(e,a)){var s=r.memoizedProps;if(n=n.compare,n=n!==null?n:ju,n(s,i)&&e.ref===t.ref)return Na(e,t,a)}return t.flags|=1,e=Ta(r,i),e.ref=t.ref,e.return=t,t.child=e}function L6(e,t,n,i,a){if(e!==null){var r=e.memoizedProps;if(ju(r,i)&&e.ref===t.ref)if(Vt=!1,t.pendingProps=i=r,gv(e,a))e.flags&131072&&(Vt=!0);else return t.lanes=e.lanes,Na(e,t,a)}return uv(e,t,n,i,a)}function I6(e,t,n){var i=t.pendingProps,a=i.children,r=e!==null?e.memoizedState:null;if(i.mode==="hidden"){if(t.flags&128){if(i=r!==null?r.baseLanes|n:n,e!==null){for(a=t.child=e.child,r=0;a!==null;)r=r|a.lanes|a.childLanes,a=a.sibling;t.childLanes=r&~i}else t.childLanes=0,t.child=null;return P6(e,t,i,n)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&$f(t,r!==null?r.cachePool:null),r!==null?L3(t,r):Fb(),E6(t);else return t.lanes=t.childLanes=536870912,P6(e,t,r!==null?r.baseLanes|n:n,n)}else r!==null?($f(t,r.cachePool),L3(t,r),xr(),t.memoizedState=null):(e!==null&&$f(t,null),Fb(),xr());return Zt(e,t,a,n),t.child}function P6(e,t,n,i){var a=Pb();return a=a===null?null:{parent:Pt._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&$f(t,null),Fb(),E6(t),e!==null&&Vu(e,t,i,!0),null}function ch(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(q(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function uv(e,t,n,i,a){return gs(t),n=qb(e,t,n,i,void 0,a),i=Gb(),e!==null&&!Vt?($b(e,t,a),Na(e,t,a)):(Fe&&i&&kb(t),t.flags|=1,Zt(e,t,n,a),t.child)}function B6(e,t,n,i,a,r){return gs(t),t.updateQueue=null,n=P3(t,i,n,a),I3(e),i=Gb(),e!==null&&!Vt?($b(e,t,r),Na(e,t,r)):(Fe&&i&&kb(t),t.flags|=1,Zt(e,t,n,r),t.child)}function j6(e,t,n,i,a){if(gs(t),t.stateNode===null){var r=Fo,s=n.contextType;typeof s=="object"&&s!==null&&(r=dn(s)),r=new n(i,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=ov,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=i,r.state=t.memoizedState,r.refs={},jb(t),s=n.contextType,r.context=typeof s=="object"&&s!==null?dn(s):Fo,r.state=t.memoizedState,s=n.getDerivedStateFromProps,typeof s=="function"&&(sv(t,n,s,i),r.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(s=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),s!==r.state&&ov.enqueueReplaceState(r,r.state,null),Qu(t,i,r,a),Ku(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){r=t.stateNode;var o=t.memoizedProps,l=ys(n,o);r.props=l;var u=r.context,c=n.contextType;s=Fo,typeof c=="object"&&c!==null&&(s=dn(c));var d=n.getDerivedStateFromProps;c=typeof d=="function"||typeof r.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,c||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(o||u!==s)&&w6(t,r,i,s),mr=!1;var f=t.memoizedState;r.state=f,Qu(t,i,r,a),Ku(),u=t.memoizedState,o||f!==u||mr?(typeof d=="function"&&(sv(t,n,d,i),u=t.memoizedState),(l=mr||T6(t,n,l,i,f,u,s))?(c||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=u),r.props=i,r.state=u,r.context=s,i=l):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{r=t.stateNode,zb(e,t),s=t.memoizedProps,c=ys(n,s),r.props=c,d=t.pendingProps,f=r.context,u=n.contextType,l=Fo,typeof u=="object"&&u!==null&&(l=dn(u)),o=n.getDerivedStateFromProps,(u=typeof o=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(s!==d||f!==l)&&w6(t,r,i,l),mr=!1,f=t.memoizedState,r.state=f,Qu(t,i,r,a),Ku();var h=t.memoizedState;s!==d||f!==h||mr||e!==null&&e.dependencies!==null&&qf(e.dependencies)?(typeof o=="function"&&(sv(t,n,o,i),h=t.memoizedState),(c=mr||T6(t,n,c,i,f,h,l)||e!==null&&e.dependencies!==null&&qf(e.dependencies))?(u||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(i,h,l),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(i,h,l)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=h),r.props=i,r.state=h,r.context=l,i=c):(typeof r.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),i=!1)}return r=i,ch(e,t),i=(t.flags&128)!==0,r||i?(r=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&i?(t.child=Zo(t,e.child,null,a),t.child=Zo(t,null,n,a)):Zt(e,t,n,a),t.memoizedState=r.state,e=t.child):e=Na(e,t,a),e}function z6(e,t,n,i){return Hu(),t.flags|=256,Zt(e,t,n,i),t.child}var cv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function dv(e){return{baseLanes:e,cachePool:A3()}}function fv(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=yi),e}function U6(e,t,n){var i=t.pendingProps,a=!1,r=(t.flags&128)!==0,s;if((s=r)||(s=e!==null&&e.memoizedState===null?!1:(Bt.current&2)!==0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(Fe){if(a?yr(t):xr(),Fe){var o=vt,l;if(l=o){e:{for(l=o,o=na;l.nodeType!==8;){if(!o){o=null;break e}if(l=Mi(l.nextSibling),l===null){o=null;break e}}o=l}o!==null?(t.memoizedState={dehydrated:o,treeContext:ds!==null?{id:wa,overflow:Sa}:null,retryLane:536870912,hydrationErrors:null},l=Xn(18,null,null,0),l.stateNode=o,l.return=t,t.child=l,yn=t,vt=null,l=!0):l=!1}l||ps(t)}if(o=t.memoizedState,o!==null&&(o=o.dehydrated,o!==null))return Kv(o)?t.lanes=32:t.lanes=536870912,null;Oa(t)}return o=i.children,i=i.fallback,a?(xr(),a=t.mode,o=dh({mode:"hidden",children:o},a),i=cs(i,a,n,null),o.return=t,i.return=t,o.sibling=i,t.child=o,a=t.child,a.memoizedState=dv(n),a.childLanes=fv(e,s,n),t.memoizedState=cv,i):(yr(t),hv(t,o))}if(l=e.memoizedState,l!==null&&(o=l.dehydrated,o!==null)){if(r)t.flags&256?(yr(t),t.flags&=-257,t=pv(e,t,n)):t.memoizedState!==null?(xr(),t.child=e.child,t.flags|=128,t=null):(xr(),a=i.fallback,o=t.mode,i=dh({mode:"visible",children:i.children},o),a=cs(a,o,n,null),a.flags|=2,i.return=t,a.return=t,i.sibling=a,t.child=i,Zo(t,e.child,null,n),i=t.child,i.memoizedState=dv(n),i.childLanes=fv(e,s,n),t.memoizedState=cv,t=a);else if(yr(t),Kv(o)){if(s=o.nextSibling&&o.nextSibling.dataset,s)var u=s.dgst;s=u,i=Error(q(419)),i.stack="",i.digest=s,Fu({value:i,source:null,stack:null}),t=pv(e,t,n)}else if(Vt||Vu(e,t,n,!1),s=(n&e.childLanes)!==0,Vt||s){if(s=tt,s!==null&&(i=n&-n,i=i&42?1:Qg(i),i=i&(s.suspendedLanes|n)?0:i,i!==0&&i!==l.retryLane))throw l.retryLane=i,Ho(e,i),Jn(s,e,i),R6;o.data==="$?"||Dv(),t=pv(e,t,n)}else o.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,vt=Mi(o.nextSibling),yn=t,Fe=!0,hs=null,na=!1,e!==null&&(gi[bi++]=wa,gi[bi++]=Sa,gi[bi++]=ds,wa=e.id,Sa=e.overflow,ds=t),t=hv(t,i.children),t.flags|=4096);return t}return a?(xr(),a=i.fallback,o=t.mode,l=e.child,u=l.sibling,i=Ta(l,{mode:"hidden",children:i.children}),i.subtreeFlags=l.subtreeFlags&65011712,u!==null?a=Ta(u,a):(a=cs(a,o,n,null),a.flags|=2),a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,o=e.child.memoizedState,o===null?o=dv(n):(l=o.cachePool,l!==null?(u=Pt._currentValue,l=l.parent!==u?{parent:u,pool:u}:l):l=A3(),o={baseLanes:o.baseLanes|n,cachePool:l}),a.memoizedState=o,a.childLanes=fv(e,s,n),t.memoizedState=cv,i):(yr(t),n=e.child,e=n.sibling,n=Ta(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function hv(e,t){return t=dh({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function dh(e,t){return e=Xn(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function pv(e,t,n){return Zo(t,e.child,null,n),e=hv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function H6(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Db(e.return,t,n)}function mv(e,t,n,i,a){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:a}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=i,r.tail=n,r.tailMode=a)}function F6(e,t,n){var i=t.pendingProps,a=i.revealOrder,r=i.tail;if(Zt(e,t,i.children,n),i=Bt.current,i&2)i=i&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&H6(e,n,t);else if(e.tag===19)H6(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}switch(ct(Bt,i),a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&oh(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),mv(t,!1,a,n,r);break;case"backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&oh(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}mv(t,!0,n,null,r);break;case"together":mv(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Na(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Sr|=t.lanes,!(n&t.childLanes))if(e!==null){if(Vu(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(q(153));if(t.child!==null){for(e=t.child,n=Ta(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ta(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function gv(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&qf(e)))}function hW(e,t,n){switch(t.tag){case 3:Ef(t,t.stateNode.containerInfo),pr(t,Pt,e.memoizedState.cache),Hu();break;case 27:case 5:qg(t);break;case 4:Ef(t,t.stateNode.containerInfo);break;case 10:pr(t,t.type,t.memoizedProps.value);break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(yr(t),t.flags|=128,null):n&t.child.childLanes?U6(e,t,n):(yr(t),e=Na(e,t,n),e!==null?e.sibling:null);yr(t);break;case 19:var a=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(Vu(e,t,n,!1),i=(n&t.childLanes)!==0),a){if(i)return F6(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),ct(Bt,Bt.current),i)break;return null;case 22:case 23:return t.lanes=0,I6(e,t,n);case 24:pr(t,Pt,e.memoizedState.cache)}return Na(e,t,n)}function V6(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Vt=!0;else{if(!gv(e,n)&&!(t.flags&128))return Vt=!1,hW(e,t,n);Vt=!!(e.flags&131072)}else Vt=!1,Fe&&t.flags&1048576&&y3(t,Yf,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var i=t.elementType,a=i._init;if(i=a(i._payload),t.type=i,typeof i=="function")Sb(i)?(e=ys(i,e),t.tag=1,t=j6(null,t,i,e,n)):(t.tag=0,t=uv(null,t,i,e,n));else{if(i!=null){if(a=i.$$typeof,a===jg){t.tag=11,t=D6(null,t,i,e,n);break e}else if(a===Hg){t.tag=14,t=M6(null,t,i,e,n);break e}}throw t=Vg(i)||i,Error(q(306,t,""))}}return t;case 0:return uv(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,a=ys(i,t.pendingProps),j6(e,t,i,a,n);case 3:e:{if(Ef(t,t.stateNode.containerInfo),e===null)throw Error(q(387));i=t.pendingProps;var r=t.memoizedState;a=r.element,zb(e,t),Qu(t,i,null,n);var s=t.memoizedState;if(i=s.cache,pr(t,Pt,i),i!==r.cache&&Mb(t,[Pt],n,!0),Ku(),i=s.element,r.isDehydrated)if(r={element:i,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=z6(e,t,i,n);break e}else if(i!==a){a=pi(Error(q(424)),t),Fu(a),t=z6(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(vt=Mi(e.firstChild),yn=t,Fe=!0,hs=null,na=!0,n=_6(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Hu(),i===a){t=Na(e,t,n);break e}Zt(e,t,i,n)}t=t.child}return t;case 26:return ch(e,t),e===null?(n=$O(t.type,null,t.pendingProps,null))?t.memoizedState=n:Fe||(n=t.type,e=t.pendingProps,i=Sh(cr.current).createElement(n),i[cn]=t,i[kn]=e,en(i,n,e),Ft(i),t.stateNode=i):t.memoizedState=$O(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return qg(t),e===null&&Fe&&(i=t.stateNode=YO(t.type,t.pendingProps,cr.current),yn=t,na=!0,a=vt,Or(t.type)?(Qv=a,vt=Mi(i.firstChild)):vt=a),Zt(e,t,t.pendingProps.children,n),ch(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Fe&&((a=i=vt)&&(i=HW(i,t.type,t.pendingProps,na),i!==null?(t.stateNode=i,yn=t,vt=Mi(i.firstChild),na=!1,a=!0):a=!1),a||ps(t)),qg(t),a=t.type,r=t.pendingProps,s=e!==null?e.memoizedProps:null,i=r.children,Gv(a,r)?i=null:s!==null&&Gv(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=qb(e,t,rW,null,null,n),vc._currentValue=a),ch(e,t),Zt(e,t,i,n),t.child;case 6:return e===null&&Fe&&((e=n=vt)&&(n=FW(n,t.pendingProps,na),n!==null?(t.stateNode=n,yn=t,vt=null,e=!0):e=!1),e||ps(t)),null;case 13:return U6(e,t,n);case 4:return Ef(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Zo(t,null,i,n):Zt(e,t,i,n),t.child;case 11:return D6(e,t,t.type,t.pendingProps,n);case 7:return Zt(e,t,t.pendingProps,n),t.child;case 8:return Zt(e,t,t.pendingProps.children,n),t.child;case 12:return Zt(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,pr(t,t.type,i.value),Zt(e,t,i.children,n),t.child;case 9:return a=t.type._context,i=t.pendingProps.children,gs(t),a=dn(a),i=i(a),t.flags|=1,Zt(e,t,i,n),t.child;case 14:return M6(e,t,t.type,t.pendingProps,n);case 15:return L6(e,t,t.type,t.pendingProps,n);case 19:return F6(e,t,n);case 31:return i=t.pendingProps,n=t.mode,i={mode:i.mode,children:i.children},e===null?(n=dh(i,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=Ta(e.child,i),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return I6(e,t,n);case 24:return gs(t),i=dn(Pt),e===null?(a=Pb(),a===null&&(a=tt,r=Lb(),a.pooledCache=r,r.refCount++,r!==null&&(a.pooledCacheLanes|=n),a=r),t.memoizedState={parent:i,cache:a},jb(t),pr(t,Pt,a)):(e.lanes&n&&(zb(e,t),Qu(t,null,null,n),Ku()),a=e.memoizedState,r=t.memoizedState,a.parent!==i?(a={parent:i,cache:i},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),pr(t,Pt,i)):(i=r.cache,pr(t,Pt,i),i!==a.cache&&Mb(t,[Pt],n,!0))),Zt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(q(156,t.tag))}function Ra(e){e.flags|=4}function Y6(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!ZO(t)){if(t=vi.current,t!==null&&((Ie&4194048)===Ie?ia!==null:(Ie&62914560)!==Ie&&!(Ie&536870912)||t!==ia))throw $u=Bb,C3;e.flags|=8192}}function fh(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ek():536870912,e.lanes|=t,nl|=t)}function ic(e,t){if(!Fe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function pt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,i|=a.subtreeFlags&65011712,i|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,i|=a.subtreeFlags,i|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function pW(e,t,n){var i=t.pendingProps;switch(Ob(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pt(t),null;case 1:return pt(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Ca(Pt),Ao(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Uu(t)?Ra(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,E3())),pt(t),null;case 26:return n=t.memoizedState,e===null?(Ra(t),n!==null?(pt(t),Y6(t,n)):(pt(t),t.flags&=-16777217)):n?n!==e.memoizedState?(Ra(t),pt(t),Y6(t,n)):(pt(t),t.flags&=-16777217):(e.memoizedProps!==i&&Ra(t),pt(t),t.flags&=-16777217),null;case 27:Tf(t),n=cr.current;var a=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Ra(t);else{if(!i){if(t.stateNode===null)throw Error(q(166));return pt(t),null}e=ea.current,Uu(t)?x3(t):(e=YO(a,i,n),t.stateNode=e,Ra(t))}return pt(t),null;case 5:if(Tf(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Ra(t);else{if(!i){if(t.stateNode===null)throw Error(q(166));return pt(t),null}if(e=ea.current,Uu(t))x3(t);else{switch(a=Sh(cr.current),e){case 1:e=a.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=a.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=a.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof i.is=="string"?a.createElement("select",{is:i.is}):a.createElement("select"),i.multiple?e.multiple=!0:i.size&&(e.size=i.size);break;default:e=typeof i.is=="string"?a.createElement(n,{is:i.is}):a.createElement(n)}}e[cn]=t,e[kn]=i;e:for(a=t.child;a!==null;){if(a.tag===5||a.tag===6)e.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=e;e:switch(en(e,n,i),n){case"button":case"input":case"select":case"textarea":e=!!i.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Ra(t)}}return pt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Ra(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(q(166));if(e=cr.current,Uu(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,a=yn,a!==null)switch(a.tag){case 27:case 5:i=a.memoizedProps}e[cn]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||BO(e.nodeValue,n)),e||ps(t)}else e=Sh(e).createTextNode(i),e[cn]=t,t.stateNode=e}return pt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Uu(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(q(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(q(317));a[cn]=t}else Hu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;pt(t),a=!1}else a=E3(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Oa(t),t):(Oa(t),null)}if(Oa(t),t.flags&128)return t.lanes=n,t;if(n=i!==null,e=e!==null&&e.memoizedState!==null,n){i=t.child,a=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(a=i.alternate.memoizedState.cachePool.pool);var r=null;i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(r=i.memoizedState.cachePool.pool),r!==a&&(i.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),fh(t,t.updateQueue),pt(t),null;case 4:return Ao(),e===null&&Hv(t.stateNode.containerInfo),pt(t),null;case 10:return Ca(t.type),pt(t),null;case 19:if(Ht(Bt),a=t.memoizedState,a===null)return pt(t),null;if(i=(t.flags&128)!==0,r=a.rendering,r===null)if(i)ic(a,!1);else{if(yt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(r=oh(e),r!==null){for(t.flags|=128,ic(a,!1),e=r.updateQueue,t.updateQueue=e,fh(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)v3(n,e),n=n.sibling;return ct(Bt,Bt.current&1|2),t.child}e=e.sibling}a.tail!==null&&ta()>mh&&(t.flags|=128,i=!0,ic(a,!1),t.lanes=4194304)}else{if(!i)if(e=oh(r),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,fh(t,e),ic(a,!0),a.tail===null&&a.tailMode==="hidden"&&!r.alternate&&!Fe)return pt(t),null}else 2*ta()-a.renderingStartTime>mh&&n!==536870912&&(t.flags|=128,i=!0,ic(a,!1),t.lanes=4194304);a.isBackwards?(r.sibling=t.child,t.child=r):(e=a.last,e!==null?e.sibling=r:t.child=r,a.last=r)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ta(),t.sibling=null,e=Bt.current,ct(Bt,i?e&1|2:e&1),t):(pt(t),null);case 22:case 23:return Oa(t),Vb(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?n&536870912&&!(t.flags&128)&&(pt(t),t.subtreeFlags&6&&(t.flags|=8192)):pt(t),n=t.updateQueue,n!==null&&fh(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&Ht(bs),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ca(Pt),pt(t),null;case 25:return null;case 30:return null}throw Error(q(156,t.tag))}function mW(e,t){switch(Ob(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ca(Pt),Ao(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Tf(t),null;case 13:if(Oa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));Hu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ht(Bt),null;case 4:return Ao(),null;case 10:return Ca(t.type),null;case 22:case 23:return Oa(t),Vb(),e!==null&&Ht(bs),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ca(Pt),null;case 25:return null;default:return null}}function q6(e,t){switch(Ob(t),t.tag){case 3:Ca(Pt),Ao();break;case 26:case 27:case 5:Tf(t);break;case 4:Ao();break;case 13:Oa(t);break;case 19:Ht(Bt);break;case 10:Ca(t.type);break;case 22:case 23:Oa(t),Vb(),e!==null&&Ht(bs);break;case 24:Ca(Pt)}}function ac(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var a=i.next;n=a;do{if((n.tag&e)===e){i=void 0;var r=n.create,s=n.inst;i=r(),s.destroy=i}n=n.next}while(n!==a)}}catch(o){We(t,t.return,o)}}function _r(e,t,n){try{var i=t.updateQueue,a=i!==null?i.lastEffect:null;if(a!==null){var r=a.next;i=r;do{if((i.tag&e)===e){var s=i.inst,o=s.destroy;if(o!==void 0){s.destroy=void 0,a=t;var l=n,u=o;try{u()}catch(c){We(a,l,c)}}}i=i.next}while(i!==r)}}catch(c){We(t,t.return,c)}}function G6(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{M3(t,n)}catch(i){We(e,e.return,i)}}}function $6(e,t,n){n.props=ys(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){We(e,t,i)}}function rc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(a){We(e,t,a)}}function aa(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(a){We(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){We(e,t,a)}else n.current=null}function X6(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(a){We(e,e.return,a)}}function bv(e,t,n){try{var i=e.stateNode;PW(i,e.type,n,t),i[kn]=t}catch(a){We(e,e.return,a)}}function K6(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Or(e.type)||e.tag===4}function vv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||K6(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Or(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function yv(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=wh));else if(i!==4&&(i===27&&Or(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(yv(e,t,n),e=e.sibling;e!==null;)yv(e,t,n),e=e.sibling}function hh(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&Or(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(hh(e,t,n),e=e.sibling;e!==null;)hh(e,t,n),e=e.sibling}function Q6(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);en(t,i,n),t[cn]=e,t[kn]=n}catch(r){We(e,e.return,r)}}var Da=!1,At=!1,xv=!1,W6=typeof WeakSet=="function"?WeakSet:Set,Yt=null;function gW(e,t){if(e=e.containerInfo,Yv=Rh,e=l3(e),vb(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,r=i.focusNode;i=i.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break e}var s=0,o=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||a!==0&&d.nodeType!==3||(o=s+a),d!==r||i!==0&&d.nodeType!==3||(l=s+i),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===a&&(o=s),f===r&&++c===i&&(l=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(qv={focusedElem:e,selectionRange:n},Rh=!1,Yt=t;Yt!==null;)if(t=Yt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Yt=e;else for(;Yt!==null;){switch(t=Yt,r=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if(e&1024&&r!==null){e=void 0,n=t,a=r.memoizedProps,r=r.memoizedState,i=n.stateNode;try{var g=ys(n.type,a,n.elementType===n.type);e=i.getSnapshotBeforeUpdate(g,r),i.__reactInternalSnapshotBeforeUpdate=e}catch(y){We(n,n.return,y)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Xv(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Xv(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(q(163))}if(e=t.sibling,e!==null){e.return=t.return,Yt=e;break}Yt=t.return}}function Z6(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Er(e,n),i&4&&ac(5,n);break;case 1:if(Er(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(s){We(n,n.return,s)}else{var a=ys(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){We(n,n.return,s)}}i&64&&G6(n),i&512&&rc(n,n.return);break;case 3:if(Er(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{M3(e,t)}catch(s){We(n,n.return,s)}}break;case 27:t===null&&i&4&&Q6(n);case 26:case 5:Er(e,n),t===null&&i&4&&X6(n),i&512&&rc(n,n.return);break;case 12:Er(e,n);break;case 13:Er(e,n),i&4&&tO(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=SW.bind(null,n),VW(e,n))));break;case 22:if(i=n.memoizedState!==null||Da,!i){t=t!==null&&t.memoizedState!==null||At,a=Da;var r=At;Da=i,(At=t)&&!r?Tr(e,n,(n.subtreeFlags&8772)!==0):Er(e,n),Da=a,At=r}break;case 30:break;default:Er(e,n)}}function J6(e){var t=e.alternate;t!==null&&(e.alternate=null,J6(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Jg(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var dt=null,Rn=!1;function Ma(e,t,n){for(n=n.child;n!==null;)eO(e,t,n),n=n.sibling}function eO(e,t,n){if(qn&&typeof qn.onCommitFiberUnmount=="function")try{qn.onCommitFiberUnmount(Au,n)}catch{}switch(n.tag){case 26:At||aa(n,t),Ma(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:At||aa(n,t);var i=dt,a=Rn;Or(n.type)&&(dt=n.stateNode,Rn=!1),Ma(e,t,n),pc(n.stateNode),dt=i,Rn=a;break;case 5:At||aa(n,t);case 6:if(i=dt,a=Rn,dt=null,Ma(e,t,n),dt=i,Rn=a,dt!==null)if(Rn)try{(dt.nodeType===9?dt.body:dt.nodeName==="HTML"?dt.ownerDocument.body:dt).removeChild(n.stateNode)}catch(r){We(n,t,r)}else try{dt.removeChild(n.stateNode)}catch(r){We(n,t,r)}break;case 18:dt!==null&&(Rn?(e=dt,FO(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ec(e)):FO(dt,n.stateNode));break;case 4:i=dt,a=Rn,dt=n.stateNode.containerInfo,Rn=!0,Ma(e,t,n),dt=i,Rn=a;break;case 0:case 11:case 14:case 15:At||_r(2,n,t),At||_r(4,n,t),Ma(e,t,n);break;case 1:At||(aa(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&$6(n,t,i)),Ma(e,t,n);break;case 21:Ma(e,t,n);break;case 22:At=(i=At)||n.memoizedState!==null,Ma(e,t,n),At=i;break;default:Ma(e,t,n)}}function tO(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ec(e)}catch(n){We(t,t.return,n)}}function bW(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new W6),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new W6),t;default:throw Error(q(435,e.tag))}}function _v(e,t){var n=bW(e);t.forEach(function(i){var a=AW.bind(null,e,i);n.has(i)||(n.add(i),i.then(a,a))})}function Kn(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i],r=e,s=t,o=s;e:for(;o!==null;){switch(o.tag){case 27:if(Or(o.type)){dt=o.stateNode,Rn=!1;break e}break;case 5:dt=o.stateNode,Rn=!1;break e;case 3:case 4:dt=o.stateNode.containerInfo,Rn=!0;break e}o=o.return}if(dt===null)throw Error(q(160));eO(r,s,a),dt=null,Rn=!1,r=a.alternate,r!==null&&(r.return=null),a.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)nO(t,e),t=t.sibling}var Di=null;function nO(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Kn(t,e),Qn(e),i&4&&(_r(3,e,e.return),ac(3,e),_r(5,e,e.return));break;case 1:Kn(t,e),Qn(e),i&512&&(At||n===null||aa(n,n.return)),i&64&&Da&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var a=Di;if(Kn(t,e),Qn(e),i&512&&(At||n===null||aa(n,n.return)),i&4){var r=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(i){case"title":r=a.getElementsByTagName("title")[0],(!r||r[Ou]||r[cn]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=a.createElement(i),a.head.insertBefore(r,a.querySelector("head > title"))),en(r,i,n),r[cn]=e,Ft(r),i=r;break e;case"link":var s=QO("link","href",a).get(i+(n.href||""));if(s){for(var o=0;o<s.length;o++)if(r=s[o],r.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(o,1);break t}}r=a.createElement(i),en(r,i,n),a.head.appendChild(r);break;case"meta":if(s=QO("meta","content",a).get(i+(n.content||""))){for(o=0;o<s.length;o++)if(r=s[o],r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){s.splice(o,1);break t}}r=a.createElement(i),en(r,i,n),a.head.appendChild(r);break;default:throw Error(q(468,i))}r[cn]=e,Ft(r),i=r}e.stateNode=i}else WO(a,e.type,e.stateNode);else e.stateNode=KO(a,i,e.memoizedProps);else r!==i?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,i===null?WO(a,e.type,e.stateNode):KO(a,i,e.memoizedProps)):i===null&&e.stateNode!==null&&bv(e,e.memoizedProps,n.memoizedProps)}break;case 27:Kn(t,e),Qn(e),i&512&&(At||n===null||aa(n,n.return)),n!==null&&i&4&&bv(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Kn(t,e),Qn(e),i&512&&(At||n===null||aa(n,n.return)),e.flags&32){a=e.stateNode;try{Lo(a,"")}catch(h){We(e,e.return,h)}}i&4&&e.stateNode!=null&&(a=e.memoizedProps,bv(e,a,n!==null?n.memoizedProps:a)),i&1024&&(xv=!0);break;case 6:if(Kn(t,e),Qn(e),i&4){if(e.stateNode===null)throw Error(q(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(h){We(e,e.return,h)}}break;case 3:if(kh=null,a=Di,Di=Ah(t.containerInfo),Kn(t,e),Di=a,Qn(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Ec(t.containerInfo)}catch(h){We(e,e.return,h)}xv&&(xv=!1,iO(e));break;case 4:i=Di,Di=Ah(e.stateNode.containerInfo),Kn(t,e),Qn(e),Di=i;break;case 12:Kn(t,e),Qn(e);break;case 13:Kn(t,e),Qn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Cv=ta()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,_v(e,i)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Da,c=At;if(Da=u||a,At=c||l,Kn(t,e),At=c,Da=u,Qn(e),i&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Da||At||xs(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(r=l.stateNode,a)s=r.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{o=l.stateNode;var d=l.memoizedProps.style,f=d!=null&&d.hasOwnProperty("display")?d.display:null;o.style.display=f==null||typeof f=="boolean"?"":(""+f).trim()}}catch(h){We(l,l.return,h)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?"":l.memoizedProps}catch(h){We(l,l.return,h)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,_v(e,n))));break;case 19:Kn(t,e),Qn(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,_v(e,i)));break;case 30:break;case 21:break;default:Kn(t,e),Qn(e)}}function Qn(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(K6(i)){n=i;break}i=i.return}if(n==null)throw Error(q(160));switch(n.tag){case 27:var a=n.stateNode,r=vv(e);hh(e,r,a);break;case 5:var s=n.stateNode;n.flags&32&&(Lo(s,""),n.flags&=-33);var o=vv(e);hh(e,o,s);break;case 3:case 4:var l=n.stateNode.containerInfo,u=vv(e);yv(e,u,l);break;default:throw Error(q(161))}}catch(c){We(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function iO(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;iO(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Er(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Z6(e,t.alternate,t),t=t.sibling}function xs(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:_r(4,t,t.return),xs(t);break;case 1:aa(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&$6(t,t.return,n),xs(t);break;case 27:pc(t.stateNode);case 26:case 5:aa(t,t.return),xs(t);break;case 22:t.memoizedState===null&&xs(t);break;case 30:xs(t);break;default:xs(t)}e=e.sibling}}function Tr(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,a=e,r=t,s=r.flags;switch(r.tag){case 0:case 11:case 15:Tr(a,r,n),ac(4,r);break;case 1:if(Tr(a,r,n),i=r,a=i.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(u){We(i,i.return,u)}if(i=r,a=i.updateQueue,a!==null){var o=i.stateNode;try{var l=a.shared.hiddenCallbacks;if(l!==null)for(a.shared.hiddenCallbacks=null,a=0;a<l.length;a++)D3(l[a],o)}catch(u){We(i,i.return,u)}}n&&s&64&&G6(r),rc(r,r.return);break;case 27:Q6(r);case 26:case 5:Tr(a,r,n),n&&i===null&&s&4&&X6(r),rc(r,r.return);break;case 12:Tr(a,r,n);break;case 13:Tr(a,r,n),n&&s&4&&tO(a,r);break;case 22:r.memoizedState===null&&Tr(a,r,n),rc(r,r.return);break;case 30:break;default:Tr(a,r,n)}t=t.sibling}}function Ev(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Yu(n))}function Tv(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yu(e))}function ra(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)aO(e,t,n,i),t=t.sibling}function aO(e,t,n,i){var a=t.flags;switch(t.tag){case 0:case 11:case 15:ra(e,t,n,i),a&2048&&ac(9,t);break;case 1:ra(e,t,n,i);break;case 3:ra(e,t,n,i),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yu(e)));break;case 12:if(a&2048){ra(e,t,n,i),e=t.stateNode;try{var r=t.memoizedProps,s=r.id,o=r.onPostCommit;typeof o=="function"&&o(s,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(l){We(t,t.return,l)}}else ra(e,t,n,i);break;case 13:ra(e,t,n,i);break;case 23:break;case 22:r=t.stateNode,s=t.alternate,t.memoizedState!==null?r._visibility&2?ra(e,t,n,i):sc(e,t):r._visibility&2?ra(e,t,n,i):(r._visibility|=2,Jo(e,t,n,i,(t.subtreeFlags&10256)!==0)),a&2048&&Ev(s,t);break;case 24:ra(e,t,n,i),a&2048&&Tv(t.alternate,t);break;default:ra(e,t,n,i)}}function Jo(e,t,n,i,a){for(a=a&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var r=e,s=t,o=n,l=i,u=s.flags;switch(s.tag){case 0:case 11:case 15:Jo(r,s,o,l,a),ac(8,s);break;case 23:break;case 22:var c=s.stateNode;s.memoizedState!==null?c._visibility&2?Jo(r,s,o,l,a):sc(r,s):(c._visibility|=2,Jo(r,s,o,l,a)),a&&u&2048&&Ev(s.alternate,s);break;case 24:Jo(r,s,o,l,a),a&&u&2048&&Tv(s.alternate,s);break;default:Jo(r,s,o,l,a)}t=t.sibling}}function sc(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,a=i.flags;switch(i.tag){case 22:sc(n,i),a&2048&&Ev(i.alternate,i);break;case 24:sc(n,i),a&2048&&Tv(i.alternate,i);break;default:sc(n,i)}t=t.sibling}}var oc=8192;function el(e){if(e.subtreeFlags&oc)for(e=e.child;e!==null;)rO(e),e=e.sibling}function rO(e){switch(e.tag){case 26:el(e),e.flags&oc&&e.memoizedState!==null&&nZ(Di,e.memoizedState,e.memoizedProps);break;case 5:el(e);break;case 3:case 4:var t=Di;Di=Ah(e.stateNode.containerInfo),el(e),Di=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=oc,oc=16777216,el(e),oc=t):el(e));break;default:el(e)}}function sO(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function lc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];Yt=i,lO(i,e)}sO(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)oO(e),e=e.sibling}function oO(e){switch(e.tag){case 0:case 11:case 15:lc(e),e.flags&2048&&_r(9,e,e.return);break;case 3:lc(e);break;case 12:lc(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ph(e)):lc(e);break;default:lc(e)}}function ph(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];Yt=i,lO(i,e)}sO(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:_r(8,t,t.return),ph(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,ph(t));break;default:ph(t)}e=e.sibling}}function lO(e,t){for(;Yt!==null;){var n=Yt;switch(n.tag){case 0:case 11:case 15:_r(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Yu(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,Yt=i;else e:for(n=e;Yt!==null;){i=Yt;var a=i.sibling,r=i.return;if(J6(i),i===n){Yt=null;break e}if(a!==null){a.return=r,Yt=a;break e}Yt=r}}}var vW={getCacheForType:function(e){var t=dn(Pt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},yW=typeof WeakMap=="function"?WeakMap:Map,Ve=0,tt=null,Re=null,Ie=0,Ye=0,Wn=null,wr=!1,tl=!1,wv=!1,La=0,yt=0,Sr=0,_s=0,Sv=0,yi=0,nl=0,uc=null,Dn=null,Av=!1,Cv=0,mh=1/0,gh=null,Ar=null,Jt=0,Cr=null,il=null,al=0,kv=0,Ov=null,uO=null,cc=0,Nv=null;function Zn(){if(Ve&2&&Ie!==0)return Ie&-Ie;if(me.T!==null){var e=qo;return e!==0?e:Bv()}return Sk()}function cO(){yi===0&&(yi=!(Ie&536870912)||Fe?_k():536870912);var e=vi.current;return e!==null&&(e.flags|=32),yi}function Jn(e,t,n){(e===tt&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)&&(rl(e,0),kr(e,Ie,yi,!1)),ku(e,n),(!(Ve&2)||e!==tt)&&(e===tt&&(!(Ve&2)&&(_s|=n),yt===4&&kr(e,Ie,yi,!1)),sa(e))}function dO(e,t,n){if(Ve&6)throw Error(q(327));var i=!n&&(t&124)===0&&(t&e.expiredLanes)===0||Cu(e,t),a=i?EW(e,t):Mv(e,t,!0),r=i;do{if(a===0){tl&&!i&&kr(e,t,0,!1);break}else{if(n=e.current.alternate,r&&!xW(n)){a=Mv(e,t,!1),r=!1;continue}if(a===2){if(r=t,e.errorRecoveryDisabledLanes&r)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var o=e;a=uc;var l=o.current.memoizedState.isDehydrated;if(l&&(rl(o,s).flags|=256),s=Mv(o,s,!1),s!==2){if(wv&&!l){o.errorRecoveryDisabledLanes|=r,_s|=r,a=4;break e}r=Dn,Dn=a,r!==null&&(Dn===null?Dn=r:Dn.push.apply(Dn,r))}a=s}if(r=!1,a!==2)continue}}if(a===1){rl(e,0),kr(e,t,0,!0);break}e:{switch(i=e,r=a,r){case 0:case 1:throw Error(q(345));case 4:if((t&4194048)!==t)break;case 6:kr(i,t,yi,!wr);break e;case 2:Dn=null;break;case 3:case 5:break;default:throw Error(q(329))}if((t&62914560)===t&&(a=Cv+300-ta(),10<a)){if(kr(i,t,yi,!wr),Cf(i,0,!0)!==0)break e;i.timeoutHandle=UO(fO.bind(null,i,n,Dn,gh,Av,t,yi,_s,nl,wr,r,2,-0,0),a);break e}fO(i,n,Dn,gh,Av,t,yi,_s,nl,wr,r,0,-0,0)}}break}while(!0);sa(e)}function fO(e,t,n,i,a,r,s,o,l,u,c,d,f,h){if(e.timeoutHandle=-1,d=t.subtreeFlags,(d&8192||(d&16785408)===16785408)&&(bc={stylesheets:null,count:0,unsuspend:tZ},rO(t),d=iZ(),d!==null)){e.cancelPendingCommit=d(yO.bind(null,e,t,r,n,i,a,s,o,l,c,1,f,h)),kr(e,r,s,!u);return}yO(e,t,r,n,i,a,s,o,l)}function xW(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var a=n[i],r=a.getSnapshot;a=a.value;try{if(!$n(r(),a))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function kr(e,t,n,i){t&=~Sv,t&=~_s,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var a=t;0<a;){var r=31-Gn(a),s=1<<r;i[r]=-1,a&=~s}n!==0&&Tk(e,n,t)}function bh(){return Ve&6?!0:(dc(0),!1)}function Rv(){if(Re!==null){if(Ye===0)var e=Re.return;else e=Re,Aa=ms=null,Xb(e),Wo=null,tc=0,e=Re;for(;e!==null;)q6(e.alternate,e),e=e.return;Re=null}}function rl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,jW(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Rv(),tt=e,Re=n=Ta(e.current,null),Ie=t,Ye=0,Wn=null,wr=!1,tl=Cu(e,t),wv=!1,nl=yi=Sv=_s=Sr=yt=0,Dn=uc=null,Av=!1,t&8&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var a=31-Gn(i),r=1<<a;t|=e[a],i&=~r}return La=t,zf(),n}function hO(e,t){Ce=null,me.H=ah,t===Gu||t===Xf?(t=N3(),Ye=3):t===C3?(t=N3(),Ye=4):Ye=t===R6?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Wn=t,Re===null&&(yt=1,uh(e,pi(t,e.current)))}function pO(){var e=me.H;return me.H=ah,e===null?ah:e}function mO(){var e=me.A;return me.A=vW,e}function Dv(){yt=4,wr||(Ie&4194048)!==Ie&&vi.current!==null||(tl=!0),!(Sr&134217727)&&!(_s&134217727)||tt===null||kr(tt,Ie,yi,!1)}function Mv(e,t,n){var i=Ve;Ve|=2;var a=pO(),r=mO();(tt!==e||Ie!==t)&&(gh=null,rl(e,t)),t=!1;var s=yt;e:do try{if(Ye!==0&&Re!==null){var o=Re,l=Wn;switch(Ye){case 8:Rv(),s=6;break e;case 3:case 2:case 9:case 6:vi.current===null&&(t=!0);var u=Ye;if(Ye=0,Wn=null,sl(e,o,l,u),n&&tl){s=0;break e}break;default:u=Ye,Ye=0,Wn=null,sl(e,o,l,u)}}_W(),s=yt;break}catch(c){hO(e,c)}while(!0);return t&&e.shellSuspendCounter++,Aa=ms=null,Ve=i,me.H=a,me.A=r,Re===null&&(tt=null,Ie=0,zf()),s}function _W(){for(;Re!==null;)gO(Re)}function EW(e,t){var n=Ve;Ve|=2;var i=pO(),a=mO();tt!==e||Ie!==t?(gh=null,mh=ta()+500,rl(e,t)):tl=Cu(e,t);e:do try{if(Ye!==0&&Re!==null){t=Re;var r=Wn;t:switch(Ye){case 1:Ye=0,Wn=null,sl(e,t,r,1);break;case 2:case 9:if(k3(r)){Ye=0,Wn=null,bO(t);break}t=function(){Ye!==2&&Ye!==9||tt!==e||(Ye=7),sa(e)},r.then(t,t);break e;case 3:Ye=7;break e;case 4:Ye=5;break e;case 7:k3(r)?(Ye=0,Wn=null,bO(t)):(Ye=0,Wn=null,sl(e,t,r,7));break;case 5:var s=null;switch(Re.tag){case 26:s=Re.memoizedState;case 5:case 27:var o=Re;if(!s||ZO(s)){Ye=0,Wn=null;var l=o.sibling;if(l!==null)Re=l;else{var u=o.return;u!==null?(Re=u,vh(u)):Re=null}break t}}Ye=0,Wn=null,sl(e,t,r,5);break;case 6:Ye=0,Wn=null,sl(e,t,r,6);break;case 8:Rv(),yt=6;break e;default:throw Error(q(462))}}TW();break}catch(c){hO(e,c)}while(!0);return Aa=ms=null,me.H=i,me.A=a,Ve=n,Re!==null?0:(tt=null,Ie=0,zf(),yt)}function TW(){for(;Re!==null&&!qK();)gO(Re)}function gO(e){var t=V6(e.alternate,e,La);e.memoizedProps=e.pendingProps,t===null?vh(e):Re=t}function bO(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=B6(n,t,t.pendingProps,t.type,void 0,Ie);break;case 11:t=B6(n,t,t.pendingProps,t.type.render,t.ref,Ie);break;case 5:Xb(t);default:q6(n,t),t=Re=v3(t,La),t=V6(n,t,La)}e.memoizedProps=e.pendingProps,t===null?vh(e):Re=t}function sl(e,t,n,i){Aa=ms=null,Xb(t),Wo=null,tc=0;var a=t.return;try{if(fW(e,a,t,n,Ie)){yt=1,uh(e,pi(n,e.current)),Re=null;return}}catch(r){if(a!==null)throw Re=a,r;yt=1,uh(e,pi(n,e.current)),Re=null;return}t.flags&32768?(Fe||i===1?e=!0:tl||Ie&536870912?e=!1:(wr=e=!0,(i===2||i===9||i===3||i===6)&&(i=vi.current,i!==null&&i.tag===13&&(i.flags|=16384))),vO(t,e)):vh(t)}function vh(e){var t=e;do{if(t.flags&32768){vO(t,wr);return}e=t.return;var n=pW(t.alternate,t,La);if(n!==null){Re=n;return}if(t=t.sibling,t!==null){Re=t;return}Re=t=e}while(t!==null);yt===0&&(yt=5)}function vO(e,t){do{var n=mW(e.alternate,e);if(n!==null){n.flags&=32767,Re=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Re=e;return}Re=e=n}while(e!==null);yt=6,Re=null}function yO(e,t,n,i,a,r,s,o,l){e.cancelPendingCommit=null;do yh();while(Jt!==0);if(Ve&6)throw Error(q(327));if(t!==null){if(t===e.current)throw Error(q(177));if(r=t.lanes|t.childLanes,r|=Tb,tQ(e,n,r,s,o,l),e===tt&&(Re=tt=null,Ie=0),il=t,Cr=e,al=n,kv=r,Ov=a,uO=i,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,CW(wf,function(){return wO(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,t.subtreeFlags&13878||i){i=me.T,me.T=null,a=He.p,He.p=2,s=Ve,Ve|=4;try{gW(e,t,n)}finally{Ve=s,He.p=a,me.T=i}}Jt=1,xO(),_O(),EO()}}function xO(){if(Jt===1){Jt=0;var e=Cr,t=il,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=me.T,me.T=null;var i=He.p;He.p=2;var a=Ve;Ve|=4;try{nO(t,e);var r=qv,s=l3(e.containerInfo),o=r.focusedElem,l=r.selectionRange;if(s!==o&&o&&o.ownerDocument&&o3(o.ownerDocument.documentElement,o)){if(l!==null&&vb(o)){var u=l.start,c=l.end;if(c===void 0&&(c=u),"selectionStart"in o)o.selectionStart=u,o.selectionEnd=Math.min(c,o.value.length);else{var d=o.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var h=f.getSelection(),g=o.textContent.length,y=Math.min(l.start,g),E=l.end===void 0?y:Math.min(l.end,g);!h.extend&&y>E&&(s=E,E=y,y=s);var m=s3(o,y),v=s3(o,E);if(m&&v&&(h.rangeCount!==1||h.anchorNode!==m.node||h.anchorOffset!==m.offset||h.focusNode!==v.node||h.focusOffset!==v.offset)){var x=d.createRange();x.setStart(m.node,m.offset),h.removeAllRanges(),y>E?(h.addRange(x),h.extend(v.node,v.offset)):(x.setEnd(v.node,v.offset),h.addRange(x))}}}}for(d=[],h=o;h=h.parentNode;)h.nodeType===1&&d.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<d.length;o++){var T=d[o];T.element.scrollLeft=T.left,T.element.scrollTop=T.top}}Rh=!!Yv,qv=Yv=null}finally{Ve=a,He.p=i,me.T=n}}e.current=t,Jt=2}}function _O(){if(Jt===2){Jt=0;var e=Cr,t=il,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=me.T,me.T=null;var i=He.p;He.p=2;var a=Ve;Ve|=4;try{Z6(e,t.alternate,t)}finally{Ve=a,He.p=i,me.T=n}}Jt=3}}function EO(){if(Jt===4||Jt===3){Jt=0,GK();var e=Cr,t=il,n=al,i=uO;t.subtreeFlags&10256||t.flags&10256?Jt=5:(Jt=0,il=Cr=null,TO(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Ar=null),Wg(n),t=t.stateNode,qn&&typeof qn.onCommitFiberRoot=="function")try{qn.onCommitFiberRoot(Au,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=me.T,a=He.p,He.p=2,me.T=null;try{for(var r=e.onRecoverableError,s=0;s<i.length;s++){var o=i[s];r(o.value,{componentStack:o.stack})}}finally{me.T=t,He.p=a}}al&3&&yh(),sa(e),a=e.pendingLanes,n&4194090&&a&42?e===Nv?cc++:(cc=0,Nv=e):cc=0,dc(0)}}function TO(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Yu(t)))}function yh(e){return xO(),_O(),EO(),wO()}function wO(){if(Jt!==5)return!1;var e=Cr,t=kv;kv=0;var n=Wg(al),i=me.T,a=He.p;try{He.p=32>n?32:n,me.T=null,n=Ov,Ov=null;var r=Cr,s=al;if(Jt=0,il=Cr=null,al=0,Ve&6)throw Error(q(331));var o=Ve;if(Ve|=4,oO(r.current),aO(r,r.current,s,n),Ve=o,dc(0,!1),qn&&typeof qn.onPostCommitFiberRoot=="function")try{qn.onPostCommitFiberRoot(Au,r)}catch{}return!0}finally{He.p=a,me.T=i,TO(e,t)}}function SO(e,t,n){t=pi(n,t),t=lv(e.stateNode,t,2),e=br(e,t,2),e!==null&&(ku(e,2),sa(e))}function We(e,t,n){if(e.tag===3)SO(e,e,n);else for(;t!==null;){if(t.tag===3){SO(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Ar===null||!Ar.has(i))){e=pi(n,e),n=O6(2),i=br(t,n,2),i!==null&&(N6(n,i,t,e),ku(i,2),sa(i));break}}t=t.return}}function Lv(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new yW;var a=new Set;i.set(t,a)}else a=i.get(t),a===void 0&&(a=new Set,i.set(t,a));a.has(n)||(wv=!0,a.add(n),e=wW.bind(null,e,t,n),t.then(e,e))}function wW(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,tt===e&&(Ie&n)===n&&(yt===4||yt===3&&(Ie&62914560)===Ie&&300>ta()-Cv?!(Ve&2)&&rl(e,0):Sv|=n,nl===Ie&&(nl=0)),sa(e)}function AO(e,t){t===0&&(t=Ek()),e=Ho(e,t),e!==null&&(ku(e,t),sa(e))}function SW(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),AO(e,n)}function AW(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(q(314))}i!==null&&i.delete(t),AO(e,n)}function CW(e,t){return $g(e,t)}var xh=null,ol=null,Iv=!1,_h=!1,Pv=!1,Es=0;function sa(e){e!==ol&&e.next===null&&(ol===null?xh=ol=e:ol=ol.next=e),_h=!0,Iv||(Iv=!0,OW())}function dc(e,t){if(!Pv&&_h){Pv=!0;do for(var n=!1,i=xh;i!==null;){if(e!==0){var a=i.pendingLanes;if(a===0)var r=0;else{var s=i.suspendedLanes,o=i.pingedLanes;r=(1<<31-Gn(42|e)+1)-1,r&=a&~(s&~o),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,NO(i,r))}else r=Ie,r=Cf(i,i===tt?r:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),!(r&3)||Cu(i,r)||(n=!0,NO(i,r));i=i.next}while(n);Pv=!1}}function kW(){CO()}function CO(){_h=Iv=!1;var e=0;Es!==0&&(BW()&&(e=Es),Es=0);for(var t=ta(),n=null,i=xh;i!==null;){var a=i.next,r=kO(i,t);r===0?(i.next=null,n===null?xh=a:n.next=a,a===null&&(ol=n)):(n=i,(e!==0||r&3)&&(_h=!0)),i=a}dc(e)}function kO(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var s=31-Gn(r),o=1<<s,l=a[s];l===-1?(!(o&n)||o&i)&&(a[s]=eQ(o,t)):l<=t&&(e.expiredLanes|=o),r&=~o}if(t=tt,n=Ie,n=Cf(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Xg(i),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Cu(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Xg(i),Wg(n)){case 2:case 8:n=yk;break;case 32:n=wf;break;case 268435456:n=xk;break;default:n=wf}return i=OO.bind(null,e),n=$g(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Xg(i),e.callbackPriority=2,e.callbackNode=null,2}function OO(e,t){if(Jt!==0&&Jt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(yh()&&e.callbackNode!==n)return null;var i=Ie;return i=Cf(e,e===tt?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(dO(e,i,t),kO(e,ta()),e.callbackNode!=null&&e.callbackNode===n?OO.bind(null,e):null)}function NO(e,t){if(yh())return null;dO(e,t,!0)}function OW(){zW(function(){Ve&6?$g(vk,kW):CO()})}function Bv(){return Es===0&&(Es=_k()),Es}function RO(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Df(""+e)}function DO(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function NW(e,t,n,i,a){if(t==="submit"&&n&&n.stateNode===a){var r=RO((a[kn]||null).action),s=i.submitter;s&&(t=(t=s[kn]||null)?RO(t.formAction):s.getAttribute("formAction"),t!==null&&(r=t,s=null));var o=new Pf("action","action",null,i,a);e.push({event:o,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Es!==0){var l=s?DO(a,s):new FormData(a);iv(n,{pending:!0,data:l,method:a.method,action:r},null,l)}}else typeof r=="function"&&(o.preventDefault(),l=s?DO(a,s):new FormData(a),iv(n,{pending:!0,data:l,method:a.method,action:r},r,l))},currentTarget:a}]})}}for(var jv=0;jv<Eb.length;jv++){var zv=Eb[jv],RW=zv.toLowerCase(),DW=zv[0].toUpperCase()+zv.slice(1);Ri(RW,"on"+DW)}Ri(d3,"onAnimationEnd"),Ri(f3,"onAnimationIteration"),Ri(h3,"onAnimationStart"),Ri("dblclick","onDoubleClick"),Ri("focusin","onFocus"),Ri("focusout","onBlur"),Ri(KQ,"onTransitionRun"),Ri(QQ,"onTransitionStart"),Ri(WQ,"onTransitionCancel"),Ri(p3,"onTransitionEnd"),Ro("onMouseEnter",["mouseout","mouseover"]),Ro("onMouseLeave",["mouseout","mouseover"]),Ro("onPointerEnter",["pointerout","pointerover"]),Ro("onPointerLeave",["pointerout","pointerover"]),ss("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ss("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ss("onBeforeInput",["compositionend","keypress","textInput","paste"]),ss("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ss("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ss("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),MW=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fc));function MO(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],a=i.event;i=i.listeners;e:{var r=void 0;if(t)for(var s=i.length-1;0<=s;s--){var o=i[s],l=o.instance,u=o.currentTarget;if(o=o.listener,l!==r&&a.isPropagationStopped())break e;r=o,a.currentTarget=u;try{r(a)}catch(c){lh(c)}a.currentTarget=null,r=l}else for(s=0;s<i.length;s++){if(o=i[s],l=o.instance,u=o.currentTarget,o=o.listener,l!==r&&a.isPropagationStopped())break e;r=o,a.currentTarget=u;try{r(a)}catch(c){lh(c)}a.currentTarget=null,r=l}}}}function De(e,t){var n=t[Zg];n===void 0&&(n=t[Zg]=new Set);var i=e+"__bubble";n.has(i)||(LO(t,e,2,!1),n.add(i))}function Uv(e,t,n){var i=0;t&&(i|=4),LO(n,e,i,t)}var Eh="_reactListening"+Math.random().toString(36).slice(2);function Hv(e){if(!e[Eh]){e[Eh]=!0,Ck.forEach(function(n){n!=="selectionchange"&&(MW.has(n)||Uv(n,!1,e),Uv(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Eh]||(t[Eh]=!0,Uv("selectionchange",!1,t))}}function LO(e,t,n,i){switch(aN(t)){case 2:var a=sZ;break;case 8:a=oZ;break;default:a=t1}n=a.bind(null,t,n,e),a=void 0,!ub||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),i?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Fv(e,t,n,i,a){var r=i;if(!(t&1)&&!(t&2)&&i!==null)e:for(;;){if(i===null)return;var s=i.tag;if(s===3||s===4){var o=i.stateNode.containerInfo;if(o===a)break;if(s===4)for(s=i.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===a)return;s=s.return}for(;o!==null;){if(s=ko(o),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){i=r=s;continue e}o=o.parentNode}}i=i.return}Hk(function(){var u=r,c=ob(n),d=[];e:{var f=m3.get(e);if(f!==void 0){var h=Pf,g=e;switch(e){case"keypress":if(Lf(n)===0)break e;case"keydown":case"keyup":h=CQ;break;case"focusin":g="focus",h=hb;break;case"focusout":g="blur",h=hb;break;case"beforeblur":case"afterblur":h=hb;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Yk;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=mQ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=NQ;break;case d3:case f3:case h3:h=vQ;break;case p3:h=DQ;break;case"scroll":case"scrollend":h=hQ;break;case"wheel":h=LQ;break;case"copy":case"cut":case"paste":h=xQ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Gk;break;case"toggle":case"beforetoggle":h=PQ}var y=(t&4)!==0,E=!y&&(e==="scroll"||e==="scrollend"),m=y?f!==null?f+"Capture":null:f;y=[];for(var v=u,x;v!==null;){var T=v;if(x=T.stateNode,T=T.tag,T!==5&&T!==26&&T!==27||x===null||m===null||(T=Ru(v,m),T!=null&&y.push(hc(v,T,x))),E)break;v=v.return}0<y.length&&(f=new h(f,g,null,n,c),d.push({event:f,listeners:y}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&n!==sb&&(g=n.relatedTarget||n.fromElement)&&(ko(g)||g[Co]))break e;if((h||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,h?(g=n.relatedTarget||n.toElement,h=u,g=g?ko(g):null,g!==null&&(E=_u(g),y=g.tag,g!==E||y!==5&&y!==27&&y!==6)&&(g=null)):(h=null,g=u),h!==g)){if(y=Yk,T="onMouseLeave",m="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(y=Gk,T="onPointerLeave",m="onPointerEnter",v="pointer"),E=h==null?f:Nu(h),x=g==null?f:Nu(g),f=new y(T,v+"leave",h,n,c),f.target=E,f.relatedTarget=x,T=null,ko(c)===u&&(y=new y(m,v+"enter",g,n,c),y.target=x,y.relatedTarget=E,T=y),E=T,h&&g)t:{for(y=h,m=g,v=0,x=y;x;x=ll(x))v++;for(x=0,T=m;T;T=ll(T))x++;for(;0<v-x;)y=ll(y),v--;for(;0<x-v;)m=ll(m),x--;for(;v--;){if(y===m||m!==null&&y===m.alternate)break t;y=ll(y),m=ll(m)}y=null}else y=null;h!==null&&IO(d,f,h,y,!1),g!==null&&E!==null&&IO(d,E,g,y,!0)}}e:{if(f=u?Nu(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var S=e3;else if(Zk(f))if(t3)S=GQ;else{S=YQ;var A=VQ}else h=f.nodeName,!h||h.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?u&&rb(u.elementType)&&(S=e3):S=qQ;if(S&&(S=S(e,u))){Jk(d,S,n,c);break e}A&&A(e,f,u),e==="focusout"&&u&&f.type==="number"&&u.memoizedProps.value!=null&&ab(f,"number",f.value)}switch(A=u?Nu(u):window,e){case"focusin":(Zk(A)||A.contentEditable==="true")&&(jo=A,yb=u,zu=null);break;case"focusout":zu=yb=jo=null;break;case"mousedown":xb=!0;break;case"contextmenu":case"mouseup":case"dragend":xb=!1,u3(d,n,c);break;case"selectionchange":if(XQ)break;case"keydown":case"keyup":u3(d,n,c)}var D;if(mb)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else Bo?Qk(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&($k&&n.locale!=="ko"&&(Bo||L!=="onCompositionStart"?L==="onCompositionEnd"&&Bo&&(D=Fk()):(hr=c,cb="value"in hr?hr.value:hr.textContent,Bo=!0)),A=Th(u,L),0<A.length&&(L=new qk(L,e,null,n,c),d.push({event:L,listeners:A}),D?L.data=D:(D=Wk(n),D!==null&&(L.data=D)))),(D=jQ?zQ(e,n):UQ(e,n))&&(L=Th(u,"onBeforeInput"),0<L.length&&(A=new qk("onBeforeInput","beforeinput",null,n,c),d.push({event:A,listeners:L}),A.data=D)),NW(d,e,u,n,c)}MO(d,t)})}function hc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Th(e,t){for(var n=t+"Capture",i=[];e!==null;){var a=e,r=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||r===null||(a=Ru(e,n),a!=null&&i.unshift(hc(e,a,r)),a=Ru(e,t),a!=null&&i.push(hc(e,a,r))),e.tag===3)return i;e=e.return}return[]}function ll(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function IO(e,t,n,i,a){for(var r=t._reactName,s=[];n!==null&&n!==i;){var o=n,l=o.alternate,u=o.stateNode;if(o=o.tag,l!==null&&l===i)break;o!==5&&o!==26&&o!==27||u===null||(l=u,a?(u=Ru(n,r),u!=null&&s.unshift(hc(n,u,l))):a||(u=Ru(n,r),u!=null&&s.push(hc(n,u,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var LW=/\r\n?/g,IW=/\u0000|\uFFFD/g;function PO(e){return(typeof e=="string"?e:""+e).replace(LW,`
380
- `).replace(IW,"")}function BO(e,t){return t=PO(t),PO(e)===t}function wh(){}function Ge(e,t,n,i,a,r){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Lo(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Lo(e,""+i);break;case"className":Of(e,"class",i);break;case"tabIndex":Of(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Of(e,n,i);break;case"style":zk(e,i,r);break;case"data":if(t!=="object"){Of(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Df(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(n==="formAction"?(t!=="input"&&Ge(e,t,"name",a.name,a,null),Ge(e,t,"formEncType",a.formEncType,a,null),Ge(e,t,"formMethod",a.formMethod,a,null),Ge(e,t,"formTarget",a.formTarget,a,null)):(Ge(e,t,"encType",a.encType,a,null),Ge(e,t,"method",a.method,a,null),Ge(e,t,"target",a.target,a,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Df(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=wh);break;case"onScroll":i!=null&&De("scroll",e);break;case"onScrollEnd":i!=null&&De("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(q(61));if(n=i.__html,n!=null){if(a.children!=null)throw Error(q(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=Df(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":De("beforetoggle",e),De("toggle",e),kf(e,"popover",i);break;case"xlinkActuate":_a(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":_a(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":_a(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":_a(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":_a(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":_a(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":_a(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":_a(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":_a(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":kf(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=dQ.get(n)||n,kf(e,n,i))}}function Vv(e,t,n,i,a,r){switch(n){case"style":zk(e,i,r);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(q(61));if(n=i.__html,n!=null){if(a.children!=null)throw Error(q(60));e.innerHTML=n}}break;case"children":typeof i=="string"?Lo(e,i):(typeof i=="number"||typeof i=="bigint")&&Lo(e,""+i);break;case"onScroll":i!=null&&De("scroll",e);break;case"onScrollEnd":i!=null&&De("scrollend",e);break;case"onClick":i!=null&&(e.onclick=wh);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!kk.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),r=e[kn]||null,r=r!=null?r[n]:null,typeof r=="function"&&e.removeEventListener(t,r,a),typeof i=="function")){typeof r!="function"&&r!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,a);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):kf(e,n,i)}}}function en(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",e),De("load",e);var i=!1,a=!1,r;for(r in n)if(n.hasOwnProperty(r)){var s=n[r];if(s!=null)switch(r){case"src":i=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(q(137,t));default:Ge(e,t,r,s,n,null)}}a&&Ge(e,t,"srcSet",n.srcSet,n,null),i&&Ge(e,t,"src",n.src,n,null);return;case"input":De("invalid",e);var o=r=s=a=null,l=null,u=null;for(i in n)if(n.hasOwnProperty(i)){var c=n[i];if(c!=null)switch(i){case"name":a=c;break;case"type":s=c;break;case"checked":l=c;break;case"defaultChecked":u=c;break;case"value":r=c;break;case"defaultValue":o=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(q(137,t));break;default:Ge(e,t,i,c,n,null)}}Ik(e,r,o,l,u,s,a,!1),Nf(e);return;case"select":De("invalid",e),i=s=r=null;for(a in n)if(n.hasOwnProperty(a)&&(o=n[a],o!=null))switch(a){case"value":r=o;break;case"defaultValue":s=o;break;case"multiple":i=o;default:Ge(e,t,a,o,n,null)}t=r,n=s,e.multiple=!!i,t!=null?Mo(e,!!i,t,!1):n!=null&&Mo(e,!!i,n,!0);return;case"textarea":De("invalid",e),r=a=i=null;for(s in n)if(n.hasOwnProperty(s)&&(o=n[s],o!=null))switch(s){case"value":i=o;break;case"defaultValue":a=o;break;case"children":r=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(q(91));break;default:Ge(e,t,s,o,n,null)}Bk(e,i,a,r),Nf(e);return;case"option":for(l in n)if(n.hasOwnProperty(l)&&(i=n[l],i!=null))switch(l){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ge(e,t,l,i,n,null)}return;case"dialog":De("beforetoggle",e),De("toggle",e),De("cancel",e),De("close",e);break;case"iframe":case"object":De("load",e);break;case"video":case"audio":for(i=0;i<fc.length;i++)De(fc[i],e);break;case"image":De("error",e),De("load",e);break;case"details":De("toggle",e);break;case"embed":case"source":case"link":De("error",e),De("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(i=n[u],i!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(q(137,t));default:Ge(e,t,u,i,n,null)}return;default:if(rb(t)){for(c in n)n.hasOwnProperty(c)&&(i=n[c],i!==void 0&&Vv(e,t,c,i,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(i=n[o],i!=null&&Ge(e,t,o,i,n,null))}function PW(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,r=null,s=null,o=null,l=null,u=null,c=null;for(h in n){var d=n[h];if(n.hasOwnProperty(h)&&d!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":l=d;default:i.hasOwnProperty(h)||Ge(e,t,h,null,i,d)}}for(var f in i){var h=i[f];if(d=n[f],i.hasOwnProperty(f)&&(h!=null||d!=null))switch(f){case"type":r=h;break;case"name":a=h;break;case"checked":u=h;break;case"defaultChecked":c=h;break;case"value":s=h;break;case"defaultValue":o=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(q(137,t));break;default:h!==d&&Ge(e,t,f,h,i,d)}}ib(e,s,o,l,u,c,r,a);return;case"select":h=s=o=f=null;for(r in n)if(l=n[r],n.hasOwnProperty(r)&&l!=null)switch(r){case"value":break;case"multiple":h=l;default:i.hasOwnProperty(r)||Ge(e,t,r,null,i,l)}for(a in i)if(r=i[a],l=n[a],i.hasOwnProperty(a)&&(r!=null||l!=null))switch(a){case"value":f=r;break;case"defaultValue":o=r;break;case"multiple":s=r;default:r!==l&&Ge(e,t,a,r,i,l)}t=o,n=s,i=h,f!=null?Mo(e,!!n,f,!1):!!i!=!!n&&(t!=null?Mo(e,!!n,t,!0):Mo(e,!!n,n?[]:"",!1));return;case"textarea":h=f=null;for(o in n)if(a=n[o],n.hasOwnProperty(o)&&a!=null&&!i.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Ge(e,t,o,null,i,a)}for(s in i)if(a=i[s],r=n[s],i.hasOwnProperty(s)&&(a!=null||r!=null))switch(s){case"value":f=a;break;case"defaultValue":h=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(q(91));break;default:a!==r&&Ge(e,t,s,a,i,r)}Pk(e,f,h);return;case"option":for(var g in n)if(f=n[g],n.hasOwnProperty(g)&&f!=null&&!i.hasOwnProperty(g))switch(g){case"selected":e.selected=!1;break;default:Ge(e,t,g,null,i,f)}for(l in i)if(f=i[l],h=n[l],i.hasOwnProperty(l)&&f!==h&&(f!=null||h!=null))switch(l){case"selected":e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:Ge(e,t,l,f,i,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var y in n)f=n[y],n.hasOwnProperty(y)&&f!=null&&!i.hasOwnProperty(y)&&Ge(e,t,y,null,i,f);for(u in i)if(f=i[u],h=n[u],i.hasOwnProperty(u)&&f!==h&&(f!=null||h!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(q(137,t));break;default:Ge(e,t,u,f,i,h)}return;default:if(rb(t)){for(var E in n)f=n[E],n.hasOwnProperty(E)&&f!==void 0&&!i.hasOwnProperty(E)&&Vv(e,t,E,void 0,i,f);for(c in i)f=i[c],h=n[c],!i.hasOwnProperty(c)||f===h||f===void 0&&h===void 0||Vv(e,t,c,f,i,h);return}}for(var m in n)f=n[m],n.hasOwnProperty(m)&&f!=null&&!i.hasOwnProperty(m)&&Ge(e,t,m,null,i,f);for(d in i)f=i[d],h=n[d],!i.hasOwnProperty(d)||f===h||f==null&&h==null||Ge(e,t,d,f,i,h)}var Yv=null,qv=null;function Sh(e){return e.nodeType===9?e:e.ownerDocument}function jO(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function zO(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Gv(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var $v=null;function BW(){var e=window.event;return e&&e.type==="popstate"?e===$v?!1:($v=e,!0):($v=null,!1)}var UO=typeof setTimeout=="function"?setTimeout:void 0,jW=typeof clearTimeout=="function"?clearTimeout:void 0,HO=typeof Promise=="function"?Promise:void 0,zW=typeof queueMicrotask=="function"?queueMicrotask:typeof HO<"u"?function(e){return HO.resolve(null).then(e).catch(UW)}:UO;function UW(e){setTimeout(function(){throw e})}function Or(e){return e==="head"}function FO(e,t){var n=t,i=0,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(0<i&&8>i){n=i;var s=e.ownerDocument;if(n&1&&pc(s.documentElement),n&2&&pc(s.body),n&4)for(n=s.head,pc(n),s=n.firstChild;s;){var o=s.nextSibling,l=s.nodeName;s[Ou]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=o}}if(a===0){e.removeChild(r),Ec(t);return}a--}else n==="$"||n==="$?"||n==="$!"?a++:i=n.charCodeAt(0)-48;else i=0;n=r}while(n);Ec(t)}function Xv(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Xv(n),Jg(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function HW(e,t,n,i){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Ou])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Mi(e.nextSibling),e===null)break}return null}function FW(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Mi(e.nextSibling),e===null))return null;return e}function Kv(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function VW(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Mi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var Qv=null;function VO(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function YO(e,t,n){switch(t=Sh(n),e){case"html":if(e=t.documentElement,!e)throw Error(q(452));return e;case"head":if(e=t.head,!e)throw Error(q(453));return e;case"body":if(e=t.body,!e)throw Error(q(454));return e;default:throw Error(q(451))}}function pc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Jg(e)}var xi=new Map,qO=new Set;function Ah(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ia=He.d;He.d={f:YW,r:qW,D:GW,C:$W,L:XW,m:KW,X:WW,S:QW,M:ZW};function YW(){var e=Ia.f(),t=bh();return e||t}function qW(e){var t=Oo(e);t!==null&&t.tag===5&&t.type==="form"?d6(t):Ia.r(e)}var ul=typeof document>"u"?null:document;function GO(e,t,n){var i=ul;if(i&&typeof t=="string"&&t){var a=hi(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),qO.has(a)||(qO.add(a),e={rel:e,crossOrigin:n,href:t},i.querySelector(a)===null&&(t=i.createElement("link"),en(t,"link",e),Ft(t),i.head.appendChild(t)))}}function GW(e){Ia.D(e),GO("dns-prefetch",e,null)}function $W(e,t){Ia.C(e,t),GO("preconnect",e,t)}function XW(e,t,n){Ia.L(e,t,n);var i=ul;if(i&&e&&t){var a='link[rel="preload"][as="'+hi(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+hi(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+hi(n.imageSizes)+'"]')):a+='[href="'+hi(e)+'"]';var r=a;switch(t){case"style":r=cl(e);break;case"script":r=dl(e)}xi.has(r)||(e=rt({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),xi.set(r,e),i.querySelector(a)!==null||t==="style"&&i.querySelector(mc(r))||t==="script"&&i.querySelector(gc(r))||(t=i.createElement("link"),en(t,"link",e),Ft(t),i.head.appendChild(t)))}}function KW(e,t){Ia.m(e,t);var n=ul;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+hi(i)+'"][href="'+hi(e)+'"]',r=a;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=dl(e)}if(!xi.has(r)&&(e=rt({rel:"modulepreload",href:e},t),xi.set(r,e),n.querySelector(a)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(gc(r)))return}i=n.createElement("link"),en(i,"link",e),Ft(i),n.head.appendChild(i)}}}function QW(e,t,n){Ia.S(e,t,n);var i=ul;if(i&&e){var a=No(i).hoistableStyles,r=cl(e);t=t||"default";var s=a.get(r);if(!s){var o={loading:0,preload:null};if(s=i.querySelector(mc(r)))o.loading=5;else{e=rt({rel:"stylesheet",href:e,"data-precedence":t},n),(n=xi.get(r))&&Wv(e,n);var l=s=i.createElement("link");Ft(l),en(l,"link",e),l._p=new Promise(function(u,c){l.onload=u,l.onerror=c}),l.addEventListener("load",function(){o.loading|=1}),l.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Ch(s,t,i)}s={type:"stylesheet",instance:s,count:1,state:o},a.set(r,s)}}}function WW(e,t){Ia.X(e,t);var n=ul;if(n&&e){var i=No(n).hoistableScripts,a=dl(e),r=i.get(a);r||(r=n.querySelector(gc(a)),r||(e=rt({src:e,async:!0},t),(t=xi.get(a))&&Zv(e,t),r=n.createElement("script"),Ft(r),en(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},i.set(a,r))}}function ZW(e,t){Ia.M(e,t);var n=ul;if(n&&e){var i=No(n).hoistableScripts,a=dl(e),r=i.get(a);r||(r=n.querySelector(gc(a)),r||(e=rt({src:e,async:!0,type:"module"},t),(t=xi.get(a))&&Zv(e,t),r=n.createElement("script"),Ft(r),en(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},i.set(a,r))}}function $O(e,t,n,i){var a=(a=cr.current)?Ah(a):null;if(!a)throw Error(q(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=cl(n.href),n=No(a).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=cl(n.href);var r=No(a).hoistableStyles,s=r.get(e);if(s||(a=a.ownerDocument||a,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,s),(r=a.querySelector(mc(e)))&&!r._p&&(s.instance=r,s.state.loading=5),xi.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},xi.set(e,n),r||JW(a,e,n,s.state))),t&&i===null)throw Error(q(528,""));return s}if(t&&i!==null)throw Error(q(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=dl(n),n=No(a).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(q(444,e))}}function cl(e){return'href="'+hi(e)+'"'}function mc(e){return'link[rel="stylesheet"]['+e+"]"}function XO(e){return rt({},e,{"data-precedence":e.precedence,precedence:null})}function JW(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),en(t,"link",n),Ft(t),e.head.appendChild(t))}function dl(e){return'[src="'+hi(e)+'"]'}function gc(e){return"script[async]"+e}function KO(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+hi(n.href)+'"]');if(i)return t.instance=i,Ft(i),i;var a=rt({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Ft(i),en(i,"style",a),Ch(i,n.precedence,e),t.instance=i;case"stylesheet":a=cl(n.href);var r=e.querySelector(mc(a));if(r)return t.state.loading|=4,t.instance=r,Ft(r),r;i=XO(n),(a=xi.get(a))&&Wv(i,a),r=(e.ownerDocument||e).createElement("link"),Ft(r);var s=r;return s._p=new Promise(function(o,l){s.onload=o,s.onerror=l}),en(r,"link",i),t.state.loading|=4,Ch(r,n.precedence,e),t.instance=r;case"script":return r=dl(n.src),(a=e.querySelector(gc(r)))?(t.instance=a,Ft(a),a):(i=n,(a=xi.get(r))&&(i=rt({},n),Zv(i,a)),e=e.ownerDocument||e,a=e.createElement("script"),Ft(a),en(a,"link",i),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(q(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(i=t.instance,t.state.loading|=4,Ch(i,n.precedence,e));return t.instance}function Ch(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=i.length?i[i.length-1]:null,r=a,s=0;s<i.length;s++){var o=i[s];if(o.dataset.precedence===t)r=o;else if(r!==a)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Wv(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Zv(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var kh=null;function QO(e,t,n){if(kh===null){var i=new Map,a=kh=new Map;a.set(n,i)}else a=kh,i=a.get(n),i||(i=new Map,a.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var r=n[a];if(!(r[Ou]||r[cn]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var s=r.getAttribute(t)||"";s=e+s;var o=i.get(s);o?o.push(r):i.set(s,[r])}}return i}function WO(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function eZ(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function ZO(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var bc=null;function tZ(){}function nZ(e,t,n){if(bc===null)throw Error(q(475));var i=bc;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var a=cl(n.href),r=e.querySelector(mc(a));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(i.count++,i=Oh.bind(i),e.then(i,i)),t.state.loading|=4,t.instance=r,Ft(r);return}r=e.ownerDocument||e,n=XO(n),(a=xi.get(a))&&Wv(n,a),r=r.createElement("link"),Ft(r);var s=r;s._p=new Promise(function(o,l){s.onload=o,s.onerror=l}),en(r,"link",n),t.instance=r}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(i.count++,t=Oh.bind(i),e.addEventListener("load",t),e.addEventListener("error",t))}}function iZ(){if(bc===null)throw Error(q(475));var e=bc;return e.stylesheets&&e.count===0&&Jv(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Jv(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function Oh(){if(this.count--,this.count===0){if(this.stylesheets)Jv(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Nh=null;function Jv(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Nh=new Map,t.forEach(aZ,e),Nh=null,Oh.call(e))}function aZ(e,t){if(!(t.state.loading&4)){var n=Nh.get(e);if(n)var i=n.get(null);else{n=new Map,Nh.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<a.length;r++){var s=a[r];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(n.set(s.dataset.precedence,s),i=s)}i&&n.set(null,i)}a=t.instance,s=a.getAttribute("data-precedence"),r=n.get(s)||i,r===i&&n.set(null,a),n.set(s,a),this.count++,i=Oh.bind(this),a.addEventListener("load",i),a.addEventListener("error",i),r?r.parentNode.insertBefore(a,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var vc={$$typeof:xa,Provider:null,Consumer:null,_currentValue:as,_currentValue2:as,_threadCount:0};function rZ(e,t,n,i,a,r,s,o){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Kg(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kg(0),this.hiddenUpdates=Kg(null),this.identifierPrefix=i,this.onUncaughtError=a,this.onCaughtError=r,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function JO(e,t,n,i,a,r,s,o,l,u,c,d){return e=new rZ(e,t,n,s,o,l,u,d),t=1,r===!0&&(t|=24),r=Xn(3,null,null,t),e.current=r,r.stateNode=e,t=Lb(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:i,isDehydrated:n,cache:t},jb(r),e}function eN(e){return e?(e=Fo,e):Fo}function tN(e,t,n,i,a,r){a=eN(a),i.context===null?i.context=a:i.pendingContext=a,i=gr(t),i.payload={element:n},r=r===void 0?null:r,r!==null&&(i.callback=r),n=br(e,i,t),n!==null&&(Jn(n,e,t),Xu(n,e,t))}function nN(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function e1(e,t){nN(e,t),(e=e.alternate)&&nN(e,t)}function iN(e){if(e.tag===13){var t=Ho(e,67108864);t!==null&&Jn(t,e,67108864),e1(e,67108864)}}var Rh=!0;function sZ(e,t,n,i){var a=me.T;me.T=null;var r=He.p;try{He.p=2,t1(e,t,n,i)}finally{He.p=r,me.T=a}}function oZ(e,t,n,i){var a=me.T;me.T=null;var r=He.p;try{He.p=8,t1(e,t,n,i)}finally{He.p=r,me.T=a}}function t1(e,t,n,i){if(Rh){var a=n1(i);if(a===null)Fv(e,t,i,Dh,n),rN(e,i);else if(uZ(a,e,t,n,i))i.stopPropagation();else if(rN(e,i),t&4&&-1<lZ.indexOf(e)){for(;a!==null;){var r=Oo(a);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var s=rs(r.pendingLanes);if(s!==0){var o=r;for(o.pendingLanes|=2,o.entangledLanes|=2;s;){var l=1<<31-Gn(s);o.entanglements[1]|=l,s&=~l}sa(r),!(Ve&6)&&(mh=ta()+500,dc(0))}}break;case 13:o=Ho(r,2),o!==null&&Jn(o,r,2),bh(),e1(r,2)}if(r=n1(i),r===null&&Fv(e,t,i,Dh,n),r===a)break;a=r}a!==null&&i.stopPropagation()}else Fv(e,t,i,null,n)}}function n1(e){return e=ob(e),i1(e)}var Dh=null;function i1(e){if(Dh=null,e=ko(e),e!==null){var t=_u(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=fk(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Dh=e,null}function aN(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch($K()){case vk:return 2;case yk:return 8;case wf:case XK:return 32;case xk:return 268435456;default:return 32}default:return 32}}var a1=!1,Nr=null,Rr=null,Dr=null,yc=new Map,xc=new Map,Mr=[],lZ="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function rN(e,t){switch(e){case"focusin":case"focusout":Nr=null;break;case"dragenter":case"dragleave":Rr=null;break;case"mouseover":case"mouseout":Dr=null;break;case"pointerover":case"pointerout":yc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xc.delete(t.pointerId)}}function _c(e,t,n,i,a,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:r,targetContainers:[a]},t!==null&&(t=Oo(t),t!==null&&iN(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function uZ(e,t,n,i,a){switch(t){case"focusin":return Nr=_c(Nr,e,t,n,i,a),!0;case"dragenter":return Rr=_c(Rr,e,t,n,i,a),!0;case"mouseover":return Dr=_c(Dr,e,t,n,i,a),!0;case"pointerover":var r=a.pointerId;return yc.set(r,_c(yc.get(r)||null,e,t,n,i,a)),!0;case"gotpointercapture":return r=a.pointerId,xc.set(r,_c(xc.get(r)||null,e,t,n,i,a)),!0}return!1}function sN(e){var t=ko(e.target);if(t!==null){var n=_u(t);if(n!==null){if(t=n.tag,t===13){if(t=fk(n),t!==null){e.blockedOn=t,nQ(e.priority,function(){if(n.tag===13){var i=Zn();i=Qg(i);var a=Ho(n,i);a!==null&&Jn(a,n,i),e1(n,i)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Mh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=n1(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);sb=i,n.target.dispatchEvent(i),sb=null}else return t=Oo(n),t!==null&&iN(t),e.blockedOn=n,!1;t.shift()}return!0}function oN(e,t,n){Mh(e)&&n.delete(t)}function cZ(){a1=!1,Nr!==null&&Mh(Nr)&&(Nr=null),Rr!==null&&Mh(Rr)&&(Rr=null),Dr!==null&&Mh(Dr)&&(Dr=null),yc.forEach(oN),xc.forEach(oN)}function Lh(e,t){e.blockedOn===t&&(e.blockedOn=null,a1||(a1=!0,It.unstable_scheduleCallback(It.unstable_NormalPriority,cZ)))}var Ih=null;function lN(e){Ih!==e&&(Ih=e,It.unstable_scheduleCallback(It.unstable_NormalPriority,function(){Ih===e&&(Ih=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],a=e[t+2];if(typeof i!="function"){if(i1(i||n)===null)continue;break}var r=Oo(n);r!==null&&(e.splice(t,3),t-=3,iv(r,{pending:!0,data:a,method:n.method,action:i},i,a))}}))}function Ec(e){function t(l){return Lh(l,e)}Nr!==null&&Lh(Nr,e),Rr!==null&&Lh(Rr,e),Dr!==null&&Lh(Dr,e),yc.forEach(t),xc.forEach(t);for(var n=0;n<Mr.length;n++){var i=Mr[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Mr.length&&(n=Mr[0],n.blockedOn===null);)sN(n),n.blockedOn===null&&Mr.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var a=n[i],r=n[i+1],s=a[kn]||null;if(typeof r=="function")s||lN(n);else if(s){var o=null;if(r&&r.hasAttribute("formAction")){if(a=r,s=r[kn]||null)o=s.formAction;else if(i1(a)!==null)continue}else o=s.action;typeof o=="function"?n[i+1]=o:(n.splice(i,3),i-=3),lN(n)}}}function r1(e){this._internalRoot=e}Ph.prototype.render=r1.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(q(409));var n=t.current,i=Zn();tN(n,i,e,t,null,null)},Ph.prototype.unmount=r1.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;tN(e.current,2,null,e,null,null),bh(),t[Co]=null}};function Ph(e){this._internalRoot=e}Ph.prototype.unstable_scheduleHydration=function(e){if(e){var t=Sk();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mr.length&&t!==0&&t<Mr[n].priority;n++);Mr.splice(n,0,e),n===0&&sN(e)}};var uN=ck.version;if(uN!=="19.1.1")throw Error(q(527,uN,"19.1.1"));He.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(q(188)):(e=Object.keys(e).join(","),Error(q(268,e)));return e=UK(t),e=e!==null?pk(e):null,e=e===null?null:e.stateNode,e};var dZ={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:me,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Bh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bh.isDisabled&&Bh.supportsFiber)try{Au=Bh.inject(dZ),qn=Bh}catch{}}yf.createRoot=function(e,t){if(!dk(e))throw Error(q(299));var n=!1,i="",a=S6,r=A6,s=C6,o=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(o=t.unstable_transitionCallbacks)),t=JO(e,1,!1,null,null,n,i,a,r,s,o,null),e[Co]=t.current,Hv(e),new r1(t)},yf.hydrateRoot=function(e,t,n){if(!dk(e))throw Error(q(299));var i=!1,a="",r=S6,s=A6,o=C6,l=null,u=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(s=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(l=n.unstable_transitionCallbacks),n.formState!==void 0&&(u=n.formState)),t=JO(e,1,!0,t,n??null,i,a,r,s,o,l,u),t.context=eN(null),n=t.current,i=Zn(),i=Qg(i),a=gr(i),a.callback=null,br(n,a,i),n=i,t.current.lanes=n,ku(t,n),sa(t),e[Co]=t.current,Hv(e),new Ph(t)},yf.version="19.1.1";function cN(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cN)}catch(e){console.error(e)}}cN(),ok.exports=yf;var fZ=ok.exports;const hZ="4.0.61",pZ="opencx-root";function mZ(e){gZ(pZ,b.jsx(sk,{options:e}))}window.initOpenScript=mZ,window.openCXWidgetVersion=hZ;function gZ(e,t){let n=document.getElementById(e);return n||(n=document.createElement("div"),n.id=e,document.body.appendChild(n)),fZ.createRoot(n).render(t)}})();
381
- //# sourceMappingURL=script.js.map
1
+ (function(){"use strict";const d=window,i=document.currentScript;function r(){if(!(i!=null&&i.src))return null;try{return new URL("widget.js",i.src).href}catch{return null}}function l(e,t){for(const n of e.queue.splice(0))t(n)}window.openCXWidgetVersion="5.0.0-beta.0";let o=d.__openCXWidgetLoaderState__;const u=window.initOpenScript;if(typeof u=="function"&&(!o||u!==o.stub))o&&l(o,u);else{if(!o){const t=[];o={queue:t,stub:s=>t.push(s),moduleRequested:!1},d.__openCXWidgetLoaderState__=o}const e=o;if(window.initOpenScript!==e.stub&&(window.initOpenScript=e.stub),!e.moduleRequested){const t=r();if(!t)console.error("[opencx] could not resolve the widget module URL from this script tag; the widget will not load");else{e.moduleRequested=!0;const n=document.createElement("script");n.type="module",n.src=t;const s=i==null?void 0:i.nonce;s&&(n.nonce=s),n.onload=()=>{const c=window.initOpenScript;if(c===e.stub||typeof c!="function"){console.error("[opencx] the widget module loaded but did not install initOpenScript; check that",t,"is the widget build published beside script.js");return}l(e,c)},n.onerror=()=>{e.moduleRequested=!1,console.error("[opencx] failed to load the widget module from",t)},(document.head||document.documentElement).append(n)}}}})();