@smartos-lib/components 2.0.2 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. package/.eslintrc-auto-import.json +1 -0
  2. package/dist/smart-docx-editor/index.js +21 -21
  3. package/dist/smart-file-preview/index.js +7 -7
  4. package/dist/smart-upload/index.js +1 -1
  5. package/package.json +4 -5
  6. package/scripts/components.vite.config.ts +1 -1
  7. package/src/composables/useElementStyle.ts +1 -3
  8. package/src/composables/useSmart.ts +1 -3
  9. package/src/pages/frame/index.vue +1 -1
  10. package/src/pages/index/type.ts +4 -4
  11. package/src/pages/index/utils/index.ts +2 -2
  12. package/src/shared/components.ts +5 -5
  13. package/src/shared/env.ts +1 -1
  14. package/src/shared/unocss.theme.ts +1 -1
  15. package/src/types.ts +3 -3
  16. package/src/utils/deepCloneESModule.ts +1 -1
  17. package/src/utils/formatComponentsGlob.ts +1 -1
  18. package/src/web-components/smart-docx-drive-page/apis/doc.ts +5 -5
  19. package/src/web-components/smart-docx-drive-page/apis/file.ts +24 -24
  20. package/src/web-components/smart-docx-drive-page/apis/folder.ts +7 -7
  21. package/src/web-components/smart-docx-drive-page/components/DocxDir.vue +7 -7
  22. package/src/web-components/smart-docx-drive-page/components/DocxDoc.vue +2 -2
  23. package/src/web-components/smart-docx-drive-page/components/DocxFileList.vue +11 -1
  24. package/src/web-components/smart-docx-drive-page/components-private/Header.vue +5 -5
  25. package/src/web-components/smart-docx-drive-page/components-private/Menu.vue +4 -3
  26. package/src/web-components/smart-docx-drive-page/types.ts +16 -16
  27. package/src/web-components/smart-docx-drive-page/utils/file-actions.ts +1 -2
  28. package/src/web-components/smart-docx-editor/App.vue +1 -1
  29. package/src/web-components/smart-docx-editor/MarkdownShortcuts/components/Markdown.vue +4 -4
  30. package/src/web-components/smart-docx-editor/MarkdownShortcuts/components/types.ts +1 -1
  31. package/src/web-components/smart-docx-editor/MarkdownShortcuts/components-react/Markdown.tsx +6 -5
  32. package/src/web-components/smart-docx-editor/MarkdownShortcuts/components-react/types/custom-types.d.ts +42 -42
  33. package/src/web-components/smart-docx-editor/MarkdownShortcuts/shared/const.ts +1 -1
  34. package/src/web-components/smart-docx-editor/demo.vue +1 -1
  35. package/src/web-components/smart-docx-editor/index.md +1 -1
  36. package/src/web-components/smart-file-preview/category/Code.vue +2 -2
  37. package/src/web-components/smart-file-preview/index.md +1 -1
  38. package/src/web-components/smart-file-preview/index.ts +1 -1
  39. package/src/web-components/smart-file-preview/index.vue +1 -1
  40. package/src/web-components/smart-file-preview/types.ts +1 -1
  41. package/src/web-components/smart-upload/index.ts +4 -4
  42. package/src/web-components/smart-upload/types.ts +27 -27
  43. package/types/auto-imports.d.ts +3 -0
  44. package/types/components.d.ts +1 -1
  45. package/types/env.d.ts +2 -2
  46. package/types/shims.d.ts +1 -0
  47. package/vite.config.ts +1 -0
@@ -1,13 +1,13 @@
1
- var Ky;(function(v){"use strict";const cn=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const u=e==null?void 0:e(o);if(n===!1||!u)return t==null?void 0:t(o)};var ld;const fn=typeof window<"u",qy=e=>typeof e=="string",cd=()=>{},Qy=fn&&((ld=window==null?void 0:window.navigator)==null?void 0:ld.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function fd(e){return typeof e=="function"?e():v.unref(e)}function Yy(e){return e}function dd(e){return v.getCurrentScope()?(v.onScopeDispose(e),!0):!1}function sr(e){var t;const n=fd(e);return(t=n==null?void 0:n.$el)!=null?t:n}const pd=fn?window:void 0;function Bs(...e){let t,n,r,o;if(qy(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=pd):[t,n,r,o]=e,!t)return cd;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const u=[],a=()=>{u.forEach(c=>c()),u.length=0},i=(c,d,p,y)=>(c.addEventListener(d,p,y),()=>c.removeEventListener(d,p,y)),s=v.watch(()=>[sr(t),fd(o)],([c,d])=>{a(),c&&u.push(...n.flatMap(p=>r.map(y=>i(c,p,y,d))))},{immediate:!0,flush:"post"}),l=()=>{s(),a()};return dd(l),l}let vd=!1;function Gy(e,t,n={}){const{window:r=pd,ignore:o=[],capture:u=!0,detectIframe:a=!1}=n;if(!r)return;Qy&&!vd&&(vd=!0,Array.from(r.document.body.children).forEach(p=>p.addEventListener("click",cd)));let i=!0;const s=p=>o.some(y=>{if(typeof y=="string")return Array.from(r.document.querySelectorAll(y)).some(m=>m===p.target||p.composedPath().includes(m));{const m=sr(y);return m&&(p.target===m||p.composedPath().includes(m))}}),c=[Bs(r,"click",p=>{const y=sr(e);if(!(!y||y===p.target||p.composedPath().includes(y))){if(p.detail===0&&(i=!s(p)),!i){i=!0;return}t(p)}},{passive:!0,capture:u}),Bs(r,"pointerdown",p=>{const y=sr(e);y&&(i=!p.composedPath().includes(y)&&!s(p))},{passive:!0}),a&&Bs(r,"blur",p=>{var y;const m=sr(e);((y=r.document.activeElement)==null?void 0:y.tagName)==="IFRAME"&&!(m!=null&&m.contains(r.document.activeElement))&&t(p)})].filter(Boolean);return()=>c.forEach(p=>p())}const hd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},md="__vueuse_ssr_handlers__";hd[md]=hd[md]||{};var gd;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(gd||(gd={}));var Xy=Object.defineProperty,yd=Object.getOwnPropertySymbols,Zy=Object.prototype.hasOwnProperty,Jy=Object.prototype.propertyIsEnumerable,Dd=(e,t,n)=>t in e?Xy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,e1=(e,t)=>{for(var n in t||(t={}))Zy.call(t,n)&&Dd(e,n,t[n]);if(yd)for(var n of yd(t))Jy.call(t,n)&&Dd(e,n,t[n]);return e};e1({linear:Yy},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});/**
2
- * @vue/shared v3.4.21
1
+ var F1;(function(v){"use strict";const fn=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const u=e==null?void 0:e(o);if(n===!1||!u)return t==null?void 0:t(o)};var Od;const Jt=typeof window<"u",S1=e=>typeof e=="string",_d=()=>{},O1=Jt&&((Od=window==null?void 0:window.navigator)==null?void 0:Od.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function kd(e){return typeof e=="function"?e():v.unref(e)}function _1(e){return e}function Pd(e){return v.getCurrentScope()?(v.onScopeDispose(e),!0):!1}function lr(e){var t;const n=kd(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Td=Jt?window:void 0;function Ns(...e){let t,n,r,o;if(S1(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=Td):[t,n,r,o]=e,!t)return _d;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const u=[],a=()=>{u.forEach(c=>c()),u.length=0},i=(c,d,p,y)=>(c.addEventListener(d,p,y),()=>c.removeEventListener(d,p,y)),s=v.watch(()=>[lr(t),kd(o)],([c,d])=>{a(),c&&u.push(...n.flatMap(p=>r.map(y=>i(c,p,y,d))))},{immediate:!0,flush:"post"}),l=()=>{s(),a()};return Pd(l),l}let Rd=!1;function k1(e,t,n={}){const{window:r=Td,ignore:o=[],capture:u=!0,detectIframe:a=!1}=n;if(!r)return;O1&&!Rd&&(Rd=!0,Array.from(r.document.body.children).forEach(p=>p.addEventListener("click",_d)));let i=!0;const s=p=>o.some(y=>{if(typeof y=="string")return Array.from(r.document.querySelectorAll(y)).some(m=>m===p.target||p.composedPath().includes(m));{const m=lr(y);return m&&(p.target===m||p.composedPath().includes(m))}}),c=[Ns(r,"click",p=>{const y=lr(e);if(!(!y||y===p.target||p.composedPath().includes(y))){if(p.detail===0&&(i=!s(p)),!i){i=!0;return}t(p)}},{passive:!0,capture:u}),Ns(r,"pointerdown",p=>{const y=lr(e);y&&(i=!p.composedPath().includes(y)&&!s(p))},{passive:!0}),a&&Ns(r,"blur",p=>{var y;const m=lr(e);((y=r.document.activeElement)==null?void 0:y.tagName)==="IFRAME"&&!(m!=null&&m.contains(r.document.activeElement))&&t(p)})].filter(Boolean);return()=>c.forEach(p=>p())}const Nd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},jd="__vueuse_ssr_handlers__";Nd[jd]=Nd[jd]||{};var Id;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Id||(Id={}));var P1=Object.defineProperty,Md=Object.getOwnPropertySymbols,T1=Object.prototype.hasOwnProperty,R1=Object.prototype.propertyIsEnumerable,$d=(e,t,n)=>t in e?P1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N1=(e,t)=>{for(var n in t||(t={}))T1.call(t,n)&&$d(e,n,t[n]);if(Md)for(var n of Md(t))R1.call(t,n)&&$d(e,n,t[n]);return e};N1({linear:_1},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});/**
2
+ * @vue/shared v3.4.26
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **/const As=()=>{},t1=Object.prototype.hasOwnProperty,Cd=(e,t)=>t1.call(e,t),n1=Array.isArray,ra=e=>typeof e=="function",r1=e=>typeof e=="string",bs=e=>e!==null&&typeof e=="object";function Fs(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}function xs(e){return e==null}function o1(e){return e===void 0}const wd=e=>typeof e=="boolean",oa=e=>typeof e=="number",ua=e=>typeof Element>"u"?!1:e instanceof Element,Ed=e=>Object.keys(e),Bd="__epPropKey",ge=e=>e,u1=e=>bs(e)&&!!e[Bd],aa=(e,t)=>{if(!bs(e)||u1(e))return e;const{values:n,required:r,default:o,type:u,validator:a}=e,s={type:u,required:!!r,validator:n||a?l=>{let c=!1,d=[];if(n&&(d=Array.from(n),Cd(e,"default")&&d.push(o),c||(c=d.includes(l))),a&&(c||(c=a(l))),!c&&d.length>0){const p=[...new Set(d)].map(y=>JSON.stringify(y)).join(", ");v.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${p}], got value ${JSON.stringify(l)}.`)}return c}:void 0,[Bd]:!0};return Cd(e,"default")&&(s.default=o),s},Zt=e=>Fs(Object.entries(e).map(([t,n])=>[t,aa(n,t)])),Ss=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},ia={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},a1=["","default","small","large"],i1=Symbol("localeContextKey"),Os="el",s1="is-",lr=(e,t,n,r,o)=>{let u=`${e}-${t}`;return n&&(u+=`-${n}`),r&&(u+=`__${r}`),o&&(u+=`--${o}`),u},Ad=Symbol("namespaceContextKey"),_s=e=>{const t=e||(v.getCurrentInstance()?v.inject(Ad,v.ref(Os)):v.ref(Os));return v.computed(()=>v.unref(t)||Os)},No=(e,t)=>{const n=_s(t);return{namespace:n,b:(f="")=>lr(n.value,e,f,"",""),e:f=>f?lr(n.value,e,"",f,""):"",m:f=>f?lr(n.value,e,"","",f):"",be:(f,w)=>f&&w?lr(n.value,e,f,w,""):"",em:(f,w)=>f&&w?lr(n.value,e,"",f,w):"",bm:(f,w)=>f&&w?lr(n.value,e,f,"",w):"",bem:(f,w,h)=>f&&w&&h?lr(n.value,e,f,w,h):"",is:(f,...w)=>{const h=w.length>=1?w[0]:!0;return f&&h?`${s1}${f}`:""},cssVar:f=>{const w={};for(const h in f)f[h]&&(w[`--${n.value}-${h}`]=f[h]);return w},cssVarName:f=>`--${n.value}-${f}`,cssVarBlock:f=>{const w={};for(const h in f)f[h]&&(w[`--${n.value}-${e}-${h}`]=f[h]);return w},cssVarBlockName:f=>`--${n.value}-${e}-${f}`}},l1=aa({type:ge(Boolean),default:null}),c1=aa({type:ge(Function)}),bd=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],o={[e]:l1,[n]:c1};return{useModelToggle:({indicator:a,toggleReason:i,shouldHideWhenRouteChanges:s,shouldProceed:l,onShow:c,onHide:d})=>{const p=v.getCurrentInstance(),{emit:y}=p,m=p.props,f=v.computed(()=>ra(m[n])),w=v.computed(()=>m[e]===null),h=A=>{a.value!==!0&&(a.value=!0,i&&(i.value=A),ra(c)&&c(A))},g=A=>{a.value!==!1&&(a.value=!1,i&&(i.value=A),ra(d)&&d(A))},C=A=>{if(m.disabled===!0||ra(l)&&!l())return;const S=f.value&&fn;S&&y(t,!0),(w.value||!S)&&h(A)},E=A=>{if(m.disabled===!0||!fn)return;const S=f.value&&fn;S&&y(t,!1),(w.value||!S)&&g(A)},B=A=>{wd(A)&&(m.disabled&&A?f.value&&y(t,!1):a.value!==A&&(A?h():g()))},F=()=>{a.value?E():C()};return v.watch(()=>m[e],B),s&&p.appContext.config.globalProperties.$route!==void 0&&v.watch(()=>({...p.proxy.$route}),()=>{s.value&&a.value&&E()}),v.onMounted(()=>{B(m[e])}),{hide:E,show:C,toggle:F,hasUpdateHandler:f}},useModelToggleProps:o,useModelToggleEmits:r}};bd("modelValue");var st="top",St="bottom",Ot="right",lt="left",ks="auto",jo=[st,St,Ot,lt],Mr="start",Io="end",f1="clippingParents",Fd="viewport",Mo="popper",d1="reference",xd=jo.reduce(function(e,t){return e.concat([t+"-"+Mr,t+"-"+Io])},[]),Ps=[].concat(jo,[ks]).reduce(function(e,t){return e.concat([t,t+"-"+Mr,t+"-"+Io])},[]),p1="beforeRead",v1="read",h1="afterRead",m1="beforeMain",g1="main",y1="afterMain",D1="beforeWrite",C1="write",w1="afterWrite",E1=[p1,v1,h1,m1,g1,y1,D1,C1,w1];function Jt(e){return e?(e.nodeName||"").toLowerCase():null}function Vt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $r(e){var t=Vt(e).Element;return e instanceof t||e instanceof Element}function _t(e){var t=Vt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ts(e){if(typeof ShadowRoot>"u")return!1;var t=Vt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function B1(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},u=t.elements[n];!_t(u)||!Jt(u)||(Object.assign(u.style,r),Object.keys(o).forEach(function(a){var i=o[a];i===!1?u.removeAttribute(a):u.setAttribute(a,i===!0?"":i)}))})}function A1(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],u=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),i=a.reduce(function(s,l){return s[l]="",s},{});!_t(o)||!Jt(o)||(Object.assign(o.style,i),Object.keys(u).forEach(function(s){o.removeAttribute(s)}))})}}var Sd={name:"applyStyles",enabled:!0,phase:"write",fn:B1,effect:A1,requires:["computeStyles"]};function en(e){return e.split("-")[0]}var cr=Math.max,sa=Math.min,Lr=Math.round;function zr(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(_t(e)&&t){var u=e.offsetHeight,a=e.offsetWidth;a>0&&(r=Lr(n.width)/a||1),u>0&&(o=Lr(n.height)/u||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function Rs(e){var t=zr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Od(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ts(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function dn(e){return Vt(e).getComputedStyle(e)}function b1(e){return["table","td","th"].indexOf(Jt(e))>=0}function On(e){return(($r(e)?e.ownerDocument:e.document)||window.document).documentElement}function la(e){return Jt(e)==="html"?e:e.assignedSlot||e.parentNode||(Ts(e)?e.host:null)||On(e)}function _d(e){return!_t(e)||dn(e).position==="fixed"?null:e.offsetParent}function F1(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&_t(e)){var r=dn(e);if(r.position==="fixed")return null}var o=la(e);for(Ts(o)&&(o=o.host);_t(o)&&["html","body"].indexOf(Jt(o))<0;){var u=dn(o);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||t&&u.willChange==="filter"||t&&u.filter&&u.filter!=="none")return o;o=o.parentNode}return null}function $o(e){for(var t=Vt(e),n=_d(e);n&&b1(n)&&dn(n).position==="static";)n=_d(n);return n&&(Jt(n)==="html"||Jt(n)==="body"&&dn(n).position==="static")?t:n||F1(e)||t}function Ns(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Lo(e,t,n){return cr(e,sa(t,n))}function x1(e,t,n){var r=Lo(e,t,n);return r>n?n:r}function kd(){return{top:0,right:0,bottom:0,left:0}}function Pd(e){return Object.assign({},kd(),e)}function Td(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var S1=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Pd(typeof e!="number"?e:Td(e,jo))};function O1(e){var t,n=e.state,r=e.name,o=e.options,u=n.elements.arrow,a=n.modifiersData.popperOffsets,i=en(n.placement),s=Ns(i),l=[lt,Ot].indexOf(i)>=0,c=l?"height":"width";if(!(!u||!a)){var d=S1(o.padding,n),p=Rs(u),y=s==="y"?st:lt,m=s==="y"?St:Ot,f=n.rects.reference[c]+n.rects.reference[s]-a[s]-n.rects.popper[c],w=a[s]-n.rects.reference[s],h=$o(u),g=h?s==="y"?h.clientHeight||0:h.clientWidth||0:0,C=f/2-w/2,E=d[y],B=g-p[c]-d[m],F=g/2-p[c]/2+C,A=Lo(E,F,B),S=s;n.modifiersData[r]=(t={},t[S]=A,t.centerOffset=A-F,t)}}function _1(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!Od(t.elements.popper,o)||(t.elements.arrow=o))}var k1={name:"arrow",enabled:!0,phase:"main",fn:O1,effect:_1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vr(e){return e.split("-")[1]}var P1={top:"auto",right:"auto",bottom:"auto",left:"auto"};function T1(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Lr(t*o)/o||0,y:Lr(n*o)/o||0}}function Rd(e){var t,n=e.popper,r=e.popperRect,o=e.placement,u=e.variation,a=e.offsets,i=e.position,s=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=a.x,y=p===void 0?0:p,m=a.y,f=m===void 0?0:m,w=typeof c=="function"?c({x:y,y:f}):{x:y,y:f};y=w.x,f=w.y;var h=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),C=lt,E=st,B=window;if(l){var F=$o(n),A="clientHeight",S="clientWidth";if(F===Vt(n)&&(F=On(n),dn(F).position!=="static"&&i==="absolute"&&(A="scrollHeight",S="scrollWidth")),F=F,o===st||(o===lt||o===Ot)&&u===Io){E=St;var P=d&&F===B&&B.visualViewport?B.visualViewport.height:F[A];f-=P-r.height,f*=s?1:-1}if(o===lt||(o===st||o===St)&&u===Io){C=Ot;var O=d&&F===B&&B.visualViewport?B.visualViewport.width:F[S];y-=O-r.width,y*=s?1:-1}}var H=Object.assign({position:i},l&&P1),k=c===!0?T1({x:y,y:f}):{x:y,y:f};if(y=k.x,f=k.y,s){var W;return Object.assign({},H,(W={},W[E]=g?"0":"",W[C]=h?"0":"",W.transform=(B.devicePixelRatio||1)<=1?"translate("+y+"px, "+f+"px)":"translate3d("+y+"px, "+f+"px, 0)",W))}return Object.assign({},H,(t={},t[E]=g?f+"px":"",t[C]=h?y+"px":"",t.transform="",t))}function R1(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,u=n.adaptive,a=u===void 0?!0:u,i=n.roundOffsets,s=i===void 0?!0:i,l={placement:en(t.placement),variation:Vr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Rd(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Rd(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Nd={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:R1,data:{}},ca={passive:!0};function N1(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,u=o===void 0?!0:o,a=r.resize,i=a===void 0?!0:a,s=Vt(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return u&&l.forEach(function(c){c.addEventListener("scroll",n.update,ca)}),i&&s.addEventListener("resize",n.update,ca),function(){u&&l.forEach(function(c){c.removeEventListener("scroll",n.update,ca)}),i&&s.removeEventListener("resize",n.update,ca)}}var jd={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:N1,data:{}},j1={left:"right",right:"left",bottom:"top",top:"bottom"};function fa(e){return e.replace(/left|right|bottom|top/g,function(t){return j1[t]})}var I1={start:"end",end:"start"};function Id(e){return e.replace(/start|end/g,function(t){return I1[t]})}function js(e){var t=Vt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Is(e){return zr(On(e)).left+js(e).scrollLeft}function M1(e){var t=Vt(e),n=On(e),r=t.visualViewport,o=n.clientWidth,u=n.clientHeight,a=0,i=0;return r&&(o=r.width,u=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,i=r.offsetTop)),{width:o,height:u,x:a+Is(e),y:i}}function $1(e){var t,n=On(e),r=js(e),o=(t=e.ownerDocument)==null?void 0:t.body,u=cr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=cr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-r.scrollLeft+Is(e),s=-r.scrollTop;return dn(o||n).direction==="rtl"&&(i+=cr(n.clientWidth,o?o.clientWidth:0)-u),{width:u,height:a,x:i,y:s}}function Ms(e){var t=dn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Md(e){return["html","body","#document"].indexOf(Jt(e))>=0?e.ownerDocument.body:_t(e)&&Ms(e)?e:Md(la(e))}function zo(e,t){var n;t===void 0&&(t=[]);var r=Md(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),u=Vt(r),a=o?[u].concat(u.visualViewport||[],Ms(r)?r:[]):r,i=t.concat(a);return o?i:i.concat(zo(la(a)))}function $s(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function L1(e){var t=zr(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function $d(e,t){return t===Fd?$s(M1(e)):$r(t)?L1(t):$s($1(On(e)))}function z1(e){var t=zo(la(e)),n=["absolute","fixed"].indexOf(dn(e).position)>=0,r=n&&_t(e)?$o(e):e;return $r(r)?t.filter(function(o){return $r(o)&&Od(o,r)&&Jt(o)!=="body"}):[]}function V1(e,t,n){var r=t==="clippingParents"?z1(e):[].concat(t),o=[].concat(r,[n]),u=o[0],a=o.reduce(function(i,s){var l=$d(e,s);return i.top=cr(l.top,i.top),i.right=sa(l.right,i.right),i.bottom=sa(l.bottom,i.bottom),i.left=cr(l.left,i.left),i},$d(e,u));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Ld(e){var t=e.reference,n=e.element,r=e.placement,o=r?en(r):null,u=r?Vr(r):null,a=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,s;switch(o){case st:s={x:a,y:t.y-n.height};break;case St:s={x:a,y:t.y+t.height};break;case Ot:s={x:t.x+t.width,y:i};break;case lt:s={x:t.x-n.width,y:i};break;default:s={x:t.x,y:t.y}}var l=o?Ns(o):null;if(l!=null){var c=l==="y"?"height":"width";switch(u){case Mr:s[l]=s[l]-(t[c]/2-n[c]/2);break;case Io:s[l]=s[l]+(t[c]/2-n[c]/2);break}}return s}function Vo(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,u=n.boundary,a=u===void 0?f1:u,i=n.rootBoundary,s=i===void 0?Fd:i,l=n.elementContext,c=l===void 0?Mo:l,d=n.altBoundary,p=d===void 0?!1:d,y=n.padding,m=y===void 0?0:y,f=Pd(typeof m!="number"?m:Td(m,jo)),w=c===Mo?d1:Mo,h=e.rects.popper,g=e.elements[p?w:c],C=V1($r(g)?g:g.contextElement||On(e.elements.popper),a,s),E=zr(e.elements.reference),B=Ld({reference:E,element:h,strategy:"absolute",placement:o}),F=$s(Object.assign({},h,B)),A=c===Mo?F:E,S={top:C.top-A.top+f.top,bottom:A.bottom-C.bottom+f.bottom,left:C.left-A.left+f.left,right:A.right-C.right+f.right},P=e.modifiersData.offset;if(c===Mo&&P){var O=P[o];Object.keys(S).forEach(function(H){var k=[Ot,St].indexOf(H)>=0?1:-1,W=[st,St].indexOf(H)>=0?"y":"x";S[H]+=O[W]*k})}return S}function W1(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,u=n.rootBoundary,a=n.padding,i=n.flipVariations,s=n.allowedAutoPlacements,l=s===void 0?Ps:s,c=Vr(r),d=c?i?xd:xd.filter(function(m){return Vr(m)===c}):jo,p=d.filter(function(m){return l.indexOf(m)>=0});p.length===0&&(p=d);var y=p.reduce(function(m,f){return m[f]=Vo(e,{placement:f,boundary:o,rootBoundary:u,padding:a})[en(f)],m},{});return Object.keys(y).sort(function(m,f){return y[m]-y[f]})}function U1(e){if(en(e)===ks)return[];var t=fa(e);return[Id(e),t,Id(t)]}function H1(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,u=o===void 0?!0:o,a=n.altAxis,i=a===void 0?!0:a,s=n.fallbackPlacements,l=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,y=n.flipVariations,m=y===void 0?!0:y,f=n.allowedAutoPlacements,w=t.options.placement,h=en(w),g=h===w,C=s||(g||!m?[fa(w)]:U1(w)),E=[w].concat(C).reduce(function(x,j){return x.concat(en(j)===ks?W1(t,{placement:j,boundary:c,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:f}):j)},[]),B=t.rects.reference,F=t.rects.popper,A=new Map,S=!0,P=E[0],O=0;O<E.length;O++){var H=E[O],k=en(H),W=Vr(H)===Mr,$=[st,St].indexOf(k)>=0,V=$?"width":"height",G=Vo(t,{placement:H,boundary:c,rootBoundary:d,altBoundary:p,padding:l}),R=$?W?Ot:lt:W?St:st;B[V]>F[V]&&(R=fa(R));var M=fa(R),U=[];if(u&&U.push(G[k]<=0),i&&U.push(G[R]<=0,G[M]<=0),U.every(function(x){return x})){P=H,S=!1;break}A.set(H,U)}if(S)for(var Y=m?3:1,ne=function(x){var j=E.find(function(N){var Q=A.get(N);if(Q)return Q.slice(0,x).every(function(oe){return oe})});if(j)return P=j,"break"},te=Y;te>0;te--){var ve=ne(te);if(ve==="break")break}t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}}var K1={name:"flip",enabled:!0,phase:"main",fn:H1,requiresIfExists:["offset"],data:{_skip:!1}};function zd(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Vd(e){return[st,Ot,St,lt].some(function(t){return e[t]>=0})}function q1(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,u=t.modifiersData.preventOverflow,a=Vo(t,{elementContext:"reference"}),i=Vo(t,{altBoundary:!0}),s=zd(a,r),l=zd(i,o,u),c=Vd(s),d=Vd(l);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}var Q1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:q1};function Y1(e,t,n){var r=en(e),o=[lt,st].indexOf(r)>=0?-1:1,u=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=u[0],i=u[1];return a=a||0,i=(i||0)*o,[lt,Ot].indexOf(r)>=0?{x:i,y:a}:{x:a,y:i}}function G1(e){var t=e.state,n=e.options,r=e.name,o=n.offset,u=o===void 0?[0,0]:o,a=Ps.reduce(function(c,d){return c[d]=Y1(d,t.rects,u),c},{}),i=a[t.placement],s=i.x,l=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}var X1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:G1};function Z1(e){var t=e.state,n=e.name;t.modifiersData[n]=Ld({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Wd={name:"popperOffsets",enabled:!0,phase:"read",fn:Z1,data:{}};function J1(e){return e==="x"?"y":"x"}function eD(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,u=o===void 0?!0:o,a=n.altAxis,i=a===void 0?!1:a,s=n.boundary,l=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,y=p===void 0?!0:p,m=n.tetherOffset,f=m===void 0?0:m,w=Vo(t,{boundary:s,rootBoundary:l,padding:d,altBoundary:c}),h=en(t.placement),g=Vr(t.placement),C=!g,E=Ns(h),B=J1(E),F=t.modifiersData.popperOffsets,A=t.rects.reference,S=t.rects.popper,P=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,O=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(F){if(u){var W,$=E==="y"?st:lt,V=E==="y"?St:Ot,G=E==="y"?"height":"width",R=F[E],M=R+w[$],U=R-w[V],Y=y?-S[G]/2:0,ne=g===Mr?A[G]:S[G],te=g===Mr?-S[G]:-A[G],ve=t.elements.arrow,x=y&&ve?Rs(ve):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:kd(),N=j[$],Q=j[V],oe=Lo(0,A[G],x[G]),ee=C?A[G]/2-Y-oe-N-O.mainAxis:ne-oe-N-O.mainAxis,ie=C?-A[G]/2+Y+oe+Q+O.mainAxis:te+oe+Q+O.mainAxis,ce=t.elements.arrow&&$o(t.elements.arrow),de=ce?E==="y"?ce.clientTop||0:ce.clientLeft||0:0,he=(W=H==null?void 0:H[E])!=null?W:0,le=R+ee-he-de,Ie=R+ie-he,Re=Lo(y?sa(M,le):M,R,y?cr(U,Ie):U);F[E]=Re,k[E]=Re-R}if(i){var Ae,xt=E==="x"?st:lt,zt=E==="x"?St:Ot,_e=F[B],et=B==="y"?"height":"width",me=_e+w[xt],Le=_e-w[zt],ke=[st,lt].indexOf(h)!==-1,Ne=(Ae=H==null?void 0:H[B])!=null?Ae:0,mt=ke?me:_e-A[et]-S[et]-Ne+O.altAxis,Nr=ke?_e+A[et]+S[et]-Ne-O.altAxis:Le,gt=y&&ke?x1(mt,_e,Nr):Lo(y?mt:me,_e,y?Nr:Le);F[B]=gt,k[B]=gt-_e}t.modifiersData[r]=k}}var tD={name:"preventOverflow",enabled:!0,phase:"main",fn:eD,requiresIfExists:["offset"]};function nD(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function rD(e){return e===Vt(e)||!_t(e)?js(e):nD(e)}function oD(e){var t=e.getBoundingClientRect(),n=Lr(t.width)/e.offsetWidth||1,r=Lr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function uD(e,t,n){n===void 0&&(n=!1);var r=_t(t),o=_t(t)&&oD(t),u=On(t),a=zr(e,o),i={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&((Jt(t)!=="body"||Ms(u))&&(i=rD(t)),_t(t)?(s=zr(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):u&&(s.x=Is(u))),{x:a.left+i.scrollLeft-s.x,y:a.top+i.scrollTop-s.y,width:a.width,height:a.height}}function aD(e){var t=new Map,n=new Set,r=[];e.forEach(function(u){t.set(u.name,u)});function o(u){n.add(u.name);var a=[].concat(u.requires||[],u.requiresIfExists||[]);a.forEach(function(i){if(!n.has(i)){var s=t.get(i);s&&o(s)}}),r.push(u)}return e.forEach(function(u){n.has(u.name)||o(u)}),r}function iD(e){var t=aD(e);return E1.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function sD(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function lD(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Ud={placement:"bottom",modifiers:[],strategy:"absolute"};function Hd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Ls(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,u=o===void 0?Ud:o;return function(a,i,s){s===void 0&&(s=u);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ud,u),modifiersData:{},elements:{reference:a,popper:i},attributes:{},styles:{}},c=[],d=!1,p={state:l,setOptions:function(f){var w=typeof f=="function"?f(l.options):f;m(),l.options=Object.assign({},u,l.options,w),l.scrollParents={reference:$r(a)?zo(a):a.contextElement?zo(a.contextElement):[],popper:zo(i)};var h=iD(lD([].concat(r,l.options.modifiers)));return l.orderedModifiers=h.filter(function(g){return g.enabled}),y(),p.update()},forceUpdate:function(){if(!d){var f=l.elements,w=f.reference,h=f.popper;if(Hd(w,h)){l.rects={reference:uD(w,$o(h),l.options.strategy==="fixed"),popper:Rs(h)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(S){return l.modifiersData[S.name]=Object.assign({},S.data)});for(var g=0;g<l.orderedModifiers.length;g++){if(l.reset===!0){l.reset=!1,g=-1;continue}var C=l.orderedModifiers[g],E=C.fn,B=C.options,F=B===void 0?{}:B,A=C.name;typeof E=="function"&&(l=E({state:l,options:F,name:A,instance:p})||l)}}}},update:sD(function(){return new Promise(function(f){p.forceUpdate(),f(l)})}),destroy:function(){m(),d=!0}};if(!Hd(a,i))return p;p.setOptions(s).then(function(f){!d&&s.onFirstUpdate&&s.onFirstUpdate(f)});function y(){l.orderedModifiers.forEach(function(f){var w=f.name,h=f.options,g=h===void 0?{}:h,C=f.effect;if(typeof C=="function"){var E=C({state:l,name:w,instance:p,options:g}),B=function(){};c.push(E||B)}})}function m(){c.forEach(function(f){return f()}),c=[]}return p}}Ls();var cD=[jd,Wd,Nd,Sd];Ls({defaultModifiers:cD});var fD=[jd,Wd,Nd,Sd,X1,K1,tD,k1,Q1],dD=Ls({defaultModifiers:fD});const pD=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:s})=>{const l=vD(s);Object.assign(a.value,l)},requires:["computeStyles"]},o=v.computed(()=>{const{onFirstUpdate:s,placement:l,strategy:c,modifiers:d}=v.unref(n);return{onFirstUpdate:s,placement:l||"bottom",strategy:c||"absolute",modifiers:[...d||[],r,{name:"applyStyles",enabled:!1}]}}),u=v.shallowRef(),a=v.ref({styles:{popper:{position:v.unref(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{u.value&&(u.value.destroy(),u.value=void 0)};return v.watch(o,s=>{const l=v.unref(u);l&&l.setOptions(s)},{deep:!0}),v.watch([e,t],([s,l])=>{i(),!(!s||!l)&&(u.value=dD(s,l,v.unref(o)))}),v.onBeforeUnmount(()=>{i()}),{state:v.computed(()=>{var s;return{...((s=v.unref(u))==null?void 0:s.state)||{}}}),styles:v.computed(()=>v.unref(a).styles),attributes:v.computed(()=>v.unref(a).attributes),update:()=>{var s;return(s=v.unref(u))==null?void 0:s.update()},forceUpdate:()=>{var s;return(s=v.unref(u))==null?void 0:s.forceUpdate()},instanceRef:v.computed(()=>v.unref(u))}};function vD(e){const t=Object.keys(e.elements),n=Fs(t.map(o=>[o,e.styles[o]||{}])),r=Fs(t.map(o=>[o,e.attributes[o]]));return{styles:n,attributes:r}}function Kd(){let e;const t=(r,o)=>{n(),e=window.setTimeout(r,o)},n=()=>window.clearTimeout(e);return dd(()=>n()),{registerTimeout:t,cancelTimeout:n}}const qd={prefix:Math.floor(Math.random()*1e4),current:0},hD=Symbol("elIdInjection"),Qd=()=>v.getCurrentInstance()?v.inject(hD,qd):qd,mD=e=>{const t=Qd(),n=_s();return v.computed(()=>v.unref(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Wr=[];const Yd=e=>{const t=e;t.key===ia.esc&&Wr.forEach(n=>n(t))},gD=e=>{v.onMounted(()=>{Wr.length===0&&document.addEventListener("keydown",Yd),fn&&Wr.push(e)}),v.onBeforeUnmount(()=>{Wr=Wr.filter(t=>t!==e),Wr.length===0&&fn&&document.removeEventListener("keydown",Yd)})};let Gd;const Xd=()=>{const e=_s(),t=Qd(),n=v.computed(()=>`${e.value}-popper-container-${t.prefix}`),r=v.computed(()=>`#${n.value}`);return{id:n,selector:r}},yD=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},DD=()=>{const{id:e,selector:t}=Xd();return v.onBeforeMount(()=>{fn&&!Gd&&!document.body.querySelector(t.value)&&(Gd=yD(e.value))}),{id:e,selector:t}},CD=Zt({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),wD=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:o})=>{const{registerTimeout:u}=Kd(),{registerTimeout:a,cancelTimeout:i}=Kd();return{onOpen:c=>{u(()=>{r(c);const d=v.unref(n);oa(d)&&d>0&&a(()=>{o(c)},d)},v.unref(e))},onClose:c=>{i(),u(()=>{o(c)},v.unref(t))}}},Zd=Symbol("elForwardRef"),ED=e=>{const t=n=>{e.value=n};v.provide(Zd,{setForwardRef:t})},BD=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Jd=v.ref(0),AD=2e3,ep=Symbol("zIndexContextKey"),bD=e=>{const t=e||(v.getCurrentInstance()?v.inject(ep,void 0):void 0),n=v.computed(()=>{const u=v.unref(t);return oa(u)?u:AD}),r=v.computed(()=>n.value+Jd.value);return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(Jd.value++,r.value)}},zs=Math.min,Ur=Math.max,da=Math.round,_n=e=>({x:e,y:e}),FD={left:"right",right:"left",bottom:"top",top:"bottom"},xD={start:"end",end:"start"};function tp(e,t,n){return Ur(e,zs(t,n))}function pa(e,t){return typeof e=="function"?e(t):e}function fr(e){return e.split("-")[0]}function va(e){return e.split("-")[1]}function np(e){return e==="x"?"y":"x"}function rp(e){return e==="y"?"height":"width"}function ha(e){return["top","bottom"].includes(fr(e))?"y":"x"}function op(e){return np(ha(e))}function SD(e,t,n){n===void 0&&(n=!1);const r=va(e),o=op(e),u=rp(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[u]>t.floating[u]&&(a=ma(a)),[a,ma(a)]}function OD(e){const t=ma(e);return[Vs(e),t,Vs(t)]}function Vs(e){return e.replace(/start|end/g,t=>xD[t])}function _D(e,t,n){const r=["left","right"],o=["right","left"],u=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?u:a;default:return[]}}function kD(e,t,n,r){const o=va(e);let u=_D(fr(e),n==="start",r);return o&&(u=u.map(a=>a+"-"+o),t&&(u=u.concat(u.map(Vs)))),u}function ma(e){return e.replace(/left|right|bottom|top/g,t=>FD[t])}function PD(e){return{top:0,right:0,bottom:0,left:0,...e}}function TD(e){return typeof e!="number"?PD(e):{top:e,right:e,bottom:e,left:e}}function ga(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function up(e,t,n){let{reference:r,floating:o}=e;const u=ha(t),a=op(t),i=rp(a),s=fr(t),l=u==="y",c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[i]/2-o[i]/2;let y;switch(s){case"top":y={x:c,y:r.y-o.height};break;case"bottom":y={x:c,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:d};break;case"left":y={x:r.x-o.width,y:d};break;default:y={x:r.x,y:r.y}}switch(va(t)){case"start":y[a]-=p*(n&&l?-1:1);break;case"end":y[a]+=p*(n&&l?-1:1);break}return y}const RD=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:u=[],platform:a}=n,i=u.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=up(l,r,s),p=r,y={},m=0;for(let f=0;f<i.length;f++){const{name:w,fn:h}=i[f],{x:g,y:C,data:E,reset:B}=await h({x:c,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:y,rects:l,platform:a,elements:{reference:e,floating:t}});if(c=g??c,d=C??d,y={...y,[w]:{...y[w],...E}},B&&m<=50){m++,typeof B=="object"&&(B.placement&&(p=B.placement),B.rects&&(l=B.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):B.rects),{x:c,y:d}=up(l,p,s)),f=-1;continue}}return{x:c,y:d,placement:p,strategy:o,middlewareData:y}};async function ap(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:u,rects:a,elements:i,strategy:s}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:y=0}=pa(t,e),m=TD(y),w=i[p?d==="floating"?"reference":"floating":d],h=ga(await u.getClippingRect({element:(n=await(u.isElement==null?void 0:u.isElement(w)))==null||n?w:w.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(i.floating)),boundary:l,rootBoundary:c,strategy:s})),g=d==="floating"?{...a.floating,x:r,y:o}:a.reference,C=await(u.getOffsetParent==null?void 0:u.getOffsetParent(i.floating)),E=await(u.isElement==null?void 0:u.isElement(C))?await(u.getScale==null?void 0:u.getScale(C))||{x:1,y:1}:{x:1,y:1},B=ga(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({rect:g,offsetParent:C,strategy:s}):g);return{top:(h.top-B.top+m.top)/E.y,bottom:(B.bottom-h.bottom+m.bottom)/E.y,left:(h.left-B.left+m.left)/E.x,right:(B.right-h.right+m.right)/E.x}}const ND=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:u,rects:a,initialPlacement:i,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:f=!0,...w}=pa(e,t);if((n=u.arrow)!=null&&n.alignmentOffset)return{};const h=fr(o),g=fr(i)===i,C=await(s.isRTL==null?void 0:s.isRTL(l.floating)),E=p||(g||!f?[ma(i)]:OD(i));!p&&m!=="none"&&E.push(...kD(i,f,m,C));const B=[i,...E],F=await ap(t,w),A=[];let S=((r=u.flip)==null?void 0:r.overflows)||[];if(c&&A.push(F[h]),d){const k=SD(o,a,C);A.push(F[k[0]],F[k[1]])}if(S=[...S,{placement:o,overflows:A}],!A.every(k=>k<=0)){var P,O;const k=(((P=u.flip)==null?void 0:P.index)||0)+1,W=B[k];if(W)return{data:{index:k,overflows:S},reset:{placement:W}};let $=(O=S.filter(V=>V.overflows[0]<=0).sort((V,G)=>V.overflows[1]-G.overflows[1])[0])==null?void 0:O.placement;if(!$)switch(y){case"bestFit":{var H;const V=(H=S.map(G=>[G.placement,G.overflows.filter(R=>R>0).reduce((R,M)=>R+M,0)]).sort((G,R)=>G[1]-R[1])[0])==null?void 0:H[0];V&&($=V);break}case"initialPlacement":$=i;break}if(o!==$)return{reset:{placement:$}}}return{}}}};async function jD(e,t){const{placement:n,platform:r,elements:o}=e,u=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=fr(n),i=va(n),s=ha(n)==="y",l=["left","top"].includes(a)?-1:1,c=u&&s?-1:1,d=pa(t,e);let{mainAxis:p,crossAxis:y,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return i&&typeof m=="number"&&(y=i==="end"?m*-1:m),s?{x:y*c,y:p*l}:{x:p*l,y:y*c}}const ID=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:u,placement:a,middlewareData:i}=t,s=await jD(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+s.x,y:u+s.y,data:{...s,placement:a}}}}},MD=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:u=!0,crossAxis:a=!1,limiter:i={fn:w=>{let{x:h,y:g}=w;return{x:h,y:g}}},...s}=pa(e,t),l={x:n,y:r},c=await ap(t,s),d=ha(fr(o)),p=np(d);let y=l[p],m=l[d];if(u){const w=p==="y"?"top":"left",h=p==="y"?"bottom":"right",g=y+c[w],C=y-c[h];y=tp(g,y,C)}if(a){const w=d==="y"?"top":"left",h=d==="y"?"bottom":"right",g=m+c[w],C=m-c[h];m=tp(g,m,C)}const f=i.fn({...t,[p]:y,[d]:m});return{...f,data:{x:f.x-n,y:f.y-r}}}}};function pn(e){return Ws(e)?(e.nodeName||"").toLowerCase():"#document"}function yt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function kn(e){var t;return(t=(Ws(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ws(e){return e instanceof Node||e instanceof yt(e).Node}function vn(e){return e instanceof Element||e instanceof yt(e).Element}function tn(e){return e instanceof HTMLElement||e instanceof yt(e).HTMLElement}function ip(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof yt(e).ShadowRoot}function Wo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function $D(e){return["table","td","th"].includes(pn(e))}function Us(e){const t=Hs(),n=kt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function LD(e){let t=Hr(e);for(;tn(t)&&!ya(t);){if(Us(t))return t;t=Hr(t)}return null}function Hs(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ya(e){return["html","body","#document"].includes(pn(e))}function kt(e){return yt(e).getComputedStyle(e)}function Da(e){return vn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Hr(e){if(pn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ip(e)&&e.host||kn(e);return ip(t)?t.host:t}function sp(e){const t=Hr(e);return ya(t)?e.ownerDocument?e.ownerDocument.body:e.body:tn(t)&&Wo(t)?t:sp(t)}function Ks(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=sp(e),u=o===((r=e.ownerDocument)==null?void 0:r.body),a=yt(o);return u?t.concat(a,a.visualViewport||[],Wo(o)?o:[],a.frameElement&&n?Ks(a.frameElement):[]):t.concat(o,Ks(o,[],n))}const zD=aa({type:String,values:a1,required:!1}),VD=Symbol("size"),lp=Symbol(),Ca=v.ref();function WD(e,t=void 0){const n=v.getCurrentInstance()?v.inject(lp,Ca):Ca;return e?v.computed(()=>{var r,o;return(o=(r=n.value)==null?void 0:r[e])!=null?o:t}):n}const UD=(e,t,n=!1)=>{var r;const o=!!v.getCurrentInstance(),u=o?WD():void 0,a=(r=t==null?void 0:t.provide)!=null?r:o?v.provide:void 0;if(!a)return;const i=v.computed(()=>{const s=v.unref(e);return u!=null&&u.value?HD(u.value,s):s});return a(lp,i),a(i1,v.computed(()=>i.value.locale)),a(Ad,v.computed(()=>i.value.namespace)),a(ep,v.computed(()=>i.value.zIndex)),a(VD,{size:v.computed(()=>i.value.size||"")}),(n||!Ca.value)&&(Ca.value=i.value),i},HD=(e,t)=>{var n;const r=[...new Set([...Ed(e),...Ed(t)])],o={};for(const u of r)o[u]=(n=t[u])!=null?n:e[u];return o},KD=Zt({a11y:{type:Boolean,default:!0},locale:{type:ge(Object)},size:zD,button:{type:ge(Object)},experimentalFeatures:{type:ge(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:ge(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),qD={},QD=v.defineComponent({name:"ElConfigProvider",props:KD,setup(e,{slots:t}){v.watch(()=>e.message,r=>{Object.assign(qD,r??{})},{immediate:!0,deep:!0});const n=UD(e);return()=>v.renderSlot(t,"default",{config:n==null?void 0:n.value})}}),YD=Ss(QD);var Pn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const cp=Symbol("formItemContextKey"),qs=Symbol("popper"),fp=Symbol("popperContent"),dp=Zt({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),GD=v.defineComponent({name:"ElPopper",inheritAttrs:!1}),XD=v.defineComponent({...GD,props:dp,setup(e,{expose:t}){const n=e,r=v.ref(),o=v.ref(),u=v.ref(),a=v.ref(),i=v.computed(()=>n.role),s={triggerRef:r,popperInstanceRef:o,contentRef:u,referenceRef:a,role:i};return t(s),v.provide(qs,s),(l,c)=>v.renderSlot(l.$slots,"default")}});var ZD=Pn(XD,[["__file","popper.vue"]]);const pp=Zt({arrowOffset:{type:Number,default:5}}),JD=v.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),eC=v.defineComponent({...JD,props:pp,setup(e,{expose:t}){const n=e,r=No("popper"),{arrowOffset:o,arrowRef:u,arrowStyle:a}=v.inject(fp,void 0);return v.watch(()=>n.arrowOffset,i=>{o.value=i}),v.onBeforeUnmount(()=>{u.value=void 0}),t({arrowRef:u}),(i,s)=>(v.openBlock(),v.createElementBlock("span",{ref_key:"arrowRef",ref:u,class:v.normalizeClass(v.unref(r).e("arrow")),style:v.normalizeStyle(v.unref(a)),"data-popper-arrow":""},null,6))}});var tC=Pn(eC,[["__file","arrow.vue"]]);const nC="ElOnlyChild",rC=v.defineComponent({name:nC,setup(e,{slots:t,attrs:n}){var r;const o=v.inject(Zd),u=BD((r=o==null?void 0:o.setForwardRef)!=null?r:As);return()=>{var a;const i=(a=t.default)==null?void 0:a.call(t,n);if(!i||i.length>1)return null;const s=vp(i);return s?v.withDirectives(v.cloneVNode(s,n),[[u]]):null}}});function vp(e){if(!e)return null;const t=e;for(const n of t){if(bs(n))switch(n.type){case v.Comment:continue;case v.Text:case"svg":return hp(n);case v.Fragment:return vp(n.children);default:return n}return hp(n)}return null}function hp(e){const t=No("only-child");return v.createVNode("span",{class:t.e("content")},[e])}const mp=Zt({virtualRef:{type:ge(Object)},virtualTriggering:Boolean,onMouseenter:{type:ge(Function)},onMouseleave:{type:ge(Function)},onClick:{type:ge(Function)},onKeydown:{type:ge(Function)},onFocus:{type:ge(Function)},onBlur:{type:ge(Function)},onContextmenu:{type:ge(Function)},id:String,open:Boolean}),oC=v.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),uC=v.defineComponent({...oC,props:mp,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=v.inject(qs,void 0);ED(o);const u=v.computed(()=>i.value?n.id:void 0),a=v.computed(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),i=v.computed(()=>{if(r&&r.value!=="tooltip")return r.value}),s=v.computed(()=>i.value?`${n.open}`:void 0);let l;return v.onMounted(()=>{v.watch(()=>n.virtualRef,c=>{c&&(o.value=sr(c))},{immediate:!0}),v.watch(o,(c,d)=>{l==null||l(),l=void 0,ua(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(p=>{var y;const m=n[p];m&&(c.addEventListener(p.slice(2).toLowerCase(),m),(y=d==null?void 0:d.removeEventListener)==null||y.call(d,p.slice(2).toLowerCase(),m))}),l=v.watch([u,a,i,s],p=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((y,m)=>{xs(p[m])?c.removeAttribute(y):c.setAttribute(y,p[m])})},{immediate:!0})),ua(d)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(p=>d.removeAttribute(p))},{immediate:!0})}),v.onBeforeUnmount(()=>{l==null||l(),l=void 0}),t({triggerRef:o}),(c,d)=>c.virtualTriggering?v.createCommentVNode("v-if",!0):(v.openBlock(),v.createBlock(v.unref(rC),v.mergeProps({key:0},c.$attrs,{"aria-controls":v.unref(u),"aria-describedby":v.unref(a),"aria-expanded":v.unref(s),"aria-haspopup":v.unref(i)}),{default:v.withCtx(()=>[v.renderSlot(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var aC=Pn(uC,[["__file","trigger.vue"]]);const Qs="focus-trap.focus-after-trapped",Ys="focus-trap.focus-after-released",iC="focus-trap.focusout-prevented",gp={cancelable:!0,bubbles:!1},sC={cancelable:!0,bubbles:!1},yp="focusAfterTrapped",Dp="focusAfterReleased",lC=Symbol("elFocusTrap"),Gs=v.ref(),wa=v.ref(0),Xs=v.ref(0);let Ea=0;const Cp=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},wp=(e,t)=>{for(const n of e)if(!cC(n,t))return n},cC=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},fC=e=>{const t=Cp(e),n=wp(t,e),r=wp(t.reverse(),e);return[n,r]},dC=e=>e instanceof HTMLInputElement&&"select"in e,Tn=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),Xs.value=window.performance.now(),e!==n&&dC(e)&&t&&e.select()}};function Ep(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const pC=()=>{let e=[];return{push:r=>{const o=e[0];o&&r!==o&&o.pause(),e=Ep(e,r),e.unshift(r)},remove:r=>{var o,u;e=Ep(e,r),(u=(o=e[0])==null?void 0:o.resume)==null||u.call(o)}}},vC=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(Tn(r,t),document.activeElement!==n)return},Bp=pC(),hC=()=>wa.value>Xs.value,Ba=()=>{Gs.value="pointer",wa.value=window.performance.now()},Ap=()=>{Gs.value="keyboard",wa.value=window.performance.now()},mC=()=>(v.onMounted(()=>{Ea===0&&(document.addEventListener("mousedown",Ba),document.addEventListener("touchstart",Ba),document.addEventListener("keydown",Ap)),Ea++}),v.onBeforeUnmount(()=>{Ea--,Ea<=0&&(document.removeEventListener("mousedown",Ba),document.removeEventListener("touchstart",Ba),document.removeEventListener("keydown",Ap))}),{focusReason:Gs,lastUserFocusTimestamp:wa,lastAutomatedFocusTimestamp:Xs}),Aa=e=>new CustomEvent(iC,{...sC,detail:e}),gC=v.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[yp,Dp,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=v.ref();let r,o;const{focusReason:u}=mC();gD(m=>{e.trapped&&!a.paused&&t("release-requested",m)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=m=>{if(!e.loop&&!e.trapped||a.paused)return;const{key:f,altKey:w,ctrlKey:h,metaKey:g,currentTarget:C,shiftKey:E}=m,{loop:B}=e,F=f===ia.tab&&!w&&!h&&!g,A=document.activeElement;if(F&&A){const S=C,[P,O]=fC(S);if(P&&O){if(!E&&A===O){const k=Aa({focusReason:u.value});t("focusout-prevented",k),k.defaultPrevented||(m.preventDefault(),B&&Tn(P,!0))}else if(E&&[P,S].includes(A)){const k=Aa({focusReason:u.value});t("focusout-prevented",k),k.defaultPrevented||(m.preventDefault(),B&&Tn(O,!0))}}else if(A===S){const k=Aa({focusReason:u.value});t("focusout-prevented",k),k.defaultPrevented||m.preventDefault()}}};v.provide(lC,{focusTrapRef:n,onKeydown:i}),v.watch(()=>e.focusTrapEl,m=>{m&&(n.value=m)},{immediate:!0}),v.watch([n],([m],[f])=>{m&&(m.addEventListener("keydown",i),m.addEventListener("focusin",c),m.addEventListener("focusout",d)),f&&(f.removeEventListener("keydown",i),f.removeEventListener("focusin",c),f.removeEventListener("focusout",d))});const s=m=>{t(yp,m)},l=m=>t(Dp,m),c=m=>{const f=v.unref(n);if(!f)return;const w=m.target,h=m.relatedTarget,g=w&&f.contains(w);e.trapped||h&&f.contains(h)||(r=h),g&&t("focusin",m),!a.paused&&e.trapped&&(g?o=w:Tn(o,!0))},d=m=>{const f=v.unref(n);if(!(a.paused||!f))if(e.trapped){const w=m.relatedTarget;!xs(w)&&!f.contains(w)&&setTimeout(()=>{if(!a.paused&&e.trapped){const h=Aa({focusReason:u.value});t("focusout-prevented",h),h.defaultPrevented||Tn(o,!0)}},0)}else{const w=m.target;w&&f.contains(w)||t("focusout",m)}};async function p(){await v.nextTick();const m=v.unref(n);if(m){Bp.push(a);const f=m.contains(document.activeElement)?r:document.activeElement;if(r=f,!m.contains(f)){const h=new Event(Qs,gp);m.addEventListener(Qs,s),m.dispatchEvent(h),h.defaultPrevented||v.nextTick(()=>{let g=e.focusStartEl;r1(g)||(Tn(g),document.activeElement!==g&&(g="first")),g==="first"&&vC(Cp(m),!0),(document.activeElement===f||g==="container")&&Tn(m)})}}}function y(){const m=v.unref(n);if(m){m.removeEventListener(Qs,s);const f=new CustomEvent(Ys,{...gp,detail:{focusReason:u.value}});m.addEventListener(Ys,l),m.dispatchEvent(f),!f.defaultPrevented&&(u.value=="keyboard"||!hC()||m.contains(document.activeElement))&&Tn(r??document.body),m.removeEventListener(Ys,l),Bp.remove(a)}}return v.onMounted(()=>{e.trapped&&p(),v.watch(()=>e.trapped,m=>{m?p():y()})}),v.onBeforeUnmount(()=>{e.trapped&&y()}),{onKeydown:i}}});function yC(e,t,n,r,o,u){return v.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var DC=Pn(gC,[["render",yC],["__file","focus-trap.vue"]]);const CC=["fixed","absolute"],wC=Zt({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:ge(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Ps,default:"bottom"},popperOptions:{type:ge(Object),default:()=>({})},strategy:{type:String,values:CC,default:"absolute"}}),bp=Zt({...wC,id:String,style:{type:ge([String,Array,Object])},className:{type:ge([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:ge([String,Array,Object])},popperStyle:{type:ge([String,Array,Object])},referenceEl:{type:ge(Object)},triggerTargetEl:{type:ge(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),EC={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},BC=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,u={placement:n,strategy:r,...o,modifiers:[...bC(e),...t]};return FC(u,o==null?void 0:o.modifiers),u},AC=e=>{if(fn)return sr(e)};function bC(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function FC(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const xC=0,SC=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:o}=v.inject(qs,void 0),u=v.ref(),a=v.ref(),i=v.computed(()=>({name:"eventListeners",enabled:!!e.visible})),s=v.computed(()=>{var h;const g=v.unref(u),C=(h=v.unref(a))!=null?h:xC;return{name:"arrow",enabled:!o1(g),options:{element:g,padding:C}}}),l=v.computed(()=>({onFirstUpdate:()=>{m()},...BC(e,[v.unref(s),v.unref(i)])})),c=v.computed(()=>AC(e.referenceEl)||v.unref(r)),{attributes:d,state:p,styles:y,update:m,forceUpdate:f,instanceRef:w}=pD(c,n,l);return v.watch(w,h=>t.value=h),v.onMounted(()=>{v.watch(()=>{var h;return(h=v.unref(c))==null?void 0:h.getBoundingClientRect()},()=>{m()})}),{attributes:d,arrowRef:u,contentRef:n,instanceRef:w,state:p,styles:y,role:o,forceUpdate:f,update:m}},OC=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:o}=bD(),u=No("popper"),a=v.computed(()=>v.unref(t).popper),i=v.ref(oa(e.zIndex)?e.zIndex:o()),s=v.computed(()=>[u.b(),u.is("pure",e.pure),u.is(e.effect),e.popperClass]),l=v.computed(()=>[{zIndex:v.unref(i)},v.unref(n).popper,e.popperStyle||{}]),c=v.computed(()=>r.value==="dialog"?"false":void 0),d=v.computed(()=>v.unref(n).arrow||{});return{ariaModal:c,arrowStyle:d,contentAttrs:a,contentClass:s,contentStyle:l,contentZIndex:i,updateZIndex:()=>{i.value=oa(e.zIndex)?e.zIndex:o()}}},_C=(e,t)=>{const n=v.ref(!1),r=v.ref();return{focusStartRef:r,trapped:n,onFocusAfterReleased:l=>{var c;((c=l.detail)==null?void 0:c.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:l=>{e.visible&&!n.value&&(l.target&&(r.value=l.target),n.value=!0)},onFocusoutPrevented:l=>{e.trapping||(l.detail.focusReason==="pointer"&&l.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},kC=v.defineComponent({name:"ElPopperContent"}),PC=v.defineComponent({...kC,props:bp,emits:EC,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:o,trapped:u,onFocusAfterReleased:a,onFocusAfterTrapped:i,onFocusInTrap:s,onFocusoutPrevented:l,onReleaseRequested:c}=_C(r,n),{attributes:d,arrowRef:p,contentRef:y,styles:m,instanceRef:f,role:w,update:h}=SC(r),{ariaModal:g,arrowStyle:C,contentAttrs:E,contentClass:B,contentStyle:F,updateZIndex:A}=OC(r,{styles:m,attributes:d,role:w}),S=v.inject(cp,void 0),P=v.ref();v.provide(fp,{arrowStyle:C,arrowRef:p,arrowOffset:P}),S&&(S.addInputId||S.removeInputId)&&v.provide(cp,{...S,addInputId:As,removeInputId:As});let O;const H=(W=!0)=>{h(),W&&A()},k=()=>{H(!1),r.visible&&r.focusOnShow?u.value=!0:r.visible===!1&&(u.value=!1)};return v.onMounted(()=>{v.watch(()=>r.triggerTargetEl,(W,$)=>{O==null||O(),O=void 0;const V=v.unref(W||y.value),G=v.unref($||y.value);ua(V)&&(O=v.watch([w,()=>r.ariaLabel,g,()=>r.id],R=>{["role","aria-label","aria-modal","id"].forEach((M,U)=>{xs(R[U])?V.removeAttribute(M):V.setAttribute(M,R[U])})},{immediate:!0})),G!==V&&ua(G)&&["role","aria-label","aria-modal","id"].forEach(R=>{G.removeAttribute(R)})},{immediate:!0}),v.watch(()=>r.visible,k,{immediate:!0})}),v.onBeforeUnmount(()=>{O==null||O(),O=void 0}),t({popperContentRef:y,popperInstanceRef:f,updatePopper:H,contentStyle:F}),(W,$)=>(v.openBlock(),v.createElementBlock("div",v.mergeProps({ref_key:"contentRef",ref:y},v.unref(E),{style:v.unref(F),class:v.unref(B),tabindex:"-1",onMouseenter:$[0]||($[0]=V=>W.$emit("mouseenter",V)),onMouseleave:$[1]||($[1]=V=>W.$emit("mouseleave",V))}),[v.createVNode(v.unref(DC),{trapped:v.unref(u),"trap-on-focus-in":!0,"focus-trap-el":v.unref(y),"focus-start-el":v.unref(o),onFocusAfterTrapped:v.unref(i),onFocusAfterReleased:v.unref(a),onFocusin:v.unref(s),onFocusoutPrevented:v.unref(l),onReleaseRequested:v.unref(c)},{default:v.withCtx(()=>[v.renderSlot(W.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var TC=Pn(PC,[["__file","content.vue"]]);const RC=Ss(ZD),Zs=Symbol("elTooltip"),Fp=Zt({...CD,...bp,appendTo:{type:ge([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:ge(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),xp=Zt({...mp,disabled:Boolean,trigger:{type:ge([String,Array]),default:"hover"},triggerKeys:{type:ge(Array),default:()=>[ia.enter,ia.space]}}),{useModelToggleProps:NC,useModelToggleEmits:jC,useModelToggle:IC}=bd("visible"),MC=Zt({...dp,...NC,...Fp,...xp,...pp,showArrow:{type:Boolean,default:!0}}),$C=[...jC,"before-show","before-hide","show","hide","open","close"],LC=(e,t)=>n1(e)?e.includes(t):e===t,Kr=(e,t,n)=>r=>{LC(v.unref(e),t)&&n(r)},zC=v.defineComponent({name:"ElTooltipTrigger"}),VC=v.defineComponent({...zC,props:xp,setup(e,{expose:t}){const n=e,r=No("tooltip"),{controlled:o,id:u,open:a,onOpen:i,onClose:s,onToggle:l}=v.inject(Zs,void 0),c=v.ref(null),d=()=>{if(v.unref(o)||n.disabled)return!0},p=v.toRef(n,"trigger"),y=cn(d,Kr(p,"hover",i)),m=cn(d,Kr(p,"hover",s)),f=cn(d,Kr(p,"click",E=>{E.button===0&&l(E)})),w=cn(d,Kr(p,"focus",i)),h=cn(d,Kr(p,"focus",s)),g=cn(d,Kr(p,"contextmenu",E=>{E.preventDefault(),l(E)})),C=cn(d,E=>{const{code:B}=E;n.triggerKeys.includes(B)&&(E.preventDefault(),l(E))});return t({triggerRef:c}),(E,B)=>(v.openBlock(),v.createBlock(v.unref(aC),{id:v.unref(u),"virtual-ref":E.virtualRef,open:v.unref(a),"virtual-triggering":E.virtualTriggering,class:v.normalizeClass(v.unref(r).e("trigger")),onBlur:v.unref(h),onClick:v.unref(f),onContextmenu:v.unref(g),onFocus:v.unref(w),onMouseenter:v.unref(y),onMouseleave:v.unref(m),onKeydown:v.unref(C)},{default:v.withCtx(()=>[v.renderSlot(E.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var WC=Pn(VC,[["__file","trigger.vue"]]);const UC=v.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),HC=v.defineComponent({...UC,props:Fp,setup(e,{expose:t}){const n=e,{selector:r}=Xd(),o=No("tooltip"),u=v.ref(null),a=v.ref(!1),{controlled:i,id:s,open:l,trigger:c,onClose:d,onOpen:p,onShow:y,onHide:m,onBeforeShow:f,onBeforeHide:w}=v.inject(Zs,void 0),h=v.computed(()=>n.transition||`${o.namespace.value}-fade-in-linear`),g=v.computed(()=>n.persistent);v.onBeforeUnmount(()=>{a.value=!0});const C=v.computed(()=>v.unref(g)?!0:v.unref(l)),E=v.computed(()=>n.disabled?!1:v.unref(l)),B=v.computed(()=>n.appendTo||r.value),F=v.computed(()=>{var R;return(R=n.style)!=null?R:{}}),A=v.computed(()=>!v.unref(l)),S=()=>{m()},P=()=>{if(v.unref(i))return!0},O=cn(P,()=>{n.enterable&&v.unref(c)==="hover"&&p()}),H=cn(P,()=>{v.unref(c)==="hover"&&d()}),k=()=>{var R,M;(M=(R=u.value)==null?void 0:R.updatePopper)==null||M.call(R),f==null||f()},W=()=>{w==null||w()},$=()=>{y(),G=Gy(v.computed(()=>{var R;return(R=u.value)==null?void 0:R.popperContentRef}),()=>{if(v.unref(i))return;v.unref(c)!=="hover"&&d()})},V=()=>{n.virtualTriggering||d()};let G;return v.watch(()=>v.unref(l),R=>{R||G==null||G()},{flush:"post"}),v.watch(()=>n.content,()=>{var R,M;(M=(R=u.value)==null?void 0:R.updatePopper)==null||M.call(R)}),t({contentRef:u}),(R,M)=>(v.openBlock(),v.createBlock(v.Teleport,{disabled:!R.teleported,to:v.unref(B)},[v.createVNode(v.Transition,{name:v.unref(h),onAfterLeave:S,onBeforeEnter:k,onAfterEnter:$,onBeforeLeave:W},{default:v.withCtx(()=>[v.unref(C)?v.withDirectives((v.openBlock(),v.createBlock(v.unref(TC),v.mergeProps({key:0,id:v.unref(s),ref_key:"contentRef",ref:u},R.$attrs,{"aria-label":R.ariaLabel,"aria-hidden":v.unref(A),"boundaries-padding":R.boundariesPadding,"fallback-placements":R.fallbackPlacements,"gpu-acceleration":R.gpuAcceleration,offset:R.offset,placement:R.placement,"popper-options":R.popperOptions,strategy:R.strategy,effect:R.effect,enterable:R.enterable,pure:R.pure,"popper-class":R.popperClass,"popper-style":[R.popperStyle,v.unref(F)],"reference-el":R.referenceEl,"trigger-target-el":R.triggerTargetEl,visible:v.unref(E),"z-index":R.zIndex,onMouseenter:v.unref(O),onMouseleave:v.unref(H),onBlur:V,onClose:v.unref(d)}),{default:v.withCtx(()=>[a.value?v.createCommentVNode("v-if",!0):v.renderSlot(R.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[v.vShow,v.unref(E)]]):v.createCommentVNode("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var KC=Pn(HC,[["__file","content.vue"]]);const qC=["innerHTML"],QC={key:1},YC=v.defineComponent({name:"ElTooltip"}),GC=v.defineComponent({...YC,props:MC,emits:$C,setup(e,{expose:t,emit:n}){const r=e;DD();const o=mD(),u=v.ref(),a=v.ref(),i=()=>{var h;const g=v.unref(u);g&&((h=g.popperInstanceRef)==null||h.update())},s=v.ref(!1),l=v.ref(),{show:c,hide:d,hasUpdateHandler:p}=IC({indicator:s,toggleReason:l}),{onOpen:y,onClose:m}=wD({showAfter:v.toRef(r,"showAfter"),hideAfter:v.toRef(r,"hideAfter"),autoClose:v.toRef(r,"autoClose"),open:c,close:d}),f=v.computed(()=>wd(r.visible)&&!p.value);v.provide(Zs,{controlled:f,id:o,open:v.readonly(s),trigger:v.toRef(r,"trigger"),onOpen:h=>{y(h)},onClose:h=>{m(h)},onToggle:h=>{v.unref(s)?m(h):y(h)},onShow:()=>{n("show",l.value)},onHide:()=>{n("hide",l.value)},onBeforeShow:()=>{n("before-show",l.value)},onBeforeHide:()=>{n("before-hide",l.value)},updatePopper:i}),v.watch(()=>r.disabled,h=>{h&&s.value&&(s.value=!1)});const w=h=>{var g,C;const E=(C=(g=a.value)==null?void 0:g.contentRef)==null?void 0:C.popperContentRef,B=(h==null?void 0:h.relatedTarget)||document.activeElement;return E&&E.contains(B)};return v.onDeactivated(()=>s.value&&d()),t({popperRef:u,contentRef:a,isFocusInsideContent:w,updatePopper:i,onOpen:y,onClose:m,hide:d}),(h,g)=>(v.openBlock(),v.createBlock(v.unref(RC),{ref_key:"popperRef",ref:u,role:h.role},{default:v.withCtx(()=>[v.createVNode(WC,{disabled:h.disabled,trigger:h.trigger,"trigger-keys":h.triggerKeys,"virtual-ref":h.virtualRef,"virtual-triggering":h.virtualTriggering},{default:v.withCtx(()=>[h.$slots.default?v.renderSlot(h.$slots,"default",{key:0}):v.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),v.createVNode(KC,{ref_key:"contentRef",ref:a,"aria-label":h.ariaLabel,"boundaries-padding":h.boundariesPadding,content:h.content,disabled:h.disabled,effect:h.effect,enterable:h.enterable,"fallback-placements":h.fallbackPlacements,"hide-after":h.hideAfter,"gpu-acceleration":h.gpuAcceleration,offset:h.offset,persistent:h.persistent,"popper-class":h.popperClass,"popper-style":h.popperStyle,placement:h.placement,"popper-options":h.popperOptions,pure:h.pure,"raw-content":h.rawContent,"reference-el":h.referenceEl,"trigger-target-el":h.triggerTargetEl,"show-after":h.showAfter,strategy:h.strategy,teleported:h.teleported,transition:h.transition,"virtual-triggering":h.virtualTriggering,"z-index":h.zIndex,"append-to":h.appendTo},{default:v.withCtx(()=>[v.renderSlot(h.$slots,"content",{},()=>[h.rawContent?(v.openBlock(),v.createElementBlock("span",{key:0,innerHTML:h.content},null,8,qC)):(v.openBlock(),v.createElementBlock("span",QC,v.toDisplayString(h.content),1))]),h.showArrow?(v.openBlock(),v.createBlock(v.unref(tC),{key:0,"arrow-offset":h.arrowOffset},null,8,["arrow-offset"])):v.createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var XC=Pn(GC,[["__file","tooltip.vue"]]);const ZC=Ss(XC);var ba=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Uo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const JC={viewBox:"0 0 24 24",width:"1em",height:"1em"},ew=[v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M16 5v6a4 4 0 0 1-4 4v0a4 4 0 0 1-4-4V5M6 19h12"},null,-1)];function tw(e,t){return v.openBlock(),v.createElementBlock("svg",JC,[...ew])}const nw={name:"iconoir-underline",render:tw},rw={viewBox:"0 0 24 24",width:"1em",height:"1em"},ow=[v.createElementVNode("path",{fill:"currentColor",d:"M15 20H7v-2h2.927l2.116-12H9V4h8v2h-2.927l-2.116 12H15z"},null,-1)];function uw(e,t){return v.openBlock(),v.createElementBlock("svg",rw,[...ow])}const aw={name:"ri-italic",render:uw},iw={viewBox:"0 0 20 20",width:"1em",height:"1em"},sw=[v.createElementVNode("path",{fill:"currentColor",d:"M6.252 3.702A6.56 6.56 0 0 1 10 2.5c2.783 0 4.489 1.485 5.1 2.3a.75.75 0 0 1-1.2.9C13.511 5.182 12.217 4 10 4a5.06 5.06 0 0 0-2.877.923C6.331 5.489 6 6.105 6 6.5c0 .78.376 1.285 1.11 1.71c.18.105.377.2.586.29H5.162c-.408-.523-.662-1.178-.662-2c0-1.105.794-2.114 1.752-2.798M16.5 10a.75.75 0 0 1 0 1.5h-1.662c.408.523.662 1.178.662 2c0 1.358-.874 2.376-1.912 3.014c-1.042.641-2.367.986-3.588.986c-1.142 0-2.133-.129-2.992-.498c-.877-.378-1.563-.982-2.132-1.836a.75.75 0 1 1 1.248-.832c.43.646.901 1.042 1.477 1.29c.594.255 1.354.376 2.4.376c.966 0 2.015-.28 2.801-.764C13.593 14.75 14 14.142 14 13.5c0-.78-.376-1.285-1.11-1.71a5.42 5.42 0 0 0-.586-.29H3.5a.75.75 0 0 1 0-1.5z"},null,-1)];function lw(e,t){return v.openBlock(),v.createElementBlock("svg",iw,[...sw])}const cw={name:"fluent-text-strikethrough20-filled",render:lw},fw={viewBox:"0 0 24 24",width:"1em",height:"1em"},dw=[v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-width":"1.5",d:"M12 11.667H8m4 0s3.333 0 3.333-3.334C15.333 5 12 5 12 5H8.6a.6.6 0 0 0-.6.6v6.067m4 0s4 0 4 3.666C16 19 12 19 12 19H8.6a.6.6 0 0 1-.6-.6v-6.733"},null,-1)];function pw(e,t){return v.openBlock(),v.createElementBlock("svg",fw,[...dw])}const vw={name:"iconoir-bold",render:pw};function Sp(e){const t=kt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=tn(e),u=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=da(n)!==u||da(r)!==a;return i&&(n=u,r=a),{width:n,height:r,$:i}}function Op(e){return vn(e)?e:e.contextElement}function qr(e){const t=Op(e);if(!tn(t))return _n(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:u}=Sp(t);let a=(u?da(n.width):n.width)/r,i=(u?da(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const hw=_n(0);function _p(e){const t=yt(e);return!Hs()||!t.visualViewport?hw:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function mw(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==yt(e)?!1:t}function Ho(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),u=Op(e);let a=_n(1);t&&(r?vn(r)&&(a=qr(r)):a=qr(e));const i=mw(u,n,r)?_p(u):_n(0);let s=(o.left+i.x)/a.x,l=(o.top+i.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(u){const p=yt(u),y=r&&vn(r)?yt(r):r;let m=p,f=m.frameElement;for(;f&&r&&y!==m;){const w=qr(f),h=f.getBoundingClientRect(),g=kt(f),C=h.left+(f.clientLeft+parseFloat(g.paddingLeft))*w.x,E=h.top+(f.clientTop+parseFloat(g.paddingTop))*w.y;s*=w.x,l*=w.y,c*=w.x,d*=w.y,s+=C,l+=E,m=yt(f),f=m.frameElement}}return ga({width:c,height:d,x:s,y:l})}const gw=[":popover-open",":modal"];function kp(e){return gw.some(t=>{try{return e.matches(t)}catch{return!1}})}function yw(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const u=o==="fixed",a=kn(r),i=t?kp(t.floating):!1;if(r===a||i&&u)return n;let s={scrollLeft:0,scrollTop:0},l=_n(1);const c=_n(0),d=tn(r);if((d||!d&&!u)&&((pn(r)!=="body"||Wo(a))&&(s=Da(r)),tn(r))){const p=Ho(r);l=qr(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-s.scrollLeft*l.x+c.x,y:n.y*l.y-s.scrollTop*l.y+c.y}}function Dw(e){return Array.from(e.getClientRects())}function Pp(e){return Ho(kn(e)).left+Da(e).scrollLeft}function Cw(e){const t=kn(e),n=Da(e),r=e.ownerDocument.body,o=Ur(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),u=Ur(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Pp(e);const i=-n.scrollTop;return kt(r).direction==="rtl"&&(a+=Ur(t.clientWidth,r.clientWidth)-o),{width:o,height:u,x:a,y:i}}function ww(e,t){const n=yt(e),r=kn(e),o=n.visualViewport;let u=r.clientWidth,a=r.clientHeight,i=0,s=0;if(o){u=o.width,a=o.height;const l=Hs();(!l||l&&t==="fixed")&&(i=o.offsetLeft,s=o.offsetTop)}return{width:u,height:a,x:i,y:s}}function Ew(e,t){const n=Ho(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,u=tn(e)?qr(e):_n(1),a=e.clientWidth*u.x,i=e.clientHeight*u.y,s=o*u.x,l=r*u.y;return{width:a,height:i,x:s,y:l}}function Tp(e,t,n){let r;if(t==="viewport")r=ww(e,n);else if(t==="document")r=Cw(kn(e));else if(vn(t))r=Ew(t,n);else{const o=_p(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return ga(r)}function Rp(e,t){const n=Hr(e);return n===t||!vn(n)||ya(n)?!1:kt(n).position==="fixed"||Rp(n,t)}function Bw(e,t){const n=t.get(e);if(n)return n;let r=Ks(e,[],!1).filter(i=>vn(i)&&pn(i)!=="body"),o=null;const u=kt(e).position==="fixed";let a=u?Hr(e):e;for(;vn(a)&&!ya(a);){const i=kt(a),s=Us(a);!s&&i.position==="fixed"&&(o=null),(u?!s&&!o:!s&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Wo(a)&&!s&&Rp(e,a))?r=r.filter(c=>c!==a):o=i,a=Hr(a)}return t.set(e,r),r}function Aw(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Bw(t,this._c):[].concat(n),r],i=a[0],s=a.reduce((l,c)=>{const d=Tp(t,c,o);return l.top=Ur(d.top,l.top),l.right=zs(d.right,l.right),l.bottom=zs(d.bottom,l.bottom),l.left=Ur(d.left,l.left),l},Tp(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function bw(e){const{width:t,height:n}=Sp(e);return{width:t,height:n}}function Fw(e,t,n){const r=tn(t),o=kn(t),u=n==="fixed",a=Ho(e,!0,u,t);let i={scrollLeft:0,scrollTop:0};const s=_n(0);if(r||!r&&!u)if((pn(t)!=="body"||Wo(o))&&(i=Da(t)),r){const d=Ho(t,!0,u,t);s.x=d.x+t.clientLeft,s.y=d.y+t.clientTop}else o&&(s.x=Pp(o));const l=a.left+i.scrollLeft-s.x,c=a.top+i.scrollTop-s.y;return{x:l,y:c,width:a.width,height:a.height}}function Np(e,t){return!tn(e)||kt(e).position==="fixed"?null:t?t(e):e.offsetParent}function jp(e,t){const n=yt(e);if(!tn(e)||kp(e))return n;let r=Np(e,t);for(;r&&$D(r)&&kt(r).position==="static";)r=Np(r,t);return r&&(pn(r)==="html"||pn(r)==="body"&&kt(r).position==="static"&&!Us(r))?n:r||LD(e)||n}const xw=async function(e){const t=this.getOffsetParent||jp,n=this.getDimensions;return{reference:Fw(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function Sw(e){return kt(e).direction==="rtl"}const Ow={convertOffsetParentRelativeRectToViewportRelativeRect:yw,getDocumentElement:kn,getClippingRect:Aw,getOffsetParent:jp,getElementRects:xw,getClientRects:Dw,getDimensions:bw,getScale:qr,isElement:vn,isRTL:Sw},_w=MD,kw=ND,Pw=(e,t,n)=>{const r=new Map,o={platform:Ow,...n},u={...o.platform,_c:r};return RD(e,t,{...o,platform:u})};function Tw(e){return e!=null&&typeof e=="object"&&"$el"in e}function Ip(e){if(Tw(e)){const t=e.$el;return Ws(t)&&pn(t)==="#comment"?null:t}return e}function Mp(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $p(e,t){const n=Mp(e);return Math.round(t*n)/n}function Rw(e,t,n){n===void 0&&(n={});const r=n.whileElementsMounted,o=v.computed(()=>{var A;return(A=v.unref(n.open))!=null?A:!0}),u=v.computed(()=>v.unref(n.middleware)),a=v.computed(()=>{var A;return(A=v.unref(n.placement))!=null?A:"bottom"}),i=v.computed(()=>{var A;return(A=v.unref(n.strategy))!=null?A:"absolute"}),s=v.computed(()=>{var A;return(A=v.unref(n.transform))!=null?A:!0}),l=v.computed(()=>Ip(e.value)),c=v.computed(()=>Ip(t.value)),d=v.ref(0),p=v.ref(0),y=v.ref(i.value),m=v.ref(a.value),f=v.shallowRef({}),w=v.ref(!1),h=v.computed(()=>{const A={position:y.value,left:"0",top:"0"};if(!c.value)return A;const S=$p(c.value,d.value),P=$p(c.value,p.value);return s.value?{...A,transform:"translate("+S+"px, "+P+"px)",...Mp(c.value)>=1.5&&{willChange:"transform"}}:{position:y.value,left:S+"px",top:P+"px"}});let g;function C(){l.value==null||c.value==null||Pw(l.value,c.value,{middleware:u.value,placement:a.value,strategy:i.value}).then(A=>{d.value=A.x,p.value=A.y,y.value=A.strategy,m.value=A.placement,f.value=A.middlewareData,w.value=!0})}function E(){typeof g=="function"&&(g(),g=void 0)}function B(){if(E(),r===void 0){C();return}if(l.value!=null&&c.value!=null){g=r(l.value,c.value,C);return}}function F(){o.value||(w.value=!1)}return v.watch([u,a,i],C,{flush:"sync"}),v.watch([l,c],B,{flush:"sync"}),v.watch(o,F,{flush:"sync"}),v.getCurrentScope()&&v.onScopeDispose(E),{x:v.shallowReadonly(d),y:v.shallowReadonly(p),strategy:v.shallowReadonly(y),placement:v.shallowReadonly(m),middlewareData:v.shallowReadonly(f),isPositioned:v.shallowReadonly(w),floatingStyles:h,update:C}}function Nw(e,t){let n,r,o;const u=v.ref(!0),a=()=>{u.value=!0,o()};v.watch(e,a,{flush:"sync"});const i=typeof t=="function"?t:t.get,s=typeof t=="function"?void 0:t.set,l=v.customRef((c,d)=>(r=c,o=d,{get(){return u.value&&(n=i(),u.value=!1),r(),n},set(p){s==null||s(p)}}));return Object.isExtensible(l)&&(l.trigger=a),l}function Fa(e){return v.getCurrentScope()?(v.onScopeDispose(e),!0):!1}function Js(){const e=new Set,t=o=>{e.delete(o)};return{on:o=>{e.add(o);const u=()=>t(o);return Fa(u),{off:u}},off:t,trigger:(...o)=>Promise.all(Array.from(e).map(u=>u(...o)))}}function jw(e){let t=0,n,r;const o=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...u)=>(t+=1,n||(r=v.effectScope(!0),n=r.run(()=>e(...u))),Fa(o),n)}function Ko(e){return typeof e=="function"?e():v.unref(e)}const Iw=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Mw=e=>e!=null,$w=Object.prototype.toString,Lw=e=>$w.call(e)==="[object Object]",zw=()=>{};function Vw(e,t){function n(...r){return new Promise((o,u)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(u)})}return n}const Ww=e=>e();function Uw(e,t,n={}){const{eventFilter:r=Ww,...o}=n,u=Vw(r,t);let a,i,s;if(o.flush==="sync"){const l=v.ref(!1);i=()=>{},a=c=>{l.value=!0,c(),l.value=!1},s=v.watch(e,(...c)=>{l.value||u(...c)},o)}else{const l=[],c=v.ref(0),d=v.ref(0);i=()=>{c.value=d.value},l.push(v.watch(e,()=>{d.value++},{...o,flush:"sync"})),a=p=>{const y=d.value;p(),c.value+=d.value-y},l.push(v.watch(e,(...p)=>{const y=c.value>0&&c.value===d.value;c.value=0,d.value=0,!y&&u(...p)},o)),s=()=>{l.forEach(p=>p())}}return{stop:s,ignoreUpdates:a,ignorePrevAsyncUpdates:i}}function Hw(e,t,n={}){let r;function o(){if(!r)return;const c=r;r=void 0,c()}function u(c){r=c}const a=(c,d)=>(o(),t(c,d,u)),i=Uw(e,a,n),{ignoreUpdates:s}=i;return{...i,trigger:()=>{let c;return s(()=>{c=a(Kw(e),qw(e))}),c}}}function Kw(e){return v.isReactive(e)?e:Array.isArray(e)?e.map(t=>Ko(t)):Ko(e)}function qw(e){return Array.isArray(e)?e.map(()=>{}):void 0}function qo(e){var t;const n=Ko(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Qo=Iw?window:void 0;function Qe(...e){let t,n,r,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,o]=e,t=Qo):[t,n,r,o]=e,!t)return zw;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const u=[],a=()=>{u.forEach(c=>c()),u.length=0},i=(c,d,p,y)=>(c.addEventListener(d,p,y),()=>c.removeEventListener(d,p,y)),s=v.watch(()=>[qo(t),Ko(o)],([c,d])=>{if(a(),!c)return;const p=Lw(d)?{...d}:d;u.push(...n.flatMap(y=>r.map(m=>i(c,y,m,p))))},{immediate:!0,flush:"post"}),l=()=>{s(),a()};return Fa(l),l}function Qw(e={}){var t;const{window:n=Qo,deep:r=!0}=e,o=(t=e.document)!=null?t:n==null?void 0:n.document,u=()=>{var s;let l=o==null?void 0:o.activeElement;if(r)for(;l!=null&&l.shadowRoot;)l=(s=l==null?void 0:l.shadowRoot)==null?void 0:s.activeElement;return l},a=v.ref(),i=()=>{a.value=u()};return n&&(Qe(n,"blur",s=>{s.relatedTarget===null&&i()},!0),Qe(n,"focus",i,!0)),i(),a}function Yw(){const e=v.ref(!1),t=v.getCurrentInstance();return t&&v.onMounted(()=>{e.value=!0},t),e}function Gw(e){const t=Yw();return v.computed(()=>(t.value,!!e()))}function Xw(e,t,n={}){const{window:r=Qo,...o}=n;let u;const a=Gw(()=>r&&"MutationObserver"in r),i=()=>{u&&(u.disconnect(),u=void 0)},s=v.computed(()=>{const p=Ko(e),y=(Array.isArray(p)?p:[p]).map(qo).filter(Mw);return new Set(y)}),l=v.watch(()=>s.value,p=>{i(),a.value&&r&&p.size&&(u=new MutationObserver(t),p.forEach(y=>u.observe(y,o)))},{immediate:!0,flush:"post"}),c=()=>u==null?void 0:u.takeRecords(),d=()=>{i(),l()};return Fa(d),{isSupported:a,stop:d,takeRecords:c}}function xa(e){const t=v.getCurrentInstance(),n=Nw(()=>null,()=>e?qo(e):t.proxy.$el);return v.onUpdated(n.trigger),v.onMounted(n.trigger),n}function Zw(e,t={}){const{delayEnter:n=0,delayLeave:r=0,window:o=Qo}=t,u=v.ref(!1);let a;const i=s=>{const l=s?n:r;a&&(clearTimeout(a),a=void 0),l?a=setTimeout(()=>u.value=s,l):u.value=s};return o&&(Qe(e,"mouseenter",()=>i(!0),{passive:!0}),Qe(e,"mouseleave",()=>i(!1),{passive:!0})),u}function Jw(e,t={}){const n=Qw(t),r=v.computed(()=>qo(e));return{focused:v.computed(()=>r.value&&n.value?r.value.contains(n.value):!1)}}function eE(e={}){const{touch:t=!0,drag:n=!0,capture:r=!1,initialValue:o=!1,window:u=Qo}=e,a=v.ref(o),i=v.ref(null);if(!u)return{pressed:a,sourceType:i};const s=d=>()=>{a.value=!0,i.value=d},l=()=>{a.value=!1,i.value=null},c=v.computed(()=>qo(e.target)||u);return Qe(c,"mousedown",s("mouse"),{passive:!0,capture:r}),Qe(u,"mouseleave",l,{passive:!0,capture:r}),Qe(u,"mouseup",l,{passive:!0,capture:r}),n&&(Qe(c,"dragstart",s("mouse"),{passive:!0,capture:r}),Qe(u,"drop",l,{passive:!0,capture:r}),Qe(u,"dragend",l,{passive:!0,capture:r})),t&&(Qe(c,"touchstart",s("touch"),{passive:!0,capture:r}),Qe(u,"touchend",l,{passive:!0,capture:r}),Qe(u,"touchcancel",l,{passive:!0,capture:r})),{pressed:a,sourceType:i}}const Sa=v.ref(),Oa=v.ref(),tE=Js(),Lp=Js();function _a(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function nE(){return String.fromCharCode(_a(97,122))}function rE(){return String.fromCharCode(_a(65,90))}function zp(e=12,t={}){const{lowercase:n=!0,uppercase:r=!1,number:o=!1}=t,u=[];let a;if(n&&u.push("l"),r&&u.push("u"),o&&u.push("n"),!(a=u.length))throw new Error("???");let i="";for(;e-- >0;){const s=a>1?_a(0,a-1):0,l=u[s];l==="l"?i+=nE():l==="u"?i+=rE():l==="n"&&(i+=_a(0,9))}return i}function oE(){return zp(1,{uppercase:!0})+zp(17,{uppercase:!0,number:!0})}const uE=typeof window<"u";function aE(e,t,n){let r;const o=()=>{r==null||r.stop(),r=void 0},u=v.watch(e,(a,i,s)=>{a?(r&&o(),r=v.effectScope(),r.run(()=>t(a,i,s))):o()},n);return()=>{o(),u()}}function iE(e,t,n){return aE(e,t,{...n,immediate:!0})}const Vp=jw(()=>{const e=v.ref(null),t=v.computed(()=>{var u;return((u=e.value)==null?void 0:u.toString())??""}),n=v.computed(()=>t.value&&e.value.rangeCount>0),r=v.computed(()=>{if(n.value){const u=e.value.getRangeAt(0).cloneRange();if(u.collapse(u.startContainer===e.value.focusNode),u.startOffset===0){const a=document.createRange();return a.setStart(u.startContainer,0),a.setEnd(u.startContainer,1),a}return u}}),o=Js();return iE(Oa,()=>{Qe(window.document,"selectionchange",()=>{e.value=null,e.value=Oa.value.getSelection(),n.value&&o.trigger(e.value)})}),{text:t,isValidSelection:n,range:r,selection:e,onValidSelectionUpdate:o.on}});/*!
5
+ **/const js=()=>{},j1=Object.prototype.hasOwnProperty,Ld=(e,t)=>j1.call(e,t),I1=Array.isArray,$o=e=>typeof e=="function",M1=e=>typeof e=="string",Is=e=>e!==null&&typeof e=="object";var $1=typeof global=="object"&&global&&global.Object===Object&&global,L1=typeof self=="object"&&self&&self.Object===Object&&self,Ms=$1||L1||Function("return this")(),On=Ms.Symbol,zd=Object.prototype,z1=zd.hasOwnProperty,V1=zd.toString,Lo=On?On.toStringTag:void 0;function W1(e){var t=z1.call(e,Lo),n=e[Lo];try{e[Lo]=void 0;var r=!0}catch{}var o=V1.call(e);return r&&(t?e[Lo]=n:delete e[Lo]),o}var U1=Object.prototype,H1=U1.toString;function K1(e){return H1.call(e)}var q1="[object Null]",Y1="[object Undefined]",Vd=On?On.toStringTag:void 0;function $s(e){return e==null?e===void 0?Y1:q1:Vd&&Vd in Object(e)?W1(e):K1(e)}function Ls(e){return e!=null&&typeof e=="object"}var Q1="[object Symbol]";function zs(e){return typeof e=="symbol"||Ls(e)&&$s(e)==Q1}function G1(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var zo=Array.isArray,X1=1/0,Wd=On?On.prototype:void 0,Ud=Wd?Wd.toString:void 0;function Hd(e){if(typeof e=="string")return e;if(zo(e))return G1(e,Hd)+"";if(zs(e))return Ud?Ud.call(e):"";var t=e+"";return t=="0"&&1/e==-X1?"-0":t}function la(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Z1(e){return e}var J1="[object AsyncFunction]",eD="[object Function]",tD="[object GeneratorFunction]",nD="[object Proxy]";function rD(e){if(!la(e))return!1;var t=$s(e);return t==eD||t==tD||t==J1||t==nD}var Vs=Ms["__core-js_shared__"],Kd=function(){var e=/[^.]+$/.exec(Vs&&Vs.keys&&Vs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function oD(e){return!!Kd&&Kd in e}var uD=Function.prototype,aD=uD.toString;function iD(e){if(e!=null){try{return aD.call(e)}catch{}try{return e+""}catch{}}return""}var sD=/[\\^$.*+?()[\]{}|]/g,lD=/^\[object .+?Constructor\]$/,cD=Function.prototype,fD=Object.prototype,dD=cD.toString,pD=fD.hasOwnProperty,vD=RegExp("^"+dD.call(pD).replace(sD,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function hD(e){if(!la(e)||oD(e))return!1;var t=rD(e)?vD:lD;return t.test(iD(e))}function mD(e,t){return e==null?void 0:e[t]}function Ws(e,t){var n=mD(e,t);return hD(n)?n:void 0}function gD(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var yD=800,DD=16,CD=Date.now;function wD(e){var t=0,n=0;return function(){var r=CD(),o=DD-(r-n);if(n=r,o>0){if(++t>=yD)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ED(e){return function(){return e}}var ca=function(){try{var e=Ws(Object,"defineProperty");return e({},"",{}),e}catch{}}(),BD=ca?function(e,t){return ca(e,"toString",{configurable:!0,enumerable:!1,value:ED(t),writable:!0})}:Z1,bD=wD(BD),AD=9007199254740991,xD=/^(?:0|[1-9]\d*)$/;function qd(e,t){var n=typeof e;return t=t??AD,!!t&&(n=="number"||n!="symbol"&&xD.test(e))&&e>-1&&e%1==0&&e<t}function FD(e,t,n){t=="__proto__"&&ca?ca(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Yd(e,t){return e===t||e!==e&&t!==t}var SD=Object.prototype,OD=SD.hasOwnProperty;function _D(e,t,n){var r=e[t];(!(OD.call(e,t)&&Yd(r,n))||n===void 0&&!(t in e))&&FD(e,t,n)}var Qd=Math.max;function kD(e,t,n){return t=Qd(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,u=Qd(r.length-t,0),a=Array(u);++o<u;)a[o]=r[t+o];o=-1;for(var i=Array(t+1);++o<t;)i[o]=r[o];return i[t]=n(a),gD(e,this,i)}}var PD=9007199254740991;function TD(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=PD}var RD="[object Arguments]";function Gd(e){return Ls(e)&&$s(e)==RD}var Xd=Object.prototype,ND=Xd.hasOwnProperty,jD=Xd.propertyIsEnumerable,Zd=Gd(function(){return arguments}())?Gd:function(e){return Ls(e)&&ND.call(e,"callee")&&!jD.call(e,"callee")},ID=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,MD=/^\w*$/;function $D(e,t){if(zo(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||zs(e)?!0:MD.test(e)||!ID.test(e)||t!=null&&e in Object(t)}var Vo=Ws(Object,"create");function LD(){this.__data__=Vo?Vo(null):{},this.size=0}function zD(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var VD="__lodash_hash_undefined__",WD=Object.prototype,UD=WD.hasOwnProperty;function HD(e){var t=this.__data__;if(Vo){var n=t[e];return n===VD?void 0:n}return UD.call(t,e)?t[e]:void 0}var KD=Object.prototype,qD=KD.hasOwnProperty;function YD(e){var t=this.__data__;return Vo?t[e]!==void 0:qD.call(t,e)}var QD="__lodash_hash_undefined__";function GD(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Vo&&t===void 0?QD:t,this}function cr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}cr.prototype.clear=LD,cr.prototype.delete=zD,cr.prototype.get=HD,cr.prototype.has=YD,cr.prototype.set=GD;function XD(){this.__data__=[],this.size=0}function fa(e,t){for(var n=e.length;n--;)if(Yd(e[n][0],t))return n;return-1}var ZD=Array.prototype,JD=ZD.splice;function eC(e){var t=this.__data__,n=fa(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():JD.call(t,n,1),--this.size,!0}function tC(e){var t=this.__data__,n=fa(t,e);return n<0?void 0:t[n][1]}function nC(e){return fa(this.__data__,e)>-1}function rC(e,t){var n=this.__data__,r=fa(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function zr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}zr.prototype.clear=XD,zr.prototype.delete=eC,zr.prototype.get=tC,zr.prototype.has=nC,zr.prototype.set=rC;var oC=Ws(Ms,"Map");function uC(){this.size=0,this.__data__={hash:new cr,map:new(oC||zr),string:new cr}}function aC(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function da(e,t){var n=e.__data__;return aC(t)?n[typeof t=="string"?"string":"hash"]:n.map}function iC(e){var t=da(this,e).delete(e);return this.size-=t?1:0,t}function sC(e){return da(this,e).get(e)}function lC(e){return da(this,e).has(e)}function cC(e,t){var n=da(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function fr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}fr.prototype.clear=uC,fr.prototype.delete=iC,fr.prototype.get=sC,fr.prototype.has=lC,fr.prototype.set=cC;var fC="Expected a function";function Us(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(fC);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],u=n.cache;if(u.has(o))return u.get(o);var a=e.apply(this,r);return n.cache=u.set(o,a)||u,a};return n.cache=new(Us.Cache||fr),n}Us.Cache=fr;var dC=500;function pC(e){var t=Us(e,function(r){return n.size===dC&&n.clear(),r}),n=t.cache;return t}var vC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hC=/\\(\\)?/g,mC=pC(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(vC,function(n,r,o,u){t.push(o?u.replace(hC,"$1"):r||n)}),t});function gC(e){return e==null?"":Hd(e)}function pa(e,t){return zo(e)?e:$D(e,t)?[e]:mC(gC(e))}var yC=1/0;function Hs(e){if(typeof e=="string"||zs(e))return e;var t=e+"";return t=="0"&&1/e==-yC?"-0":t}function DC(e,t){t=pa(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Hs(t[n++])];return n&&n==r?e:void 0}function CC(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Jd=On?On.isConcatSpreadable:void 0;function wC(e){return zo(e)||Zd(e)||!!(Jd&&e&&e[Jd])}function EC(e,t,n,r,o){var u=-1,a=e.length;for(n||(n=wC),o||(o=[]);++u<a;){var i=e[u];n(i)?CC(o,i):o[o.length]=i}return o}function BC(e){var t=e==null?0:e.length;return t?EC(e):[]}function bC(e){return bD(kD(e,void 0,BC),e+"")}function AC(e,t){return e!=null&&t in Object(e)}function xC(e,t,n){t=pa(t,e);for(var r=-1,o=t.length,u=!1;++r<o;){var a=Hs(t[r]);if(!(u=e!=null&&n(e,a)))break;e=e[a]}return u||++r!=o?u:(o=e==null?0:e.length,!!o&&TD(o)&&qd(a,o)&&(zo(e)||Zd(e)))}function FC(e,t){return e!=null&&xC(e,t,AC)}function Ks(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}function qs(e){return e==null}function SC(e){return e===void 0}function OC(e,t,n,r){if(!la(e))return e;t=pa(t,e);for(var o=-1,u=t.length,a=u-1,i=e;i!=null&&++o<u;){var s=Hs(t[o]),l=n;if(s==="__proto__"||s==="constructor"||s==="prototype")return e;if(o!=a){var c=i[s];l=void 0,l===void 0&&(l=la(c)?c:qd(t[o+1])?[]:{})}_D(i,s,l),i=i[s]}return e}function _C(e,t,n){for(var r=-1,o=t.length,u={};++r<o;){var a=t[r],i=DC(e,a);n(i,a)&&OC(u,pa(a,e),i)}return u}function kC(e,t){return _C(e,t,function(n,r){return FC(e,r)})}var PC=bC(function(e,t){return e==null?{}:kC(e,t)});const ep=e=>typeof e=="boolean",va=e=>typeof e=="number",ha=e=>typeof Element>"u"?!1:e instanceof Element,tp=e=>Object.keys(e),np="__epPropKey",ge=e=>e,TC=e=>Is(e)&&!!e[np],ma=(e,t)=>{if(!Is(e)||TC(e))return e;const{values:n,required:r,default:o,type:u,validator:a}=e,s={type:u,required:!!r,validator:n||a?l=>{let c=!1,d=[];if(n&&(d=Array.from(n),Ld(e,"default")&&d.push(o),c||(c=d.includes(l))),a&&(c||(c=a(l))),!c&&d.length>0){const p=[...new Set(d)].map(y=>JSON.stringify(y)).join(", ");v.warn(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${p}], got value ${JSON.stringify(l)}.`)}return c}:void 0,[np]:!0};return Ld(e,"default")&&(s.default=o),s},St=e=>Ks(Object.entries(e).map(([t,n])=>[t,ma(n,t)])),Ys=(e,t)=>(e.install=n=>{for(const r of[e,...Object.values({})])n.component(r.name,r)},e),ga={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},RC=["","default","small","large"],NC=Symbol("localeContextKey"),Qs="el",jC="is-",dr=(e,t,n,r,o)=>{let u=`${e}-${t}`;return n&&(u+=`-${n}`),r&&(u+=`__${r}`),o&&(u+=`--${o}`),u},rp=Symbol("namespaceContextKey"),Gs=e=>{const t=v.getCurrentInstance()?v.inject(rp,v.ref(Qs)):v.ref(Qs);return v.computed(()=>v.unref(t)||Qs)},Wo=(e,t)=>{const n=Gs();return{namespace:n,b:(f="")=>dr(n.value,e,f,"",""),e:f=>f?dr(n.value,e,"",f,""):"",m:f=>f?dr(n.value,e,"","",f):"",be:(f,w)=>f&&w?dr(n.value,e,f,w,""):"",em:(f,w)=>f&&w?dr(n.value,e,"",f,w):"",bm:(f,w)=>f&&w?dr(n.value,e,f,"",w):"",bem:(f,w,h)=>f&&w&&h?dr(n.value,e,f,w,h):"",is:(f,...w)=>{const h=w.length>=1?w[0]:!0;return f&&h?`${jC}${f}`:""},cssVar:f=>{const w={};for(const h in f)f[h]&&(w[`--${n.value}-${h}`]=f[h]);return w},cssVarName:f=>`--${n.value}-${f}`,cssVarBlock:f=>{const w={};for(const h in f)f[h]&&(w[`--${n.value}-${e}-${h}`]=f[h]);return w},cssVarBlockName:f=>`--${n.value}-${e}-${f}`}},IC=ma({type:ge(Boolean),default:null}),MC=ma({type:ge(Function)}),op=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],o={[e]:IC,[n]:MC};return{useModelToggle:({indicator:a,toggleReason:i,shouldHideWhenRouteChanges:s,shouldProceed:l,onShow:c,onHide:d})=>{const p=v.getCurrentInstance(),{emit:y}=p,m=p.props,f=v.computed(()=>$o(m[n])),w=v.computed(()=>m[e]===null),h=b=>{a.value!==!0&&(a.value=!0,i&&(i.value=b),$o(c)&&c(b))},g=b=>{a.value!==!1&&(a.value=!1,i&&(i.value=b),$o(d)&&d(b))},C=b=>{if(m.disabled===!0||$o(l)&&!l())return;const S=f.value&&Jt;S&&y(t,!0),(w.value||!S)&&h(b)},E=b=>{if(m.disabled===!0||!Jt)return;const S=f.value&&Jt;S&&y(t,!1),(w.value||!S)&&g(b)},B=b=>{ep(b)&&(m.disabled&&b?f.value&&y(t,!1):a.value!==b&&(b?h():g()))},x=()=>{a.value?E():C()};return v.watch(()=>m[e],B),s&&p.appContext.config.globalProperties.$route!==void 0&&v.watch(()=>({...p.proxy.$route}),()=>{s.value&&a.value&&E()}),v.onMounted(()=>{B(m[e])}),{hide:E,show:C,toggle:x,hasUpdateHandler:f}},useModelToggleProps:o,useModelToggleEmits:r}};op("modelValue");var st="top",Ot="bottom",_t="right",lt="left",Xs="auto",Uo=[st,Ot,_t,lt],Vr="start",Ho="end",$C="clippingParents",up="viewport",Ko="popper",LC="reference",ap=Uo.reduce(function(e,t){return e.concat([t+"-"+Vr,t+"-"+Ho])},[]),Zs=[].concat(Uo,[Xs]).reduce(function(e,t){return e.concat([t,t+"-"+Vr,t+"-"+Ho])},[]),zC="beforeRead",VC="read",WC="afterRead",UC="beforeMain",HC="main",KC="afterMain",qC="beforeWrite",YC="write",QC="afterWrite",GC=[zC,VC,WC,UC,HC,KC,qC,YC,QC];function en(e){return e?(e.nodeName||"").toLowerCase():null}function Wt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wr(e){var t=Wt(e).Element;return e instanceof t||e instanceof Element}function kt(e){var t=Wt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Js(e){if(typeof ShadowRoot>"u")return!1;var t=Wt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function XC(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},u=t.elements[n];!kt(u)||!en(u)||(Object.assign(u.style,r),Object.keys(o).forEach(function(a){var i=o[a];i===!1?u.removeAttribute(a):u.setAttribute(a,i===!0?"":i)}))})}function ZC(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],u=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),i=a.reduce(function(s,l){return s[l]="",s},{});!kt(o)||!en(o)||(Object.assign(o.style,i),Object.keys(u).forEach(function(s){o.removeAttribute(s)}))})}}var ip={name:"applyStyles",enabled:!0,phase:"write",fn:XC,effect:ZC,requires:["computeStyles"]};function tn(e){return e.split("-")[0]}var pr=Math.max,ya=Math.min,Ur=Math.round;function Hr(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(kt(e)&&t){var u=e.offsetHeight,a=e.offsetWidth;a>0&&(r=Ur(n.width)/a||1),u>0&&(o=Ur(n.height)/u||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function el(e){var t=Hr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function sp(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Js(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function dn(e){return Wt(e).getComputedStyle(e)}function JC(e){return["table","td","th"].indexOf(en(e))>=0}function _n(e){return((Wr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Da(e){return en(e)==="html"?e:e.assignedSlot||e.parentNode||(Js(e)?e.host:null)||_n(e)}function lp(e){return!kt(e)||dn(e).position==="fixed"?null:e.offsetParent}function ew(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&kt(e)){var r=dn(e);if(r.position==="fixed")return null}var o=Da(e);for(Js(o)&&(o=o.host);kt(o)&&["html","body"].indexOf(en(o))<0;){var u=dn(o);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||t&&u.willChange==="filter"||t&&u.filter&&u.filter!=="none")return o;o=o.parentNode}return null}function qo(e){for(var t=Wt(e),n=lp(e);n&&JC(n)&&dn(n).position==="static";)n=lp(n);return n&&(en(n)==="html"||en(n)==="body"&&dn(n).position==="static")?t:n||ew(e)||t}function tl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Yo(e,t,n){return pr(e,ya(t,n))}function tw(e,t,n){var r=Yo(e,t,n);return r>n?n:r}function cp(){return{top:0,right:0,bottom:0,left:0}}function fp(e){return Object.assign({},cp(),e)}function dp(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var nw=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,fp(typeof e!="number"?e:dp(e,Uo))};function rw(e){var t,n=e.state,r=e.name,o=e.options,u=n.elements.arrow,a=n.modifiersData.popperOffsets,i=tn(n.placement),s=tl(i),l=[lt,_t].indexOf(i)>=0,c=l?"height":"width";if(!(!u||!a)){var d=nw(o.padding,n),p=el(u),y=s==="y"?st:lt,m=s==="y"?Ot:_t,f=n.rects.reference[c]+n.rects.reference[s]-a[s]-n.rects.popper[c],w=a[s]-n.rects.reference[s],h=qo(u),g=h?s==="y"?h.clientHeight||0:h.clientWidth||0:0,C=f/2-w/2,E=d[y],B=g-p[c]-d[m],x=g/2-p[c]/2+C,b=Yo(E,x,B),S=s;n.modifiersData[r]=(t={},t[S]=b,t.centerOffset=b-x,t)}}function ow(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!sp(t.elements.popper,o)||(t.elements.arrow=o))}var uw={name:"arrow",enabled:!0,phase:"main",fn:rw,effect:ow,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Kr(e){return e.split("-")[1]}var aw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function iw(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Ur(t*o)/o||0,y:Ur(n*o)/o||0}}function pp(e){var t,n=e.popper,r=e.popperRect,o=e.placement,u=e.variation,a=e.offsets,i=e.position,s=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=a.x,y=p===void 0?0:p,m=a.y,f=m===void 0?0:m,w=typeof c=="function"?c({x:y,y:f}):{x:y,y:f};y=w.x,f=w.y;var h=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),C=lt,E=st,B=window;if(l){var x=qo(n),b="clientHeight",S="clientWidth";if(x===Wt(n)&&(x=_n(n),dn(x).position!=="static"&&i==="absolute"&&(b="scrollHeight",S="scrollWidth")),x=x,o===st||(o===lt||o===_t)&&u===Ho){E=Ot;var P=d&&x===B&&B.visualViewport?B.visualViewport.height:x[b];f-=P-r.height,f*=s?1:-1}if(o===lt||(o===st||o===Ot)&&u===Ho){C=_t;var O=d&&x===B&&B.visualViewport?B.visualViewport.width:x[S];y-=O-r.width,y*=s?1:-1}}var H=Object.assign({position:i},l&&aw),k=c===!0?iw({x:y,y:f}):{x:y,y:f};if(y=k.x,f=k.y,s){var W;return Object.assign({},H,(W={},W[E]=g?"0":"",W[C]=h?"0":"",W.transform=(B.devicePixelRatio||1)<=1?"translate("+y+"px, "+f+"px)":"translate3d("+y+"px, "+f+"px, 0)",W))}return Object.assign({},H,(t={},t[E]=g?f+"px":"",t[C]=h?y+"px":"",t.transform="",t))}function sw(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,u=n.adaptive,a=u===void 0?!0:u,i=n.roundOffsets,s=i===void 0?!0:i,l={placement:tn(t.placement),variation:Kr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,pp(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,pp(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var vp={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:sw,data:{}},Ca={passive:!0};function lw(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,u=o===void 0?!0:o,a=r.resize,i=a===void 0?!0:a,s=Wt(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return u&&l.forEach(function(c){c.addEventListener("scroll",n.update,Ca)}),i&&s.addEventListener("resize",n.update,Ca),function(){u&&l.forEach(function(c){c.removeEventListener("scroll",n.update,Ca)}),i&&s.removeEventListener("resize",n.update,Ca)}}var hp={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:lw,data:{}},cw={left:"right",right:"left",bottom:"top",top:"bottom"};function wa(e){return e.replace(/left|right|bottom|top/g,function(t){return cw[t]})}var fw={start:"end",end:"start"};function mp(e){return e.replace(/start|end/g,function(t){return fw[t]})}function nl(e){var t=Wt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function rl(e){return Hr(_n(e)).left+nl(e).scrollLeft}function dw(e){var t=Wt(e),n=_n(e),r=t.visualViewport,o=n.clientWidth,u=n.clientHeight,a=0,i=0;return r&&(o=r.width,u=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,i=r.offsetTop)),{width:o,height:u,x:a+rl(e),y:i}}function pw(e){var t,n=_n(e),r=nl(e),o=(t=e.ownerDocument)==null?void 0:t.body,u=pr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=pr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-r.scrollLeft+rl(e),s=-r.scrollTop;return dn(o||n).direction==="rtl"&&(i+=pr(n.clientWidth,o?o.clientWidth:0)-u),{width:u,height:a,x:i,y:s}}function ol(e){var t=dn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function gp(e){return["html","body","#document"].indexOf(en(e))>=0?e.ownerDocument.body:kt(e)&&ol(e)?e:gp(Da(e))}function Qo(e,t){var n;t===void 0&&(t=[]);var r=gp(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),u=Wt(r),a=o?[u].concat(u.visualViewport||[],ol(r)?r:[]):r,i=t.concat(a);return o?i:i.concat(Qo(Da(a)))}function ul(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function vw(e){var t=Hr(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function yp(e,t){return t===up?ul(dw(e)):Wr(t)?vw(t):ul(pw(_n(e)))}function hw(e){var t=Qo(Da(e)),n=["absolute","fixed"].indexOf(dn(e).position)>=0,r=n&&kt(e)?qo(e):e;return Wr(r)?t.filter(function(o){return Wr(o)&&sp(o,r)&&en(o)!=="body"}):[]}function mw(e,t,n){var r=t==="clippingParents"?hw(e):[].concat(t),o=[].concat(r,[n]),u=o[0],a=o.reduce(function(i,s){var l=yp(e,s);return i.top=pr(l.top,i.top),i.right=ya(l.right,i.right),i.bottom=ya(l.bottom,i.bottom),i.left=pr(l.left,i.left),i},yp(e,u));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Dp(e){var t=e.reference,n=e.element,r=e.placement,o=r?tn(r):null,u=r?Kr(r):null,a=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,s;switch(o){case st:s={x:a,y:t.y-n.height};break;case Ot:s={x:a,y:t.y+t.height};break;case _t:s={x:t.x+t.width,y:i};break;case lt:s={x:t.x-n.width,y:i};break;default:s={x:t.x,y:t.y}}var l=o?tl(o):null;if(l!=null){var c=l==="y"?"height":"width";switch(u){case Vr:s[l]=s[l]-(t[c]/2-n[c]/2);break;case Ho:s[l]=s[l]+(t[c]/2-n[c]/2);break}}return s}function Go(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,u=n.boundary,a=u===void 0?$C:u,i=n.rootBoundary,s=i===void 0?up:i,l=n.elementContext,c=l===void 0?Ko:l,d=n.altBoundary,p=d===void 0?!1:d,y=n.padding,m=y===void 0?0:y,f=fp(typeof m!="number"?m:dp(m,Uo)),w=c===Ko?LC:Ko,h=e.rects.popper,g=e.elements[p?w:c],C=mw(Wr(g)?g:g.contextElement||_n(e.elements.popper),a,s),E=Hr(e.elements.reference),B=Dp({reference:E,element:h,strategy:"absolute",placement:o}),x=ul(Object.assign({},h,B)),b=c===Ko?x:E,S={top:C.top-b.top+f.top,bottom:b.bottom-C.bottom+f.bottom,left:C.left-b.left+f.left,right:b.right-C.right+f.right},P=e.modifiersData.offset;if(c===Ko&&P){var O=P[o];Object.keys(S).forEach(function(H){var k=[_t,Ot].indexOf(H)>=0?1:-1,W=[st,Ot].indexOf(H)>=0?"y":"x";S[H]+=O[W]*k})}return S}function gw(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,u=n.rootBoundary,a=n.padding,i=n.flipVariations,s=n.allowedAutoPlacements,l=s===void 0?Zs:s,c=Kr(r),d=c?i?ap:ap.filter(function(m){return Kr(m)===c}):Uo,p=d.filter(function(m){return l.indexOf(m)>=0});p.length===0&&(p=d);var y=p.reduce(function(m,f){return m[f]=Go(e,{placement:f,boundary:o,rootBoundary:u,padding:a})[tn(f)],m},{});return Object.keys(y).sort(function(m,f){return y[m]-y[f]})}function yw(e){if(tn(e)===Xs)return[];var t=wa(e);return[mp(e),t,mp(t)]}function Dw(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,u=o===void 0?!0:o,a=n.altAxis,i=a===void 0?!0:a,s=n.fallbackPlacements,l=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,y=n.flipVariations,m=y===void 0?!0:y,f=n.allowedAutoPlacements,w=t.options.placement,h=tn(w),g=h===w,C=s||(g||!m?[wa(w)]:yw(w)),E=[w].concat(C).reduce(function(F,j){return F.concat(tn(j)===Xs?gw(t,{placement:j,boundary:c,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:f}):j)},[]),B=t.rects.reference,x=t.rects.popper,b=new Map,S=!0,P=E[0],O=0;O<E.length;O++){var H=E[O],k=tn(H),W=Kr(H)===Vr,$=[st,Ot].indexOf(k)>=0,V=$?"width":"height",G=Go(t,{placement:H,boundary:c,rootBoundary:d,altBoundary:p,padding:l}),R=$?W?_t:lt:W?Ot:st;B[V]>x[V]&&(R=wa(R));var M=wa(R),U=[];if(u&&U.push(G[k]<=0),i&&U.push(G[R]<=0,G[M]<=0),U.every(function(F){return F})){P=H,S=!1;break}b.set(H,U)}if(S)for(var Q=m?3:1,ne=function(F){var j=E.find(function(N){var Y=b.get(N);if(Y)return Y.slice(0,F).every(function(oe){return oe})});if(j)return P=j,"break"},te=Q;te>0;te--){var ve=ne(te);if(ve==="break")break}t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}}var Cw={name:"flip",enabled:!0,phase:"main",fn:Dw,requiresIfExists:["offset"],data:{_skip:!1}};function Cp(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function wp(e){return[st,_t,Ot,lt].some(function(t){return e[t]>=0})}function ww(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,u=t.modifiersData.preventOverflow,a=Go(t,{elementContext:"reference"}),i=Go(t,{altBoundary:!0}),s=Cp(a,r),l=Cp(i,o,u),c=wp(s),d=wp(l);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}var Ew={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ww};function Bw(e,t,n){var r=tn(e),o=[lt,st].indexOf(r)>=0?-1:1,u=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=u[0],i=u[1];return a=a||0,i=(i||0)*o,[lt,_t].indexOf(r)>=0?{x:i,y:a}:{x:a,y:i}}function bw(e){var t=e.state,n=e.options,r=e.name,o=n.offset,u=o===void 0?[0,0]:o,a=Zs.reduce(function(c,d){return c[d]=Bw(d,t.rects,u),c},{}),i=a[t.placement],s=i.x,l=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}var Aw={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:bw};function xw(e){var t=e.state,n=e.name;t.modifiersData[n]=Dp({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Ep={name:"popperOffsets",enabled:!0,phase:"read",fn:xw,data:{}};function Fw(e){return e==="x"?"y":"x"}function Sw(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,u=o===void 0?!0:o,a=n.altAxis,i=a===void 0?!1:a,s=n.boundary,l=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,y=p===void 0?!0:p,m=n.tetherOffset,f=m===void 0?0:m,w=Go(t,{boundary:s,rootBoundary:l,padding:d,altBoundary:c}),h=tn(t.placement),g=Kr(t.placement),C=!g,E=tl(h),B=Fw(E),x=t.modifiersData.popperOffsets,b=t.rects.reference,S=t.rects.popper,P=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,O=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(x){if(u){var W,$=E==="y"?st:lt,V=E==="y"?Ot:_t,G=E==="y"?"height":"width",R=x[E],M=R+w[$],U=R-w[V],Q=y?-S[G]/2:0,ne=g===Vr?b[G]:S[G],te=g===Vr?-S[G]:-b[G],ve=t.elements.arrow,F=y&&ve?el(ve):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:cp(),N=j[$],Y=j[V],oe=Yo(0,b[G],F[G]),ee=C?b[G]/2-Q-oe-N-O.mainAxis:ne-oe-N-O.mainAxis,ie=C?-b[G]/2+Q+oe+Y+O.mainAxis:te+oe+Y+O.mainAxis,ce=t.elements.arrow&&qo(t.elements.arrow),de=ce?E==="y"?ce.clientTop||0:ce.clientLeft||0:0,he=(W=H==null?void 0:H[E])!=null?W:0,le=R+ee-he-de,Ie=R+ie-he,Re=Yo(y?ya(M,le):M,R,y?pr(U,Ie):U);x[E]=Re,k[E]=Re-R}if(i){var be,Ft=E==="x"?st:lt,Vt=E==="x"?Ot:_t,_e=x[B],et=B==="y"?"height":"width",me=_e+w[Ft],Le=_e-w[Vt],ke=[st,lt].indexOf(h)!==-1,Ne=(be=H==null?void 0:H[B])!=null?be:0,mt=ke?me:_e-b[et]-S[et]-Ne+O.altAxis,Mr=ke?_e+b[et]+S[et]-Ne-O.altAxis:Le,gt=y&&ke?tw(mt,_e,Mr):Yo(y?mt:me,_e,y?Mr:Le);x[B]=gt,k[B]=gt-_e}t.modifiersData[r]=k}}var Ow={name:"preventOverflow",enabled:!0,phase:"main",fn:Sw,requiresIfExists:["offset"]};function _w(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function kw(e){return e===Wt(e)||!kt(e)?nl(e):_w(e)}function Pw(e){var t=e.getBoundingClientRect(),n=Ur(t.width)/e.offsetWidth||1,r=Ur(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Tw(e,t,n){n===void 0&&(n=!1);var r=kt(t),o=kt(t)&&Pw(t),u=_n(t),a=Hr(e,o),i={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&((en(t)!=="body"||ol(u))&&(i=kw(t)),kt(t)?(s=Hr(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):u&&(s.x=rl(u))),{x:a.left+i.scrollLeft-s.x,y:a.top+i.scrollTop-s.y,width:a.width,height:a.height}}function Rw(e){var t=new Map,n=new Set,r=[];e.forEach(function(u){t.set(u.name,u)});function o(u){n.add(u.name);var a=[].concat(u.requires||[],u.requiresIfExists||[]);a.forEach(function(i){if(!n.has(i)){var s=t.get(i);s&&o(s)}}),r.push(u)}return e.forEach(function(u){n.has(u.name)||o(u)}),r}function Nw(e){var t=Rw(e);return GC.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function jw(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Iw(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Bp={placement:"bottom",modifiers:[],strategy:"absolute"};function bp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function al(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,u=o===void 0?Bp:o;return function(a,i,s){s===void 0&&(s=u);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Bp,u),modifiersData:{},elements:{reference:a,popper:i},attributes:{},styles:{}},c=[],d=!1,p={state:l,setOptions:function(f){var w=typeof f=="function"?f(l.options):f;m(),l.options=Object.assign({},u,l.options,w),l.scrollParents={reference:Wr(a)?Qo(a):a.contextElement?Qo(a.contextElement):[],popper:Qo(i)};var h=Nw(Iw([].concat(r,l.options.modifiers)));return l.orderedModifiers=h.filter(function(g){return g.enabled}),y(),p.update()},forceUpdate:function(){if(!d){var f=l.elements,w=f.reference,h=f.popper;if(bp(w,h)){l.rects={reference:Tw(w,qo(h),l.options.strategy==="fixed"),popper:el(h)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(S){return l.modifiersData[S.name]=Object.assign({},S.data)});for(var g=0;g<l.orderedModifiers.length;g++){if(l.reset===!0){l.reset=!1,g=-1;continue}var C=l.orderedModifiers[g],E=C.fn,B=C.options,x=B===void 0?{}:B,b=C.name;typeof E=="function"&&(l=E({state:l,options:x,name:b,instance:p})||l)}}}},update:jw(function(){return new Promise(function(f){p.forceUpdate(),f(l)})}),destroy:function(){m(),d=!0}};if(!bp(a,i))return p;p.setOptions(s).then(function(f){!d&&s.onFirstUpdate&&s.onFirstUpdate(f)});function y(){l.orderedModifiers.forEach(function(f){var w=f.name,h=f.options,g=h===void 0?{}:h,C=f.effect;if(typeof C=="function"){var E=C({state:l,name:w,instance:p,options:g}),B=function(){};c.push(E||B)}})}function m(){c.forEach(function(f){return f()}),c=[]}return p}}al();var Mw=[hp,Ep,vp,ip];al({defaultModifiers:Mw});var $w=[hp,Ep,vp,ip,Aw,Cw,Ow,uw,Ew],Lw=al({defaultModifiers:$w});const zw=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:s})=>{const l=Vw(s);Object.assign(a.value,l)},requires:["computeStyles"]},o=v.computed(()=>{const{onFirstUpdate:s,placement:l,strategy:c,modifiers:d}=v.unref(n);return{onFirstUpdate:s,placement:l||"bottom",strategy:c||"absolute",modifiers:[...d||[],r,{name:"applyStyles",enabled:!1}]}}),u=v.shallowRef(),a=v.ref({styles:{popper:{position:v.unref(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{u.value&&(u.value.destroy(),u.value=void 0)};return v.watch(o,s=>{const l=v.unref(u);l&&l.setOptions(s)},{deep:!0}),v.watch([e,t],([s,l])=>{i(),!(!s||!l)&&(u.value=Lw(s,l,v.unref(o)))}),v.onBeforeUnmount(()=>{i()}),{state:v.computed(()=>{var s;return{...((s=v.unref(u))==null?void 0:s.state)||{}}}),styles:v.computed(()=>v.unref(a).styles),attributes:v.computed(()=>v.unref(a).attributes),update:()=>{var s;return(s=v.unref(u))==null?void 0:s.update()},forceUpdate:()=>{var s;return(s=v.unref(u))==null?void 0:s.forceUpdate()},instanceRef:v.computed(()=>v.unref(u))}};function Vw(e){const t=Object.keys(e.elements),n=Ks(t.map(o=>[o,e.styles[o]||{}])),r=Ks(t.map(o=>[o,e.attributes[o]]));return{styles:n,attributes:r}}function Ap(){let e;const t=(r,o)=>{n(),e=window.setTimeout(r,o)},n=()=>window.clearTimeout(e);return Pd(()=>n()),{registerTimeout:t,cancelTimeout:n}}const xp={prefix:Math.floor(Math.random()*1e4),current:0},Ww=Symbol("elIdInjection"),Fp=()=>v.getCurrentInstance()?v.inject(Ww,xp):xp,Uw=e=>{const t=Fp(),n=Gs();return v.computed(()=>v.unref(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let qr=[];const Sp=e=>{const t=e;t.key===ga.esc&&qr.forEach(n=>n(t))},Hw=e=>{v.onMounted(()=>{qr.length===0&&document.addEventListener("keydown",Sp),Jt&&qr.push(e)}),v.onBeforeUnmount(()=>{qr=qr.filter(t=>t!==e),qr.length===0&&Jt&&document.removeEventListener("keydown",Sp)})};let Op;const _p=()=>{const e=Gs(),t=Fp(),n=v.computed(()=>`${e.value}-popper-container-${t.prefix}`),r=v.computed(()=>`#${n.value}`);return{id:n,selector:r}},Kw=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},qw=()=>{const{id:e,selector:t}=_p();return v.onBeforeMount(()=>{Jt&&!Op&&!document.body.querySelector(t.value)&&(Op=Kw(e.value))}),{id:e,selector:t}},Yw=St({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Qw=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:o})=>{const{registerTimeout:u}=Ap(),{registerTimeout:a,cancelTimeout:i}=Ap();return{onOpen:c=>{u(()=>{r(c);const d=v.unref(n);va(d)&&d>0&&a(()=>{o(c)},d)},v.unref(e))},onClose:c=>{i(),u(()=>{o(c)},v.unref(t))}}},kp=Symbol("elForwardRef"),Gw=e=>{const t=n=>{e.value=n};v.provide(kp,{setForwardRef:t})},Xw=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Pp={current:0},Tp=v.ref(0),Zw=2e3,Rp=Symbol("elZIndexContextKey"),Np=Symbol("zIndexContextKey"),Jw=e=>{const t=v.getCurrentInstance()?v.inject(Rp,Pp):Pp,n=v.getCurrentInstance()?v.inject(Np,void 0):void 0,r=v.computed(()=>{const a=v.unref(n);return va(a)?a:Zw}),o=v.computed(()=>r.value+Tp.value),u=()=>(t.current++,Tp.value=t.current,o.value);return!Jt&&v.inject(Rp),{initialZIndex:r,currentZIndex:o,nextZIndex:u}},il=Math.min,Yr=Math.max,Ea=Math.round,kn=e=>({x:e,y:e}),eE={left:"right",right:"left",bottom:"top",top:"bottom"},tE={start:"end",end:"start"};function jp(e,t,n){return Yr(e,il(t,n))}function Ba(e,t){return typeof e=="function"?e(t):e}function vr(e){return e.split("-")[0]}function ba(e){return e.split("-")[1]}function Ip(e){return e==="x"?"y":"x"}function Mp(e){return e==="y"?"height":"width"}function Aa(e){return["top","bottom"].includes(vr(e))?"y":"x"}function $p(e){return Ip(Aa(e))}function nE(e,t,n){n===void 0&&(n=!1);const r=ba(e),o=$p(e),u=Mp(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[u]>t.floating[u]&&(a=xa(a)),[a,xa(a)]}function rE(e){const t=xa(e);return[sl(e),t,sl(t)]}function sl(e){return e.replace(/start|end/g,t=>tE[t])}function oE(e,t,n){const r=["left","right"],o=["right","left"],u=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?u:a;default:return[]}}function uE(e,t,n,r){const o=ba(e);let u=oE(vr(e),n==="start",r);return o&&(u=u.map(a=>a+"-"+o),t&&(u=u.concat(u.map(sl)))),u}function xa(e){return e.replace(/left|right|bottom|top/g,t=>eE[t])}function aE(e){return{top:0,right:0,bottom:0,left:0,...e}}function iE(e){return typeof e!="number"?aE(e):{top:e,right:e,bottom:e,left:e}}function Fa(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Lp(e,t,n){let{reference:r,floating:o}=e;const u=Aa(t),a=$p(t),i=Mp(a),s=vr(t),l=u==="y",c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,p=r[i]/2-o[i]/2;let y;switch(s){case"top":y={x:c,y:r.y-o.height};break;case"bottom":y={x:c,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:d};break;case"left":y={x:r.x-o.width,y:d};break;default:y={x:r.x,y:r.y}}switch(ba(t)){case"start":y[a]-=p*(n&&l?-1:1);break;case"end":y[a]+=p*(n&&l?-1:1);break}return y}const sE=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:u=[],platform:a}=n,i=u.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=Lp(l,r,s),p=r,y={},m=0;for(let f=0;f<i.length;f++){const{name:w,fn:h}=i[f],{x:g,y:C,data:E,reset:B}=await h({x:c,y:d,initialPlacement:r,placement:p,strategy:o,middlewareData:y,rects:l,platform:a,elements:{reference:e,floating:t}});c=g??c,d=C??d,y={...y,[w]:{...y[w],...E}},B&&m<=50&&(m++,typeof B=="object"&&(B.placement&&(p=B.placement),B.rects&&(l=B.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):B.rects),{x:c,y:d}=Lp(l,p,s)),f=-1)}return{x:c,y:d,placement:p,strategy:o,middlewareData:y}};async function zp(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:u,rects:a,elements:i,strategy:s}=e,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:y=0}=Ba(t,e),m=iE(y),w=i[p?d==="floating"?"reference":"floating":d],h=Fa(await u.getClippingRect({element:(n=await(u.isElement==null?void 0:u.isElement(w)))==null||n?w:w.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(i.floating)),boundary:l,rootBoundary:c,strategy:s})),g=d==="floating"?{...a.floating,x:r,y:o}:a.reference,C=await(u.getOffsetParent==null?void 0:u.getOffsetParent(i.floating)),E=await(u.isElement==null?void 0:u.isElement(C))?await(u.getScale==null?void 0:u.getScale(C))||{x:1,y:1}:{x:1,y:1},B=Fa(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:g,offsetParent:C,strategy:s}):g);return{top:(h.top-B.top+m.top)/E.y,bottom:(B.bottom-h.bottom+m.bottom)/E.y,left:(h.left-B.left+m.left)/E.x,right:(B.right-h.right+m.right)/E.x}}const lE=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:u,rects:a,initialPlacement:i,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:f=!0,...w}=Ba(e,t);if((n=u.arrow)!=null&&n.alignmentOffset)return{};const h=vr(o),g=vr(i)===i,C=await(s.isRTL==null?void 0:s.isRTL(l.floating)),E=p||(g||!f?[xa(i)]:rE(i));!p&&m!=="none"&&E.push(...uE(i,f,m,C));const B=[i,...E],x=await zp(t,w),b=[];let S=((r=u.flip)==null?void 0:r.overflows)||[];if(c&&b.push(x[h]),d){const k=nE(o,a,C);b.push(x[k[0]],x[k[1]])}if(S=[...S,{placement:o,overflows:b}],!b.every(k=>k<=0)){var P,O;const k=(((P=u.flip)==null?void 0:P.index)||0)+1,W=B[k];if(W)return{data:{index:k,overflows:S},reset:{placement:W}};let $=(O=S.filter(V=>V.overflows[0]<=0).sort((V,G)=>V.overflows[1]-G.overflows[1])[0])==null?void 0:O.placement;if(!$)switch(y){case"bestFit":{var H;const V=(H=S.map(G=>[G.placement,G.overflows.filter(R=>R>0).reduce((R,M)=>R+M,0)]).sort((G,R)=>G[1]-R[1])[0])==null?void 0:H[0];V&&($=V);break}case"initialPlacement":$=i;break}if(o!==$)return{reset:{placement:$}}}return{}}}};async function cE(e,t){const{placement:n,platform:r,elements:o}=e,u=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=vr(n),i=ba(n),s=Aa(n)==="y",l=["left","top"].includes(a)?-1:1,c=u&&s?-1:1,d=Ba(t,e);let{mainAxis:p,crossAxis:y,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return i&&typeof m=="number"&&(y=i==="end"?m*-1:m),s?{x:y*c,y:p*l}:{x:p*l,y:y*c}}const fE=function(e){return{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:u,placement:a,middlewareData:i}=t,s=await cE(t,e);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+s.x,y:u+s.y,data:{...s,placement:a}}}}},dE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:u=!0,crossAxis:a=!1,limiter:i={fn:w=>{let{x:h,y:g}=w;return{x:h,y:g}}},...s}=Ba(e,t),l={x:n,y:r},c=await zp(t,s),d=Aa(vr(o)),p=Ip(d);let y=l[p],m=l[d];if(u){const w=p==="y"?"top":"left",h=p==="y"?"bottom":"right",g=y+c[w],C=y-c[h];y=jp(g,y,C)}if(a){const w=d==="y"?"top":"left",h=d==="y"?"bottom":"right",g=m+c[w],C=m-c[h];m=jp(g,m,C)}const f=i.fn({...t,[p]:y,[d]:m});return{...f,data:{x:f.x-n,y:f.y-r}}}}};function pn(e){return ll(e)?(e.nodeName||"").toLowerCase():"#document"}function yt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pn(e){var t;return(t=(ll(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ll(e){return e instanceof Node||e instanceof yt(e).Node}function vn(e){return e instanceof Element||e instanceof yt(e).Element}function nn(e){return e instanceof HTMLElement||e instanceof yt(e).HTMLElement}function Vp(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof yt(e).ShadowRoot}function Xo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Pt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function pE(e){return["table","td","th"].includes(pn(e))}function cl(e){const t=fl(),n=Pt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function vE(e){let t=Qr(e);for(;nn(t)&&!Sa(t);){if(cl(t))return t;t=Qr(t)}return null}function fl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Sa(e){return["html","body","#document"].includes(pn(e))}function Pt(e){return yt(e).getComputedStyle(e)}function Oa(e){return vn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Qr(e){if(pn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Vp(e)&&e.host||Pn(e);return Vp(t)?t.host:t}function Wp(e){const t=Qr(e);return Sa(t)?e.ownerDocument?e.ownerDocument.body:e.body:nn(t)&&Xo(t)?t:Wp(t)}function dl(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Wp(e),u=o===((r=e.ownerDocument)==null?void 0:r.body),a=yt(o);return u?t.concat(a,a.visualViewport||[],Xo(o)?o:[],a.frameElement&&n?dl(a.frameElement):[]):t.concat(o,dl(o,[],n))}function Up(e){const t=Pt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=nn(e),u=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=Ea(n)!==u||Ea(r)!==a;return i&&(n=u,r=a),{width:n,height:r,$:i}}function Hp(e){return vn(e)?e:e.contextElement}function Gr(e){const t=Hp(e);if(!nn(t))return kn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:u}=Up(t);let a=(u?Ea(n.width):n.width)/r,i=(u?Ea(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const hE=kn(0);function Kp(e){const t=yt(e);return!fl()||!t.visualViewport?hE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function mE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==yt(e)?!1:t}function Zo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),u=Hp(e);let a=kn(1);t&&(r?vn(r)&&(a=Gr(r)):a=Gr(e));const i=mE(u,n,r)?Kp(u):kn(0);let s=(o.left+i.x)/a.x,l=(o.top+i.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(u){const p=yt(u),y=r&&vn(r)?yt(r):r;let m=p,f=m.frameElement;for(;f&&r&&y!==m;){const w=Gr(f),h=f.getBoundingClientRect(),g=Pt(f),C=h.left+(f.clientLeft+parseFloat(g.paddingLeft))*w.x,E=h.top+(f.clientTop+parseFloat(g.paddingTop))*w.y;s*=w.x,l*=w.y,c*=w.x,d*=w.y,s+=C,l+=E,m=yt(f),f=m.frameElement}}return Fa({width:c,height:d,x:s,y:l})}const gE=[":popover-open",":modal"];function qp(e){return gE.some(t=>{try{return e.matches(t)}catch{return!1}})}function yE(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const u=o==="fixed",a=Pn(r),i=t?qp(t.floating):!1;if(r===a||i&&u)return n;let s={scrollLeft:0,scrollTop:0},l=kn(1);const c=kn(0),d=nn(r);if((d||!d&&!u)&&((pn(r)!=="body"||Xo(a))&&(s=Oa(r)),nn(r))){const p=Zo(r);l=Gr(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-s.scrollLeft*l.x+c.x,y:n.y*l.y-s.scrollTop*l.y+c.y}}function DE(e){return Array.from(e.getClientRects())}function Yp(e){return Zo(Pn(e)).left+Oa(e).scrollLeft}function CE(e){const t=Pn(e),n=Oa(e),r=e.ownerDocument.body,o=Yr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),u=Yr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Yp(e);const i=-n.scrollTop;return Pt(r).direction==="rtl"&&(a+=Yr(t.clientWidth,r.clientWidth)-o),{width:o,height:u,x:a,y:i}}function wE(e,t){const n=yt(e),r=Pn(e),o=n.visualViewport;let u=r.clientWidth,a=r.clientHeight,i=0,s=0;if(o){u=o.width,a=o.height;const l=fl();(!l||l&&t==="fixed")&&(i=o.offsetLeft,s=o.offsetTop)}return{width:u,height:a,x:i,y:s}}function EE(e,t){const n=Zo(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,u=nn(e)?Gr(e):kn(1),a=e.clientWidth*u.x,i=e.clientHeight*u.y,s=o*u.x,l=r*u.y;return{width:a,height:i,x:s,y:l}}function Qp(e,t,n){let r;if(t==="viewport")r=wE(e,n);else if(t==="document")r=CE(Pn(e));else if(vn(t))r=EE(t,n);else{const o=Kp(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Fa(r)}function Gp(e,t){const n=Qr(e);return n===t||!vn(n)||Sa(n)?!1:Pt(n).position==="fixed"||Gp(n,t)}function BE(e,t){const n=t.get(e);if(n)return n;let r=dl(e,[],!1).filter(i=>vn(i)&&pn(i)!=="body"),o=null;const u=Pt(e).position==="fixed";let a=u?Qr(e):e;for(;vn(a)&&!Sa(a);){const i=Pt(a),s=cl(a);!s&&i.position==="fixed"&&(o=null),(u?!s&&!o:!s&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Xo(a)&&!s&&Gp(e,a))?r=r.filter(c=>c!==a):o=i,a=Qr(a)}return t.set(e,r),r}function bE(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?BE(t,this._c):[].concat(n),r],i=a[0],s=a.reduce((l,c)=>{const d=Qp(t,c,o);return l.top=Yr(d.top,l.top),l.right=il(d.right,l.right),l.bottom=il(d.bottom,l.bottom),l.left=Yr(d.left,l.left),l},Qp(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function AE(e){const{width:t,height:n}=Up(e);return{width:t,height:n}}function xE(e,t,n){const r=nn(t),o=Pn(t),u=n==="fixed",a=Zo(e,!0,u,t);let i={scrollLeft:0,scrollTop:0};const s=kn(0);if(r||!r&&!u)if((pn(t)!=="body"||Xo(o))&&(i=Oa(t)),r){const d=Zo(t,!0,u,t);s.x=d.x+t.clientLeft,s.y=d.y+t.clientTop}else o&&(s.x=Yp(o));const l=a.left+i.scrollLeft-s.x,c=a.top+i.scrollTop-s.y;return{x:l,y:c,width:a.width,height:a.height}}function Xp(e,t){return!nn(e)||Pt(e).position==="fixed"?null:t?t(e):e.offsetParent}function Zp(e,t){const n=yt(e);if(!nn(e)||qp(e))return n;let r=Xp(e,t);for(;r&&pE(r)&&Pt(r).position==="static";)r=Xp(r,t);return r&&(pn(r)==="html"||pn(r)==="body"&&Pt(r).position==="static"&&!cl(r))?n:r||vE(e)||n}const FE=async function(e){const t=this.getOffsetParent||Zp,n=this.getDimensions;return{reference:xE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}};function SE(e){return Pt(e).direction==="rtl"}const OE={convertOffsetParentRelativeRectToViewportRelativeRect:yE,getDocumentElement:Pn,getClippingRect:bE,getOffsetParent:Zp,getElementRects:FE,getClientRects:DE,getDimensions:AE,getScale:Gr,isElement:vn,isRTL:SE},_E=dE,kE=lE,PE=(e,t,n)=>{const r=new Map,o={platform:OE,...n},u={...o.platform,_c:r};return sE(e,t,{...o,platform:u})},TE=ma({type:String,values:RC,required:!1}),RE=Symbol("size"),NE=St({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>$o(e)?!e():!e}}),jE=St({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Jp=e=>PC(jE,e),ev=Symbol(),_a=v.ref();function IE(e,t=void 0){return v.getCurrentInstance()?v.inject(ev,_a):_a}const ME=(e,t,n=!1)=>{var r;const o=!!v.getCurrentInstance(),u=o?IE():void 0,a=(r=void 0)!=null?r:o?v.provide:void 0;if(!a)return;const i=v.computed(()=>{const s=v.unref(e);return u!=null&&u.value?$E(u.value,s):s});return a(ev,i),a(NC,v.computed(()=>i.value.locale)),a(rp,v.computed(()=>i.value.namespace)),a(Np,v.computed(()=>i.value.zIndex)),a(RE,{size:v.computed(()=>i.value.size||"")}),(n||!_a.value)&&(_a.value=i.value),i},$E=(e,t)=>{const n=[...new Set([...tp(e),...tp(t)])],r={};for(const o of n)r[o]=t[o]!==void 0?t[o]:e[o];return r},LE=St({a11y:{type:Boolean,default:!0},locale:{type:ge(Object)},size:TE,button:{type:ge(Object)},experimentalFeatures:{type:ge(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:ge(Object)},zIndex:Number,namespace:{type:String,default:"el"},...NE}),zE={},VE=v.defineComponent({name:"ElConfigProvider",props:LE,setup(e,{slots:t}){v.watch(()=>e.message,r=>{Object.assign(zE,r??{})},{immediate:!0,deep:!0});const n=ME(e);return()=>v.renderSlot(t,"default",{config:n==null?void 0:n.value})}}),WE=Ys(VE);var Tn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const tv=Symbol("formItemContextKey"),pl=Symbol("popper"),nv=Symbol("popperContent"),rv=St({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),UE=v.defineComponent({name:"ElPopper",inheritAttrs:!1}),HE=v.defineComponent({...UE,props:rv,setup(e,{expose:t}){const n=e,r=v.ref(),o=v.ref(),u=v.ref(),a=v.ref(),i=v.computed(()=>n.role),s={triggerRef:r,popperInstanceRef:o,contentRef:u,referenceRef:a,role:i};return t(s),v.provide(pl,s),(l,c)=>v.renderSlot(l.$slots,"default")}});var KE=Tn(HE,[["__file","popper.vue"]]);const ov=St({arrowOffset:{type:Number,default:5}}),qE=v.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),YE=v.defineComponent({...qE,props:ov,setup(e,{expose:t}){const n=e,r=Wo("popper"),{arrowOffset:o,arrowRef:u,arrowStyle:a}=v.inject(nv,void 0);return v.watch(()=>n.arrowOffset,i=>{o.value=i}),v.onBeforeUnmount(()=>{u.value=void 0}),t({arrowRef:u}),(i,s)=>(v.openBlock(),v.createElementBlock("span",{ref_key:"arrowRef",ref:u,class:v.normalizeClass(v.unref(r).e("arrow")),style:v.normalizeStyle(v.unref(a)),"data-popper-arrow":""},null,6))}});var QE=Tn(YE,[["__file","arrow.vue"]]);const GE=v.defineComponent({name:"ElOnlyChild",setup(e,{slots:t,attrs:n}){var r;const o=v.inject(kp),u=Xw((r=o==null?void 0:o.setForwardRef)!=null?r:js);return()=>{var a;const i=(a=t.default)==null?void 0:a.call(t,n);if(!i||i.length>1)return null;const s=uv(i);return s?v.withDirectives(v.cloneVNode(s,n),[[u]]):null}}});function uv(e){if(!e)return null;const t=e;for(const n of t){if(Is(n))switch(n.type){case v.Comment:continue;case v.Text:case"svg":return av(n);case v.Fragment:return uv(n.children);default:return n}return av(n)}return null}function av(e){const t=Wo("only-child");return v.createVNode("span",{class:t.e("content")},[e])}const iv=St({virtualRef:{type:ge(Object)},virtualTriggering:Boolean,onMouseenter:{type:ge(Function)},onMouseleave:{type:ge(Function)},onClick:{type:ge(Function)},onKeydown:{type:ge(Function)},onFocus:{type:ge(Function)},onBlur:{type:ge(Function)},onContextmenu:{type:ge(Function)},id:String,open:Boolean}),XE=v.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),ZE=v.defineComponent({...XE,props:iv,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=v.inject(pl,void 0);Gw(o);const u=v.computed(()=>i.value?n.id:void 0),a=v.computed(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),i=v.computed(()=>{if(r&&r.value!=="tooltip")return r.value}),s=v.computed(()=>i.value?`${n.open}`:void 0);let l;return v.onMounted(()=>{v.watch(()=>n.virtualRef,c=>{c&&(o.value=lr(c))},{immediate:!0}),v.watch(o,(c,d)=>{l==null||l(),l=void 0,ha(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(p=>{var y;const m=n[p];m&&(c.addEventListener(p.slice(2).toLowerCase(),m),(y=d==null?void 0:d.removeEventListener)==null||y.call(d,p.slice(2).toLowerCase(),m))}),l=v.watch([u,a,i,s],p=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((y,m)=>{qs(p[m])?c.removeAttribute(y):c.setAttribute(y,p[m])})},{immediate:!0})),ha(d)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(p=>d.removeAttribute(p))},{immediate:!0})}),v.onBeforeUnmount(()=>{l==null||l(),l=void 0}),t({triggerRef:o}),(c,d)=>c.virtualTriggering?v.createCommentVNode("v-if",!0):(v.openBlock(),v.createBlock(v.unref(GE),v.mergeProps({key:0},c.$attrs,{"aria-controls":v.unref(u),"aria-describedby":v.unref(a),"aria-expanded":v.unref(s),"aria-haspopup":v.unref(i)}),{default:v.withCtx(()=>[v.renderSlot(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var JE=Tn(ZE,[["__file","trigger.vue"]]);const vl="focus-trap.focus-after-trapped",hl="focus-trap.focus-after-released",eB="focus-trap.focusout-prevented",sv={cancelable:!0,bubbles:!1},tB={cancelable:!0,bubbles:!1},lv="focusAfterTrapped",cv="focusAfterReleased",nB=Symbol("elFocusTrap"),ml=v.ref(),ka=v.ref(0),gl=v.ref(0);let Pa=0;const fv=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},dv=(e,t)=>{for(const n of e)if(!rB(n,t))return n},rB=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},oB=e=>{const t=fv(e),n=dv(t,e),r=dv(t.reverse(),e);return[n,r]},uB=e=>e instanceof HTMLInputElement&&"select"in e,Rn=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),gl.value=window.performance.now(),e!==n&&uB(e)&&t&&e.select()}};function pv(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const aB=()=>{let e=[];return{push:r=>{const o=e[0];o&&r!==o&&o.pause(),e=pv(e,r),e.unshift(r)},remove:r=>{var o,u;e=pv(e,r),(u=(o=e[0])==null?void 0:o.resume)==null||u.call(o)}}},iB=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(Rn(r,t),document.activeElement!==n)return},vv=aB(),sB=()=>ka.value>gl.value,Ta=()=>{ml.value="pointer",ka.value=window.performance.now()},hv=()=>{ml.value="keyboard",ka.value=window.performance.now()},lB=()=>(v.onMounted(()=>{Pa===0&&(document.addEventListener("mousedown",Ta),document.addEventListener("touchstart",Ta),document.addEventListener("keydown",hv)),Pa++}),v.onBeforeUnmount(()=>{Pa--,Pa<=0&&(document.removeEventListener("mousedown",Ta),document.removeEventListener("touchstart",Ta),document.removeEventListener("keydown",hv))}),{focusReason:ml,lastUserFocusTimestamp:ka,lastAutomatedFocusTimestamp:gl}),Ra=e=>new CustomEvent(eB,{...tB,detail:e}),cB=v.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[lv,cv,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=v.ref();let r,o;const{focusReason:u}=lB();Hw(m=>{e.trapped&&!a.paused&&t("release-requested",m)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=m=>{if(!e.loop&&!e.trapped||a.paused)return;const{key:f,altKey:w,ctrlKey:h,metaKey:g,currentTarget:C,shiftKey:E}=m,{loop:B}=e,x=f===ga.tab&&!w&&!h&&!g,b=document.activeElement;if(x&&b){const S=C,[P,O]=oB(S);if(P&&O){if(!E&&b===O){const k=Ra({focusReason:u.value});t("focusout-prevented",k),k.defaultPrevented||(m.preventDefault(),B&&Rn(P,!0))}else if(E&&[P,S].includes(b)){const k=Ra({focusReason:u.value});t("focusout-prevented",k),k.defaultPrevented||(m.preventDefault(),B&&Rn(O,!0))}}else if(b===S){const k=Ra({focusReason:u.value});t("focusout-prevented",k),k.defaultPrevented||m.preventDefault()}}};v.provide(nB,{focusTrapRef:n,onKeydown:i}),v.watch(()=>e.focusTrapEl,m=>{m&&(n.value=m)},{immediate:!0}),v.watch([n],([m],[f])=>{m&&(m.addEventListener("keydown",i),m.addEventListener("focusin",c),m.addEventListener("focusout",d)),f&&(f.removeEventListener("keydown",i),f.removeEventListener("focusin",c),f.removeEventListener("focusout",d))});const s=m=>{t(lv,m)},l=m=>t(cv,m),c=m=>{const f=v.unref(n);if(!f)return;const w=m.target,h=m.relatedTarget,g=w&&f.contains(w);e.trapped||h&&f.contains(h)||(r=h),g&&t("focusin",m),!a.paused&&e.trapped&&(g?o=w:Rn(o,!0))},d=m=>{const f=v.unref(n);if(!(a.paused||!f))if(e.trapped){const w=m.relatedTarget;!qs(w)&&!f.contains(w)&&setTimeout(()=>{if(!a.paused&&e.trapped){const h=Ra({focusReason:u.value});t("focusout-prevented",h),h.defaultPrevented||Rn(o,!0)}},0)}else{const w=m.target;w&&f.contains(w)||t("focusout",m)}};async function p(){await v.nextTick();const m=v.unref(n);if(m){vv.push(a);const f=m.contains(document.activeElement)?r:document.activeElement;if(r=f,!m.contains(f)){const h=new Event(vl,sv);m.addEventListener(vl,s),m.dispatchEvent(h),h.defaultPrevented||v.nextTick(()=>{let g=e.focusStartEl;M1(g)||(Rn(g),document.activeElement!==g&&(g="first")),g==="first"&&iB(fv(m),!0),(document.activeElement===f||g==="container")&&Rn(m)})}}}function y(){const m=v.unref(n);if(m){m.removeEventListener(vl,s);const f=new CustomEvent(hl,{...sv,detail:{focusReason:u.value}});m.addEventListener(hl,l),m.dispatchEvent(f),!f.defaultPrevented&&(u.value=="keyboard"||!sB()||m.contains(document.activeElement))&&Rn(r??document.body),m.removeEventListener(hl,l),vv.remove(a)}}return v.onMounted(()=>{e.trapped&&p(),v.watch(()=>e.trapped,m=>{m?p():y()})}),v.onBeforeUnmount(()=>{e.trapped&&y()}),{onKeydown:i}}});function fB(e,t,n,r,o,u){return v.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var dB=Tn(cB,[["render",fB],["__file","focus-trap.vue"]]);const pB=["fixed","absolute"],vB=St({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:ge(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Zs,default:"bottom"},popperOptions:{type:ge(Object),default:()=>({})},strategy:{type:String,values:pB,default:"absolute"}}),mv=St({...vB,id:String,style:{type:ge([String,Array,Object])},className:{type:ge([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:ge([String,Array,Object])},popperStyle:{type:ge([String,Array,Object])},referenceEl:{type:ge(Object)},triggerTargetEl:{type:ge(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...Jp(["ariaLabel"])}),hB={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},mB=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,u={placement:n,strategy:r,...o,modifiers:[...yB(e),...t]};return DB(u,o==null?void 0:o.modifiers),u},gB=e=>{if(Jt)return lr(e)};function yB(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function DB(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const CB=0,wB=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:o}=v.inject(pl,void 0),u=v.ref(),a=v.ref(),i=v.computed(()=>({name:"eventListeners",enabled:!!e.visible})),s=v.computed(()=>{var h;const g=v.unref(u),C=(h=v.unref(a))!=null?h:CB;return{name:"arrow",enabled:!SC(g),options:{element:g,padding:C}}}),l=v.computed(()=>({onFirstUpdate:()=>{m()},...mB(e,[v.unref(s),v.unref(i)])})),c=v.computed(()=>gB(e.referenceEl)||v.unref(r)),{attributes:d,state:p,styles:y,update:m,forceUpdate:f,instanceRef:w}=zw(c,n,l);return v.watch(w,h=>t.value=h),v.onMounted(()=>{v.watch(()=>{var h;return(h=v.unref(c))==null?void 0:h.getBoundingClientRect()},()=>{m()})}),{attributes:d,arrowRef:u,contentRef:n,instanceRef:w,state:p,styles:y,role:o,forceUpdate:f,update:m}},EB=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:o}=Jw(),u=Wo("popper"),a=v.computed(()=>v.unref(t).popper),i=v.ref(va(e.zIndex)?e.zIndex:o()),s=v.computed(()=>[u.b(),u.is("pure",e.pure),u.is(e.effect),e.popperClass]),l=v.computed(()=>[{zIndex:v.unref(i)},v.unref(n).popper,e.popperStyle||{}]),c=v.computed(()=>r.value==="dialog"?"false":void 0),d=v.computed(()=>v.unref(n).arrow||{});return{ariaModal:c,arrowStyle:d,contentAttrs:a,contentClass:s,contentStyle:l,contentZIndex:i,updateZIndex:()=>{i.value=va(e.zIndex)?e.zIndex:o()}}},BB=(e,t)=>{const n=v.ref(!1),r=v.ref();return{focusStartRef:r,trapped:n,onFocusAfterReleased:l=>{var c;((c=l.detail)==null?void 0:c.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:l=>{e.visible&&!n.value&&(l.target&&(r.value=l.target),n.value=!0)},onFocusoutPrevented:l=>{e.trapping||(l.detail.focusReason==="pointer"&&l.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},bB=v.defineComponent({name:"ElPopperContent"}),AB=v.defineComponent({...bB,props:mv,emits:hB,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:o,trapped:u,onFocusAfterReleased:a,onFocusAfterTrapped:i,onFocusInTrap:s,onFocusoutPrevented:l,onReleaseRequested:c}=BB(r,n),{attributes:d,arrowRef:p,contentRef:y,styles:m,instanceRef:f,role:w,update:h}=wB(r),{ariaModal:g,arrowStyle:C,contentAttrs:E,contentClass:B,contentStyle:x,updateZIndex:b}=EB(r,{styles:m,attributes:d,role:w}),S=v.inject(tv,void 0),P=v.ref();v.provide(nv,{arrowStyle:C,arrowRef:p,arrowOffset:P}),S&&(S.addInputId||S.removeInputId)&&v.provide(tv,{...S,addInputId:js,removeInputId:js});let O;const H=(W=!0)=>{h(),W&&b()},k=()=>{H(!1),r.visible&&r.focusOnShow?u.value=!0:r.visible===!1&&(u.value=!1)};return v.onMounted(()=>{v.watch(()=>r.triggerTargetEl,(W,$)=>{O==null||O(),O=void 0;const V=v.unref(W||y.value),G=v.unref($||y.value);ha(V)&&(O=v.watch([w,()=>r.ariaLabel,g,()=>r.id],R=>{["role","aria-label","aria-modal","id"].forEach((M,U)=>{qs(R[U])?V.removeAttribute(M):V.setAttribute(M,R[U])})},{immediate:!0})),G!==V&&ha(G)&&["role","aria-label","aria-modal","id"].forEach(R=>{G.removeAttribute(R)})},{immediate:!0}),v.watch(()=>r.visible,k,{immediate:!0})}),v.onBeforeUnmount(()=>{O==null||O(),O=void 0}),t({popperContentRef:y,popperInstanceRef:f,updatePopper:H,contentStyle:x}),(W,$)=>(v.openBlock(),v.createElementBlock("div",v.mergeProps({ref_key:"contentRef",ref:y},v.unref(E),{style:v.unref(x),class:v.unref(B),tabindex:"-1",onMouseenter:$[0]||($[0]=V=>W.$emit("mouseenter",V)),onMouseleave:$[1]||($[1]=V=>W.$emit("mouseleave",V))}),[v.createVNode(v.unref(dB),{trapped:v.unref(u),"trap-on-focus-in":!0,"focus-trap-el":v.unref(y),"focus-start-el":v.unref(o),onFocusAfterTrapped:v.unref(i),onFocusAfterReleased:v.unref(a),onFocusin:v.unref(s),onFocusoutPrevented:v.unref(l),onReleaseRequested:v.unref(c)},{default:v.withCtx(()=>[v.renderSlot(W.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var xB=Tn(AB,[["__file","content.vue"]]);const FB=Ys(KE),yl=Symbol("elTooltip"),gv=St({...Yw,...mv,appendTo:{type:ge([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,visible:{type:ge(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...Jp(["ariaLabel"])}),yv=St({...iv,disabled:Boolean,trigger:{type:ge([String,Array]),default:"hover"},triggerKeys:{type:ge(Array),default:()=>[ga.enter,ga.space]}}),{useModelToggleProps:SB,useModelToggleEmits:OB,useModelToggle:_B}=op("visible"),kB=St({...rv,...SB,...gv,...yv,...ov,showArrow:{type:Boolean,default:!0}}),PB=[...OB,"before-show","before-hide","show","hide","open","close"],TB=(e,t)=>I1(e)?e.includes(t):e===t,Xr=(e,t,n)=>r=>{TB(v.unref(e),t)&&n(r)},RB=v.defineComponent({name:"ElTooltipTrigger"}),NB=v.defineComponent({...RB,props:yv,setup(e,{expose:t}){const n=e,r=Wo("tooltip"),{controlled:o,id:u,open:a,onOpen:i,onClose:s,onToggle:l}=v.inject(yl,void 0),c=v.ref(null),d=()=>{if(v.unref(o)||n.disabled)return!0},p=v.toRef(n,"trigger"),y=fn(d,Xr(p,"hover",i)),m=fn(d,Xr(p,"hover",s)),f=fn(d,Xr(p,"click",E=>{E.button===0&&l(E)})),w=fn(d,Xr(p,"focus",i)),h=fn(d,Xr(p,"focus",s)),g=fn(d,Xr(p,"contextmenu",E=>{E.preventDefault(),l(E)})),C=fn(d,E=>{const{code:B}=E;n.triggerKeys.includes(B)&&(E.preventDefault(),l(E))});return t({triggerRef:c}),(E,B)=>(v.openBlock(),v.createBlock(v.unref(JE),{id:v.unref(u),"virtual-ref":E.virtualRef,open:v.unref(a),"virtual-triggering":E.virtualTriggering,class:v.normalizeClass(v.unref(r).e("trigger")),onBlur:v.unref(h),onClick:v.unref(f),onContextmenu:v.unref(g),onFocus:v.unref(w),onMouseenter:v.unref(y),onMouseleave:v.unref(m),onKeydown:v.unref(C)},{default:v.withCtx(()=>[v.renderSlot(E.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var jB=Tn(NB,[["__file","trigger.vue"]]);const IB=v.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),MB=v.defineComponent({...IB,props:gv,setup(e,{expose:t}){const n=e,{selector:r}=_p(),o=Wo("tooltip"),u=v.ref(null),a=v.ref(!1),{controlled:i,id:s,open:l,trigger:c,onClose:d,onOpen:p,onShow:y,onHide:m,onBeforeShow:f,onBeforeHide:w}=v.inject(yl,void 0),h=v.computed(()=>n.transition||`${o.namespace.value}-fade-in-linear`),g=v.computed(()=>n.persistent);v.onBeforeUnmount(()=>{a.value=!0});const C=v.computed(()=>v.unref(g)?!0:v.unref(l)),E=v.computed(()=>n.disabled?!1:v.unref(l)),B=v.computed(()=>n.appendTo||r.value),x=v.computed(()=>{var R;return(R=n.style)!=null?R:{}}),b=v.computed(()=>!v.unref(l)),S=()=>{m()},P=()=>{if(v.unref(i))return!0},O=fn(P,()=>{n.enterable&&v.unref(c)==="hover"&&p()}),H=fn(P,()=>{v.unref(c)==="hover"&&d()}),k=()=>{var R,M;(M=(R=u.value)==null?void 0:R.updatePopper)==null||M.call(R),f==null||f()},W=()=>{w==null||w()},$=()=>{y(),G=k1(v.computed(()=>{var R;return(R=u.value)==null?void 0:R.popperContentRef}),()=>{if(v.unref(i))return;v.unref(c)!=="hover"&&d()})},V=()=>{n.virtualTriggering||d()};let G;return v.watch(()=>v.unref(l),R=>{R||G==null||G()},{flush:"post"}),v.watch(()=>n.content,()=>{var R,M;(M=(R=u.value)==null?void 0:R.updatePopper)==null||M.call(R)}),t({contentRef:u}),(R,M)=>(v.openBlock(),v.createBlock(v.Teleport,{disabled:!R.teleported,to:v.unref(B)},[v.createVNode(v.Transition,{name:v.unref(h),onAfterLeave:S,onBeforeEnter:k,onAfterEnter:$,onBeforeLeave:W},{default:v.withCtx(()=>[v.unref(C)?v.withDirectives((v.openBlock(),v.createBlock(v.unref(xB),v.mergeProps({key:0,id:v.unref(s),ref_key:"contentRef",ref:u},R.$attrs,{"aria-label":R.ariaLabel,"aria-hidden":v.unref(b),"boundaries-padding":R.boundariesPadding,"fallback-placements":R.fallbackPlacements,"gpu-acceleration":R.gpuAcceleration,offset:R.offset,placement:R.placement,"popper-options":R.popperOptions,strategy:R.strategy,effect:R.effect,enterable:R.enterable,pure:R.pure,"popper-class":R.popperClass,"popper-style":[R.popperStyle,v.unref(x)],"reference-el":R.referenceEl,"trigger-target-el":R.triggerTargetEl,visible:v.unref(E),"z-index":R.zIndex,onMouseenter:v.unref(O),onMouseleave:v.unref(H),onBlur:V,onClose:v.unref(d)}),{default:v.withCtx(()=>[a.value?v.createCommentVNode("v-if",!0):v.renderSlot(R.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[v.vShow,v.unref(E)]]):v.createCommentVNode("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var $B=Tn(MB,[["__file","content.vue"]]);const LB=["innerHTML"],zB={key:1},VB=v.defineComponent({name:"ElTooltip"}),WB=v.defineComponent({...VB,props:kB,emits:PB,setup(e,{expose:t,emit:n}){const r=e;qw();const o=Uw(),u=v.ref(),a=v.ref(),i=()=>{var h;const g=v.unref(u);g&&((h=g.popperInstanceRef)==null||h.update())},s=v.ref(!1),l=v.ref(),{show:c,hide:d,hasUpdateHandler:p}=_B({indicator:s,toggleReason:l}),{onOpen:y,onClose:m}=Qw({showAfter:v.toRef(r,"showAfter"),hideAfter:v.toRef(r,"hideAfter"),autoClose:v.toRef(r,"autoClose"),open:c,close:d}),f=v.computed(()=>ep(r.visible)&&!p.value);v.provide(yl,{controlled:f,id:o,open:v.readonly(s),trigger:v.toRef(r,"trigger"),onOpen:h=>{y(h)},onClose:h=>{m(h)},onToggle:h=>{v.unref(s)?m(h):y(h)},onShow:()=>{n("show",l.value)},onHide:()=>{n("hide",l.value)},onBeforeShow:()=>{n("before-show",l.value)},onBeforeHide:()=>{n("before-hide",l.value)},updatePopper:i}),v.watch(()=>r.disabled,h=>{h&&s.value&&(s.value=!1)});const w=h=>{var g,C;const E=(C=(g=a.value)==null?void 0:g.contentRef)==null?void 0:C.popperContentRef,B=(h==null?void 0:h.relatedTarget)||document.activeElement;return E&&E.contains(B)};return v.onDeactivated(()=>s.value&&d()),t({popperRef:u,contentRef:a,isFocusInsideContent:w,updatePopper:i,onOpen:y,onClose:m,hide:d}),(h,g)=>(v.openBlock(),v.createBlock(v.unref(FB),{ref_key:"popperRef",ref:u,role:h.role},{default:v.withCtx(()=>[v.createVNode(jB,{disabled:h.disabled,trigger:h.trigger,"trigger-keys":h.triggerKeys,"virtual-ref":h.virtualRef,"virtual-triggering":h.virtualTriggering},{default:v.withCtx(()=>[h.$slots.default?v.renderSlot(h.$slots,"default",{key:0}):v.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),v.createVNode($B,{ref_key:"contentRef",ref:a,"aria-label":h.ariaLabel,"boundaries-padding":h.boundariesPadding,content:h.content,disabled:h.disabled,effect:h.effect,enterable:h.enterable,"fallback-placements":h.fallbackPlacements,"hide-after":h.hideAfter,"gpu-acceleration":h.gpuAcceleration,offset:h.offset,persistent:h.persistent,"popper-class":h.popperClass,"popper-style":h.popperStyle,placement:h.placement,"popper-options":h.popperOptions,pure:h.pure,"raw-content":h.rawContent,"reference-el":h.referenceEl,"trigger-target-el":h.triggerTargetEl,"show-after":h.showAfter,strategy:h.strategy,teleported:h.teleported,transition:h.transition,"virtual-triggering":h.virtualTriggering,"z-index":h.zIndex,"append-to":h.appendTo},{default:v.withCtx(()=>[v.renderSlot(h.$slots,"content",{},()=>[h.rawContent?(v.openBlock(),v.createElementBlock("span",{key:0,innerHTML:h.content},null,8,LB)):(v.openBlock(),v.createElementBlock("span",zB,v.toDisplayString(h.content),1))]),h.showArrow?(v.openBlock(),v.createBlock(v.unref(QE),{key:0,"arrow-offset":h.arrowOffset},null,8,["arrow-offset"])):v.createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var UB=Tn(WB,[["__file","tooltip.vue"]]);const HB=Ys(UB);var Na=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const KB={viewBox:"0 0 24 24",width:"1em",height:"1em"},qB=[v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M16 5v6a4 4 0 0 1-4 4v0a4 4 0 0 1-4-4V5M6 19h12"},null,-1)];function YB(e,t){return v.openBlock(),v.createElementBlock("svg",KB,[...qB])}const QB={name:"iconoir-underline",render:YB},GB={viewBox:"0 0 24 24",width:"1em",height:"1em"},XB=[v.createElementVNode("path",{fill:"currentColor",d:"M15 20H7v-2h2.927l2.116-12H9V4h8v2h-2.927l-2.116 12H15z"},null,-1)];function ZB(e,t){return v.openBlock(),v.createElementBlock("svg",GB,[...XB])}const JB={name:"ri-italic",render:ZB},eb={viewBox:"0 0 20 20",width:"1em",height:"1em"},tb=[v.createElementVNode("path",{fill:"currentColor",d:"M6.252 3.702A6.56 6.56 0 0 1 10 2.5c2.783 0 4.489 1.485 5.1 2.3a.75.75 0 0 1-1.2.9C13.511 5.182 12.217 4 10 4a5.06 5.06 0 0 0-2.877.923C6.331 5.489 6 6.105 6 6.5c0 .78.376 1.285 1.11 1.71q.271.156.586.29H5.162c-.408-.523-.662-1.178-.662-2c0-1.105.794-2.114 1.752-2.798M16.5 10a.75.75 0 0 1 0 1.5h-1.662c.408.523.662 1.178.662 2c0 1.358-.874 2.376-1.912 3.014c-1.042.641-2.367.986-3.588.986c-1.142 0-2.133-.129-2.992-.498c-.877-.378-1.563-.982-2.132-1.836a.75.75 0 1 1 1.248-.832c.43.646.901 1.042 1.477 1.29c.594.255 1.354.376 2.4.376c.966 0 2.015-.28 2.801-.764C13.593 14.75 14 14.142 14 13.5c0-.78-.376-1.285-1.11-1.71q-.271-.156-.586-.29H3.5a.75.75 0 0 1 0-1.5z"},null,-1)];function nb(e,t){return v.openBlock(),v.createElementBlock("svg",eb,[...tb])}const rb={name:"fluent-text-strikethrough20-filled",render:nb},ob={viewBox:"0 0 24 24",width:"1em",height:"1em"},ub=[v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-width":"1.5",d:"M12 11.667H8m4 0s3.333 0 3.333-3.334S12 5 12 5H8.6a.6.6 0 0 0-.6.6v6.067m4 0s4 0 4 3.666S12 19 12 19H8.6a.6.6 0 0 1-.6-.6v-6.733"},null,-1)];function ab(e,t){return v.openBlock(),v.createElementBlock("svg",ob,[...ub])}const ib={name:"iconoir-bold",render:ab};function sb(e){return e!=null&&typeof e=="object"&&"$el"in e}function Dv(e){if(sb(e)){const t=e.$el;return ll(t)&&pn(t)==="#comment"?null:t}return e}function Cv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function wv(e,t){const n=Cv(e);return Math.round(t*n)/n}function lb(e,t,n){n===void 0&&(n={});const r=n.whileElementsMounted,o=v.computed(()=>{var b;return(b=v.unref(n.open))!=null?b:!0}),u=v.computed(()=>v.unref(n.middleware)),a=v.computed(()=>{var b;return(b=v.unref(n.placement))!=null?b:"bottom"}),i=v.computed(()=>{var b;return(b=v.unref(n.strategy))!=null?b:"absolute"}),s=v.computed(()=>{var b;return(b=v.unref(n.transform))!=null?b:!0}),l=v.computed(()=>Dv(e.value)),c=v.computed(()=>Dv(t.value)),d=v.ref(0),p=v.ref(0),y=v.ref(i.value),m=v.ref(a.value),f=v.shallowRef({}),w=v.ref(!1),h=v.computed(()=>{const b={position:y.value,left:"0",top:"0"};if(!c.value)return b;const S=wv(c.value,d.value),P=wv(c.value,p.value);return s.value?{...b,transform:"translate("+S+"px, "+P+"px)",...Cv(c.value)>=1.5&&{willChange:"transform"}}:{position:y.value,left:S+"px",top:P+"px"}});let g;function C(){l.value==null||c.value==null||PE(l.value,c.value,{middleware:u.value,placement:a.value,strategy:i.value}).then(b=>{d.value=b.x,p.value=b.y,y.value=b.strategy,m.value=b.placement,f.value=b.middlewareData,w.value=!0})}function E(){typeof g=="function"&&(g(),g=void 0)}function B(){if(E(),r===void 0){C();return}if(l.value!=null&&c.value!=null){g=r(l.value,c.value,C);return}}function x(){o.value||(w.value=!1)}return v.watch([u,a,i],C,{flush:"sync"}),v.watch([l,c],B,{flush:"sync"}),v.watch(o,x,{flush:"sync"}),v.getCurrentScope()&&v.onScopeDispose(E),{x:v.shallowReadonly(d),y:v.shallowReadonly(p),strategy:v.shallowReadonly(y),placement:v.shallowReadonly(m),middlewareData:v.shallowReadonly(f),isPositioned:v.shallowReadonly(w),floatingStyles:h,update:C}}function cb(e,t){let n,r,o;const u=v.ref(!0),a=()=>{u.value=!0,o()};v.watch(e,a,{flush:"sync"});const i=typeof t=="function"?t:t.get,s=typeof t=="function"?void 0:t.set,l=v.customRef((c,d)=>(r=c,o=d,{get(){return u.value&&(n=i(),u.value=!1),r(),n},set(p){s==null||s(p)}}));return Object.isExtensible(l)&&(l.trigger=a),l}function ja(e){return v.getCurrentScope()?(v.onScopeDispose(e),!0):!1}function Dl(){const e=new Set,t=o=>{e.delete(o)};return{on:o=>{e.add(o);const u=()=>t(o);return ja(u),{off:u}},off:t,trigger:(...o)=>Promise.all(Array.from(e).map(u=>u(...o)))}}function fb(e){let t=0,n,r;const o=()=>{t-=1,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return(...u)=>(t+=1,n||(r=v.effectScope(!0),n=r.run(()=>e(...u))),ja(o),n)}function eu(e){return typeof e=="function"?e():v.unref(e)}const db=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const pb=e=>e!=null,vb=Object.prototype.toString,hb=e=>vb.call(e)==="[object Object]",mb=()=>{};function gb(e,t){function n(...r){return new Promise((o,u)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(u)})}return n}const yb=e=>e();function Db(e,t,n={}){const{eventFilter:r=yb,...o}=n,u=gb(r,t);let a,i,s;if(o.flush==="sync"){const l=v.ref(!1);i=()=>{},a=c=>{l.value=!0,c(),l.value=!1},s=v.watch(e,(...c)=>{l.value||u(...c)},o)}else{const l=[],c=v.ref(0),d=v.ref(0);i=()=>{c.value=d.value},l.push(v.watch(e,()=>{d.value++},{...o,flush:"sync"})),a=p=>{const y=d.value;p(),c.value+=d.value-y},l.push(v.watch(e,(...p)=>{const y=c.value>0&&c.value===d.value;c.value=0,d.value=0,!y&&u(...p)},o)),s=()=>{l.forEach(p=>p())}}return{stop:s,ignoreUpdates:a,ignorePrevAsyncUpdates:i}}function Cb(e,t,n={}){let r;function o(){if(!r)return;const c=r;r=void 0,c()}function u(c){r=c}const a=(c,d)=>(o(),t(c,d,u)),i=Db(e,a,n),{ignoreUpdates:s}=i;return{...i,trigger:()=>{let c;return s(()=>{c=a(wb(e),Eb(e))}),c}}}function wb(e){return v.isReactive(e)?e:Array.isArray(e)?e.map(t=>eu(t)):eu(e)}function Eb(e){return Array.isArray(e)?e.map(()=>{}):void 0}function Ia(e){var t;const n=eu(e);return(t=n==null?void 0:n.$el)!=null?t:n}const tu=db?window:void 0;function Qe(...e){let t,n,r,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,o]=e,t=tu):[t,n,r,o]=e,!t)return mb;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const u=[],a=()=>{u.forEach(c=>c()),u.length=0},i=(c,d,p,y)=>(c.addEventListener(d,p,y),()=>c.removeEventListener(d,p,y)),s=v.watch(()=>[Ia(t),eu(o)],([c,d])=>{if(a(),!c)return;const p=hb(d)?{...d}:d;u.push(...n.flatMap(y=>r.map(m=>i(c,y,m,p))))},{immediate:!0,flush:"post"}),l=()=>{s(),a()};return ja(l),l}function Bb(e={}){var t;const{window:n=tu,deep:r=!0}=e,o=(t=e.document)!=null?t:n==null?void 0:n.document,u=()=>{var s;let l=o==null?void 0:o.activeElement;if(r)for(;l!=null&&l.shadowRoot;)l=(s=l==null?void 0:l.shadowRoot)==null?void 0:s.activeElement;return l},a=v.ref(),i=()=>{a.value=u()};return n&&(Qe(n,"blur",s=>{s.relatedTarget===null&&i()},!0),Qe(n,"focus",i,!0)),i(),a}function bb(){const e=v.ref(!1),t=v.getCurrentInstance();return t&&v.onMounted(()=>{e.value=!0},t),e}function Ab(e){const t=bb();return v.computed(()=>(t.value,!!e()))}function xb(e,t,n={}){const{window:r=tu,...o}=n;let u;const a=Ab(()=>r&&"MutationObserver"in r),i=()=>{u&&(u.disconnect(),u=void 0)},s=v.computed(()=>{const p=eu(e),y=(Array.isArray(p)?p:[p]).map(Ia).filter(pb);return new Set(y)}),l=v.watch(()=>s.value,p=>{i(),a.value&&r&&p.size&&(u=new MutationObserver(t),p.forEach(y=>u.observe(y,o)))},{immediate:!0,flush:"post"}),c=()=>u==null?void 0:u.takeRecords(),d=()=>{i(),l()};return ja(d),{isSupported:a,stop:d,takeRecords:c}}function Ma(e){const t=v.getCurrentInstance(),n=cb(()=>null,()=>t.proxy.$el);return v.onUpdated(n.trigger),v.onMounted(n.trigger),n}function Fb(e,t={}){const{delayEnter:n=0,delayLeave:r=0,window:o=tu}=t,u=v.ref(!1);let a;const i=s=>{const l=s?n:r;a&&(clearTimeout(a),a=void 0),l?a=setTimeout(()=>u.value=s,l):u.value=s};return o&&(Qe(e,"mouseenter",()=>i(!0),{passive:!0}),Qe(e,"mouseleave",()=>i(!1),{passive:!0})),u}function Sb(e,t={}){const n=Bb(t),r=v.computed(()=>Ia(e));return{focused:v.computed(()=>r.value&&n.value?r.value.contains(n.value):!1)}}function Ob(e={}){const{touch:t=!0,drag:n=!0,capture:r=!1,initialValue:o=!1,window:u=tu}=e,a=v.ref(o),i=v.ref(null);if(!u)return{pressed:a,sourceType:i};const s=d=>()=>{a.value=!0,i.value=d},l=()=>{a.value=!1,i.value=null},c=v.computed(()=>Ia(e.target)||u);return Qe(c,"mousedown",s("mouse"),{passive:!0,capture:r}),Qe(u,"mouseleave",l,{passive:!0,capture:r}),Qe(u,"mouseup",l,{passive:!0,capture:r}),n&&(Qe(c,"dragstart",s("mouse"),{passive:!0,capture:r}),Qe(u,"drop",l,{passive:!0,capture:r}),Qe(u,"dragend",l,{passive:!0,capture:r})),t&&(Qe(c,"touchstart",s("touch"),{passive:!0,capture:r}),Qe(u,"touchend",l,{passive:!0,capture:r}),Qe(u,"touchcancel",l,{passive:!0,capture:r})),{pressed:a,sourceType:i}}const $a=v.ref(),La=v.ref(),_b=Dl(),Ev=Dl();function za(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function kb(){return String.fromCharCode(za(97,122))}function Pb(){return String.fromCharCode(za(65,90))}function Bv(e=12,t={}){const{lowercase:n=!0,uppercase:r=!1,number:o=!1}=t,u=[];let a;if(n&&u.push("l"),r&&u.push("u"),o&&u.push("n"),!(a=u.length))throw new Error("???");let i="";for(;e-- >0;){const s=a>1?za(0,a-1):0,l=u[s];l==="l"?i+=kb():l==="u"?i+=Pb():l==="n"&&(i+=za(0,9))}return i}function Tb(){return Bv(1,{uppercase:!0})+Bv(17,{uppercase:!0,number:!0})}const Rb=typeof window<"u";function Nb(e,t,n){let r;const o=()=>{r==null||r.stop(),r=void 0},u=v.watch(e,(a,i,s)=>{a?(r&&o(),r=v.effectScope(),r.run(()=>t(a,i,s))):o()},n);return()=>{o(),u()}}function jb(e,t,n){return Nb(e,t,{...n,immediate:!0})}const bv=fb(()=>{const e=v.ref(null),t=v.computed(()=>{var u;return((u=e.value)==null?void 0:u.toString())??""}),n=v.computed(()=>t.value&&e.value.rangeCount>0),r=v.computed(()=>{if(n.value){const u=e.value.getRangeAt(0).cloneRange();if(u.collapse(u.startContainer===e.value.focusNode),u.startOffset===0){const a=document.createRange();return a.setStart(u.startContainer,0),a.setEnd(u.startContainer,1),a}return u}}),o=Dl();return jb(La,()=>{Qe(window.document,"selectionchange",()=>{e.value=null,e.value=La.value.getSelection(),n.value&&o.trigger(e.value)})}),{text:t,isValidSelection:n,range:r,selection:e,onValidSelectionUpdate:o.on}});/*!
6
6
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
7
7
  *
8
8
  * Copyright (c) 2014-2017, Jon Schlinkert.
9
9
  * Released under the MIT License.
10
- */function Wp(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ue(e){var t,n;return Wp(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(Wp(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}var Up=Symbol.for("immer-nothing"),Hp=Symbol.for("immer-draftable"),Dt=Symbol.for("immer-state");function Wt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Qr=Object.getPrototypeOf;function dr(e){return!!e&&!!e[Dt]}function pr(e){var t;return e?Kp(e)||Array.isArray(e)||!!e[Hp]||!!((t=e.constructor)!=null&&t[Hp])||Pa(e)||Ta(e):!1}var sE=Object.prototype.constructor.toString();function Kp(e){if(!e||typeof e!="object")return!1;const t=Qr(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===sE}function Yo(e,t){ka(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function ka(e){const t=e[Dt];return t?t.type_:Array.isArray(e)?1:Pa(e)?2:Ta(e)?3:0}function el(e,t){return ka(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function qp(e,t,n){const r=ka(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function lE(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Pa(e){return e instanceof Map}function Ta(e){return e instanceof Set}function vr(e){return e.copy_||e.base_}function tl(e,t){if(Pa(e))return new Map(e);if(Ta(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Kp(e))return Qr(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Dt];let r=Reflect.ownKeys(n);for(let o=0;o<r.length;o++){const u=r[o],a=n[u];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[u]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[u]})}return Object.create(Qr(e),n)}function nl(e,t=!1){return Ra(e)||dr(e)||!pr(e)||(ka(e)>1&&(e.set=e.add=e.clear=e.delete=cE),Object.freeze(e),t&&Yo(e,(n,r)=>nl(r,!0))),e}function cE(){Wt(2)}function Ra(e){return Object.isFrozen(e)}var fE={};function hr(e){const t=fE[e];return t||Wt(0,e),t}var Go;function Qp(){return Go}function dE(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Yp(e,t){t&&(hr("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function rl(e){ol(e),e.drafts_.forEach(pE),e.drafts_=null}function ol(e){e===Go&&(Go=e.parent_)}function Gp(e){return Go=dE(Go,e)}function pE(e){const t=e[Dt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Xp(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Dt].modified_&&(rl(t),Wt(4)),pr(e)&&(e=Na(t,e),t.parent_||ja(t,e)),t.patches_&&hr("Patches").generateReplacementPatches_(n[Dt].base_,e,t.patches_,t.inversePatches_)):e=Na(t,n,[]),rl(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Up?e:void 0}function Na(e,t,n){if(Ra(t))return t;const r=t[Dt];if(!r)return Yo(t,(o,u)=>Zp(e,r,t,o,u,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return ja(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let u=o,a=!1;r.type_===3&&(u=new Set(o),o.clear(),a=!0),Yo(u,(i,s)=>Zp(e,r,o,i,s,n,a)),ja(e,o,!1),n&&e.patches_&&hr("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Zp(e,t,n,r,o,u,a){if(dr(o)){const i=u&&t&&t.type_!==3&&!el(t.assigned_,r)?u.concat(r):void 0,s=Na(e,o,i);if(qp(n,r,s),dr(s))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(pr(o)&&!Ra(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Na(e,o),(!t||!t.scope_.parent_)&&ja(e,o)}}function ja(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&nl(t,n)}function vE(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Qp(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,u=ul;n&&(o=[r],u=Xo);const{revoke:a,proxy:i}=Proxy.revocable(o,u);return r.draft_=i,r.revoke_=a,i}var ul={get(e,t){if(t===Dt)return e;const n=vr(e);if(!el(n,t))return hE(e,n,t);const r=n[t];return e.finalized_||!pr(r)?r:r===al(e.base_,t)?(sl(e),e.copy_[t]=ll(r,e)):r},has(e,t){return t in vr(e)},ownKeys(e){return Reflect.ownKeys(vr(e))},set(e,t,n){const r=Jp(vr(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=al(vr(e),t),u=o==null?void 0:o[Dt];if(u&&u.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(lE(n,o)&&(n!==void 0||el(e.base_,t)))return!0;sl(e),il(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return al(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,sl(e),il(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=vr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Wt(11)},getPrototypeOf(e){return Qr(e.base_)},setPrototypeOf(){Wt(12)}},Xo={};Yo(ul,(e,t)=>{Xo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Xo.deleteProperty=function(e,t){return Xo.set.call(this,e,t,void 0)},Xo.set=function(e,t,n){return ul.set.call(this,e[0],t,n,e[0])};function al(e,t){const n=e[Dt];return(n?vr(n):e)[t]}function hE(e,t,n){var o;const r=Jp(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function Jp(e,t){if(!(t in e))return;let n=Qr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Qr(n)}}function il(e){e.modified_||(e.modified_=!0,e.parent_&&il(e.parent_))}function sl(e){e.copy_||(e.copy_=tl(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var mE=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const u=n;n=t;const a=this;return function(s=u,...l){return a.produce(s,c=>n.call(this,c,...l))}}typeof n!="function"&&Wt(6),r!==void 0&&typeof r!="function"&&Wt(7);let o;if(pr(t)){const u=Gp(this),a=ll(t,void 0);let i=!0;try{o=n(a),i=!1}finally{i?rl(u):ol(u)}return Yp(u,r),Xp(o,u)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===Up&&(o=void 0),this.autoFreeze_&&nl(o,!0),r){const u=[],a=[];hr("Patches").generateReplacementPatches_(t,o,u,a),r(u,a)}return o}else Wt(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...i)=>this.produceWithPatches(a,s=>t(s,...i));let r,o;return[this.produce(t,n,(a,i)=>{r=a,o=i}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){pr(e)||Wt(8),dr(e)&&(e=gE(e));const t=Gp(this),n=ll(e,void 0);return n[Dt].isManual_=!0,ol(t),n}finishDraft(e,t){const n=e&&e[Dt];(!n||!n.isManual_)&&Wt(9);const{scope_:r}=n;return Yp(r,t),Xp(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=hr("Patches").applyPatches_;return dr(e)?r(e,t):this.produce(e,o=>r(o,t))}};function ll(e,t){const n=Pa(e)?hr("MapSet").proxyMap_(e,t):Ta(e)?hr("MapSet").proxySet_(e,t):vE(e,t);return(t?t.scope_:Qp()).drafts_.push(n),n}function gE(e){return dr(e)||Wt(10,e),ev(e)}function ev(e){if(!pr(e)||Ra(e))return e;const t=e[Dt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=tl(e,t.scope_.immer_.useStrictShallowCopy_)}else n=tl(e,!0);return Yo(n,(r,o)=>{qp(n,r,ev(o))}),t&&(t.finalized_=!1),n}var Ct=new mE,cl=Ct.produce;Ct.produceWithPatches.bind(Ct),Ct.setAutoFreeze.bind(Ct),Ct.setUseStrictShallowCopy.bind(Ct),Ct.applyPatches.bind(Ct);var tv=Ct.createDraft.bind(Ct),nv=Ct.finishDraft.bind(Ct),yE={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=b.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},DE={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=ae.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},CE={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=_.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},Ia=new WeakMap,Ma=new WeakMap,Zo=new WeakMap,rv=new WeakMap,ov=new WeakMap,uv=new WeakMap,av=new WeakMap,b={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=b.levels(e,t);return n?r=r.slice(1):r=r.slice(0,-1),r},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r],u=t[r];if(o!==u)break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),u=e[n],a=t[n];return b.equals(r,o)&&u>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return b.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),u=e[n],a=t[n];return b.equals(r,o)&&u<a},equals(e,t){return e.length===t.length&&e.every((n,r)=>n===t[r])},hasPrevious(e){return e[e.length-1]>0},isAfter(e,t){return b.compare(e,t)===1},isAncestor(e,t){return e.length<t.length&&b.compare(e,t)===0},isBefore(e,t){return b.compare(e,t)===-1},isChild(e,t){return e.length===t.length+1&&b.compare(e,t)===0},isCommon(e,t){return e.length<=t.length&&b.compare(e,t)===0},isDescendant(e,t){return e.length>t.length&&b.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&b.compare(e,t)===0},isPath(e){return Array.isArray(e)&&(e.length===0||typeof e[0]=="number")},isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1),o=e[e.length-1],u=t[t.length-1];return o!==u&&b.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!b.isAncestor(t,e)&&!b.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e)return null;var r=[...e],{affinity:o="forward"}=n;if(e.length===0)return r;switch(t.type){case"insert_node":{var{path:u}=t;(b.equals(u,r)||b.endsBefore(u,r)||b.isAncestor(u,r))&&(r[u.length-1]+=1);break}case"remove_node":{var{path:a}=t;if(b.equals(a,r)||b.isAncestor(a,r))return null;b.endsBefore(a,r)&&(r[a.length-1]-=1);break}case"merge_node":{var{path:i,position:s}=t;b.equals(i,r)||b.endsBefore(i,r)?r[i.length-1]-=1:b.isAncestor(i,r)&&(r[i.length-1]-=1,r[i.length]+=s);break}case"split_node":{var{path:l,position:c}=t;if(b.equals(l,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else b.endsBefore(l,r)?r[l.length-1]+=1:b.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break}case"move_node":{var{path:d,newPath:p}=t;if(b.equals(d,p))return r;if(b.isAncestor(d,r)||b.equals(d,r)){var y=p.slice();return b.endsBefore(d,p)&&d.length<p.length&&(y[d.length-1]-=1),y.concat(r.slice(d.length))}else b.isSibling(d,p)&&(b.isAncestor(p,r)||b.equals(p,r))?b.endsBefore(d,r)?r[d.length-1]-=1:r[d.length-1]+=1:b.endsBefore(p,r)||b.equals(p,r)||b.isAncestor(p,r)?(b.endsBefore(d,r)&&(r[d.length-1]-=1),r[p.length-1]+=1):b.endsBefore(d,r)&&(b.equals(p,r)&&(r[p.length-1]+=1),r[d.length-1]-=1);break}}return r}};function Jo(e){"@babel/helpers - typeof";return Jo=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},Jo(e)}function wE(e,t){if(Jo(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Jo(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EE(e){var t=wE(e,"string");return Jo(t)==="symbol"?t:String(t)}function tt(e,t,n){return t=EE(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function eu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var BE=(e,t,n)=>{switch(n.type){case"insert_node":{var{path:r,node:o}=n,u=q.parent(e,r),a=r[r.length-1];if(a>u.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(u.children.splice(a,0,o),t)for(var[i,s]of _.points(t))t[s]=ae.transform(i,n);break}case"insert_text":{var{path:l,offset:c,text:d}=n;if(d.length===0)break;var p=q.leaf(e,l),y=p.text.slice(0,c),m=p.text.slice(c);if(p.text=y+d+m,t)for(var[f,w]of _.points(t))t[w]=ae.transform(f,n);break}case"merge_node":{var{path:h}=n,g=q.get(e,h),C=b.previous(h),E=q.get(e,C),B=q.parent(e,h),F=h[h.length-1];if(J.isText(g)&&J.isText(E))E.text+=g.text;else if(!J.isText(g)&&!J.isText(E))E.children.push(...g.children);else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(h,"] to nodes of different interfaces: ").concat(ze.stringify(g)," ").concat(ze.stringify(E)));if(B.children.splice(F,1),t)for(var[A,S]of _.points(t))t[S]=ae.transform(A,n);break}case"move_node":{var{path:P,newPath:O}=n;if(b.isAncestor(P,O))throw new Error("Cannot move a path [".concat(P,"] to new path [").concat(O,"] because the destination is inside itself."));var H=q.get(e,P),k=q.parent(e,P),W=P[P.length-1];k.children.splice(W,1);var $=b.transform(P,n),V=q.get(e,b.parent($)),G=$[$.length-1];if(V.children.splice(G,0,H),t)for(var[R,M]of _.points(t))t[M]=ae.transform(R,n);break}case"remove_node":{var{path:U}=n,Y=U[U.length-1],ne=q.parent(e,U);if(ne.children.splice(Y,1),t)for(var[te,ve]of _.points(t)){var x=ae.transform(te,n);if(t!=null&&x!=null)t[ve]=x;else{var j=void 0,N=void 0;for(var[Q,oe]of q.texts(e))if(b.compare(oe,U)===-1)j=[Q,oe];else{N=[Q,oe];break}var ee=!1;j&&N&&(b.equals(N[1],U)?ee=!b.hasPrevious(N[1]):ee=b.common(j[1],U).length<b.common(N[1],U).length),j&&!ee?(te.path=j[1],te.offset=j[0].text.length):N?(te.path=N[1],te.offset=0):t=null}}break}case"remove_text":{var{path:ie,offset:ce,text:de}=n;if(de.length===0)break;var he=q.leaf(e,ie),le=he.text.slice(0,ce),Ie=he.text.slice(ce+de.length);if(he.text=le+Ie,t)for(var[Re,Ae]of _.points(t))t[Ae]=ae.transform(Re,n);break}case"set_node":{var{path:xt,properties:zt,newProperties:_e}=n;if(xt.length===0)throw new Error("Cannot set properties on the root node!");var et=q.get(e,xt);for(var me in _e){if(me==="children"||me==="text")throw new Error('Cannot set the "'.concat(me,'" property of nodes!'));var Le=_e[me];Le==null?delete et[me]:et[me]=Le}for(var ke in zt)_e.hasOwnProperty(ke)||delete et[ke];break}case"set_selection":{var{newProperties:Ne}=n;if(Ne==null)t=Ne;else{if(t==null){if(!_.isRange(Ne))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(ze.stringify(Ne)," when there is no current selection."));t=eu({},Ne)}for(var mt in Ne){var Nr=Ne[mt];if(Nr==null){if(mt==="anchor"||mt==="focus")throw new Error('Cannot remove the "'.concat(mt,'" selection property'));delete t[mt]}else t[mt]=Nr}}break}case"split_node":{var{path:gt,position:jr,properties:Es}=n;if(gt.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(gt,"] because the root node cannot be split."));var Ir=q.get(e,gt),O3=q.parent(e,gt),_3=gt[gt.length-1],sd;if(J.isText(Ir)){var k3=Ir.text.slice(0,jr),P3=Ir.text.slice(jr);Ir.text=k3,sd=eu(eu({},Es),{},{text:P3})}else{var T3=Ir.children.slice(0,jr),R3=Ir.children.slice(jr);Ir.children=T3,sd=eu(eu({},Es),{},{children:R3})}if(O3.children.splice(_3+1,0,sd),t)for(var[N3,j3]of _.points(t))t[j3]=ae.transform(N3,n);break}}return t},AE={transform(e,t){e.children=tv(e.children);var n=e.selection&&tv(e.selection);try{n=BE(e,n,t)}finally{e.children=nv(e.children),n?e.selection=dr(n)?nv(n):n:e.selection=null}}},bE={insertNodes(e,t,n){e.insertNodes(t,n)},liftNodes(e,t){e.liftNodes(t)},mergeNodes(e,t){e.mergeNodes(t)},moveNodes(e,t){e.moveNodes(t)},removeNodes(e,t){e.removeNodes(t)},setNodes(e,t,n){e.setNodes(t,n)},splitNodes(e,t){e.splitNodes(t)},unsetNodes(e,t,n){e.unsetNodes(t,n)},unwrapNodes(e,t){e.unwrapNodes(t)},wrapNodes(e,t,n){e.wrapNodes(t,n)}},FE={collapse(e,t){e.collapse(t)},deselect(e){e.deselect()},move(e,t){e.move(t)},select(e,t){e.select(t)},setPoint(e,t,n){e.setPoint(t,n)},setSelection(e,t){e.setSelection(t)}},sv=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Ue(r)&&Ue(o)){if(!sv(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var u=0;u<r.length;u++)if(r[u]!==o[u])return!1}else if(r!==o)return!1}for(var a in t)if(e[a]===void 0&&t[a]!==void 0)return!1;return!0};function xE(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,u;for(u=0;u<r.length;u++)o=r[u],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function hn(e,t){if(e==null)return{};var n=xE(e,t),r,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(o=0;o<u.length;o++)r=u[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var SE=["anchor","focus"];function lv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function OE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var _={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return _.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=_.edges(e);return t},equals(e,t){return ae.equals(e.anchor,t.anchor)&&ae.equals(e.focus,t.focus)},includes(e,t){if(_.isRange(t)){if(_.includes(e,t.anchor)||_.includes(e,t.focus))return!0;var[n,r]=_.edges(e),[o,u]=_.edges(t);return ae.isBefore(n,o)&&ae.isAfter(r,u)}var[a,i]=_.edges(e),s=!1,l=!1;return ae.isPoint(t)?(s=ae.compare(t,a)>=0,l=ae.compare(t,i)<=0):(s=b.compare(t,a.path)>=0,l=b.compare(t,i.path)<=0),s&&l},intersection(e,t){var n=hn(e,SE),[r,o]=_.edges(e),[u,a]=_.edges(t),i=ae.isBefore(r,u)?u:r,s=ae.isBefore(o,a)?o:a;return ae.isBefore(s,i)?null:OE({anchor:i,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return ae.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return ae.equals(t,n)},isExpanded(e){return!_.isCollapsed(e)},isForward(e){return!_.isBackward(e)},isRange(e){return Ue(e)&&ae.isPoint(e.anchor)&&ae.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=_.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return cl(e,r=>{if(r===null)return null;var{affinity:o="inward"}=n,u,a;if(o==="inward"){var i=_.isCollapsed(r);_.isForward(r)?(u="forward",a=i?u:"backward"):(u="backward",a=i?u:"forward")}else o==="outward"?_.isForward(r)?(u="backward",a="forward"):(u="forward",a="backward"):(u=o,a=o);var s=ae.transform(r.anchor,t,{affinity:u}),l=ae.transform(r.focus,t,{affinity:a});if(!s||!l)return null;r.anchor=s,r.focus=l})}},cv=e=>Ue(e)&&q.isNodeList(e.children)&&!D.isEditor(e),X={isAncestor(e){return Ue(e)&&q.isNodeList(e.children)},isElement:cv,isElementList(e){return Array.isArray(e)&&e.every(t=>X.isElement(t))},isElementProps(e){return e.children!==void 0},isElementType:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return cv(t)&&t[r]===n},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},_E=["children"],kE=["text"],fv=new WeakMap,q={ancestor(e,t){var n=q.get(e,t);if(J.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(ze.stringify(n)));return n},ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function*(){for(var r of b.ancestors(t,n)){var o=q.ancestor(e,r),u=[o,r];yield u}}()},child(e,t){if(J.isText(e))throw new Error("Cannot get the child of a text node: ".concat(ze.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(ze.stringify(e)));return n},children(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function*(){for(var{reverse:r=!1}=n,o=q.ancestor(e,t),{children:u}=o,a=r?u.length-1:0;r?a>=0:a<u.length;){var i=q.child(o,a),s=t.concat(a);yield[i,s],a=r?a-1:a+1}}()},common(e,t,n){var r=b.common(t,n),o=q.get(e,r);return[o,r]},descendant(e,t){var n=q.get(e,t);if(D.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(ze.stringify(n)));return n},descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var[n,r]of q.nodes(e,t))r.length!==0&&(yield[n,r])}()},elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var[n,r]of q.nodes(e,t))X.isElement(n)&&(yield[n,r])}()},extractProps(e){if(X.isAncestor(e)){var t=hn(e,_E);return t}else{var t=hn(e,kE);return t}},first(e,t){for(var n=t.slice(),r=q.get(e,n);r&&!(J.isText(r)||r.children.length===0);)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(J.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(ze.stringify(e)));var n=cl({children:e.children},r=>{var[o,u]=_.edges(t),a=q.nodes(r,{reverse:!0,pass:p=>{var[,y]=p;return!_.includes(t,y)}});for(var[,i]of a){if(!_.includes(t,i)){var s=q.parent(r,i),l=i[i.length-1];s.children.splice(l,1)}if(b.equals(i,u.path)){var c=q.leaf(r,i);c.text=c.text.slice(0,u.offset)}if(b.equals(i,o.path)){var d=q.leaf(r,i);d.text=d.text.slice(o.offset)}}D.isEditor(r)&&(r.selection=null)});return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(J.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(ze.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(J.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode(e){return J.isText(e)||X.isElement(e)||D.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var t=fv.get(e);if(t!==void 0)return t;var n=e.every(r=>q.isNode(r));return fv.set(e,n),n},last(e,t){for(var n=t.slice(),r=q.get(e,n);r&&!(J.isText(r)||r.children.length===0);){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=q.get(e,t);if(!J.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(ze.stringify(n)));return n},levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function*(){for(var r of b.levels(t,n)){var o=q.get(e,r);yield[o,r]}}()},matches(e,t){return X.isElement(e)&&X.isElementProps(t)&&X.matches(e,t)||J.isText(e)&&J.isTextProps(t)&&J.matches(e,t)},nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var{pass:n,reverse:r=!1}=t,{from:o=[],to:u}=t,a=new Set,i=[],s=e;!(u&&(r?b.isBefore(i,u):b.isAfter(i,u)));){if(a.has(s)||(yield[s,i]),!a.has(s)&&!J.isText(s)&&s.children.length!==0&&(n==null||n([s,i])===!1)){a.add(s);var l=r?s.children.length-1:0;b.isAncestor(i,o)&&(l=o[i.length]),i=i.concat(l),s=q.get(e,i);continue}if(i.length===0)break;if(!r){var c=b.next(i);if(q.has(e,c)){i=c,s=q.get(e,i);continue}}if(r&&i[i.length-1]!==0){var d=b.previous(i);i=d,s=q.get(e,i);continue}i=b.parent(i),s=q.get(e,i),a.add(s)}}()},parent(e,t){var n=b.parent(t),r=q.get(e,n);if(J.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string(e){return J.isText(e)?e.text:e.children.map(q.string).join("")},texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var[n,r]of q.nodes(e,t))J.isText(n)&&(yield[n,r])}()}};function dv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Rn={isNodeOperation(e){return Rn.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!Ue(e))return!1;switch(e.type){case"insert_node":return b.isPath(e.path)&&q.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&b.isPath(e.path);case"merge_node":return typeof e.position=="number"&&b.isPath(e.path)&&Ue(e.properties);case"move_node":return b.isPath(e.path)&&b.isPath(e.newPath);case"remove_node":return b.isPath(e.path)&&q.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&b.isPath(e.path);case"set_node":return b.isPath(e.path)&&Ue(e.properties)&&Ue(e.newProperties);case"set_selection":return e.properties===null&&_.isRange(e.newProperties)||e.newProperties===null&&_.isRange(e.properties)||Ue(e.properties)&&Ue(e.newProperties);case"split_node":return b.isPath(e.path)&&typeof e.position=="number"&&Ue(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(t=>Rn.isOperation(t))},isSelectionOperation(e){return Rn.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return Rn.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return we(we({},e),{},{type:"remove_node"});case"insert_text":return we(we({},e),{},{type:"remove_text"});case"merge_node":return we(we({},e),{},{type:"split_node",path:b.previous(e.path)});case"move_node":{var{newPath:t,path:n}=e;if(b.equals(t,n))return e;if(b.isSibling(n,t))return we(we({},e),{},{path:t,newPath:n});var r=b.transform(n,e),o=b.transform(b.next(n),e);return we(we({},e),{},{path:r,newPath:o})}case"remove_node":return we(we({},e),{},{type:"insert_node"});case"remove_text":return we(we({},e),{},{type:"insert_text"});case"set_node":{var{properties:u,newProperties:a}=e;return we(we({},e),{},{properties:a,newProperties:u})}case"set_selection":{var{properties:i,newProperties:s}=e;return i==null?we(we({},e),{},{properties:s,newProperties:null}):s==null?we(we({},e),{},{properties:null,newProperties:i}):we(we({},e),{},{properties:s,newProperties:i})}case"split_node":return we(we({},e),{},{type:"merge_node",path:b.next(e.path)})}}},pv=new WeakMap,PE=e=>{var t=pv.get(e);if(t!==void 0)return t;if(!Ue(e))return!1;var n=typeof e.addMark=="function"&&typeof e.apply=="function"&&typeof e.deleteFragment=="function"&&typeof e.insertBreak=="function"&&typeof e.insertSoftBreak=="function"&&typeof e.insertFragment=="function"&&typeof e.insertNode=="function"&&typeof e.insertText=="function"&&typeof e.isElementReadOnly=="function"&&typeof e.isInline=="function"&&typeof e.isSelectable=="function"&&typeof e.isVoid=="function"&&typeof e.normalizeNode=="function"&&typeof e.onChange=="function"&&typeof e.removeMark=="function"&&typeof e.getDirtyPaths=="function"&&(e.marks===null||Ue(e.marks))&&(e.selection===null||_.isRange(e.selection))&&q.isNodeList(e.children)&&Rn.isOperationList(e.operations);return pv.set(e,n),n},D={above(e,t){return e.above(t)},addMark(e,t,n){e.addMark(t,n)},after(e,t,n){return e.after(t,n)},before(e,t,n){return e.before(t,n)},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e,t){e.deleteFragment(t)},edges(e,t){return e.edges(t)},elementReadOnly(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.elementReadOnly(t)},end(e,t){return e.end(t)},first(e,t){return e.first(t)},fragment(e,t){return e.fragment(t)},hasBlocks(e,t){return e.hasBlocks(t)},hasInlines(e,t){return e.hasInlines(t)},hasPath(e,t){return e.hasPath(t)},hasTexts(e,t){return e.hasTexts(t)},insertBreak(e){e.insertBreak()},insertFragment(e,t,n){e.insertFragment(t,n)},insertNode(e,t){e.insertNode(t)},insertSoftBreak(e){e.insertSoftBreak()},insertText(e,t){e.insertText(t)},isBlock(e,t){return e.isBlock(t)},isEdge(e,t,n){return e.isEdge(t,n)},isEditor(e){return PE(e)},isElementReadOnly(e,t){return e.isElementReadOnly(t)},isEmpty(e,t){return e.isEmpty(t)},isEnd(e,t,n){return e.isEnd(t,n)},isInline(e,t){return e.isInline(t)},isNormalizing(e){return e.isNormalizing()},isSelectable(e,t){return e.isSelectable(t)},isStart(e,t,n){return e.isStart(t,n)},isVoid(e,t){return e.isVoid(t)},last(e,t){return e.last(t)},leaf(e,t,n){return e.leaf(t,n)},levels(e,t){return e.levels(t)},marks(e){return e.getMarks()},next(e,t){return e.next(t)},node(e,t,n){return e.node(t,n)},nodes(e,t){return e.nodes(t)},normalize(e,t){e.normalize(t)},parent(e,t,n){return e.parent(t,n)},path(e,t,n){return e.path(t,n)},pathRef(e,t,n){return e.pathRef(t,n)},pathRefs(e){return e.pathRefs()},point(e,t,n){return e.point(t,n)},pointRef(e,t,n){return e.pointRef(t,n)},pointRefs(e){return e.pointRefs()},positions(e,t){return e.positions(t)},previous(e,t){return e.previous(t)},range(e,t,n){return e.range(t,n)},rangeRef(e,t,n){return e.rangeRef(t,n)},rangeRefs(e){return e.rangeRefs()},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start(e,t){return e.start(t)},string(e,t,n){return e.string(t,n)},unhangRange(e,t,n){return e.unhangRange(t,n)},void(e,t){return e.void(t)},withoutNormalizing(e,t){e.withoutNormalizing(t)}},TE={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(b.isPath)}};function vv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function hv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ae={compare(e,t){var n=b.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter(e,t){return ae.compare(e,t)===1},isBefore(e,t){return ae.compare(e,t)===-1},equals(e,t){return e.offset===t.offset&&b.equals(e.path,t.path)},isPoint(e){return Ue(e)&&typeof e.offset=="number"&&b.isPath(e.path)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return cl(e,r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:u,offset:a}=r;switch(t.type){case"insert_node":case"move_node":{r.path=b.transform(u,t,n);break}case"insert_text":{b.equals(t.path,u)&&(t.offset<a||t.offset===a&&o==="forward")&&(r.offset+=t.text.length);break}case"merge_node":{b.equals(t.path,u)&&(r.offset+=t.position),r.path=b.transform(u,t,n);break}case"remove_text":{b.equals(t.path,u)&&t.offset<=a&&(r.offset-=Math.min(a-t.offset,t.text.length));break}case"remove_node":{if(b.equals(t.path,u)||b.isAncestor(t.path,u))return null;r.path=b.transform(u,t,n);break}case"split_node":{if(b.equals(t.path,u)){if(t.position===a&&o==null)return null;(t.position<a||t.position===a&&o==="forward")&&(r.offset-=t.position,r.path=b.transform(u,t,hv(hv({},n),{},{affinity:"forward"})))}else r.path=b.transform(u,t,n);break}}})}},mv=void 0,ze={setScrubber(e){mv=e},stringify(e){return JSON.stringify(e,mv)}},RE=["text"],NE=["anchor","focus"];function gv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function mn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var J={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(u){var a=hn(u,RE);return a}return sv(r?o(e):e,r?o(t):t)},isText(e){return Ue(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(t=>J.isText(t))},isTextProps(e){return e.text!==void 0},matches(e,t){for(var n in t)if(n!=="text"&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[mn({},e)];for(var r of t){var o=hn(r,NE),[u,a]=_.edges(r),i=[],s=0,l=u.offset,c=a.offset;for(var d of n){var{length:p}=d.text,y=s;if(s+=p,l<=y&&s<=c){Object.assign(d,o),i.push(d);continue}if(l!==c&&(l===s||c===y)||l>s||c<y||c===y&&y!==0){i.push(d);continue}var m=d,f=void 0,w=void 0;if(c<s){var h=c-y;w=mn(mn({},m),{},{text:m.text.slice(h)}),m=mn(mn({},m),{},{text:m.text.slice(0,h)})}if(l>y){var g=l-y;f=mn(mn({},m),{},{text:m.text.slice(0,g)}),m=mn(mn({},m),{},{text:m.text.slice(g)})}Object.assign(m,o),f&&i.push(f),i.push(m),w&&i.push(w)}n=i}return n}},fl=e=>e.selection?e.selection:e.children.length>0?D.end(e,[]):[0],Yr=(e,t)=>{var[n]=D.node(e,t);return r=>r===n},dl=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=!n,o=n?zE(t):t,u=ue.None,a=ue.None,i=0,s=null,l=null;for(var c of o){var d=c.codePointAt(0);if(!d)break;var p=JE(c,d);if([u,a]=r?[a,p]:[p,u],Gr(u,ue.ZWJ)&&Gr(a,ue.ExtPict)&&(r?s=yv(t.substring(0,i)):s=yv(t.substring(0,t.length-i)),!s)||Gr(u,ue.RI)&&Gr(a,ue.RI)&&(l!==null?l=!l:r?l=!0:l=oB(t.substring(0,t.length-i)),!l)||u!==ue.None&&a!==ue.None&&tB(u,a))break;i+=c.length}return i||1},jE=/\s/,IE=/[\u002B\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,ME=/['\u2018\u2019]/,$E=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=0,o=!1;t.length>0;){var u=dl(t,n),[a,i]=pl(t,u,n);if(LE(a,i,n))o=!0,r+=u;else if(!o)r+=u;else break;t=i}return r},pl=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},LE=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(jE.test(t))return!1;if(ME.test(t)){var o=dl(n,r),[u,a]=pl(n,o,r);if(e(u,a,r))return!0}return!IE.test(t)},zE=function*(t){for(var n=t.length-1,r=0;r<t.length;r++){var o=t.charAt(n-r);if(WE(o.charCodeAt(0))){var u=t.charAt(n-r-1);if(VE(u.charCodeAt(0))){yield u+o,r++;continue}}yield o}},VE=e=>e>=55296&&e<=56319,WE=e=>e>=56320&&e<=57343,ue;(function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"})(ue||(ue={}));var UE=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,HE=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,KE=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,qE=/^[\u1100-\u115F\uA960-\uA97C]$/,QE=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,YE=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,GE=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,XE=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,ZE=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,JE=(e,t)=>{var n=ue.Any;return e.search(UE)!==-1&&(n|=ue.Extend),t===8205&&(n|=ue.ZWJ),t>=127462&&t<=127487&&(n|=ue.RI),e.search(HE)!==-1&&(n|=ue.Prepend),e.search(KE)!==-1&&(n|=ue.SpacingMark),e.search(qE)!==-1&&(n|=ue.L),e.search(QE)!==-1&&(n|=ue.V),e.search(YE)!==-1&&(n|=ue.T),e.search(GE)!==-1&&(n|=ue.LV),e.search(XE)!==-1&&(n|=ue.LVT),e.search(ZE)!==-1&&(n|=ue.ExtPict),n};function Gr(e,t){return(e&t)!==0}var eB=[[ue.L,ue.L|ue.V|ue.LV|ue.LVT],[ue.LV|ue.V,ue.V|ue.T],[ue.LVT|ue.T,ue.T],[ue.Any,ue.Extend|ue.ZWJ],[ue.Any,ue.SpacingMark],[ue.Prepend,ue.Any],[ue.ZWJ,ue.ExtPict],[ue.RI,ue.RI]];function tB(e,t){return eB.findIndex(n=>Gr(e,n[0])&&Gr(t,n[1]))===-1}var nB=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,yv=e=>e.search(nB)!==-1,rB=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,oB=e=>{var t=e.match(rB);if(t===null)return!1;var n=t[0].length/2;return n%2===1},uB={delete(e,t){e.delete(t)},insertFragment(e,t,n){e.insertFragment(t,n)},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:o=fl(e)}=n;if(b.isPath(o)&&(o=D.range(e,o)),_.isRange(o))if(_.isCollapsed(o))o=o.anchor;else{var u=_.end(o);if(!r&&D.void(e,{at:u}))return;var a=_.start(o),i=D.pointRef(e,a),s=D.pointRef(e,u);I.delete(e,{at:o,voids:r});var l=i.unref(),c=s.unref();o=l||c,I.setSelection(e,{anchor:o,focus:o})}if(!(!r&&D.void(e,{at:o})||D.elementReadOnly(e,{at:o}))){var{path:d,offset:p}=o;t.length>0&&e.apply({type:"insert_text",path:d,offset:p,text:t})}})}};function Dv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $a(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var I=$a($a($a($a({},AE),bE),FE),uB),La=new WeakMap,aB=e=>La.get(e)||!1,iB=(e,t,n)=>{var r=La.get(e)||!1;La.set(e,!0);try{t(),n()}finally{La.set(e,r)}};function Cv(e,t,n){var r=Ia.get(e)||[],o=Ma.get(e)||new Set,u,a,i=d=>{if(d){var p=d.join(",");a.has(p)||(a.add(p),u.push(d))}};if(n){u=[],a=new Set;for(var s of r){var l=n(s);i(l)}}else u=r,a=o;for(var c of t)i(c);Ia.set(e,u),Ma.set(e,a)}var sB=(e,t)=>{for(var n of D.pathRefs(e))yE.transform(n,t);for(var r of D.pointRefs(e))DE.transform(r,t);for(var o of D.rangeRefs(e))CE.transform(o,t);if(!aB(e)){var u=b.operationCanTransformPath(t)?a=>b.transform(a,t):void 0;Cv(e,e.getDirtyPaths(t),u)}I.transform(e,t),e.operations.push(t),D.normalize(e,{operation:t}),t.type==="set_selection"&&(e.marks=null),Zo.get(e)||(Zo.set(e,!0),Promise.resolve().then(()=>{Zo.set(e,!1),e.onChange({operation:t}),e.operations=[]}))},lB=(e,t)=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":{var{path:n}=t;return b.levels(n)}case"insert_node":{var{node:r,path:o}=t,u=b.levels(o),a=J.isText(r)?[]:Array.from(q.nodes(r),O=>{var[,H]=O;return o.concat(H)});return[...u,...a]}case"merge_node":{var{path:i}=t,s=b.ancestors(i),l=b.previous(i);return[...s,l]}case"move_node":{var{path:c,newPath:d}=t;if(b.equals(c,d))return[];var p=[],y=[];for(var m of b.ancestors(c)){var f=b.transform(m,t);p.push(f)}for(var w of b.ancestors(d)){var h=b.transform(w,t);y.push(h)}var g=y[y.length-1],C=d[d.length-1],E=g.concat(C);return[...p,...y,E]}case"remove_node":{var{path:B}=t,F=b.ancestors(B);return[...F]}case"split_node":{var{path:A}=t,S=b.levels(A),P=b.next(A);return[...S,P]}default:return[]}},cB=e=>{var{selection:t}=e;return t?q.fragment(e,t):[]},fB=(e,t)=>{var[n,r]=t;if(!J.isText(n)){if(X.isElement(n)&&n.children.length===0){var o={text:""};I.insertNodes(e,o,{at:r.concat(0),voids:!0});return}for(var u=D.isEditor(n)?!1:X.isElement(n)&&(e.isInline(n)||n.children.length===0||J.isText(n.children[0])||e.isInline(n.children[0])),a=0,i=0;i<n.children.length;i++,a++){var s=q.get(e,r);if(!J.isText(s)){var l=s.children[a],c=s.children[a-1],d=i===n.children.length-1,p=J.isText(l)||X.isElement(l)&&e.isInline(l);if(p!==u)I.removeNodes(e,{at:r.concat(a),voids:!0}),a--;else if(X.isElement(l)){if(e.isInline(l)){if(c==null||!J.isText(c)){var y={text:""};I.insertNodes(e,y,{at:r.concat(a),voids:!0}),a++}else if(d){var m={text:""};I.insertNodes(e,m,{at:r.concat(a+1),voids:!0}),a++}}}else c!=null&&J.isText(c)&&(J.equals(l,c,{loose:!0})?(I.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):c.text===""?(I.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):l.text===""&&(I.removeNodes(e,{at:r.concat(a),voids:!0}),a--))}}}},dB=(e,t)=>{var{iteration:n,initialDirtyPathsLength:r}=t,o=r*42;if(n>o)throw new Error("Could not completely normalize the editor after ".concat(o," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0},pB=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:r=!1,mode:o="lowest",at:u=t.selection,match:a}=n;if(u){var i=D.path(t,u),s=o==="lowest";for(var[l,c]of D.levels(t,{at:i,voids:r,match:a,reverse:s}))if(!J.isText(l)){if(_.isRange(u)){if(b.isAncestor(c,u.anchor.path)&&b.isAncestor(c,u.focus.path))return[l,c]}else if(!b.equals(i,c))return[l,c]}}};function wv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ev(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var vB=(e,t,n)=>{var{selection:r}=e;if(r){var o=(d,p)=>{if(!J.isText(d))return!1;var[y,m]=D.parent(e,p);return!e.isVoid(y)||e.markableVoid(y)},u=_.isExpanded(r),a=!1;if(!u){var[i,s]=D.node(e,r);if(i&&o(i,s)){var[l]=D.parent(e,s);a=l&&e.markableVoid(l)}}if(u||a)I.setNodes(e,{[t]:n},{match:o,split:!0,voids:!0});else{var c=Ev(Ev({},D.marks(e)||{}),{},{[t]:n});e.marks=c,Zo.get(e)||e.onChange()}}};function Bv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Av(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var hB=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=D.point(t,n,{edge:"end"}),u=D.end(t,[]),a={anchor:o,focus:u},{distance:i=1}=r,s=0,l;for(var c of D.positions(t,Av(Av({},r),{},{at:a}))){if(s>i)break;s!==0&&(l=c),s++}return l};function bv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Fv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var mB=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=D.start(t,[]),u=D.point(t,n,{edge:"start"}),a={anchor:o,focus:u},{distance:i=1}=r,s=0,l;for(var c of D.positions(t,Fv(Fv({},r),{},{at:a,reverse:!0}))){if(s>i)break;s!==0&&(l=c),s++}return l},gB=(e,t)=>{var{selection:n}=e;n&&_.isCollapsed(n)&&I.delete(e,{unit:t,reverse:!0})},yB=(e,t)=>{var{selection:n}=e;n&&_.isCollapsed(n)&&I.delete(e,{unit:t})},DB=function(t){var{direction:n="forward"}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=t;r&&_.isExpanded(r)&&I.delete(t,{reverse:n==="backward"})},CB=(e,t)=>[D.start(e,t),D.end(e,t)];function xv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Sv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var wB=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return D.above(t,Sv(Sv({},n),{},{match:r=>X.isElement(r)&&D.isElementReadOnly(t,r)}))},EB=(e,t)=>D.point(e,t,{edge:"end"}),BB=(e,t)=>{var n=D.path(e,t,{edge:"start"});return D.node(e,n)},AB=(e,t)=>{var n=D.range(e,t);return q.fragment(e,n)};function Ov(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function _v(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ov(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ov(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var bB=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return D.above(t,_v(_v({},n),{},{match:r=>X.isElement(r)&&D.isVoid(t,r)}))},FB=(e,t)=>t.children.some(n=>X.isElement(n)&&D.isBlock(e,n)),xB=(e,t)=>t.children.some(n=>J.isText(n)||D.isInline(e,n)),SB=(e,t)=>q.has(e,t),OB=(e,t)=>t.children.every(n=>J.isText(n)),_B=e=>{I.splitNodes(e,{always:!0})},kB=(e,t,n)=>{I.insertNodes(e,t,n)},PB=e=>{I.splitNodes(e,{always:!0})};function kv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function TB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var RB=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:o,marks:u}=t;if(o){if(u){var a=TB({text:n},u);I.insertNodes(t,a,{at:r.at,voids:r.voids})}else I.insertText(t,n,r);t.marks=null}},NB=(e,t)=>!e.isInline(t),jB=(e,t,n)=>D.isStart(e,t,n)||D.isEnd(e,t,n),IB=(e,t)=>{var{children:n}=t,[r]=n;return n.length===0||n.length===1&&J.isText(r)&&r.text===""&&!e.isVoid(t)},MB=(e,t,n)=>{var r=D.end(e,n);return ae.equals(t,r)},$B=e=>{var t=rv.get(e);return t===void 0?!0:t},LB=(e,t,n)=>{if(t.offset!==0)return!1;var r=D.start(e,n);return ae.equals(t,r)},zB=(e,t)=>{var n=D.path(e,t,{edge:"end"});return D.node(e,n)},VB=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=D.path(t,n,r),u=q.leaf(t,o);return[u,o]};function WB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){var{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:u}=t;if(u==null&&(u=()=>!0),!!n){var a=[],i=D.path(e,n);for(var[s,l]of q.levels(e,i))if(u(s,l)&&(a.push([s,l]),!o&&X.isElement(s)&&D.isVoid(e,s)))break;r&&a.reverse(),yield*a}}()}var UB=["text"],HB=["text"],KB=function(t){var{marks:n,selection:r}=t;if(!r)return null;var{anchor:o,focus:u}=r;if(n)return n;if(_.isExpanded(r)){var a=D.isEnd(t,o,o.path);if(a){var i=D.after(t,o);i&&(o=i)}var[s]=D.nodes(t,{match:J.isText,at:{anchor:o,focus:u}});if(s){var[l]=s,c=hn(l,UB);return c}else return{}}var{path:d}=o,[p]=D.leaf(t,d);if(o.offset===0){var y=D.previous(t,{at:d,match:J.isText}),m=D.above(t,{match:E=>X.isElement(E)&&D.isVoid(t,E)&&t.markableVoid(E)});if(!m){var f=D.above(t,{match:E=>X.isElement(E)&&D.isBlock(t,E)});if(y&&f){var[w,h]=y,[,g]=f;b.isAncestor(g,h)&&(p=w)}}}var C=hn(p,HB);return C},qB=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:o=!1}=n,{match:u,at:a=t.selection}=n;if(a){var i=D.after(t,a,{voids:o});if(i){var[,s]=D.last(t,[]),l=[i.path,s];if(b.isPath(a)&&a.length===0)throw new Error("Cannot get the next node from the root node!");if(u==null)if(b.isPath(a)){var[c]=D.parent(t,a);u=p=>c.children.includes(p)}else u=()=>!0;var[d]=D.nodes(t,{at:l,match:u,mode:r,voids:o});return d}}},QB=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=D.path(t,n,r),u=q.get(t,o);return[u,o]};function YB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){var{at:n=e.selection,mode:r="all",universal:o=!1,reverse:u=!1,voids:a=!1,ignoreNonSelectable:i=!1}=t,{match:s}=t;if(s||(s=()=>!0),!!n){var l,c;if(TE.isSpan(n))l=n[0],c=n[1];else{var d=D.path(e,n,{edge:"start"}),p=D.path(e,n,{edge:"end"});l=u?p:d,c=u?d:p}var y=q.nodes(e,{reverse:u,from:l,to:c,pass:E=>{var[B]=E;return X.isElement(B)?!!(!a&&(D.isVoid(e,B)||D.isElementReadOnly(e,B))||i&&!D.isSelectable(e,B)):!1}}),m=[],f;for(var[w,h]of y)if(!(i&&X.isElement(w)&&!D.isSelectable(e,w))){var g=f&&b.compare(h,f[1])===0;if(!(r==="highest"&&g)){if(!s(w,h)){if(o&&!g&&J.isText(w))return;continue}if(r==="lowest"&&g){f=[w,h];continue}var C=r==="lowest"?f:[w,h];C&&(o?m.push(C):yield C),f=[w,h]}}r==="lowest"&&f&&(o?m.push(f):yield f),o&&(yield*m)}}()}var GB=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:r=!1,operation:o}=n,u=c=>Ia.get(c)||[],a=c=>Ma.get(c)||new Set,i=c=>{var d=u(c).pop(),p=d.join(",");return a(c).delete(p),d};if(D.isNormalizing(t)){if(r){var s=Array.from(q.nodes(t),c=>{var[,d]=c;return d}),l=new Set(s.map(c=>c.join(",")));Ia.set(t,s),Ma.set(t,l)}u(t).length!==0&&D.withoutNormalizing(t,()=>{for(var c of u(t))if(q.has(t,c)){var d=D.node(t,c),[p,y]=d;X.isElement(p)&&p.children.length===0&&t.normalizeNode(d,{operation:o})}for(var m=u(t),f=m.length,w=0;m.length!==0;){if(!t.shouldNormalize({dirtyPaths:m,iteration:w,initialDirtyPathsLength:f,operation:o}))return;var h=i(t);if(q.has(t,h)){var g=D.node(t,h);t.normalizeNode(g,{operation:o})}w++,m=u(t)}})}},XB=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=D.path(t,n,r),u=b.parent(o),a=D.node(t,u);return a},ZB=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=r,u={current:n,affinity:o,unref(){var{current:i}=u,s=D.pathRefs(t);return s.delete(u),u.current=null,i}},a=D.pathRefs(t);return a.add(u),u},JB=e=>{var t=ov.get(e);return t||(t=new Set,ov.set(e,t)),t},eA=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:o,edge:u}=r;if(b.isPath(n)){if(u==="start"){var[,a]=q.first(t,n);n=a}else if(u==="end"){var[,i]=q.last(t,n);n=i}}return _.isRange(n)&&(u==="start"?n=_.start(n):u==="end"?n=_.end(n):n=b.common(n.anchor.path,n.focus.path)),ae.isPoint(n)&&(n=n.path),o!=null&&(n=n.slice(0,o)),n},tA=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=r,u={current:n,affinity:o,unref(){var{current:i}=u,s=D.pointRefs(t);return s.delete(u),u.current=null,i}},a=D.pointRefs(t);return a.add(u),u},nA=e=>{var t=uv.get(e);return t||(t=new Set,uv.set(e,t)),t},rA=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:o="start"}=r;if(b.isPath(n)){var u;if(o==="end"){var[,a]=q.last(t,n);u=a}else{var[,i]=q.first(t,n);u=i}var s=q.get(t,u);if(!J.isText(s))throw new Error("Cannot get the ".concat(o," point in the node at path [").concat(n,"] because it has no ").concat(o," text node."));return{path:u,offset:o==="end"?s.text.length:0}}if(_.isRange(n)){var[l,c]=_.edges(n);return o==="start"?l:c}return n};function oA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){var{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:u=!1,ignoreNonSelectable:a=!1}=t;if(!n)return;var i=D.range(e,n),[s,l]=_.edges(i),c=o?l:s,d=!1,p="",y=0,m=0,f=0;for(var[w,h]of D.nodes(e,{at:n,reverse:o,voids:u,ignoreNonSelectable:a})){if(X.isElement(w)){if(!u&&(e.isVoid(w)||e.isElementReadOnly(w))){yield D.start(e,h);continue}if(e.isInline(w))continue;if(D.hasInlines(e,w)){var g=b.isAncestor(h,l.path)?l:D.end(e,h),C=b.isAncestor(h,s.path)?s:D.start(e,h);p=D.string(e,{anchor:C,focus:g},{voids:u}),d=!0}}if(J.isText(w)){var E=b.equals(h,c.path);for(E?(m=o?c.offset:w.text.length-c.offset,f=c.offset):(m=w.text.length,f=o?m:0),(E||d||r==="offset")&&(yield{path:h,offset:f},d=!1);;){if(y===0){if(p==="")break;y=B(p,r,o),p=pl(p,y,o)[1]}if(f=o?f-y:f+y,m=m-y,m<0){y=-m;break}y=0,yield{path:h,offset:f}}}}function B(F,A,S){return A==="character"?dl(F,S):A==="word"?$E(F,S):A==="line"||A==="block"?F.length:1}}()}var uA=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:o=!1}=n,{match:u,at:a=t.selection}=n;if(a){var i=D.before(t,a,{voids:o});if(i){var[,s]=D.first(t,[]),l=[i.path,s];if(b.isPath(a)&&a.length===0)throw new Error("Cannot get the previous node from the root node!");if(u==null)if(b.isPath(a)){var[c]=D.parent(t,a);u=p=>c.children.includes(p)}else u=()=>!0;var[d]=D.nodes(t,{reverse:!0,at:l,match:u,mode:r,voids:o});return d}}},aA=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=r,u={current:n,affinity:o,unref(){var{current:i}=u,s=D.rangeRefs(t);return s.delete(u),u.current=null,i}},a=D.rangeRefs(t);return a.add(u),u},iA=e=>{var t=av.get(e);return t||(t=new Set,av.set(e,t)),t},sA=(e,t,n)=>{if(_.isRange(t)&&!n)return t;var r=D.start(e,t),o=D.end(e,n||t);return{anchor:r,focus:o}};function Pv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function lA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Pv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var cA=(e,t)=>{var{selection:n}=e;if(n){var r=(c,d)=>{if(!J.isText(c))return!1;var[p,y]=D.parent(e,d);return!e.isVoid(p)||e.markableVoid(p)},o=_.isExpanded(n),u=!1;if(!o){var[a,i]=D.node(e,n);if(a&&r(a,i)){var[s]=D.parent(e,i);u=s&&e.markableVoid(s)}}if(o||u)I.unsetNodes(e,t,{match:r,split:!0,voids:!0});else{var l=lA({},D.marks(e)||{});delete l[t],e.marks=l,Zo.get(e)||e.onChange()}}},fA=(e,t)=>{rv.set(e,t)},dA=(e,t)=>D.point(e,t,{edge:"start"}),pA=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:o=!1}=r,u=D.range(t,n),[a,i]=_.edges(u),s="";for(var[l,c]of D.nodes(t,{at:u,match:J.isText,voids:o})){var d=l.text;b.equals(c,i.path)&&(d=d.slice(0,i.offset)),b.equals(c,a.path)&&(d=d.slice(a.offset)),s+=d}return s},vA=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:o=!1}=r,[u,a]=_.edges(n);if(u.offset!==0||a.offset!==0||_.isCollapsed(n)||b.hasPrevious(a.path))return n;var i=D.above(t,{at:a,match:m=>X.isElement(m)&&D.isBlock(t,m),voids:o}),s=i?i[1]:[],l=D.start(t,u),c={anchor:l,focus:a},d=!0;for(var[p,y]of D.nodes(t,{at:c,match:J.isText,reverse:!0,voids:o})){if(d){d=!1;continue}if(p.text!==""||b.isBefore(y,s)){a={path:y,offset:p.text.length};break}}return{anchor:u,focus:a}},hA=(e,t)=>{var n=D.isNormalizing(e);D.setNormalizing(e,!1);try{t()}finally{D.setNormalizing(e,n)}D.normalize(e)},mA=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var r,o,{reverse:u=!1,unit:a="character",distance:i=1,voids:s=!1}=n,{at:l=t.selection,hanging:c=!1}=n;if(l){var d=!1;if(_.isRange(l)&&_.isCollapsed(l)&&(d=!0,l=l.anchor),ae.isPoint(l)){var p=D.void(t,{at:l,mode:"highest"});if(!s&&p){var[,y]=p;l=y}else{var m={unit:a,distance:i},f=u?D.before(t,l,m)||D.start(t,[]):D.after(t,l,m)||D.end(t,[]);l={anchor:l,focus:f},c=!0}}if(b.isPath(l)){I.removeNodes(t,{at:l,voids:s});return}if(!_.isCollapsed(l)){if(!c){var[,w]=_.edges(l),h=D.end(t,[]);ae.equals(w,h)||(l=D.unhangRange(t,l,{voids:s}))}var[g,C]=_.edges(l),E=D.above(t,{match:le=>X.isElement(le)&&D.isBlock(t,le),at:g,voids:s}),B=D.above(t,{match:le=>X.isElement(le)&&D.isBlock(t,le),at:C,voids:s}),F=E&&B&&!b.equals(E[1],B[1]),A=b.equals(g.path,C.path),S=s?null:(r=D.void(t,{at:g,mode:"highest"}))!==null&&r!==void 0?r:D.elementReadOnly(t,{at:g,mode:"highest"}),P=s?null:(o=D.void(t,{at:C,mode:"highest"}))!==null&&o!==void 0?o:D.elementReadOnly(t,{at:C,mode:"highest"});if(S){var O=D.before(t,g);O&&E&&b.isAncestor(E[1],O.path)&&(g=O)}if(P){var H=D.after(t,C);H&&B&&b.isAncestor(B[1],H.path)&&(C=H)}var k=[],W;for(var $ of D.nodes(t,{at:l,voids:s})){var[V,G]=$;W&&b.compare(G,W)===0||(!s&&X.isElement(V)&&(D.isVoid(t,V)||D.isElementReadOnly(t,V))||!b.isCommon(G,g.path)&&!b.isCommon(G,C.path))&&(k.push($),W=G)}var R=Array.from(k,le=>{var[,Ie]=le;return D.pathRef(t,Ie)}),M=D.pointRef(t,g),U=D.pointRef(t,C),Y="";if(!A&&!S){var ne=M.current,[te]=D.leaf(t,ne),{path:ve}=ne,{offset:x}=g,j=te.text.slice(x);j.length>0&&(t.apply({type:"remove_text",path:ve,offset:x,text:j}),Y=j)}if(R.reverse().map(le=>le.unref()).filter(le=>le!==null).forEach(le=>I.removeNodes(t,{at:le,voids:s})),!P){var N=U.current,[Q]=D.leaf(t,N),{path:oe}=N,ee=A?g.offset:0,ie=Q.text.slice(ee,C.offset);ie.length>0&&(t.apply({type:"remove_text",path:oe,offset:ee,text:ie}),Y=ie)}!A&&F&&U.current&&M.current&&I.mergeNodes(t,{at:U.current,hanging:!0,voids:s}),d&&u&&a==="character"&&Y.length>1&&Y.match(/[\u0E00-\u0E7F]+/)&&I.insertText(t,Y.slice(0,Y.length-i));var ce=M.unref(),de=U.unref(),he=u?ce||de:de||ce;n.at==null&&he&&I.select(t,he)}}})},gA=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{hanging:o=!1,voids:u=!1}=r,{at:a=fl(t),batchDirty:i=!0}=r;if(n.length){if(_.isRange(a))if(o||(a=D.unhangRange(t,a,{voids:u})),_.isCollapsed(a))a=a.anchor;else{var[,s]=_.edges(a);if(!u&&D.void(t,{at:s}))return;var l=D.pointRef(t,s);I.delete(t,{at:a}),a=l.unref()}else b.isPath(a)&&(a=D.start(t,a));if(!(!u&&D.void(t,{at:a}))){var c=D.above(t,{at:a,match:j=>X.isElement(j)&&D.isInline(t,j),mode:"highest",voids:u});if(c){var[,d]=c;if(D.isEnd(t,a,d)){var p=D.after(t,d);a=p}else if(D.isStart(t,a,d)){var y=D.before(t,d);a=y}}var m=D.above(t,{match:j=>X.isElement(j)&&D.isBlock(t,j),at:a,voids:u}),[,f]=m,w=D.isStart(t,a,f),h=D.isEnd(t,a,f),g=w&&h,C=!w||w&&h,E=!h,[,B]=q.first({children:n},[]),[,F]=q.last({children:n},[]),A=[],S=j=>{var[N,Q]=j,oe=Q.length===0;return oe?!1:g?!0:!(C&&b.isAncestor(Q,B)&&X.isElement(N)&&!t.isVoid(N)&&!t.isInline(N)||E&&b.isAncestor(Q,F)&&X.isElement(N)&&!t.isVoid(N)&&!t.isInline(N))};for(var P of q.nodes({children:n},{pass:S}))S(P)&&A.push(P);var O=[],H=[],k=[],W=!0,$=!1;for(var[V]of A)X.isElement(V)&&!t.isInline(V)?(W=!1,$=!0,H.push(V)):W?O.push(V):k.push(V);var[G]=D.nodes(t,{at:a,match:j=>J.isText(j)||D.isInline(t,j),mode:"highest",voids:u}),[,R]=G,M=D.isStart(t,a,R),U=D.isEnd(t,a,R),Y=D.pathRef(t,h&&!k.length?b.next(f):f),ne=D.pathRef(t,U?b.next(R):R);I.splitNodes(t,{at:a,match:j=>$?X.isElement(j)&&D.isBlock(t,j):J.isText(j)||D.isInline(t,j),mode:$?"lowest":"highest",always:$&&(!w||O.length>0)&&(!h||k.length>0),voids:u});var te=D.pathRef(t,!M||M&&U?b.next(R):R);if(I.insertNodes(t,O,{at:te.current,match:j=>J.isText(j)||D.isInline(t,j),mode:"highest",voids:u,batchDirty:i}),g&&!O.length&&H.length&&!k.length&&I.delete(t,{at:f,voids:u}),I.insertNodes(t,H,{at:Y.current,match:j=>X.isElement(j)&&D.isBlock(t,j),mode:"lowest",voids:u,batchDirty:i}),I.insertNodes(t,k,{at:ne.current,match:j=>J.isText(j)||D.isInline(t,j),mode:"highest",voids:u,batchDirty:i}),!r.at){var ve;if(k.length>0&&ne.current?ve=b.previous(ne.current):H.length>0&&Y.current?ve=b.previous(Y.current):te.current&&(ve=b.previous(te.current)),ve){var x=D.end(t,ve);I.select(t,x)}}te.unref(),Y.unref(),ne.unref()}}})},yA=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:r="anchor"}=n,{selection:o}=t;if(o){if(r==="anchor")I.select(t,o.anchor);else if(r==="focus")I.select(t,o.focus);else if(r==="start"){var[u]=_.edges(o);I.select(t,u)}else if(r==="end"){var[,a]=_.edges(o);I.select(t,a)}}else return},DA=e=>{var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},CA=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=t,{distance:o=1,unit:u="character",reverse:a=!1}=n,{edge:i=null}=n;if(r){i==="start"&&(i=_.isBackward(r)?"focus":"anchor"),i==="end"&&(i=_.isBackward(r)?"anchor":"focus");var{anchor:s,focus:l}=r,c={distance:o,unit:u,ignoreNonSelectable:!0},d={};if(i==null||i==="anchor"){var p=a?D.before(t,s,c):D.after(t,s,c);p&&(d.anchor=p)}if(i==null||i==="focus"){var y=a?D.before(t,l,c):D.after(t,l,c);y&&(d.focus=y)}I.setSelection(t,d)}},wA=(e,t)=>{var{selection:n}=e;if(t=D.range(e,t),n){I.setSelection(e,t);return}if(!_.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(ze.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})};function Tv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Rv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var EA=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:o}=t,{edge:u="both"}=r;if(o){u==="start"&&(u=_.isBackward(o)?"focus":"anchor"),u==="end"&&(u=_.isBackward(o)?"anchor":"focus");var{anchor:a,focus:i}=o,s=u==="anchor"?a:i;I.setSelection(t,{[u==="anchor"?"anchor":"focus"]:Rv(Rv({},s),n)})}},BA=(e,t)=>{var{selection:n}=e,r={},o={};if(n){for(var u in t)(u==="anchor"&&t.anchor!=null&&!ae.equals(t.anchor,n.anchor)||u==="focus"&&t.focus!=null&&!ae.equals(t.focus,n.focus)||u!=="anchor"&&u!=="focus"&&t[u]!==n[u])&&(r[u]=n[u],o[u]=t[u]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}},AA=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{hanging:o=!1,voids:u=!1,mode:a="lowest",batchDirty:i=!0}=r,{at:s,match:l,select:c}=r;if(q.isNode(n)&&(n=[n]),n.length!==0){var[d]=n;if(s||(s=fl(t),c!==!1&&(c=!0)),c==null&&(c=!1),_.isRange(s))if(o||(s=D.unhangRange(t,s,{voids:u})),_.isCollapsed(s))s=s.anchor;else{var[,p]=_.edges(s),y=D.pointRef(t,p);I.delete(t,{at:s}),s=y.unref()}if(ae.isPoint(s)){l==null&&(J.isText(d)?l=O=>J.isText(O):t.isInline(d)?l=O=>J.isText(O)||D.isInline(t,O):l=O=>X.isElement(O)&&D.isBlock(t,O));var[m]=D.nodes(t,{at:s.path,match:l,mode:a,voids:u});if(m){var[,f]=m,w=D.pathRef(t,f),h=D.isEnd(t,s,f);I.splitNodes(t,{at:s,match:l,mode:a,voids:u});var g=w.unref();s=h?b.next(g):g}else return}var C=b.parent(s),E=s[s.length-1];if(!(!u&&D.void(t,{at:C}))){if(i){var B=[],F=b.levels(C);iB(t,()=>{var O=function(){var W=C.concat(E);E++;var $={type:"insert_node",path:W,node:H};t.apply($),s=b.next(s),B.push($),J.isText?F.push(...Array.from(q.nodes(H),V=>{var[,G]=V;return W.concat(G)})):F.push(W)};for(var H of n)O()},()=>{Cv(t,F,O=>{var H=O;for(var k of B)if(b.operationCanTransformPath(k)&&(H=b.transform(H,k),!H))return null;return H})})}else for(var A of n){var S=C.concat(E);E++,t.apply({type:"insert_node",path:S,node:A}),s=b.next(s)}if(s=b.previous(s),c){var P=D.end(t,s);P&&I.select(t,P)}}}})},bA=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{at:r=t.selection,mode:o="lowest",voids:u=!1}=n,{match:a}=n;if(a==null&&(a=b.isPath(r)?Yr(t,r):E=>X.isElement(E)&&D.isBlock(t,E)),!!r){var i=D.nodes(t,{at:r,match:a,mode:o,voids:u}),s=Array.from(i,E=>{var[,B]=E;return D.pathRef(t,B)});for(var l of s){var c=l.unref();if(c.length<2)throw new Error("Cannot lift node at a path [".concat(c,"] because it has a depth of less than `2`."));var d=D.node(t,b.parent(c)),[p,y]=d,m=c[c.length-1],{length:f}=p.children;if(f===1){var w=b.next(y);I.moveNodes(t,{at:c,to:w,voids:u}),I.removeNodes(t,{at:y,voids:u})}else if(m===0)I.moveNodes(t,{at:c,to:y,voids:u});else if(m===f-1){var h=b.next(y);I.moveNodes(t,{at:c,to:h,voids:u})}else{var g=b.next(c),C=b.next(y);I.splitNodes(t,{at:g,voids:u}),I.moveNodes(t,{at:c,to:C,voids:u})}}}})},FA=["text"],xA=["children"],Nv=(e,t)=>{if(X.isElement(t)){var n=t;return D.isVoid(e,t)?!0:n.children.length===1?Nv(e,n.children[0]):!1}else return!D.isEditor(t)},SA=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{match:r,at:o=t.selection}=n,{hanging:u=!1,voids:a=!1,mode:i="lowest"}=n;if(o){if(r==null)if(b.isPath(o)){var[s]=D.parent(t,o);r=O=>s.children.includes(O)}else r=O=>X.isElement(O)&&D.isBlock(t,O);if(!u&&_.isRange(o)&&(o=D.unhangRange(t,o,{voids:a})),_.isRange(o))if(_.isCollapsed(o))o=o.anchor;else{var[,l]=_.edges(o),c=D.pointRef(t,l);I.delete(t,{at:o}),o=c.unref(),n.at==null&&I.select(t,o)}var[d]=D.nodes(t,{at:o,match:r,voids:a,mode:i}),p=D.previous(t,{at:o,match:r,voids:a,mode:i});if(!(!d||!p)){var[y,m]=d,[f,w]=p;if(!(m.length===0||w.length===0)){var h=b.next(w),g=b.common(m,w),C=b.isSibling(m,w),E=Array.from(D.levels(t,{at:m}),O=>{var[H]=O;return H}).slice(g.length).slice(0,-1),B=D.above(t,{at:m,mode:"highest",match:O=>E.includes(O)&&Nv(t,O)}),F=B&&D.pathRef(t,B[1]),A,S;if(J.isText(y)&&J.isText(f)){var P=hn(y,FA);S=f.text.length,A=P}else if(X.isElement(y)&&X.isElement(f)){var P=hn(y,xA);S=f.children.length,A=P}else throw new Error("Cannot merge the node at path [".concat(m,"] with the previous sibling because it is not the same kind: ").concat(ze.stringify(y)," ").concat(ze.stringify(f)));C||I.moveNodes(t,{at:m,to:h,voids:a}),F&&I.removeNodes(t,{at:F.current,voids:a}),X.isElement(f)&&D.isEmpty(t,f)||J.isText(f)&&f.text===""&&w[w.length-1]!==0?I.removeNodes(t,{at:w,voids:a}):t.apply({type:"merge_node",path:h,position:S,properties:A}),F&&F.unref()}}}})},OA=(e,t)=>{D.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:u=!1}=t,{match:a}=t;if(r){a==null&&(a=b.isPath(r)?Yr(e,r):y=>X.isElement(y)&&D.isBlock(e,y));var i=D.pathRef(e,n),s=D.nodes(e,{at:r,match:a,mode:o,voids:u}),l=Array.from(s,y=>{var[,m]=y;return D.pathRef(e,m)});for(var c of l){var d=c.unref(),p=i.current;d.length!==0&&e.apply({type:"move_node",path:d,newPath:p}),i.current&&b.isSibling(p,d)&&b.isAfter(p,d)&&(i.current=b.next(i.current))}i.unref()}})},_A=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1,mode:u="lowest"}=n,{at:a=t.selection,match:i}=n;if(a){i==null&&(i=b.isPath(a)?Yr(t,a):y=>X.isElement(y)&&D.isBlock(t,y)),!r&&_.isRange(a)&&(a=D.unhangRange(t,a,{voids:o}));var s=D.nodes(t,{at:a,match:i,mode:u,voids:o}),l=Array.from(s,y=>{var[,m]=y;return D.pathRef(t,m)});for(var c of l){var d=c.unref();if(d){var[p]=D.node(t,d);t.apply({type:"remove_node",path:d,node:p})}}}})},kA=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{match:o,at:u=t.selection,compare:a,merge:i}=r,{hanging:s=!1,mode:l="lowest",split:c=!1,voids:d=!1}=r;if(u){if(o==null&&(o=b.isPath(u)?Yr(t,u):S=>X.isElement(S)&&D.isBlock(t,S)),!s&&_.isRange(u)&&(u=D.unhangRange(t,u,{voids:d})),c&&_.isRange(u)){if(_.isCollapsed(u)&&D.leaf(t,u.anchor)[0].text.length>0)return;var p=D.rangeRef(t,u,{affinity:"inward"}),[y,m]=_.edges(u),f=l==="lowest"?"lowest":"highest",w=D.isEnd(t,m,m.path);I.splitNodes(t,{at:m,match:o,mode:f,voids:d,always:!w});var h=D.isStart(t,y,y.path);I.splitNodes(t,{at:y,match:o,mode:f,voids:d,always:!h}),u=p.unref(),r.at==null&&I.select(t,u)}a||(a=(S,P)=>S!==P);for(var[g,C]of D.nodes(t,{at:u,match:o,mode:l,voids:d})){var E={},B={};if(C.length!==0){var F=!1;for(var A in n)A==="children"||A==="text"||a(n[A],g[A])&&(F=!0,g.hasOwnProperty(A)&&(E[A]=g[A]),i?n[A]!=null&&(B[A]=i(g[A],n[A])):n[A]!=null&&(B[A]=n[A]));F&&t.apply({type:"set_node",path:C,properties:E,newProperties:B})}}}})},PA=(e,t)=>{if(_.isCollapsed(t))return t.anchor;var[,n]=_.edges(t),r=D.pointRef(e,n);return I.delete(e,{at:t}),r.unref()},TA=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{mode:r="lowest",voids:o=!1}=n,{match:u,at:a=t.selection,height:i=0,always:s=!1}=n;if(u==null&&(u=U=>X.isElement(U)&&D.isBlock(t,U)),_.isRange(a)&&(a=PA(t,a)),b.isPath(a)){var l=a,c=D.point(t,l),[d]=D.parent(t,l);u=U=>U===d,i=c.path.length-l.length+1,a=c,s=!0}if(a){var p=D.pointRef(t,a,{affinity:"backward"}),y;try{var[m]=D.nodes(t,{at:a,match:u,mode:r,voids:o});if(!m)return;var f=D.void(t,{at:a,mode:"highest"}),w=0;if(!o&&f){var[h,g]=f;if(X.isElement(h)&&t.isInline(h)){var C=D.after(t,g);if(!C){var E={text:""},B=b.next(g);I.insertNodes(t,E,{at:B,voids:o}),C=D.point(t,B)}a=C,s=!0}var F=a.path.length-g.length;i=F+1,s=!0}y=D.pointRef(t,a);var A=a.path.length-i,[,S]=m,P=a.path.slice(0,A),O=i===0?a.offset:a.path[A]+w;for(var[H,k]of D.levels(t,{at:P,reverse:!0,voids:o})){var W=!1;if(k.length<S.length||k.length===0||!o&&X.isElement(H)&&D.isVoid(t,H))break;var $=p.current,V=D.isEnd(t,$,k);if(s||!p||!D.isEdge(t,$,k)){W=!0;var G=q.extractProps(H);t.apply({type:"split_node",path:k,position:O,properties:G})}O=k[k.length-1]+(W||V?1:0)}if(n.at==null){var R=y.current||D.end(t,[]);I.select(t,R)}}finally{var M;p.unref(),(M=y)===null||M===void 0||M.unref()}}})},RA=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(n)||(n=[n]);var o={};for(var u of n)o[u]=null;I.setNodes(t,o,r)},NA=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{mode:r="lowest",split:o=!1,voids:u=!1}=n,{at:a=t.selection,match:i}=n;if(a){i==null&&(i=b.isPath(a)?Yr(t,a):y=>X.isElement(y)&&D.isBlock(t,y)),b.isPath(a)&&(a=D.range(t,a));var s=_.isRange(a)?D.rangeRef(t,a):null,l=D.nodes(t,{at:a,match:i,mode:r,voids:u}),c=Array.from(l,y=>{var[,m]=y;return D.pathRef(t,m)}).reverse(),d=function(){var m=p.unref(),[f]=D.node(t,m),w=D.range(t,m);o&&s&&(w=_.intersection(s.current,w)),I.liftNodes(t,{at:w,match:h=>X.isAncestor(f)&&f.children.includes(h),voids:u})};for(var p of c)d();s&&s.unref()}})};function jv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Iv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var jA=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{mode:o="lowest",split:u=!1,voids:a=!1}=r,{match:i,at:s=t.selection}=r;if(s){if(i==null&&(b.isPath(s)?i=Yr(t,s):t.isInline(n)?i=w=>X.isElement(w)&&D.isInline(t,w)||J.isText(w):i=w=>X.isElement(w)&&D.isBlock(t,w)),u&&_.isRange(s)){var[l,c]=_.edges(s),d=D.rangeRef(t,s,{affinity:"inward"});I.splitNodes(t,{at:c,match:i,voids:a}),I.splitNodes(t,{at:l,match:i,voids:a}),s=d.unref(),r.at==null&&I.select(t,s)}var p=Array.from(D.nodes(t,{at:s,match:t.isInline(n)?w=>X.isElement(w)&&D.isBlock(t,w):w=>D.isEditor(w),mode:"lowest",voids:a})),y=function(){var h=_.isRange(s)?_.intersection(s,D.range(t,f)):s;if(!h)return 0;var g=Array.from(D.nodes(t,{at:h,match:i,mode:o,voids:a}));if(g.length>0){var[C]=g,E=g[g.length-1],[,B]=C,[,F]=E;if(B.length===0&&F.length===0)return 0;var A=b.equals(B,F)?b.parent(B):b.common(B,F),S=D.range(t,B,F),P=D.node(t,A),[O]=P,H=A.length+1,k=b.next(F.slice(0,H)),W=Iv(Iv({},n),{},{children:[]});I.insertNodes(t,W,{at:k,voids:a}),I.moveNodes(t,{at:S,match:$=>X.isAncestor(O)&&O.children.includes($),to:k.concat(0),voids:a})}},m;for(var[,f]of p)m=y()}})},IA=()=>{var e={children:[],operations:[],selection:null,marks:null,isElementReadOnly:()=>!1,isInline:()=>!1,isSelectable:()=>!0,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return sB(e,...r)},addMark:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return vB(e,...r)},deleteBackward:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return gB(e,...r)},deleteForward:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return yB(e,...r)},deleteFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return DB(e,...r)},getFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return cB(e,...r)},insertBreak:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return _B(e,...r)},insertSoftBreak:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return PB(e,...r)},insertFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return gA(e,...r)},insertNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return kB(e,...r)},insertText:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return RB(e,...r)},normalizeNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return fB(e,...r)},removeMark:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return cA(e,...r)},getDirtyPaths:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return lB(e,...r)},shouldNormalize:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return dB(e,...r)},above:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return pB(e,...r)},after:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return hB(e,...r)},before:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return mB(e,...r)},collapse:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return yA(e,...r)},delete:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return mA(e,...r)},deselect:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return DA(e,...r)},edges:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return CB(e,...r)},elementReadOnly:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return wB(e,...r)},end:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return EB(e,...r)},first:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return BB(e,...r)},fragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return AB(e,...r)},getMarks:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return KB(e,...r)},hasBlocks:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return FB(e,...r)},hasInlines:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return xB(e,...r)},hasPath:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return SB(e,...r)},hasTexts:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return OB(e,...r)},insertNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return AA(e,...r)},isBlock:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return NB(e,...r)},isEdge:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return jB(e,...r)},isEmpty:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return IB(e,...r)},isEnd:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return MB(e,...r)},isNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return $B(e,...r)},isStart:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return LB(e,...r)},last:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return zB(e,...r)},leaf:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return VB(e,...r)},levels:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return WB(e,...r)},liftNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return bA(e,...r)},mergeNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return SA(e,...r)},move:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return CA(e,...r)},moveNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return OA(e,...r)},next:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return qB(e,...r)},node:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return QB(e,...r)},nodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return YB(e,...r)},normalize:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return GB(e,...r)},parent:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return XB(e,...r)},path:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return eA(e,...r)},pathRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ZB(e,...r)},pathRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return JB(e,...r)},point:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return rA(e,...r)},pointRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return tA(e,...r)},pointRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return nA(e,...r)},positions:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return oA(e,...r)},previous:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return uA(e,...r)},range:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return sA(e,...r)},rangeRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return aA(e,...r)},rangeRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return iA(e,...r)},removeNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return _A(e,...r)},select:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return wA(e,...r)},setNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return kA(e,...r)},setNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return fA(e,...r)},setPoint:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return EA(e,...r)},setSelection:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return BA(e,...r)},splitNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return TA(e,...r)},start:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return dA(e,...r)},string:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return pA(e,...r)},unhangRange:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return vA(e,...r)},unsetNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return RA(e,...r)},unwrapNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return NA(e,...r)},void:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return bB(e,...r)},withoutNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return hA(e,...r)},wrapNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return jA(e,...r)}};return e};function tu(e){const t=D.marks(Sa.value);return t?t[e]===!0:!1}function MA(e){tu(e)?D.removeMark(Sa.value,e):D.addMark(Sa.value,e,!0)}const $A=v.defineComponent({__name:"Menu",setup(e){const t=v.ref(),n=eE().pressed,r=Zw(t),o=Jw(t).focused,{range:u,isValidSelection:a,onValidSelectionUpdate:i}=Vp(),{floatingStyles:s}=Rw(u,t,{placement:"top",middleware:[ID(6),_w(),kw()]}),l=v.ref(!1),c=v.computed(()=>l.value&&(r.value||o.value||!n.value&&a.value)),d=v.ref(!1),p=v.ref(!1),y=v.ref(!1),m=v.ref(!1),{trigger:f}=Hw(c,()=>{d.value=tu("bold"),p.value=tu("del"),y.value=tu("italic"),m.value=tu("underline")});function w(h){MA(h),f()}return Qe(Oa,"keydown",h=>{h.key==="Escape"&&c.value&&(l.value=!1)}),i(()=>{l.value=!0}),(h,g)=>{const C=vw,E=ZC,B=cw,F=aw,A=nw;return v.unref(c)?(v.openBlock(),v.createElementBlock("div",{key:0,ref_key:"menuRef",ref:t,style:v.normalizeStyle(v.unref(s)),class:"docx-menu",flex:"~ items-center gap-2",text:"lg black","select-none":"",b:"1 solid gray-3 rounded-1.5","bg-white":"",el:"6 op-36",p:"y2 x3",onMousedown:g[4]||(g[4]=v.withModifiers(()=>{},["prevent","stop"])),onMouseup:g[5]||(g[5]=v.withModifiers(()=>{},["prevent","stop"])),onClick:g[6]||(g[6]=v.withModifiers(()=>{},["prevent","stop"])),onDblclick:g[7]||(g[7]=v.withModifiers(()=>{},["prevent","stop"])),onContextmenu:g[8]||(g[8]=v.withModifiers(()=>{},["prevent","stop"]))},[v.createCommentVNode(" 加粗 "),v.createVNode(E,{placement:"top",content:"粗体<br>Markdown: **文本** 空格","raw-content":"",offset:15,"hide-after":0},{default:v.withCtx(()=>[v.createElementVNode("button",{class:v.normalizeClass(["docx-menu-item",{active:v.unref(d)}]),onClick:g[0]||(g[0]=S=>w("bold"))},[v.createVNode(C,{class:"size-5.5"})],2)]),_:1}),v.createCommentVNode(" 删除线 "),v.createVNode(E,{placement:"top",content:"删除线<br>Markdown: ~~文本~~ 空格","raw-content":"",offset:15,"hide-after":0},{default:v.withCtx(()=>[v.createElementVNode("button",{class:v.normalizeClass(["docx-menu-item",{active:v.unref(p)}]),onClick:g[1]||(g[1]=S=>w("del"))},[v.createVNode(B,{class:"size-4.7 relative top-.03"})],2)]),_:1}),v.createCommentVNode(" 斜体 "),v.createVNode(E,{placement:"top",content:"斜体<br>Markdown: *文本* 空格","raw-content":"",offset:15,"hide-after":0},{default:v.withCtx(()=>[v.createElementVNode("button",{class:v.normalizeClass(["docx-menu-item",{active:v.unref(y)}]),onClick:g[2]||(g[2]=S=>w("italic"))},[v.createVNode(F,{class:"size-5 relative top-.1"})],2)]),_:1}),v.createCommentVNode(" 下划线 "),v.createVNode(E,{placement:"top",content:"下划线<br>Markdown: ~文本~ 空格","raw-content":"",offset:15,"hide-after":0},{default:v.withCtx(()=>[v.createElementVNode("button",{class:v.normalizeClass(["docx-menu-item",{active:v.unref(m)}]),onClick:g[3]||(g[3]=S=>w("underline"))},[v.createVNode(A,{class:"size-6 relative top-.1"})],2)]),_:1})],36)):v.createCommentVNode("v-if",!0)}}}),LA=":host-context(.dark) .docx-menu[data-v-f99fe62b]{--un-invert:invert(1);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.docx-menu-item[data-v-f99fe62b]{display:flex;justify-content:center;align-items:center;width:1.5rem;height:1.5rem;cursor:pointer;border-radius:.25rem}.docx-menu-item[data-v-f99fe62b]:hover{--un-bg-opacity:1;background-color:rgb(229 231 235 / var(--un-bg-opacity))}.docx-menu-item.active[data-v-f99fe62b]{--un-bg-opacity:1;background-color:rgb(191 219 254 / var(--un-bg-opacity));--un-bg-opacity:.6;--un-text-opacity:1;color:rgb(37 99 235 / var(--un-text-opacity))}.docx-menu-item.active[data-v-f99fe62b]:hover{--un-bg-opacity:.9}",zA='*[data-v-f99fe62b],[data-v-f99fe62b]:before,[data-v-f99fe62b]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-f99fe62b]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.relative[data-v-f99fe62b]{position:relative}.top-\\.03[data-v-f99fe62b]{top:.0075rem}.top-\\.1[data-v-f99fe62b]{top:.025rem}.flex[data-v-f99fe62b],[flex~="~"][data-v-f99fe62b]{display:flex}.cursor-pointer[data-v-f99fe62b]{cursor:pointer}.select-none[data-v-f99fe62b],[select-none=""][data-v-f99fe62b]{-webkit-user-select:none;user-select:none}.flex-items-center[data-v-f99fe62b],.items-center[data-v-f99fe62b],[flex~=items-center][data-v-f99fe62b]{align-items:center}.gap-2[data-v-f99fe62b],[flex~=gap-2][data-v-f99fe62b]{gap:.5rem}.flex-justify-center[data-v-f99fe62b]{justify-content:center}[b~="1"][data-v-f99fe62b]{border-width:1px}[b~=gray-3][data-v-f99fe62b]{--un-border-opacity:1;border-color:rgb(209 213 219 / var(--un-border-opacity))}.rounded[data-v-f99fe62b]{border-radius:.25rem}.rounded-1\\.5[data-v-f99fe62b],[b~="rounded-1.5"][data-v-f99fe62b]{border-radius:.375rem}[b~=solid][data-v-f99fe62b]{border-style:solid}.bg-blue-2[data-v-f99fe62b]{--un-bg-opacity:1;background-color:rgb(191 219 254 / var(--un-bg-opacity))}.bg-white[data-v-f99fe62b],[bg-white=""][data-v-f99fe62b]{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.hover\\:bg-gray-2[data-v-f99fe62b]:hover{--un-bg-opacity:1;background-color:rgb(229 231 235 / var(--un-bg-opacity))}.bg-op-60[data-v-f99fe62b]{--un-bg-opacity:.6}.hover\\:bg-op-90[data-v-f99fe62b]:hover{--un-bg-opacity:.9}[p~=x3][data-v-f99fe62b]{padding-left:.75rem;padding-right:.75rem}[p~=y2][data-v-f99fe62b]{padding-top:.5rem;padding-bottom:.5rem}[text~=lg][data-v-f99fe62b]{font-size:1.125rem;line-height:1.75rem}[text~=black][data-v-f99fe62b]{--un-text-opacity:1;color:rgb(0 0 0 / var(--un-text-opacity))}.c-blue-6[data-v-f99fe62b]{--un-text-opacity:1;color:rgb(37 99 235 / var(--un-text-opacity))}.italic[data-v-f99fe62b]{font-style:italic}.underline[data-v-f99fe62b]{text-decoration-line:underline}.op-36[data-v-f99fe62b]{opacity:.36}.filter-invert[data-v-f99fe62b]{--un-invert:invert(1);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.size-4\\.7[data-v-f99fe62b]{width:1.175rem;height:1.175rem}.size-5[data-v-f99fe62b]{width:1.25rem;height:1.25rem}.size-5\\.5[data-v-f99fe62b]{width:1.375rem;height:1.375rem}.size-6[data-v-f99fe62b]{width:1.5rem;height:1.5rem}[el~="6"][data-v-f99fe62b]{box-shadow:0 3px 5px -1px rgba(0,0,0,calc(.2 * var(--une-el-opacity, var(--un-shadow-opacity, 1)))),0 6px 10px rgba(0,0,0,calc(.14 * var(--une-el-opacity, var(--un-shadow-opacity, 1)))),0 1px 18px rgba(0,0,0,calc(.12 * var(--une-el-opacity, var(--un-shadow-opacity, 1))))}[el~=op-36][data-v-f99fe62b]{--une-el-opacity:.36}',nu=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},VA=nu($A,[["styles",[LA,zA]],["__scopeId","data-v-f99fe62b"]]);var Mv={exports:{}},se={};/**
10
+ */function Av(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ue(e){var t,n;return Av(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(Av(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}var xv=Symbol.for("immer-nothing"),Fv=Symbol.for("immer-draftable"),Dt=Symbol.for("immer-state");function Ut(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Zr=Object.getPrototypeOf;function hr(e){return!!e&&!!e[Dt]}function mr(e){var t;return e?Sv(e)||Array.isArray(e)||!!e[Fv]||!!((t=e.constructor)!=null&&t[Fv])||Ua(e)||Ha(e):!1}var Ib=Object.prototype.constructor.toString();function Sv(e){if(!e||typeof e!="object")return!1;const t=Zr(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===Ib}function Va(e,t){Wa(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Wa(e){const t=e[Dt];return t?t.type_:Array.isArray(e)?1:Ua(e)?2:Ha(e)?3:0}function Cl(e,t){return Wa(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Ov(e,t,n){const r=Wa(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Mb(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ua(e){return e instanceof Map}function Ha(e){return e instanceof Set}function gr(e){return e.copy_||e.base_}function wl(e,t){if(Ua(e))return new Map(e);if(Ha(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Sv(e))return Zr(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Dt];let r=Reflect.ownKeys(n);for(let o=0;o<r.length;o++){const u=r[o],a=n[u];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[u]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[u]})}return Object.create(Zr(e),n)}function El(e,t=!1){return Ka(e)||hr(e)||!mr(e)||(Wa(e)>1&&(e.set=e.add=e.clear=e.delete=$b),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>El(r,!0))),e}function $b(){Ut(2)}function Ka(e){return Object.isFrozen(e)}var Lb={};function yr(e){const t=Lb[e];return t||Ut(0,e),t}var nu;function _v(){return nu}function zb(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function kv(e,t){t&&(yr("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Bl(e){bl(e),e.drafts_.forEach(Vb),e.drafts_=null}function bl(e){e===nu&&(nu=e.parent_)}function Pv(e){return nu=zb(nu,e)}function Vb(e){const t=e[Dt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Tv(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Dt].modified_&&(Bl(t),Ut(4)),mr(e)&&(e=qa(t,e),t.parent_||Ya(t,e)),t.patches_&&yr("Patches").generateReplacementPatches_(n[Dt].base_,e,t.patches_,t.inversePatches_)):e=qa(t,n,[]),Bl(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==xv?e:void 0}function qa(e,t,n){if(Ka(t))return t;const r=t[Dt];if(!r)return Va(t,(o,u)=>Rv(e,r,t,o,u,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Ya(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let u=o,a=!1;r.type_===3&&(u=new Set(o),o.clear(),a=!0),Va(u,(i,s)=>Rv(e,r,o,i,s,n,a)),Ya(e,o,!1),n&&e.patches_&&yr("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Rv(e,t,n,r,o,u,a){if(hr(o)){const i=u&&t&&t.type_!==3&&!Cl(t.assigned_,r)?u.concat(r):void 0,s=qa(e,o,i);if(Ov(n,r,s),hr(s))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(mr(o)&&!Ka(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;qa(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Ya(e,o)}}function Ya(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&El(t,n)}function Wb(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:_v(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,u=Al;n&&(o=[r],u=ru);const{revoke:a,proxy:i}=Proxy.revocable(o,u);return r.draft_=i,r.revoke_=a,i}var Al={get(e,t){if(t===Dt)return e;const n=gr(e);if(!Cl(n,t))return Ub(e,n,t);const r=n[t];return e.finalized_||!mr(r)?r:r===xl(e.base_,t)?(Sl(e),e.copy_[t]=Ol(r,e)):r},has(e,t){return t in gr(e)},ownKeys(e){return Reflect.ownKeys(gr(e))},set(e,t,n){const r=Nv(gr(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=xl(gr(e),t),u=o==null?void 0:o[Dt];if(u&&u.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Mb(n,o)&&(n!==void 0||Cl(e.base_,t)))return!0;Sl(e),Fl(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return xl(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Sl(e),Fl(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=gr(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Ut(11)},getPrototypeOf(e){return Zr(e.base_)},setPrototypeOf(){Ut(12)}},ru={};Va(Al,(e,t)=>{ru[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),ru.deleteProperty=function(e,t){return ru.set.call(this,e,t,void 0)},ru.set=function(e,t,n){return Al.set.call(this,e[0],t,n,e[0])};function xl(e,t){const n=e[Dt];return(n?gr(n):e)[t]}function Ub(e,t,n){var o;const r=Nv(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function Nv(e,t){if(!(t in e))return;let n=Zr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Zr(n)}}function Fl(e){e.modified_||(e.modified_=!0,e.parent_&&Fl(e.parent_))}function Sl(e){e.copy_||(e.copy_=wl(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Hb=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const u=n;n=t;const a=this;return function(s=u,...l){return a.produce(s,c=>n.call(this,c,...l))}}typeof n!="function"&&Ut(6),r!==void 0&&typeof r!="function"&&Ut(7);let o;if(mr(t)){const u=Pv(this),a=Ol(t,void 0);let i=!0;try{o=n(a),i=!1}finally{i?Bl(u):bl(u)}return kv(u,r),Tv(o,u)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===xv&&(o=void 0),this.autoFreeze_&&El(o,!0),r){const u=[],a=[];yr("Patches").generateReplacementPatches_(t,o,u,a),r(u,a)}return o}else Ut(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...i)=>this.produceWithPatches(a,s=>t(s,...i));let r,o;return[this.produce(t,n,(a,i)=>{r=a,o=i}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){mr(e)||Ut(8),hr(e)&&(e=Kb(e));const t=Pv(this),n=Ol(e,void 0);return n[Dt].isManual_=!0,bl(t),n}finishDraft(e,t){const n=e&&e[Dt];(!n||!n.isManual_)&&Ut(9);const{scope_:r}=n;return kv(r,t),Tv(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=yr("Patches").applyPatches_;return hr(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Ol(e,t){const n=Ua(e)?yr("MapSet").proxyMap_(e,t):Ha(e)?yr("MapSet").proxySet_(e,t):Wb(e,t);return(t?t.scope_:_v()).drafts_.push(n),n}function Kb(e){return hr(e)||Ut(10,e),jv(e)}function jv(e){if(!mr(e)||Ka(e))return e;const t=e[Dt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=wl(e,t.scope_.immer_.useStrictShallowCopy_)}else n=wl(e,!0);return Va(n,(r,o)=>{Ov(n,r,jv(o))}),t&&(t.finalized_=!1),n}var Ct=new Hb,_l=Ct.produce;Ct.produceWithPatches.bind(Ct),Ct.setAutoFreeze.bind(Ct),Ct.setUseStrictShallowCopy.bind(Ct),Ct.applyPatches.bind(Ct);var Iv=Ct.createDraft.bind(Ct),Mv=Ct.finishDraft.bind(Ct),qb={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=A.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},Yb={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=ae.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},Qb={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=_.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},Qa=new WeakMap,Ga=new WeakMap,ou=new WeakMap,$v=new WeakMap,Lv=new WeakMap,zv=new WeakMap,Vv=new WeakMap,A={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=A.levels(e,t);return n?r=r.slice(1):r=r.slice(0,-1),r},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r],u=t[r];if(o!==u)break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),u=e[n],a=t[n];return A.equals(r,o)&&u>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return A.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),u=e[n],a=t[n];return A.equals(r,o)&&u<a},equals(e,t){return e.length===t.length&&e.every((n,r)=>n===t[r])},hasPrevious(e){return e[e.length-1]>0},isAfter(e,t){return A.compare(e,t)===1},isAncestor(e,t){return e.length<t.length&&A.compare(e,t)===0},isBefore(e,t){return A.compare(e,t)===-1},isChild(e,t){return e.length===t.length+1&&A.compare(e,t)===0},isCommon(e,t){return e.length<=t.length&&A.compare(e,t)===0},isDescendant(e,t){return e.length>t.length&&A.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&A.compare(e,t)===0},isPath(e){return Array.isArray(e)&&(e.length===0||typeof e[0]=="number")},isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1),o=e[e.length-1],u=t[t.length-1];return o!==u&&A.equals(n,r)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!A.isAncestor(t,e)&&!A.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e)return null;var r=[...e],{affinity:o="forward"}=n;if(e.length===0)return r;switch(t.type){case"insert_node":{var{path:u}=t;(A.equals(u,r)||A.endsBefore(u,r)||A.isAncestor(u,r))&&(r[u.length-1]+=1);break}case"remove_node":{var{path:a}=t;if(A.equals(a,r)||A.isAncestor(a,r))return null;A.endsBefore(a,r)&&(r[a.length-1]-=1);break}case"merge_node":{var{path:i,position:s}=t;A.equals(i,r)||A.endsBefore(i,r)?r[i.length-1]-=1:A.isAncestor(i,r)&&(r[i.length-1]-=1,r[i.length]+=s);break}case"split_node":{var{path:l,position:c}=t;if(A.equals(l,r)){if(o==="forward")r[r.length-1]+=1;else if(o!=="backward")return null}else A.endsBefore(l,r)?r[l.length-1]+=1:A.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break}case"move_node":{var{path:d,newPath:p}=t;if(A.equals(d,p))return r;if(A.isAncestor(d,r)||A.equals(d,r)){var y=p.slice();return A.endsBefore(d,p)&&d.length<p.length&&(y[d.length-1]-=1),y.concat(r.slice(d.length))}else A.isSibling(d,p)&&(A.isAncestor(p,r)||A.equals(p,r))?A.endsBefore(d,r)?r[d.length-1]-=1:r[d.length-1]+=1:A.endsBefore(p,r)||A.equals(p,r)||A.isAncestor(p,r)?(A.endsBefore(d,r)&&(r[d.length-1]-=1),r[p.length-1]+=1):A.endsBefore(d,r)&&(A.equals(p,r)&&(r[p.length-1]+=1),r[d.length-1]-=1);break}}return r}};function uu(e){"@babel/helpers - typeof";return uu=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},uu(e)}function Gb(e,t){if(uu(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(uu(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xb(e){var t=Gb(e,"string");return uu(t)==="symbol"?t:String(t)}function tt(e,t,n){return t=Xb(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function au(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Zb=(e,t,n)=>{switch(n.type){case"insert_node":{var{path:r,node:o}=n,u=q.parent(e,r),a=r[r.length-1];if(a>u.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(u.children.splice(a,0,o),t)for(var[i,s]of _.points(t))t[s]=ae.transform(i,n);break}case"insert_text":{var{path:l,offset:c,text:d}=n;if(d.length===0)break;var p=q.leaf(e,l),y=p.text.slice(0,c),m=p.text.slice(c);if(p.text=y+d+m,t)for(var[f,w]of _.points(t))t[w]=ae.transform(f,n);break}case"merge_node":{var{path:h}=n,g=q.get(e,h),C=A.previous(h),E=q.get(e,C),B=q.parent(e,h),x=h[h.length-1];if(Z.isText(g)&&Z.isText(E))E.text+=g.text;else if(!Z.isText(g)&&!Z.isText(E))E.children.push(...g.children);else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(h,"] to nodes of different interfaces: ").concat(ze.stringify(g)," ").concat(ze.stringify(E)));if(B.children.splice(x,1),t)for(var[b,S]of _.points(t))t[S]=ae.transform(b,n);break}case"move_node":{var{path:P,newPath:O}=n;if(A.isAncestor(P,O))throw new Error("Cannot move a path [".concat(P,"] to new path [").concat(O,"] because the destination is inside itself."));var H=q.get(e,P),k=q.parent(e,P),W=P[P.length-1];k.children.splice(W,1);var $=A.transform(P,n),V=q.get(e,A.parent($)),G=$[$.length-1];if(V.children.splice(G,0,H),t)for(var[R,M]of _.points(t))t[M]=ae.transform(R,n);break}case"remove_node":{var{path:U}=n,Q=U[U.length-1],ne=q.parent(e,U);if(ne.children.splice(Q,1),t)for(var[te,ve]of _.points(t)){var F=ae.transform(te,n);if(t!=null&&F!=null)t[ve]=F;else{var j=void 0,N=void 0;for(var[Y,oe]of q.texts(e))if(A.compare(oe,U)===-1)j=[Y,oe];else{N=[Y,oe];break}var ee=!1;j&&N&&(A.equals(N[1],U)?ee=!A.hasPrevious(N[1]):ee=A.common(j[1],U).length<A.common(N[1],U).length),j&&!ee?(te.path=j[1],te.offset=j[0].text.length):N?(te.path=N[1],te.offset=0):t=null}}break}case"remove_text":{var{path:ie,offset:ce,text:de}=n;if(de.length===0)break;var he=q.leaf(e,ie),le=he.text.slice(0,ce),Ie=he.text.slice(ce+de.length);if(he.text=le+Ie,t)for(var[Re,be]of _.points(t))t[be]=ae.transform(Re,n);break}case"set_node":{var{path:Ft,properties:Vt,newProperties:_e}=n;if(Ft.length===0)throw new Error("Cannot set properties on the root node!");var et=q.get(e,Ft);for(var me in _e){if(me==="children"||me==="text")throw new Error('Cannot set the "'.concat(me,'" property of nodes!'));var Le=_e[me];Le==null?delete et[me]:et[me]=Le}for(var ke in Vt)_e.hasOwnProperty(ke)||delete et[ke];break}case"set_selection":{var{newProperties:Ne}=n;if(Ne==null)t=Ne;else{if(t==null){if(!_.isRange(Ne))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(ze.stringify(Ne)," when there is no current selection."));t=au({},Ne)}for(var mt in Ne){var Mr=Ne[mt];if(Mr==null){if(mt==="anchor"||mt==="focus")throw new Error('Cannot remove the "'.concat(mt,'" selection property'));delete t[mt]}else t[mt]=Mr}}break}case"split_node":{var{path:gt,position:$r,properties:Rs}=n;if(gt.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(gt,"] because the root node cannot be split."));var Lr=q.get(e,gt),aP=q.parent(e,gt),iP=gt[gt.length-1],Sd;if(Z.isText(Lr)){var sP=Lr.text.slice(0,$r),lP=Lr.text.slice($r);Lr.text=sP,Sd=au(au({},Rs),{},{text:lP})}else{var cP=Lr.children.slice(0,$r),fP=Lr.children.slice($r);Lr.children=cP,Sd=au(au({},Rs),{},{children:fP})}if(aP.children.splice(iP+1,0,Sd),t)for(var[dP,pP]of _.points(t))t[pP]=ae.transform(dP,n);break}}return t},Jb={transform(e,t){e.children=Iv(e.children);var n=e.selection&&Iv(e.selection);try{n=Zb(e,n,t)}finally{e.children=Mv(e.children),n?e.selection=hr(n)?Mv(n):n:e.selection=null}}},eA={insertNodes(e,t,n){e.insertNodes(t,n)},liftNodes(e,t){e.liftNodes(t)},mergeNodes(e,t){e.mergeNodes(t)},moveNodes(e,t){e.moveNodes(t)},removeNodes(e,t){e.removeNodes(t)},setNodes(e,t,n){e.setNodes(t,n)},splitNodes(e,t){e.splitNodes(t)},unsetNodes(e,t,n){e.unsetNodes(t,n)},unwrapNodes(e,t){e.unwrapNodes(t)},wrapNodes(e,t,n){e.wrapNodes(t,n)}},tA={collapse(e,t){e.collapse(t)},deselect(e){e.deselect()},move(e,t){e.move(t)},select(e,t){e.select(t)},setPoint(e,t,n){e.setPoint(t,n)},setSelection(e,t){e.setSelection(t)}},Uv=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Ue(r)&&Ue(o)){if(!Uv(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var u=0;u<r.length;u++)if(r[u]!==o[u])return!1}else if(r!==o)return!1}for(var a in t)if(e[a]===void 0&&t[a]!==void 0)return!1;return!0};function nA(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,u;for(u=0;u<r.length;u++)o=r[u],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function hn(e,t){if(e==null)return{};var n=nA(e,t),r,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(o=0;o<u.length;o++)r=u[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var rA=["anchor","focus"];function Hv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function oA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var _={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return _.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=_.edges(e);return t},equals(e,t){return ae.equals(e.anchor,t.anchor)&&ae.equals(e.focus,t.focus)},includes(e,t){if(_.isRange(t)){if(_.includes(e,t.anchor)||_.includes(e,t.focus))return!0;var[n,r]=_.edges(e),[o,u]=_.edges(t);return ae.isBefore(n,o)&&ae.isAfter(r,u)}var[a,i]=_.edges(e),s=!1,l=!1;return ae.isPoint(t)?(s=ae.compare(t,a)>=0,l=ae.compare(t,i)<=0):(s=A.compare(t,a.path)>=0,l=A.compare(t,i.path)<=0),s&&l},intersection(e,t){var n=hn(e,rA),[r,o]=_.edges(e),[u,a]=_.edges(t),i=ae.isBefore(r,u)?u:r,s=ae.isBefore(o,a)?o:a;return ae.isBefore(s,i)?null:oA({anchor:i,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return ae.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return ae.equals(t,n)},isExpanded(e){return!_.isCollapsed(e)},isForward(e){return!_.isBackward(e)},isRange(e){return Ue(e)&&ae.isPoint(e.anchor)&&ae.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=_.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return _l(e,r=>{if(r===null)return null;var{affinity:o="inward"}=n,u,a;if(o==="inward"){var i=_.isCollapsed(r);_.isForward(r)?(u="forward",a=i?u:"backward"):(u="backward",a=i?u:"forward")}else o==="outward"?_.isForward(r)?(u="backward",a="forward"):(u="forward",a="backward"):(u=o,a=o);var s=ae.transform(r.anchor,t,{affinity:u}),l=ae.transform(r.focus,t,{affinity:a});if(!s||!l)return null;r.anchor=s,r.focus=l})}},Kv=e=>Ue(e)&&q.isNodeList(e.children)&&!D.isEditor(e),X={isAncestor(e){return Ue(e)&&q.isNodeList(e.children)},isElement:Kv,isElementList(e){return Array.isArray(e)&&e.every(t=>X.isElement(t))},isElementProps(e){return e.children!==void 0},isElementType:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return Kv(t)&&t[r]===n},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},uA=["children"],aA=["text"],qv=new WeakMap,q={ancestor(e,t){var n=q.get(e,t);if(Z.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(ze.stringify(n)));return n},ancestors(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function*(){for(var r of A.ancestors(t,n)){var o=q.ancestor(e,r),u=[o,r];yield u}}()},child(e,t){if(Z.isText(e))throw new Error("Cannot get the child of a text node: ".concat(ze.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(ze.stringify(e)));return n},children(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function*(){for(var{reverse:r=!1}=n,o=q.ancestor(e,t),{children:u}=o,a=r?u.length-1:0;r?a>=0:a<u.length;){var i=q.child(o,a),s=t.concat(a);yield[i,s],a=r?a-1:a+1}}()},common(e,t,n){var r=A.common(t,n),o=q.get(e,r);return[o,r]},descendant(e,t){var n=q.get(e,t);if(D.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(ze.stringify(n)));return n},descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var[n,r]of q.nodes(e,t))r.length!==0&&(yield[n,r])}()},elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var[n,r]of q.nodes(e,t))X.isElement(n)&&(yield[n,r])}()},extractProps(e){if(X.isAncestor(e)){var t=hn(e,uA);return t}else{var t=hn(e,aA);return t}},first(e,t){for(var n=t.slice(),r=q.get(e,n);r&&!(Z.isText(r)||r.children.length===0);)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Z.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(ze.stringify(e)));var n=_l({children:e.children},r=>{var[o,u]=_.edges(t),a=q.nodes(r,{reverse:!0,pass:p=>{var[,y]=p;return!_.includes(t,y)}});for(var[,i]of a){if(!_.includes(t,i)){var s=q.parent(r,i),l=i[i.length-1];s.children.splice(l,1)}if(A.equals(i,u.path)){var c=q.leaf(r,i);c.text=c.text.slice(0,u.offset)}if(A.equals(i,o.path)){var d=q.leaf(r,i);d.text=d.text.slice(o.offset)}}D.isEditor(r)&&(r.selection=null)});return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Z.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(ze.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Z.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode(e){return Z.isText(e)||X.isElement(e)||D.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var t=qv.get(e);if(t!==void 0)return t;var n=e.every(r=>q.isNode(r));return qv.set(e,n),n},last(e,t){for(var n=t.slice(),r=q.get(e,n);r&&!(Z.isText(r)||r.children.length===0);){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=q.get(e,t);if(!Z.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(ze.stringify(n)));return n},levels(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function*(){for(var r of A.levels(t,n)){var o=q.get(e,r);yield[o,r]}}()},matches(e,t){return X.isElement(e)&&X.isElementProps(t)&&X.matches(e,t)||Z.isText(e)&&Z.isTextProps(t)&&Z.matches(e,t)},nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var{pass:n,reverse:r=!1}=t,{from:o=[],to:u}=t,a=new Set,i=[],s=e;!(u&&(r?A.isBefore(i,u):A.isAfter(i,u)));){if(a.has(s)||(yield[s,i]),!a.has(s)&&!Z.isText(s)&&s.children.length!==0&&(n==null||n([s,i])===!1)){a.add(s);var l=r?s.children.length-1:0;A.isAncestor(i,o)&&(l=o[i.length]),i=i.concat(l),s=q.get(e,i);continue}if(i.length===0)break;if(!r){var c=A.next(i);if(q.has(e,c)){i=c,s=q.get(e,i);continue}}if(r&&i[i.length-1]!==0){var d=A.previous(i);i=d,s=q.get(e,i);continue}i=A.parent(i),s=q.get(e,i),a.add(s)}}()},parent(e,t){var n=A.parent(t),r=q.get(e,n);if(Z.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string(e){return Z.isText(e)?e.text:e.children.map(q.string).join("")},texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){for(var[n,r]of q.nodes(e,t))Z.isText(n)&&(yield[n,r])}()}};function Yv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Nn={isNodeOperation(e){return Nn.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!Ue(e))return!1;switch(e.type){case"insert_node":return A.isPath(e.path)&&q.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&A.isPath(e.path);case"merge_node":return typeof e.position=="number"&&A.isPath(e.path)&&Ue(e.properties);case"move_node":return A.isPath(e.path)&&A.isPath(e.newPath);case"remove_node":return A.isPath(e.path)&&q.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&A.isPath(e.path);case"set_node":return A.isPath(e.path)&&Ue(e.properties)&&Ue(e.newProperties);case"set_selection":return e.properties===null&&_.isRange(e.newProperties)||e.newProperties===null&&_.isRange(e.properties)||Ue(e.properties)&&Ue(e.newProperties);case"split_node":return A.isPath(e.path)&&typeof e.position=="number"&&Ue(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(t=>Nn.isOperation(t))},isSelectionOperation(e){return Nn.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return Nn.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return we(we({},e),{},{type:"remove_node"});case"insert_text":return we(we({},e),{},{type:"remove_text"});case"merge_node":return we(we({},e),{},{type:"split_node",path:A.previous(e.path)});case"move_node":{var{newPath:t,path:n}=e;if(A.equals(t,n))return e;if(A.isSibling(n,t))return we(we({},e),{},{path:t,newPath:n});var r=A.transform(n,e),o=A.transform(A.next(n),e);return we(we({},e),{},{path:r,newPath:o})}case"remove_node":return we(we({},e),{},{type:"insert_node"});case"remove_text":return we(we({},e),{},{type:"insert_text"});case"set_node":{var{properties:u,newProperties:a}=e;return we(we({},e),{},{properties:a,newProperties:u})}case"set_selection":{var{properties:i,newProperties:s}=e;return i==null?we(we({},e),{},{properties:s,newProperties:null}):s==null?we(we({},e),{},{properties:null,newProperties:i}):we(we({},e),{},{properties:s,newProperties:i})}case"split_node":return we(we({},e),{},{type:"merge_node",path:A.next(e.path)})}}},Qv=new WeakMap,iA=e=>{var t=Qv.get(e);if(t!==void 0)return t;if(!Ue(e))return!1;var n=typeof e.addMark=="function"&&typeof e.apply=="function"&&typeof e.deleteFragment=="function"&&typeof e.insertBreak=="function"&&typeof e.insertSoftBreak=="function"&&typeof e.insertFragment=="function"&&typeof e.insertNode=="function"&&typeof e.insertText=="function"&&typeof e.isElementReadOnly=="function"&&typeof e.isInline=="function"&&typeof e.isSelectable=="function"&&typeof e.isVoid=="function"&&typeof e.normalizeNode=="function"&&typeof e.onChange=="function"&&typeof e.removeMark=="function"&&typeof e.getDirtyPaths=="function"&&(e.marks===null||Ue(e.marks))&&(e.selection===null||_.isRange(e.selection))&&q.isNodeList(e.children)&&Nn.isOperationList(e.operations);return Qv.set(e,n),n},D={above(e,t){return e.above(t)},addMark(e,t,n){e.addMark(t,n)},after(e,t,n){return e.after(t,n)},before(e,t,n){return e.before(t,n)},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e,t){e.deleteFragment(t)},edges(e,t){return e.edges(t)},elementReadOnly(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.elementReadOnly(t)},end(e,t){return e.end(t)},first(e,t){return e.first(t)},fragment(e,t){return e.fragment(t)},hasBlocks(e,t){return e.hasBlocks(t)},hasInlines(e,t){return e.hasInlines(t)},hasPath(e,t){return e.hasPath(t)},hasTexts(e,t){return e.hasTexts(t)},insertBreak(e){e.insertBreak()},insertFragment(e,t,n){e.insertFragment(t,n)},insertNode(e,t){e.insertNode(t)},insertSoftBreak(e){e.insertSoftBreak()},insertText(e,t){e.insertText(t)},isBlock(e,t){return e.isBlock(t)},isEdge(e,t,n){return e.isEdge(t,n)},isEditor(e){return iA(e)},isElementReadOnly(e,t){return e.isElementReadOnly(t)},isEmpty(e,t){return e.isEmpty(t)},isEnd(e,t,n){return e.isEnd(t,n)},isInline(e,t){return e.isInline(t)},isNormalizing(e){return e.isNormalizing()},isSelectable(e,t){return e.isSelectable(t)},isStart(e,t,n){return e.isStart(t,n)},isVoid(e,t){return e.isVoid(t)},last(e,t){return e.last(t)},leaf(e,t,n){return e.leaf(t,n)},levels(e,t){return e.levels(t)},marks(e){return e.getMarks()},next(e,t){return e.next(t)},node(e,t,n){return e.node(t,n)},nodes(e,t){return e.nodes(t)},normalize(e,t){e.normalize(t)},parent(e,t,n){return e.parent(t,n)},path(e,t,n){return e.path(t,n)},pathRef(e,t,n){return e.pathRef(t,n)},pathRefs(e){return e.pathRefs()},point(e,t,n){return e.point(t,n)},pointRef(e,t,n){return e.pointRef(t,n)},pointRefs(e){return e.pointRefs()},positions(e,t){return e.positions(t)},previous(e,t){return e.previous(t)},range(e,t,n){return e.range(t,n)},rangeRef(e,t,n){return e.rangeRef(t,n)},rangeRefs(e){return e.rangeRefs()},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start(e,t){return e.start(t)},string(e,t,n){return e.string(t,n)},unhangRange(e,t,n){return e.unhangRange(t,n)},void(e,t){return e.void(t)},withoutNormalizing(e,t){e.withoutNormalizing(t)},shouldMergeNodesRemovePrevNode:(e,t,n)=>e.shouldMergeNodesRemovePrevNode(t,n)},sA={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(A.isPath)}};function Gv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Xv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ae={compare(e,t){var n=A.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter(e,t){return ae.compare(e,t)===1},isBefore(e,t){return ae.compare(e,t)===-1},equals(e,t){return e.offset===t.offset&&A.equals(e.path,t.path)},isPoint(e){return Ue(e)&&typeof e.offset=="number"&&A.isPath(e.path)},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return _l(e,r=>{if(r===null)return null;var{affinity:o="forward"}=n,{path:u,offset:a}=r;switch(t.type){case"insert_node":case"move_node":{r.path=A.transform(u,t,n);break}case"insert_text":{A.equals(t.path,u)&&(t.offset<a||t.offset===a&&o==="forward")&&(r.offset+=t.text.length);break}case"merge_node":{A.equals(t.path,u)&&(r.offset+=t.position),r.path=A.transform(u,t,n);break}case"remove_text":{A.equals(t.path,u)&&t.offset<=a&&(r.offset-=Math.min(a-t.offset,t.text.length));break}case"remove_node":{if(A.equals(t.path,u)||A.isAncestor(t.path,u))return null;r.path=A.transform(u,t,n);break}case"split_node":{if(A.equals(t.path,u)){if(t.position===a&&o==null)return null;(t.position<a||t.position===a&&o==="forward")&&(r.offset-=t.position,r.path=A.transform(u,t,Xv(Xv({},n),{},{affinity:"forward"})))}else r.path=A.transform(u,t,n);break}}})}},Zv=void 0,ze={setScrubber(e){Zv=e},stringify(e){return JSON.stringify(e,Zv)}},lA=["text"],cA=["anchor","focus"];function Jv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function mn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Z={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(u){var a=hn(u,lA);return a}return Uv(r?o(e):e,r?o(t):t)},isText(e){return Ue(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(t=>Z.isText(t))},isTextProps(e){return e.text!==void 0},matches(e,t){for(var n in t)if(n!=="text"&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[mn({},e)];for(var r of t){var o=hn(r,cA),[u,a]=_.edges(r),i=[],s=0,l=u.offset,c=a.offset;for(var d of n){var{length:p}=d.text,y=s;if(s+=p,l<=y&&s<=c){Object.assign(d,o),i.push(d);continue}if(l!==c&&(l===s||c===y)||l>s||c<y||c===y&&y!==0){i.push(d);continue}var m=d,f=void 0,w=void 0;if(c<s){var h=c-y;w=mn(mn({},m),{},{text:m.text.slice(h)}),m=mn(mn({},m),{},{text:m.text.slice(0,h)})}if(l>y){var g=l-y;f=mn(mn({},m),{},{text:m.text.slice(0,g)}),m=mn(mn({},m),{},{text:m.text.slice(g)})}Object.assign(m,o),f&&i.push(f),i.push(m),w&&i.push(w)}n=i}return n}},kl=e=>e.selection?e.selection:e.children.length>0?D.end(e,[]):[0],Jr=(e,t)=>{var[n]=D.node(e,t);return r=>r===n},Pl=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=!n,o=n?mA(t):t,u=ue.None,a=ue.None,i=0,s=null,l=null;for(var c of o){var d=c.codePointAt(0);if(!d)break;var p=SA(c,d);if([u,a]=r?[a,p]:[p,u],eo(u,ue.ZWJ)&&eo(a,ue.ExtPict)&&(r?s=eh(t.substring(0,i)):s=eh(t.substring(0,t.length-i)),!s)||eo(u,ue.RI)&&eo(a,ue.RI)&&(l!==null?l=!l:r?l=!0:l=TA(t.substring(0,t.length-i)),!l)||u!==ue.None&&a!==ue.None&&_A(u,a))break;i+=c.length}return i||1},fA=/\s/,dA=/[\u002B\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,pA=/['\u2018\u2019]/,vA=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=0,o=!1;t.length>0;){var u=Pl(t,n),[a,i]=Tl(t,u,n);if(hA(a,i,n))o=!0,r+=u;else if(!o)r+=u;else break;t=i}return r},Tl=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},hA=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(fA.test(t))return!1;if(pA.test(t)){var o=Pl(n,r),[u,a]=Tl(n,o,r);if(e(u,a,r))return!0}return!dA.test(t)},mA=function*(t){for(var n=t.length-1,r=0;r<t.length;r++){var o=t.charAt(n-r);if(yA(o.charCodeAt(0))){var u=t.charAt(n-r-1);if(gA(u.charCodeAt(0))){yield u+o,r++;continue}}yield o}},gA=e=>e>=55296&&e<=56319,yA=e=>e>=56320&&e<=57343,ue;(function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"})(ue||(ue={}));var DA=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,CA=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,wA=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,EA=/^[\u1100-\u115F\uA960-\uA97C]$/,BA=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,bA=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,AA=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,xA=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,FA=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,SA=(e,t)=>{var n=ue.Any;return e.search(DA)!==-1&&(n|=ue.Extend),t===8205&&(n|=ue.ZWJ),t>=127462&&t<=127487&&(n|=ue.RI),e.search(CA)!==-1&&(n|=ue.Prepend),e.search(wA)!==-1&&(n|=ue.SpacingMark),e.search(EA)!==-1&&(n|=ue.L),e.search(BA)!==-1&&(n|=ue.V),e.search(bA)!==-1&&(n|=ue.T),e.search(AA)!==-1&&(n|=ue.LV),e.search(xA)!==-1&&(n|=ue.LVT),e.search(FA)!==-1&&(n|=ue.ExtPict),n};function eo(e,t){return(e&t)!==0}var OA=[[ue.L,ue.L|ue.V|ue.LV|ue.LVT],[ue.LV|ue.V,ue.V|ue.T],[ue.LVT|ue.T,ue.T],[ue.Any,ue.Extend|ue.ZWJ],[ue.Any,ue.SpacingMark],[ue.Prepend,ue.Any],[ue.ZWJ,ue.ExtPict],[ue.RI,ue.RI]];function _A(e,t){return OA.findIndex(n=>eo(e,n[0])&&eo(t,n[1]))===-1}var kA=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDEFD-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC01\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDCC2\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDE41\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4\uDF00\uDF01\uDF36-\uDF3A\uDF40\uDF42]|\uD80D[\uDC40\uDC47-\uDC55]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,eh=e=>e.search(kA)!==-1,PA=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,TA=e=>{var t=e.match(PA);if(t===null)return!1;var n=t[0].length/2;return n%2===1},RA={delete(e,t){e.delete(t)},insertFragment(e,t,n){e.insertFragment(t,n)},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(e,()=>{var{voids:r=!1}=n,{at:o=kl(e)}=n;if(A.isPath(o)&&(o=D.range(e,o)),_.isRange(o))if(_.isCollapsed(o))o=o.anchor;else{var u=_.end(o);if(!r&&D.void(e,{at:u}))return;var a=_.start(o),i=D.pointRef(e,a),s=D.pointRef(e,u);I.delete(e,{at:o,voids:r});var l=i.unref(),c=s.unref();o=l||c,I.setSelection(e,{anchor:o,focus:o})}if(!(!r&&D.void(e,{at:o})||D.elementReadOnly(e,{at:o}))){var{path:d,offset:p}=o;t.length>0&&e.apply({type:"insert_text",path:d,offset:p,text:t})}})}};function th(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Xa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?th(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):th(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var I=Xa(Xa(Xa(Xa({},Jb),eA),tA),RA),Za=new WeakMap,NA=e=>Za.get(e)||!1,jA=(e,t,n)=>{var r=Za.get(e)||!1;Za.set(e,!0);try{t(),n()}finally{Za.set(e,r)}};function nh(e,t,n){var r=Qa.get(e)||[],o=Ga.get(e)||new Set,u,a,i=d=>{if(d){var p=d.join(",");a.has(p)||(a.add(p),u.push(d))}};if(n){u=[],a=new Set;for(var s of r){var l=n(s);i(l)}}else u=r,a=o;for(var c of t)i(c);Qa.set(e,u),Ga.set(e,a)}var IA=(e,t)=>{for(var n of D.pathRefs(e))qb.transform(n,t);for(var r of D.pointRefs(e))Yb.transform(r,t);for(var o of D.rangeRefs(e))Qb.transform(o,t);if(!NA(e)){var u=A.operationCanTransformPath(t)?a=>A.transform(a,t):void 0;nh(e,e.getDirtyPaths(t),u)}I.transform(e,t),e.operations.push(t),D.normalize(e,{operation:t}),t.type==="set_selection"&&(e.marks=null),ou.get(e)||(ou.set(e,!0),Promise.resolve().then(()=>{ou.set(e,!1),e.onChange({operation:t}),e.operations=[]}))},MA=(e,t)=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":{var{path:n}=t;return A.levels(n)}case"insert_node":{var{node:r,path:o}=t,u=A.levels(o),a=Z.isText(r)?[]:Array.from(q.nodes(r),O=>{var[,H]=O;return o.concat(H)});return[...u,...a]}case"merge_node":{var{path:i}=t,s=A.ancestors(i),l=A.previous(i);return[...s,l]}case"move_node":{var{path:c,newPath:d}=t;if(A.equals(c,d))return[];var p=[],y=[];for(var m of A.ancestors(c)){var f=A.transform(m,t);p.push(f)}for(var w of A.ancestors(d)){var h=A.transform(w,t);y.push(h)}var g=y[y.length-1],C=d[d.length-1],E=g.concat(C);return[...p,...y,E]}case"remove_node":{var{path:B}=t,x=A.ancestors(B);return[...x]}case"split_node":{var{path:b}=t,S=A.levels(b),P=A.next(b);return[...S,P]}default:return[]}},$A=e=>{var{selection:t}=e;return t?q.fragment(e,t):[]},LA=(e,t)=>{var[n,r]=t;if(!Z.isText(n)){if(X.isElement(n)&&n.children.length===0){var o={text:""};I.insertNodes(e,o,{at:r.concat(0),voids:!0});return}for(var u=D.isEditor(n)?!1:X.isElement(n)&&(e.isInline(n)||n.children.length===0||Z.isText(n.children[0])||e.isInline(n.children[0])),a=0,i=0;i<n.children.length;i++,a++){var s=q.get(e,r);if(!Z.isText(s)){var l=s.children[a],c=s.children[a-1],d=i===n.children.length-1,p=Z.isText(l)||X.isElement(l)&&e.isInline(l);if(p!==u)I.removeNodes(e,{at:r.concat(a),voids:!0}),a--;else if(X.isElement(l)){if(e.isInline(l)){if(c==null||!Z.isText(c)){var y={text:""};I.insertNodes(e,y,{at:r.concat(a),voids:!0}),a++}else if(d){var m={text:""};I.insertNodes(e,m,{at:r.concat(a+1),voids:!0}),a++}}}else{if(!Z.isText(l)&&!("children"in l)){var f=l;f.children=[]}c!=null&&Z.isText(c)&&(Z.equals(l,c,{loose:!0})?(I.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):c.text===""?(I.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):l.text===""&&(I.removeNodes(e,{at:r.concat(a),voids:!0}),a--))}}}}},zA=(e,t)=>{var{iteration:n,initialDirtyPathsLength:r}=t,o=r*42;if(n>o)throw new Error("Could not completely normalize the editor after ".concat(o," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0},VA=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:r=!1,mode:o="lowest",at:u=t.selection,match:a}=n;if(u){var i=D.path(t,u),s=o==="lowest";for(var[l,c]of D.levels(t,{at:i,voids:r,match:a,reverse:s}))if(!Z.isText(l)){if(_.isRange(u)){if(A.isAncestor(c,u.anchor.path)&&A.isAncestor(c,u.focus.path))return[l,c]}else if(!A.equals(i,c))return[l,c]}}};function rh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function oh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rh(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var WA=(e,t,n)=>{var{selection:r}=e;if(r){var o=(d,p)=>{if(!Z.isText(d))return!1;var[y,m]=D.parent(e,p);return!e.isVoid(y)||e.markableVoid(y)},u=_.isExpanded(r),a=!1;if(!u){var[i,s]=D.node(e,r);if(i&&o(i,s)){var[l]=D.parent(e,s);a=l&&e.markableVoid(l)}}if(u||a)I.setNodes(e,{[t]:n},{match:o,split:!0,voids:!0});else{var c=oh(oh({},D.marks(e)||{}),{},{[t]:n});e.marks=c,ou.get(e)||e.onChange()}}};function uh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ah(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uh(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var UA=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=D.point(t,n,{edge:"end"}),u=D.end(t,[]),a={anchor:o,focus:u},{distance:i=1}=r,s=0,l;for(var c of D.positions(t,ah(ah({},r),{},{at:a}))){if(s>i)break;s!==0&&(l=c),s++}return l};function ih(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function sh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ih(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ih(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var HA=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=D.start(t,[]),u=D.point(t,n,{edge:"start"}),a={anchor:o,focus:u},{distance:i=1}=r,s=0,l;for(var c of D.positions(t,sh(sh({},r),{},{at:a,reverse:!0}))){if(s>i)break;s!==0&&(l=c),s++}return l},KA=(e,t)=>{var{selection:n}=e;n&&_.isCollapsed(n)&&I.delete(e,{unit:t,reverse:!0})},qA=(e,t)=>{var{selection:n}=e;n&&_.isCollapsed(n)&&I.delete(e,{unit:t})},YA=function(t){var{direction:n="forward"}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=t;r&&_.isExpanded(r)&&I.delete(t,{reverse:n==="backward"})},QA=(e,t)=>[D.start(e,t),D.end(e,t)];function lh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ch(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lh(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var GA=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return D.above(t,ch(ch({},n),{},{match:r=>X.isElement(r)&&D.isElementReadOnly(t,r)}))},XA=(e,t)=>D.point(e,t,{edge:"end"}),ZA=(e,t)=>{var n=D.path(e,t,{edge:"start"});return D.node(e,n)},JA=(e,t)=>{var n=D.range(e,t);return q.fragment(e,n)};function fh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function dh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fh(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var e2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return D.above(t,dh(dh({},n),{},{match:r=>X.isElement(r)&&D.isVoid(t,r)}))},t2=(e,t)=>t.children.some(n=>X.isElement(n)&&D.isBlock(e,n)),n2=(e,t)=>t.children.some(n=>Z.isText(n)||D.isInline(e,n)),r2=(e,t)=>q.has(e,t),o2=(e,t)=>t.children.every(n=>Z.isText(n)),u2=e=>{I.splitNodes(e,{always:!0})},a2=(e,t,n)=>{I.insertNodes(e,t,n)},i2=e=>{I.splitNodes(e,{always:!0})};function ph(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function s2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ph(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ph(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var l2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:o,marks:u}=t;if(o){if(u){var a=s2({text:n},u);I.insertNodes(t,a,{at:r.at,voids:r.voids})}else I.insertText(t,n,r);t.marks=null}},c2=(e,t)=>!e.isInline(t),f2=(e,t,n)=>D.isStart(e,t,n)||D.isEnd(e,t,n),d2=(e,t)=>{var{children:n}=t,[r]=n;return n.length===0||n.length===1&&Z.isText(r)&&r.text===""&&!e.isVoid(t)},p2=(e,t,n)=>{var r=D.end(e,n);return ae.equals(t,r)},v2=e=>{var t=$v.get(e);return t===void 0?!0:t},h2=(e,t,n)=>{if(t.offset!==0)return!1;var r=D.start(e,n);return ae.equals(t,r)},m2=(e,t)=>{var n=D.path(e,t,{edge:"end"});return D.node(e,n)},g2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=D.path(t,n,r),u=q.leaf(t,o);return[u,o]};function y2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){var{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:u}=t;if(u==null&&(u=()=>!0),!!n){var a=[],i=D.path(e,n);for(var[s,l]of q.levels(e,i))if(u(s,l)&&(a.push([s,l]),!o&&X.isElement(s)&&D.isVoid(e,s)))break;r&&a.reverse(),yield*a}}()}var D2=["text"],C2=["text"],w2=function(t){var{marks:n,selection:r}=t;if(!r)return null;var{anchor:o,focus:u}=r;if(n)return n;if(_.isExpanded(r)){var a=D.isEnd(t,o,o.path);if(a){var i=D.after(t,o);i&&(o=i)}var[s]=D.nodes(t,{match:Z.isText,at:{anchor:o,focus:u}});if(s){var[l]=s,c=hn(l,D2);return c}else return{}}var{path:d}=o,[p]=D.leaf(t,d);if(o.offset===0){var y=D.previous(t,{at:d,match:Z.isText}),m=D.above(t,{match:E=>X.isElement(E)&&D.isVoid(t,E)&&t.markableVoid(E)});if(!m){var f=D.above(t,{match:E=>X.isElement(E)&&D.isBlock(t,E)});if(y&&f){var[w,h]=y,[,g]=f;A.isAncestor(g,h)&&(p=w)}}}var C=hn(p,C2);return C},E2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:o=!1}=n,{match:u,at:a=t.selection}=n;if(a){var i=D.after(t,a,{voids:o});if(i){var[,s]=D.last(t,[]),l=[i.path,s];if(A.isPath(a)&&a.length===0)throw new Error("Cannot get the next node from the root node!");if(u==null)if(A.isPath(a)){var[c]=D.parent(t,a);u=p=>c.children.includes(p)}else u=()=>!0;var[d]=D.nodes(t,{at:l,match:u,mode:r,voids:o});return d}}},B2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=D.path(t,n,r),u=q.get(t,o);return[u,o]};function b2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){var{at:n=e.selection,mode:r="all",universal:o=!1,reverse:u=!1,voids:a=!1,ignoreNonSelectable:i=!1}=t,{match:s}=t;if(s||(s=()=>!0),!!n){var l,c;if(sA.isSpan(n))l=n[0],c=n[1];else{var d=D.path(e,n,{edge:"start"}),p=D.path(e,n,{edge:"end"});l=u?p:d,c=u?d:p}var y=q.nodes(e,{reverse:u,from:l,to:c,pass:E=>{var[B]=E;return X.isElement(B)?!!(!a&&(D.isVoid(e,B)||D.isElementReadOnly(e,B))||i&&!D.isSelectable(e,B)):!1}}),m=[],f;for(var[w,h]of y)if(!(i&&X.isElement(w)&&!D.isSelectable(e,w))){var g=f&&A.compare(h,f[1])===0;if(!(r==="highest"&&g)){if(!s(w,h)){if(o&&!g&&Z.isText(w))return;continue}if(r==="lowest"&&g){f=[w,h];continue}var C=r==="lowest"?f:[w,h];C&&(o?m.push(C):yield C),f=[w,h]}}r==="lowest"&&f&&(o?m.push(f):yield f),o&&(yield*m)}}()}var A2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:r=!1,operation:o}=n,u=c=>Qa.get(c)||[],a=c=>Ga.get(c)||new Set,i=c=>{var d=u(c).pop(),p=d.join(",");return a(c).delete(p),d};if(D.isNormalizing(t)){if(r){var s=Array.from(q.nodes(t),c=>{var[,d]=c;return d}),l=new Set(s.map(c=>c.join(",")));Qa.set(t,s),Ga.set(t,l)}u(t).length!==0&&D.withoutNormalizing(t,()=>{for(var c of u(t))if(q.has(t,c)){var d=D.node(t,c),[p,y]=d;X.isElement(p)&&p.children.length===0&&t.normalizeNode(d,{operation:o})}for(var m=u(t),f=m.length,w=0;m.length!==0;){if(!t.shouldNormalize({dirtyPaths:m,iteration:w,initialDirtyPathsLength:f,operation:o}))return;var h=i(t);if(q.has(t,h)){var g=D.node(t,h);t.normalizeNode(g,{operation:o})}w++,m=u(t)}})}},x2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=D.path(t,n,r),u=A.parent(o),a=D.node(t,u);return a},F2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=r,u={current:n,affinity:o,unref(){var{current:i}=u,s=D.pathRefs(t);return s.delete(u),u.current=null,i}},a=D.pathRefs(t);return a.add(u),u},S2=e=>{var t=Lv.get(e);return t||(t=new Set,Lv.set(e,t)),t},O2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:o,edge:u}=r;if(A.isPath(n)){if(u==="start"){var[,a]=q.first(t,n);n=a}else if(u==="end"){var[,i]=q.last(t,n);n=i}}return _.isRange(n)&&(u==="start"?n=_.start(n):u==="end"?n=_.end(n):n=A.common(n.anchor.path,n.focus.path)),ae.isPoint(n)&&(n=n.path),o!=null&&(n=n.slice(0,o)),n},_2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=r,u={current:n,affinity:o,unref(){var{current:i}=u,s=D.pointRefs(t);return s.delete(u),u.current=null,i}},a=D.pointRefs(t);return a.add(u),u},k2=e=>{var t=zv.get(e);return t||(t=new Set,zv.set(e,t)),t},P2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:o="start"}=r;if(A.isPath(n)){var u;if(o==="end"){var[,a]=q.last(t,n);u=a}else{var[,i]=q.first(t,n);u=i}var s=q.get(t,u);if(!Z.isText(s))throw new Error("Cannot get the ".concat(o," point in the node at path [").concat(n,"] because it has no ").concat(o," text node."));return{path:u,offset:o==="end"?s.text.length:0}}if(_.isRange(n)){var[l,c]=_.edges(n);return o==="start"?l:c}return n};function T2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function*(){var{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:u=!1,ignoreNonSelectable:a=!1}=t;if(!n)return;var i=D.range(e,n),[s,l]=_.edges(i),c=o?l:s,d=!1,p="",y=0,m=0,f=0;for(var[w,h]of D.nodes(e,{at:n,reverse:o,voids:u,ignoreNonSelectable:a})){if(X.isElement(w)){if(!u&&(e.isVoid(w)||e.isElementReadOnly(w))){yield D.start(e,h);continue}if(e.isInline(w))continue;if(D.hasInlines(e,w)){var g=A.isAncestor(h,l.path)?l:D.end(e,h),C=A.isAncestor(h,s.path)?s:D.start(e,h);p=D.string(e,{anchor:C,focus:g},{voids:u}),d=!0}}if(Z.isText(w)){var E=A.equals(h,c.path);for(E?(m=o?c.offset:w.text.length-c.offset,f=c.offset):(m=w.text.length,f=o?m:0),(E||d||r==="offset")&&(yield{path:h,offset:f},d=!1);;){if(y===0){if(p==="")break;y=B(p,r,o),p=Tl(p,y,o)[1]}if(f=o?f-y:f+y,m=m-y,m<0){y=-m;break}y=0,yield{path:h,offset:f}}}}function B(x,b,S){return b==="character"?Pl(x,S):b==="word"?vA(x,S):b==="line"||b==="block"?x.length:1}}()}var R2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:o=!1}=n,{match:u,at:a=t.selection}=n;if(a){var i=D.before(t,a,{voids:o});if(i){var[,s]=D.first(t,[]),l=[i.path,s];if(A.isPath(a)&&a.length===0)throw new Error("Cannot get the previous node from the root node!");if(u==null)if(A.isPath(a)){var[c]=D.parent(t,a);u=p=>c.children.includes(p)}else u=()=>!0;var[d]=D.nodes(t,{reverse:!0,at:l,match:u,mode:r,voids:o});return d}}},N2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=r,u={current:n,affinity:o,unref(){var{current:i}=u,s=D.rangeRefs(t);return s.delete(u),u.current=null,i}},a=D.rangeRefs(t);return a.add(u),u},j2=e=>{var t=Vv.get(e);return t||(t=new Set,Vv.set(e,t)),t},I2=(e,t,n)=>{if(_.isRange(t)&&!n)return t;var r=D.start(e,t),o=D.end(e,n||t);return{anchor:r,focus:o}};function vh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function M2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vh(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var $2=(e,t)=>{var{selection:n}=e;if(n){var r=(c,d)=>{if(!Z.isText(c))return!1;var[p,y]=D.parent(e,d);return!e.isVoid(p)||e.markableVoid(p)},o=_.isExpanded(n),u=!1;if(!o){var[a,i]=D.node(e,n);if(a&&r(a,i)){var[s]=D.parent(e,i);u=s&&e.markableVoid(s)}}if(o||u)I.unsetNodes(e,t,{match:r,split:!0,voids:!0});else{var l=M2({},D.marks(e)||{});delete l[t],e.marks=l,ou.get(e)||e.onChange()}}},L2=(e,t)=>{$v.set(e,t)},z2=(e,t)=>D.point(e,t,{edge:"start"}),V2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:o=!1}=r,u=D.range(t,n),[a,i]=_.edges(u),s="";for(var[l,c]of D.nodes(t,{at:u,match:Z.isText,voids:o})){var d=l.text;A.equals(c,i.path)&&(d=d.slice(0,i.offset)),A.equals(c,a.path)&&(d=d.slice(a.offset)),s+=d}return s},W2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:o=!1}=r,[u,a]=_.edges(n);if(u.offset!==0||a.offset!==0||_.isCollapsed(n)||A.hasPrevious(a.path))return n;var i=D.above(t,{at:a,match:m=>X.isElement(m)&&D.isBlock(t,m),voids:o}),s=i?i[1]:[],l=D.start(t,u),c={anchor:l,focus:a},d=!0;for(var[p,y]of D.nodes(t,{at:c,match:Z.isText,reverse:!0,voids:o})){if(d){d=!1;continue}if(p.text!==""||A.isBefore(y,s)){a={path:y,offset:p.text.length};break}}return{anchor:u,focus:a}},U2=(e,t)=>{var n=D.isNormalizing(e);D.setNormalizing(e,!1);try{t()}finally{D.setNormalizing(e,n)}D.normalize(e)},H2=(e,t,n)=>{var[r,o]=t;return X.isElement(r)&&D.isEmpty(e,r)||Z.isText(r)&&r.text===""&&o[o.length-1]!==0},K2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var r,o,{reverse:u=!1,unit:a="character",distance:i=1,voids:s=!1}=n,{at:l=t.selection,hanging:c=!1}=n;if(l){var d=!1;if(_.isRange(l)&&_.isCollapsed(l)&&(d=!0,l=l.anchor),ae.isPoint(l)){var p=D.void(t,{at:l,mode:"highest"});if(!s&&p){var[,y]=p;l=y}else{var m={unit:a,distance:i},f=u?D.before(t,l,m)||D.start(t,[]):D.after(t,l,m)||D.end(t,[]);l={anchor:l,focus:f},c=!0}}if(A.isPath(l)){I.removeNodes(t,{at:l,voids:s});return}if(!_.isCollapsed(l)){if(!c){var[,w]=_.edges(l),h=D.end(t,[]);ae.equals(w,h)||(l=D.unhangRange(t,l,{voids:s}))}var[g,C]=_.edges(l),E=D.above(t,{match:le=>X.isElement(le)&&D.isBlock(t,le),at:g,voids:s}),B=D.above(t,{match:le=>X.isElement(le)&&D.isBlock(t,le),at:C,voids:s}),x=E&&B&&!A.equals(E[1],B[1]),b=A.equals(g.path,C.path),S=s?null:(r=D.void(t,{at:g,mode:"highest"}))!==null&&r!==void 0?r:D.elementReadOnly(t,{at:g,mode:"highest"}),P=s?null:(o=D.void(t,{at:C,mode:"highest"}))!==null&&o!==void 0?o:D.elementReadOnly(t,{at:C,mode:"highest"});if(S){var O=D.before(t,g);O&&E&&A.isAncestor(E[1],O.path)&&(g=O)}if(P){var H=D.after(t,C);H&&B&&A.isAncestor(B[1],H.path)&&(C=H)}var k=[],W;for(var $ of D.nodes(t,{at:l,voids:s})){var[V,G]=$;W&&A.compare(G,W)===0||(!s&&X.isElement(V)&&(D.isVoid(t,V)||D.isElementReadOnly(t,V))||!A.isCommon(G,g.path)&&!A.isCommon(G,C.path))&&(k.push($),W=G)}var R=Array.from(k,le=>{var[,Ie]=le;return D.pathRef(t,Ie)}),M=D.pointRef(t,g),U=D.pointRef(t,C),Q="";if(!b&&!S){var ne=M.current,[te]=D.leaf(t,ne),{path:ve}=ne,{offset:F}=g,j=te.text.slice(F);j.length>0&&(t.apply({type:"remove_text",path:ve,offset:F,text:j}),Q=j)}if(R.reverse().map(le=>le.unref()).filter(le=>le!==null).forEach(le=>I.removeNodes(t,{at:le,voids:s})),!P){var N=U.current,[Y]=D.leaf(t,N),{path:oe}=N,ee=b?g.offset:0,ie=Y.text.slice(ee,C.offset);ie.length>0&&(t.apply({type:"remove_text",path:oe,offset:ee,text:ie}),Q=ie)}!b&&x&&U.current&&M.current&&I.mergeNodes(t,{at:U.current,hanging:!0,voids:s}),d&&u&&a==="character"&&Q.length>1&&Q.match(/[\u0E00-\u0E7F]+/)&&I.insertText(t,Q.slice(0,Q.length-i));var ce=M.unref(),de=U.unref(),he=u?ce||de:de||ce;n.at==null&&he&&I.select(t,he)}}})},q2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{hanging:o=!1,voids:u=!1}=r,{at:a=kl(t),batchDirty:i=!0}=r;if(n.length){if(_.isRange(a))if(o||(a=D.unhangRange(t,a,{voids:u})),_.isCollapsed(a))a=a.anchor;else{var[,s]=_.edges(a);if(!u&&D.void(t,{at:s}))return;var l=D.pointRef(t,s);I.delete(t,{at:a}),a=l.unref()}else A.isPath(a)&&(a=D.start(t,a));if(!(!u&&D.void(t,{at:a}))){var c=D.above(t,{at:a,match:j=>X.isElement(j)&&D.isInline(t,j),mode:"highest",voids:u});if(c){var[,d]=c;if(D.isEnd(t,a,d)){var p=D.after(t,d);a=p}else if(D.isStart(t,a,d)){var y=D.before(t,d);a=y}}var m=D.above(t,{match:j=>X.isElement(j)&&D.isBlock(t,j),at:a,voids:u}),[,f]=m,w=D.isStart(t,a,f),h=D.isEnd(t,a,f),g=w&&h,C=!w||w&&h,E=!h,[,B]=q.first({children:n},[]),[,x]=q.last({children:n},[]),b=[],S=j=>{var[N,Y]=j,oe=Y.length===0;return oe?!1:g?!0:!(C&&A.isAncestor(Y,B)&&X.isElement(N)&&!t.isVoid(N)&&!t.isInline(N)||E&&A.isAncestor(Y,x)&&X.isElement(N)&&!t.isVoid(N)&&!t.isInline(N))};for(var P of q.nodes({children:n},{pass:S}))S(P)&&b.push(P);var O=[],H=[],k=[],W=!0,$=!1;for(var[V]of b)X.isElement(V)&&!t.isInline(V)?(W=!1,$=!0,H.push(V)):W?O.push(V):k.push(V);var[G]=D.nodes(t,{at:a,match:j=>Z.isText(j)||D.isInline(t,j),mode:"highest",voids:u}),[,R]=G,M=D.isStart(t,a,R),U=D.isEnd(t,a,R),Q=D.pathRef(t,h&&!k.length?A.next(f):f),ne=D.pathRef(t,U?A.next(R):R);I.splitNodes(t,{at:a,match:j=>$?X.isElement(j)&&D.isBlock(t,j):Z.isText(j)||D.isInline(t,j),mode:$?"lowest":"highest",always:$&&(!w||O.length>0)&&(!h||k.length>0),voids:u});var te=D.pathRef(t,!M||M&&U?A.next(R):R);if(I.insertNodes(t,O,{at:te.current,match:j=>Z.isText(j)||D.isInline(t,j),mode:"highest",voids:u,batchDirty:i}),g&&!O.length&&H.length&&!k.length&&I.delete(t,{at:f,voids:u}),I.insertNodes(t,H,{at:Q.current,match:j=>X.isElement(j)&&D.isBlock(t,j),mode:"lowest",voids:u,batchDirty:i}),I.insertNodes(t,k,{at:ne.current,match:j=>Z.isText(j)||D.isInline(t,j),mode:"highest",voids:u,batchDirty:i}),!r.at){var ve;if(k.length>0&&ne.current?ve=A.previous(ne.current):H.length>0&&Q.current?ve=A.previous(Q.current):te.current&&(ve=A.previous(te.current)),ve){var F=D.end(t,ve);I.select(t,F)}}te.unref(),Q.unref(),ne.unref()}}})},Y2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:r="anchor"}=n,{selection:o}=t;if(o){if(r==="anchor")I.select(t,o.anchor);else if(r==="focus")I.select(t,o.focus);else if(r==="start"){var[u]=_.edges(o);I.select(t,u)}else if(r==="end"){var[,a]=_.edges(o);I.select(t,a)}}else return},Q2=e=>{var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},G2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=t,{distance:o=1,unit:u="character",reverse:a=!1}=n,{edge:i=null}=n;if(r){i==="start"&&(i=_.isBackward(r)?"focus":"anchor"),i==="end"&&(i=_.isBackward(r)?"anchor":"focus");var{anchor:s,focus:l}=r,c={distance:o,unit:u,ignoreNonSelectable:!0},d={};if(i==null||i==="anchor"){var p=a?D.before(t,s,c):D.after(t,s,c);p&&(d.anchor=p)}if(i==null||i==="focus"){var y=a?D.before(t,l,c):D.after(t,l,c);y&&(d.focus=y)}I.setSelection(t,d)}},X2=(e,t)=>{var{selection:n}=e;if(t=D.range(e,t),n){I.setSelection(e,t);return}if(!_.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(ze.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})};function hh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function mh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hh(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Z2=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:o}=t,{edge:u="both"}=r;if(o){u==="start"&&(u=_.isBackward(o)?"focus":"anchor"),u==="end"&&(u=_.isBackward(o)?"anchor":"focus");var{anchor:a,focus:i}=o,s=u==="anchor"?a:i;I.setSelection(t,{[u==="anchor"?"anchor":"focus"]:mh(mh({},s),n)})}},J2=(e,t)=>{var{selection:n}=e,r={},o={};if(n){for(var u in t)(u==="anchor"&&t.anchor!=null&&!ae.equals(t.anchor,n.anchor)||u==="focus"&&t.focus!=null&&!ae.equals(t.focus,n.focus)||u!=="anchor"&&u!=="focus"&&t[u]!==n[u])&&(r[u]=n[u],o[u]=t[u]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}},ex=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{hanging:o=!1,voids:u=!1,mode:a="lowest",batchDirty:i=!0}=r,{at:s,match:l,select:c}=r;if(q.isNode(n)&&(n=[n]),n.length!==0){var[d]=n;if(s||(s=kl(t),c!==!1&&(c=!0)),c==null&&(c=!1),_.isRange(s))if(o||(s=D.unhangRange(t,s,{voids:u})),_.isCollapsed(s))s=s.anchor;else{var[,p]=_.edges(s),y=D.pointRef(t,p);I.delete(t,{at:s}),s=y.unref()}if(ae.isPoint(s)){l==null&&(Z.isText(d)?l=O=>Z.isText(O):t.isInline(d)?l=O=>Z.isText(O)||D.isInline(t,O):l=O=>X.isElement(O)&&D.isBlock(t,O));var[m]=D.nodes(t,{at:s.path,match:l,mode:a,voids:u});if(m){var[,f]=m,w=D.pathRef(t,f),h=D.isEnd(t,s,f);I.splitNodes(t,{at:s,match:l,mode:a,voids:u});var g=w.unref();s=h?A.next(g):g}else return}var C=A.parent(s),E=s[s.length-1];if(!(!u&&D.void(t,{at:C}))){if(i){var B=[],x=A.levels(C);jA(t,()=>{var O=function(){var W=C.concat(E);E++;var $={type:"insert_node",path:W,node:H};t.apply($),s=A.next(s),B.push($),Z.isText?x.push(...Array.from(q.nodes(H),V=>{var[,G]=V;return W.concat(G)})):x.push(W)};for(var H of n)O()},()=>{nh(t,x,O=>{var H=O;for(var k of B)if(A.operationCanTransformPath(k)&&(H=A.transform(H,k),!H))return null;return H})})}else for(var b of n){var S=C.concat(E);E++,t.apply({type:"insert_node",path:S,node:b}),s=A.next(s)}if(s=A.previous(s),c){var P=D.end(t,s);P&&I.select(t,P)}}}})},tx=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{at:r=t.selection,mode:o="lowest",voids:u=!1}=n,{match:a}=n;if(a==null&&(a=A.isPath(r)?Jr(t,r):E=>X.isElement(E)&&D.isBlock(t,E)),!!r){var i=D.nodes(t,{at:r,match:a,mode:o,voids:u}),s=Array.from(i,E=>{var[,B]=E;return D.pathRef(t,B)});for(var l of s){var c=l.unref();if(c.length<2)throw new Error("Cannot lift node at a path [".concat(c,"] because it has a depth of less than `2`."));var d=D.node(t,A.parent(c)),[p,y]=d,m=c[c.length-1],{length:f}=p.children;if(f===1){var w=A.next(y);I.moveNodes(t,{at:c,to:w,voids:u}),I.removeNodes(t,{at:y,voids:u})}else if(m===0)I.moveNodes(t,{at:c,to:y,voids:u});else if(m===f-1){var h=A.next(y);I.moveNodes(t,{at:c,to:h,voids:u})}else{var g=A.next(c),C=A.next(y);I.splitNodes(t,{at:g,voids:u}),I.moveNodes(t,{at:c,to:C,voids:u})}}}})},nx=["text"],rx=["children"],gh=(e,t)=>{if(X.isElement(t)){var n=t;return D.isVoid(e,t)?!0:n.children.length===1?gh(e,n.children[0]):!1}else return!D.isEditor(t)},ox=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{match:r,at:o=t.selection}=n,{hanging:u=!1,voids:a=!1,mode:i="lowest"}=n;if(o){if(r==null)if(A.isPath(o)){var[s]=D.parent(t,o);r=O=>s.children.includes(O)}else r=O=>X.isElement(O)&&D.isBlock(t,O);if(!u&&_.isRange(o)&&(o=D.unhangRange(t,o,{voids:a})),_.isRange(o))if(_.isCollapsed(o))o=o.anchor;else{var[,l]=_.edges(o),c=D.pointRef(t,l);I.delete(t,{at:o}),o=c.unref(),n.at==null&&I.select(t,o)}var[d]=D.nodes(t,{at:o,match:r,voids:a,mode:i}),p=D.previous(t,{at:o,match:r,voids:a,mode:i});if(!(!d||!p)){var[y,m]=d,[f,w]=p;if(!(m.length===0||w.length===0)){var h=A.next(w),g=A.common(m,w),C=A.isSibling(m,w),E=Array.from(D.levels(t,{at:m}),O=>{var[H]=O;return H}).slice(g.length).slice(0,-1),B=D.above(t,{at:m,mode:"highest",match:O=>E.includes(O)&&gh(t,O)}),x=B&&D.pathRef(t,B[1]),b,S;if(Z.isText(y)&&Z.isText(f)){var P=hn(y,nx);S=f.text.length,b=P}else if(X.isElement(y)&&X.isElement(f)){var P=hn(y,rx);S=f.children.length,b=P}else throw new Error("Cannot merge the node at path [".concat(m,"] with the previous sibling because it is not the same kind: ").concat(ze.stringify(y)," ").concat(ze.stringify(f)));C||I.moveNodes(t,{at:m,to:h,voids:a}),x&&I.removeNodes(t,{at:x.current,voids:a}),D.shouldMergeNodesRemovePrevNode(t,p,d)?I.removeNodes(t,{at:w,voids:a}):t.apply({type:"merge_node",path:h,position:S,properties:b}),x&&x.unref()}}}})},ux=(e,t)=>{D.withoutNormalizing(e,()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:u=!1}=t,{match:a}=t;if(r){a==null&&(a=A.isPath(r)?Jr(e,r):y=>X.isElement(y)&&D.isBlock(e,y));var i=D.pathRef(e,n),s=D.nodes(e,{at:r,match:a,mode:o,voids:u}),l=Array.from(s,y=>{var[,m]=y;return D.pathRef(e,m)});for(var c of l){var d=c.unref(),p=i.current;d.length!==0&&e.apply({type:"move_node",path:d,newPath:p}),i.current&&A.isSibling(p,d)&&A.isAfter(p,d)&&(i.current=A.next(i.current))}i.unref()}})},ax=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{hanging:r=!1,voids:o=!1,mode:u="lowest"}=n,{at:a=t.selection,match:i}=n;if(a){i==null&&(i=A.isPath(a)?Jr(t,a):y=>X.isElement(y)&&D.isBlock(t,y)),!r&&_.isRange(a)&&(a=D.unhangRange(t,a,{voids:o}));var s=D.nodes(t,{at:a,match:i,mode:u,voids:o}),l=Array.from(s,y=>{var[,m]=y;return D.pathRef(t,m)});for(var c of l){var d=c.unref();if(d){var[p]=D.node(t,d);t.apply({type:"remove_node",path:d,node:p})}}}})},ix=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{match:o,at:u=t.selection,compare:a,merge:i}=r,{hanging:s=!1,mode:l="lowest",split:c=!1,voids:d=!1}=r;if(u){if(o==null&&(o=A.isPath(u)?Jr(t,u):S=>X.isElement(S)&&D.isBlock(t,S)),!s&&_.isRange(u)&&(u=D.unhangRange(t,u,{voids:d})),c&&_.isRange(u)){if(_.isCollapsed(u)&&D.leaf(t,u.anchor)[0].text.length>0)return;var p=D.rangeRef(t,u,{affinity:"inward"}),[y,m]=_.edges(u),f=l==="lowest"?"lowest":"highest",w=D.isEnd(t,m,m.path);I.splitNodes(t,{at:m,match:o,mode:f,voids:d,always:!w});var h=D.isStart(t,y,y.path);I.splitNodes(t,{at:y,match:o,mode:f,voids:d,always:!h}),u=p.unref(),r.at==null&&I.select(t,u)}a||(a=(S,P)=>S!==P);for(var[g,C]of D.nodes(t,{at:u,match:o,mode:l,voids:d})){var E={},B={};if(C.length!==0){var x=!1;for(var b in n)b==="children"||b==="text"||a(n[b],g[b])&&(x=!0,g.hasOwnProperty(b)&&(E[b]=g[b]),i?n[b]!=null&&(B[b]=i(g[b],n[b])):n[b]!=null&&(B[b]=n[b]));x&&t.apply({type:"set_node",path:C,properties:E,newProperties:B})}}}})},sx=(e,t)=>{if(_.isCollapsed(t))return t.anchor;var[,n]=_.edges(t),r=D.pointRef(e,n);return I.delete(e,{at:t}),r.unref()},lx=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{mode:r="lowest",voids:o=!1}=n,{match:u,at:a=t.selection,height:i=0,always:s=!1}=n;if(u==null&&(u=U=>X.isElement(U)&&D.isBlock(t,U)),_.isRange(a)&&(a=sx(t,a)),A.isPath(a)){var l=a,c=D.point(t,l),[d]=D.parent(t,l);u=U=>U===d,i=c.path.length-l.length+1,a=c,s=!0}if(a){var p=D.pointRef(t,a,{affinity:"backward"}),y;try{var[m]=D.nodes(t,{at:a,match:u,mode:r,voids:o});if(!m)return;var f=D.void(t,{at:a,mode:"highest"}),w=0;if(!o&&f){var[h,g]=f;if(X.isElement(h)&&t.isInline(h)){var C=D.after(t,g);if(!C){var E={text:""},B=A.next(g);I.insertNodes(t,E,{at:B,voids:o}),C=D.point(t,B)}a=C,s=!0}var x=a.path.length-g.length;i=x+1,s=!0}y=D.pointRef(t,a);var b=a.path.length-i,[,S]=m,P=a.path.slice(0,b),O=i===0?a.offset:a.path[b]+w;for(var[H,k]of D.levels(t,{at:P,reverse:!0,voids:o})){var W=!1;if(k.length<S.length||k.length===0||!o&&X.isElement(H)&&D.isVoid(t,H))break;var $=p.current,V=D.isEnd(t,$,k);if(s||!p||!D.isEdge(t,$,k)){W=!0;var G=q.extractProps(H);t.apply({type:"split_node",path:k,position:O,properties:G})}O=k[k.length-1]+(W||V?1:0)}if(n.at==null){var R=y.current||D.end(t,[]);I.select(t,R)}}finally{var M;p.unref(),(M=y)===null||M===void 0||M.unref()}}})},cx=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(n)||(n=[n]);var o={};for(var u of n)o[u]=null;I.setNodes(t,o,r)},fx=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(t,()=>{var{mode:r="lowest",split:o=!1,voids:u=!1}=n,{at:a=t.selection,match:i}=n;if(a){i==null&&(i=A.isPath(a)?Jr(t,a):y=>X.isElement(y)&&D.isBlock(t,y)),A.isPath(a)&&(a=D.range(t,a));var s=_.isRange(a)?D.rangeRef(t,a):null,l=D.nodes(t,{at:a,match:i,mode:r,voids:u}),c=Array.from(l,y=>{var[,m]=y;return D.pathRef(t,m)}).reverse(),d=function(){var m=p.unref(),[f]=D.node(t,m),w=D.range(t,m);o&&s&&(w=_.intersection(s.current,w)),I.liftNodes(t,{at:w,match:h=>X.isAncestor(f)&&f.children.includes(h),voids:u})};for(var p of c)d();s&&s.unref()}})};function yh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Dh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yh(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var dx=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(t,()=>{var{mode:o="lowest",split:u=!1,voids:a=!1}=r,{match:i,at:s=t.selection}=r;if(s){if(i==null&&(A.isPath(s)?i=Jr(t,s):t.isInline(n)?i=w=>X.isElement(w)&&D.isInline(t,w)||Z.isText(w):i=w=>X.isElement(w)&&D.isBlock(t,w)),u&&_.isRange(s)){var[l,c]=_.edges(s),d=D.rangeRef(t,s,{affinity:"inward"});I.splitNodes(t,{at:c,match:i,voids:a}),I.splitNodes(t,{at:l,match:i,voids:a}),s=d.unref(),r.at==null&&I.select(t,s)}var p=Array.from(D.nodes(t,{at:s,match:t.isInline(n)?w=>X.isElement(w)&&D.isBlock(t,w):w=>D.isEditor(w),mode:"lowest",voids:a})),y=function(){var h=_.isRange(s)?_.intersection(s,D.range(t,f)):s;if(!h)return 0;var g=Array.from(D.nodes(t,{at:h,match:i,mode:o,voids:a}));if(g.length>0){var[C]=g,E=g[g.length-1],[,B]=C,[,x]=E;if(B.length===0&&x.length===0)return 0;var b=A.equals(B,x)?A.parent(B):A.common(B,x),S=D.range(t,B,x),P=D.node(t,b),[O]=P,H=b.length+1,k=A.next(x.slice(0,H)),W=Dh(Dh({},n),{},{children:[]});I.insertNodes(t,W,{at:k,voids:a}),I.moveNodes(t,{at:S,match:$=>X.isAncestor(O)&&O.children.includes($),to:k.concat(0),voids:a})}},m;for(var[,f]of p)m=y()}})},px=()=>{var e={children:[],operations:[],selection:null,marks:null,isElementReadOnly:()=>!1,isInline:()=>!1,isSelectable:()=>!0,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return IA(e,...r)},addMark:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return WA(e,...r)},deleteBackward:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return KA(e,...r)},deleteForward:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return qA(e,...r)},deleteFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return YA(e,...r)},getFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return $A(e,...r)},insertBreak:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return u2(e,...r)},insertSoftBreak:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return i2(e,...r)},insertFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return q2(e,...r)},insertNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return a2(e,...r)},insertText:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return l2(e,...r)},normalizeNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return LA(e,...r)},removeMark:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return $2(e,...r)},getDirtyPaths:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return MA(e,...r)},shouldNormalize:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return zA(e,...r)},above:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return VA(e,...r)},after:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return UA(e,...r)},before:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return HA(e,...r)},collapse:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Y2(e,...r)},delete:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return K2(e,...r)},deselect:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Q2(e,...r)},edges:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return QA(e,...r)},elementReadOnly:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return GA(e,...r)},end:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return XA(e,...r)},first:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ZA(e,...r)},fragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return JA(e,...r)},getMarks:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return w2(e,...r)},hasBlocks:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t2(e,...r)},hasInlines:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return n2(e,...r)},hasPath:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return r2(e,...r)},hasTexts:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return o2(e,...r)},insertNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ex(e,...r)},isBlock:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return c2(e,...r)},isEdge:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return f2(e,...r)},isEmpty:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return d2(e,...r)},isEnd:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return p2(e,...r)},isNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return v2(e,...r)},isStart:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return h2(e,...r)},last:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return m2(e,...r)},leaf:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return g2(e,...r)},levels:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return y2(e,...r)},liftNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return tx(e,...r)},mergeNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ox(e,...r)},move:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return G2(e,...r)},moveNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ux(e,...r)},next:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return E2(e,...r)},node:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return B2(e,...r)},nodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return b2(e,...r)},normalize:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return A2(e,...r)},parent:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return x2(e,...r)},path:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return O2(e,...r)},pathRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return F2(e,...r)},pathRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return S2(e,...r)},point:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return P2(e,...r)},pointRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return _2(e,...r)},pointRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return k2(e,...r)},positions:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return T2(e,...r)},previous:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return R2(e,...r)},range:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return I2(e,...r)},rangeRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return N2(e,...r)},rangeRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return j2(e,...r)},removeNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ax(e,...r)},select:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return X2(e,...r)},setNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ix(e,...r)},setNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return L2(e,...r)},setPoint:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Z2(e,...r)},setSelection:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return J2(e,...r)},splitNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return lx(e,...r)},start:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return z2(e,...r)},string:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return V2(e,...r)},unhangRange:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return W2(e,...r)},unsetNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return cx(e,...r)},unwrapNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return fx(e,...r)},void:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e2(e,...r)},withoutNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return U2(e,...r)},wrapNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return dx(e,...r)},shouldMergeNodesRemovePrevNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return H2(e,...r)}};return e};function iu(e){const t=D.marks($a.value);return t?t[e]===!0:!1}function vx(e){iu(e)?D.removeMark($a.value,e):D.addMark($a.value,e,!0)}const hx=v.defineComponent({__name:"Menu",setup(e){const t=v.ref(),n=Ob().pressed,r=Fb(t),o=Sb(t).focused,{range:u,isValidSelection:a,onValidSelectionUpdate:i}=bv(),{floatingStyles:s}=lb(u,t,{placement:"top",middleware:[fE(6),_E(),kE()]}),l=v.ref(!1),c=v.computed(()=>l.value&&(r.value||o.value||!n.value&&a.value)),d=v.ref(!1),p=v.ref(!1),y=v.ref(!1),m=v.ref(!1),{trigger:f}=Cb(c,()=>{d.value=iu("bold"),p.value=iu("del"),y.value=iu("italic"),m.value=iu("underline")});function w(h){vx(h),f()}return Qe(La,"keydown",h=>{h.key==="Escape"&&c.value&&(l.value=!1)}),i(()=>{l.value=!0}),(h,g)=>{const C=ib,E=HB,B=rb,x=JB,b=QB;return v.unref(c)?(v.openBlock(),v.createElementBlock("div",{key:0,ref_key:"menuRef",ref:t,style:v.normalizeStyle(v.unref(s)),class:"docx-menu",flex:"~ items-center gap-2",text:"lg black","select-none":"",b:"1 solid gray-3 rounded-1.5","bg-white":"",el:"6 op-36",p:"y2 x3",onMousedown:g[4]||(g[4]=v.withModifiers(()=>{},["prevent","stop"])),onMouseup:g[5]||(g[5]=v.withModifiers(()=>{},["prevent","stop"])),onClick:g[6]||(g[6]=v.withModifiers(()=>{},["prevent","stop"])),onDblclick:g[7]||(g[7]=v.withModifiers(()=>{},["prevent","stop"])),onContextmenu:g[8]||(g[8]=v.withModifiers(()=>{},["prevent","stop"]))},[v.createCommentVNode(" 加粗 "),v.createVNode(E,{placement:"top",content:"粗体<br>Markdown: **文本** 空格","raw-content":"",offset:15,"hide-after":0},{default:v.withCtx(()=>[v.createElementVNode("button",{class:v.normalizeClass(["docx-menu-item",{active:v.unref(d)}]),onClick:g[0]||(g[0]=S=>w("bold"))},[v.createVNode(C,{class:"size-5.5"})],2)]),_:1}),v.createCommentVNode(" 删除线 "),v.createVNode(E,{placement:"top",content:"删除线<br>Markdown: ~~文本~~ 空格","raw-content":"",offset:15,"hide-after":0},{default:v.withCtx(()=>[v.createElementVNode("button",{class:v.normalizeClass(["docx-menu-item",{active:v.unref(p)}]),onClick:g[1]||(g[1]=S=>w("del"))},[v.createVNode(B,{class:"size-4.7 relative top-.03"})],2)]),_:1}),v.createCommentVNode(" 斜体 "),v.createVNode(E,{placement:"top",content:"斜体<br>Markdown: *文本* 空格","raw-content":"",offset:15,"hide-after":0},{default:v.withCtx(()=>[v.createElementVNode("button",{class:v.normalizeClass(["docx-menu-item",{active:v.unref(y)}]),onClick:g[2]||(g[2]=S=>w("italic"))},[v.createVNode(x,{class:"size-5 relative top-.1"})],2)]),_:1}),v.createCommentVNode(" 下划线 "),v.createVNode(E,{placement:"top",content:"下划线<br>Markdown: ~文本~ 空格","raw-content":"",offset:15,"hide-after":0},{default:v.withCtx(()=>[v.createElementVNode("button",{class:v.normalizeClass(["docx-menu-item",{active:v.unref(m)}]),onClick:g[3]||(g[3]=S=>w("underline"))},[v.createVNode(b,{class:"size-6 relative top-.1"})],2)]),_:1})],36)):v.createCommentVNode("v-if",!0)}}}),mx=":host-context(.dark) .docx-menu[data-v-f99fe62b]{--un-invert:invert(1);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.docx-menu-item[data-v-f99fe62b]{display:flex;justify-content:center;align-items:center;width:1.5rem;height:1.5rem;cursor:pointer;border-radius:.25rem}.docx-menu-item[data-v-f99fe62b]:hover{--un-bg-opacity:1;background-color:rgb(229 231 235 / var(--un-bg-opacity))}.docx-menu-item.active[data-v-f99fe62b]{--un-bg-opacity:1;background-color:rgb(191 219 254 / var(--un-bg-opacity));--un-bg-opacity:.6;--un-text-opacity:1;color:rgb(37 99 235 / var(--un-text-opacity))}.docx-menu-item.active[data-v-f99fe62b]:hover{--un-bg-opacity:.9}",gx='[data-v-f99fe62b],[data-v-f99fe62b]:before,[data-v-f99fe62b]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-f99fe62b]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.relative[data-v-f99fe62b]{position:relative}.top-\\.03[data-v-f99fe62b]{top:.0075rem}.top-\\.1[data-v-f99fe62b]{top:.025rem}.flex[data-v-f99fe62b],[flex~="~"][data-v-f99fe62b]{display:flex}.cursor-pointer[data-v-f99fe62b]{cursor:pointer}.select-none[data-v-f99fe62b],[select-none=""][data-v-f99fe62b]{-webkit-user-select:none;user-select:none}.flex-items-center[data-v-f99fe62b],.items-center[data-v-f99fe62b],[flex~=items-center][data-v-f99fe62b]{align-items:center}.gap-2[data-v-f99fe62b],[flex~=gap-2][data-v-f99fe62b]{gap:.5rem}.flex-justify-center[data-v-f99fe62b]{justify-content:center}[b~="1"][data-v-f99fe62b]{border-width:1px}[b~=gray-3][data-v-f99fe62b]{--un-border-opacity:1;border-color:rgb(209 213 219 / var(--un-border-opacity))}.rounded[data-v-f99fe62b]{border-radius:.25rem}.rounded-1\\.5[data-v-f99fe62b],[b~="rounded-1.5"][data-v-f99fe62b]{border-radius:.375rem}[b~=solid][data-v-f99fe62b]{border-style:solid}.bg-blue-2[data-v-f99fe62b]{--un-bg-opacity:1;background-color:rgb(191 219 254 / var(--un-bg-opacity))}.bg-white[data-v-f99fe62b],[bg-white=""][data-v-f99fe62b]{--un-bg-opacity:1;background-color:rgb(255 255 255 / var(--un-bg-opacity))}.hover\\:bg-gray-2[data-v-f99fe62b]:hover{--un-bg-opacity:1;background-color:rgb(229 231 235 / var(--un-bg-opacity))}.bg-op-60[data-v-f99fe62b]{--un-bg-opacity:.6}.hover\\:bg-op-90[data-v-f99fe62b]:hover{--un-bg-opacity:.9}[p~=x3][data-v-f99fe62b]{padding-left:.75rem;padding-right:.75rem}[p~=y2][data-v-f99fe62b]{padding-top:.5rem;padding-bottom:.5rem}[text~=lg][data-v-f99fe62b]{font-size:1.125rem;line-height:1.75rem}[text~=black][data-v-f99fe62b]{--un-text-opacity:1;color:rgb(0 0 0 / var(--un-text-opacity))}.c-blue-6[data-v-f99fe62b]{--un-text-opacity:1;color:rgb(37 99 235 / var(--un-text-opacity))}.italic[data-v-f99fe62b]{font-style:italic}.underline[data-v-f99fe62b]{text-decoration-line:underline}.op-36[data-v-f99fe62b]{opacity:.36}.filter-invert[data-v-f99fe62b]{--un-invert:invert(1);filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.size-4\\.7[data-v-f99fe62b]{width:1.175rem;height:1.175rem}.size-5[data-v-f99fe62b]{width:1.25rem;height:1.25rem}.size-5\\.5[data-v-f99fe62b]{width:1.375rem;height:1.375rem}.size-6[data-v-f99fe62b]{width:1.5rem;height:1.5rem}[el~="6"][data-v-f99fe62b]{box-shadow:0 3px 5px -1px rgba(0,0,0,calc(.2 * var(--une-el-opacity, var(--un-shadow-opacity, 1)))),0 6px 10px rgba(0,0,0,calc(.14 * var(--une-el-opacity, var(--un-shadow-opacity, 1)))),0 1px 18px rgba(0,0,0,calc(.12 * var(--une-el-opacity, var(--un-shadow-opacity, 1))))}[el~=op-36][data-v-f99fe62b]{--une-el-opacity:.36}',su=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},yx=su(hx,[["styles",[mx,gx]],["__scopeId","data-v-f99fe62b"]]);var Ch={exports:{}},se={};/**
11
11
  * @license React
12
12
  * react.production.min.js
13
13
  *
@@ -15,7 +15,7 @@ var Ky;(function(v){"use strict";const cn=(e,t,{checkForDefaultPrevented:n=!0}={
15
15
  *
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
- */var ru=Symbol.for("react.element"),WA=Symbol.for("react.portal"),UA=Symbol.for("react.fragment"),HA=Symbol.for("react.strict_mode"),KA=Symbol.for("react.profiler"),qA=Symbol.for("react.provider"),QA=Symbol.for("react.context"),YA=Symbol.for("react.forward_ref"),GA=Symbol.for("react.suspense"),XA=Symbol.for("react.memo"),ZA=Symbol.for("react.lazy"),$v=Symbol.iterator;function JA(e){return e===null||typeof e!="object"?null:(e=$v&&e[$v]||e["@@iterator"],typeof e=="function"?e:null)}var Lv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zv=Object.assign,Vv={};function Xr(e,t,n){this.props=e,this.context=t,this.refs=Vv,this.updater=n||Lv}Xr.prototype.isReactComponent={},Xr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},Xr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Wv(){}Wv.prototype=Xr.prototype;function vl(e,t,n){this.props=e,this.context=t,this.refs=Vv,this.updater=n||Lv}var hl=vl.prototype=new Wv;hl.constructor=vl,zv(hl,Xr.prototype),hl.isPureReactComponent=!0;var Uv=Array.isArray,Hv=Object.prototype.hasOwnProperty,ml={current:null},Kv={key:!0,ref:!0,__self:!0,__source:!0};function qv(e,t,n){var r,o={},u=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(u=""+t.key),t)Hv.call(t,r)&&!Kv.hasOwnProperty(r)&&(o[r]=t[r]);var i=arguments.length-2;if(i===1)o.children=n;else if(1<i){for(var s=Array(i),l=0;l<i;l++)s[l]=arguments[l+2];o.children=s}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)o[r]===void 0&&(o[r]=i[r]);return{$$typeof:ru,type:e,key:u,ref:a,props:o,_owner:ml.current}}function e2(e,t){return{$$typeof:ru,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function gl(e){return typeof e=="object"&&e!==null&&e.$$typeof===ru}function t2(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Qv=/\/+/g;function yl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?t2(""+e.key):t.toString(36)}function za(e,t,n,r,o){var u=typeof e;(u==="undefined"||u==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(u){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case ru:case WA:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+yl(a,0):r,Uv(o)?(n="",e!=null&&(n=e.replace(Qv,"$&/")+"/"),za(o,t,n,"",function(l){return l})):o!=null&&(gl(o)&&(o=e2(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Qv,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",Uv(e))for(var i=0;i<e.length;i++){u=e[i];var s=r+yl(u,i);a+=za(u,t,n,s,o)}else if(s=JA(e),typeof s=="function")for(e=s.call(e),i=0;!(u=e.next()).done;)u=u.value,s=r+yl(u,i++),a+=za(u,t,n,s,o);else if(u==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Va(e,t,n){if(e==null)return e;var r=[],o=0;return za(e,r,"","",function(u){return t.call(n,u,o++)}),r}function n2(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 nt={current:null},Wa={transition:null},r2={ReactCurrentDispatcher:nt,ReactCurrentBatchConfig:Wa,ReactCurrentOwner:ml};se.Children={map:Va,forEach:function(e,t,n){Va(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Va(e,function(){t++}),t},toArray:function(e){return Va(e,function(t){return t})||[]},only:function(e){if(!gl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},se.Component=Xr,se.Fragment=UA,se.Profiler=KA,se.PureComponent=vl,se.StrictMode=HA,se.Suspense=GA,se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=r2,se.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=zv({},e.props),o=e.key,u=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(u=t.ref,a=ml.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(s in t)Hv.call(t,s)&&!Kv.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&i!==void 0?i[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){i=Array(s);for(var l=0;l<s;l++)i[l]=arguments[l+2];r.children=i}return{$$typeof:ru,type:e.type,key:o,ref:u,props:r,_owner:a}},se.createContext=function(e){return e={$$typeof:QA,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:qA,_context:e},e.Consumer=e},se.createElement=qv,se.createFactory=function(e){var t=qv.bind(null,e);return t.type=e,t},se.createRef=function(){return{current:null}},se.forwardRef=function(e){return{$$typeof:YA,render:e}},se.isValidElement=gl,se.lazy=function(e){return{$$typeof:ZA,_payload:{_status:-1,_result:e},_init:n2}},se.memo=function(e,t){return{$$typeof:XA,type:e,compare:t===void 0?null:t}},se.startTransition=function(e){var t=Wa.transition;Wa.transition={};try{e()}finally{Wa.transition=t}},se.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},se.useCallback=function(e,t){return nt.current.useCallback(e,t)},se.useContext=function(e){return nt.current.useContext(e)},se.useDebugValue=function(){},se.useDeferredValue=function(e){return nt.current.useDeferredValue(e)},se.useEffect=function(e,t){return nt.current.useEffect(e,t)},se.useId=function(){return nt.current.useId()},se.useImperativeHandle=function(e,t,n){return nt.current.useImperativeHandle(e,t,n)},se.useInsertionEffect=function(e,t){return nt.current.useInsertionEffect(e,t)},se.useLayoutEffect=function(e,t){return nt.current.useLayoutEffect(e,t)},se.useMemo=function(e,t){return nt.current.useMemo(e,t)},se.useReducer=function(e,t,n){return nt.current.useReducer(e,t,n)},se.useRef=function(e){return nt.current.useRef(e)},se.useState=function(e){return nt.current.useState(e)},se.useSyncExternalStore=function(e,t,n){return nt.current.useSyncExternalStore(e,t,n)},se.useTransition=function(){return nt.current.useTransition()},se.version="18.2.0",Mv.exports=se;var L=Mv.exports;const re=Uo(L);var Yv={exports:{}},wt={},Gv={exports:{}},Xv={};/**
18
+ */var lu=Symbol.for("react.element"),Dx=Symbol.for("react.portal"),Cx=Symbol.for("react.fragment"),wx=Symbol.for("react.strict_mode"),Ex=Symbol.for("react.profiler"),Bx=Symbol.for("react.provider"),bx=Symbol.for("react.context"),Ax=Symbol.for("react.forward_ref"),xx=Symbol.for("react.suspense"),Fx=Symbol.for("react.memo"),Sx=Symbol.for("react.lazy"),wh=Symbol.iterator;function Ox(e){return e===null||typeof e!="object"?null:(e=wh&&e[wh]||e["@@iterator"],typeof e=="function"?e:null)}var Eh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Bh=Object.assign,bh={};function to(e,t,n){this.props=e,this.context=t,this.refs=bh,this.updater=n||Eh}to.prototype.isReactComponent={},to.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},to.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ah(){}Ah.prototype=to.prototype;function Rl(e,t,n){this.props=e,this.context=t,this.refs=bh,this.updater=n||Eh}var Nl=Rl.prototype=new Ah;Nl.constructor=Rl,Bh(Nl,to.prototype),Nl.isPureReactComponent=!0;var xh=Array.isArray,Fh=Object.prototype.hasOwnProperty,jl={current:null},Sh={key:!0,ref:!0,__self:!0,__source:!0};function Oh(e,t,n){var r,o={},u=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(u=""+t.key),t)Fh.call(t,r)&&!Sh.hasOwnProperty(r)&&(o[r]=t[r]);var i=arguments.length-2;if(i===1)o.children=n;else if(1<i){for(var s=Array(i),l=0;l<i;l++)s[l]=arguments[l+2];o.children=s}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)o[r]===void 0&&(o[r]=i[r]);return{$$typeof:lu,type:e,key:u,ref:a,props:o,_owner:jl.current}}function _x(e,t){return{$$typeof:lu,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Il(e){return typeof e=="object"&&e!==null&&e.$$typeof===lu}function kx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var _h=/\/+/g;function Ml(e,t){return typeof e=="object"&&e!==null&&e.key!=null?kx(""+e.key):t.toString(36)}function Ja(e,t,n,r,o){var u=typeof e;(u==="undefined"||u==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(u){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case lu:case Dx:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+Ml(a,0):r,xh(o)?(n="",e!=null&&(n=e.replace(_h,"$&/")+"/"),Ja(o,t,n,"",function(l){return l})):o!=null&&(Il(o)&&(o=_x(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(_h,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",xh(e))for(var i=0;i<e.length;i++){u=e[i];var s=r+Ml(u,i);a+=Ja(u,t,n,s,o)}else if(s=Ox(e),typeof s=="function")for(e=s.call(e),i=0;!(u=e.next()).done;)u=u.value,s=r+Ml(u,i++),a+=Ja(u,t,n,s,o);else if(u==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function ei(e,t,n){if(e==null)return e;var r=[],o=0;return Ja(e,r,"","",function(u){return t.call(n,u,o++)}),r}function Px(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 nt={current:null},ti={transition:null},Tx={ReactCurrentDispatcher:nt,ReactCurrentBatchConfig:ti,ReactCurrentOwner:jl};function kh(){throw Error("act(...) is not supported in production builds of React.")}se.Children={map:ei,forEach:function(e,t,n){ei(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ei(e,function(){t++}),t},toArray:function(e){return ei(e,function(t){return t})||[]},only:function(e){if(!Il(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},se.Component=to,se.Fragment=Cx,se.Profiler=Ex,se.PureComponent=Rl,se.StrictMode=wx,se.Suspense=xx,se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Tx,se.act=kh,se.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Bh({},e.props),o=e.key,u=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(u=t.ref,a=jl.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(s in t)Fh.call(t,s)&&!Sh.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&i!==void 0?i[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){i=Array(s);for(var l=0;l<s;l++)i[l]=arguments[l+2];r.children=i}return{$$typeof:lu,type:e.type,key:o,ref:u,props:r,_owner:a}},se.createContext=function(e){return e={$$typeof:bx,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Bx,_context:e},e.Consumer=e},se.createElement=Oh,se.createFactory=function(e){var t=Oh.bind(null,e);return t.type=e,t},se.createRef=function(){return{current:null}},se.forwardRef=function(e){return{$$typeof:Ax,render:e}},se.isValidElement=Il,se.lazy=function(e){return{$$typeof:Sx,_payload:{_status:-1,_result:e},_init:Px}},se.memo=function(e,t){return{$$typeof:Fx,type:e,compare:t===void 0?null:t}},se.startTransition=function(e){var t=ti.transition;ti.transition={};try{e()}finally{ti.transition=t}},se.unstable_act=kh,se.useCallback=function(e,t){return nt.current.useCallback(e,t)},se.useContext=function(e){return nt.current.useContext(e)},se.useDebugValue=function(){},se.useDeferredValue=function(e){return nt.current.useDeferredValue(e)},se.useEffect=function(e,t){return nt.current.useEffect(e,t)},se.useId=function(){return nt.current.useId()},se.useImperativeHandle=function(e,t,n){return nt.current.useImperativeHandle(e,t,n)},se.useInsertionEffect=function(e,t){return nt.current.useInsertionEffect(e,t)},se.useLayoutEffect=function(e,t){return nt.current.useLayoutEffect(e,t)},se.useMemo=function(e,t){return nt.current.useMemo(e,t)},se.useReducer=function(e,t,n){return nt.current.useReducer(e,t,n)},se.useRef=function(e){return nt.current.useRef(e)},se.useState=function(e){return nt.current.useState(e)},se.useSyncExternalStore=function(e,t,n){return nt.current.useSyncExternalStore(e,t,n)},se.useTransition=function(){return nt.current.useTransition()},se.version="18.3.1",Ch.exports=se;var L=Ch.exports;const re=Jo(L);var Ph={exports:{}},wt={},Th={exports:{}},Rh={};/**
19
19
  * @license React
20
20
  * scheduler.production.min.js
21
21
  *
@@ -23,7 +23,7 @@ var Ky;(function(v){"use strict";const cn=(e,t,{checkForDefaultPrevented:n=!0}={
23
23
  *
24
24
  * This source code is licensed under the MIT license found in the
25
25
  * LICENSE file in the root directory of this source tree.
26
- */(function(e){function t(M,U){var Y=M.length;M.push(U);e:for(;0<Y;){var ne=Y-1>>>1,te=M[ne];if(0<o(te,U))M[ne]=U,M[Y]=te,Y=ne;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var U=M[0],Y=M.pop();if(Y!==U){M[0]=Y;e:for(var ne=0,te=M.length,ve=te>>>1;ne<ve;){var x=2*(ne+1)-1,j=M[x],N=x+1,Q=M[N];if(0>o(j,Y))N<te&&0>o(Q,j)?(M[ne]=Q,M[N]=Y,ne=N):(M[ne]=j,M[x]=Y,ne=x);else if(N<te&&0>o(Q,Y))M[ne]=Q,M[N]=Y,ne=N;else break e}}return U}function o(M,U){var Y=M.sortIndex-U.sortIndex;return Y!==0?Y:M.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var a=Date,i=a.now();e.unstable_now=function(){return a.now()-i}}var s=[],l=[],c=1,d=null,p=3,y=!1,m=!1,f=!1,w=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(M){for(var U=n(l);U!==null;){if(U.callback===null)r(l);else if(U.startTime<=M)r(l),U.sortIndex=U.expirationTime,t(s,U);else break;U=n(l)}}function E(M){if(f=!1,C(M),!m)if(n(s)!==null)m=!0,G(B);else{var U=n(l);U!==null&&R(E,U.startTime-M)}}function B(M,U){m=!1,f&&(f=!1,h(S),S=-1),y=!0;var Y=p;try{for(C(U),d=n(s);d!==null&&(!(d.expirationTime>U)||M&&!H());){var ne=d.callback;if(typeof ne=="function"){d.callback=null,p=d.priorityLevel;var te=ne(d.expirationTime<=U);U=e.unstable_now(),typeof te=="function"?d.callback=te:d===n(s)&&r(s),C(U)}else r(s);d=n(s)}if(d!==null)var ve=!0;else{var x=n(l);x!==null&&R(E,x.startTime-U),ve=!1}return ve}finally{d=null,p=Y,y=!1}}var F=!1,A=null,S=-1,P=5,O=-1;function H(){return!(e.unstable_now()-O<P)}function k(){if(A!==null){var M=e.unstable_now();O=M;var U=!0;try{U=A(!0,M)}finally{U?W():(F=!1,A=null)}}else F=!1}var W;if(typeof g=="function")W=function(){g(k)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,V=$.port2;$.port1.onmessage=k,W=function(){V.postMessage(null)}}else W=function(){w(k,0)};function G(M){A=M,F||(F=!0,W())}function R(M,U){S=w(function(){M(e.unstable_now())},U)}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(M){M.callback=null},e.unstable_continueExecution=function(){m||y||(m=!0,G(B))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(M){switch(p){case 1:case 2:case 3:var U=3;break;default:U=p}var Y=p;p=U;try{return M()}finally{p=Y}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,U){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var Y=p;p=M;try{return U()}finally{p=Y}},e.unstable_scheduleCallback=function(M,U,Y){var ne=e.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?ne+Y:ne):Y=ne,M){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=Y+te,M={id:c++,callback:U,priorityLevel:M,startTime:Y,expirationTime:te,sortIndex:-1},Y>ne?(M.sortIndex=Y,t(l,M),n(s)===null&&M===n(l)&&(f?(h(S),S=-1):f=!0,R(E,Y-ne))):(M.sortIndex=te,t(s,M),m||y||(m=!0,G(B))),M},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(M){var U=p;return function(){var Y=p;p=U;try{return M.apply(this,arguments)}finally{p=Y}}}})(Xv),Gv.exports=Xv;var o2=Gv.exports;/**
26
+ */(function(e){function t(M,U){var Q=M.length;M.push(U);e:for(;0<Q;){var ne=Q-1>>>1,te=M[ne];if(0<o(te,U))M[ne]=U,M[Q]=te,Q=ne;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var U=M[0],Q=M.pop();if(Q!==U){M[0]=Q;e:for(var ne=0,te=M.length,ve=te>>>1;ne<ve;){var F=2*(ne+1)-1,j=M[F],N=F+1,Y=M[N];if(0>o(j,Q))N<te&&0>o(Y,j)?(M[ne]=Y,M[N]=Q,ne=N):(M[ne]=j,M[F]=Q,ne=F);else if(N<te&&0>o(Y,Q))M[ne]=Y,M[N]=Q,ne=N;else break e}}return U}function o(M,U){var Q=M.sortIndex-U.sortIndex;return Q!==0?Q:M.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var a=Date,i=a.now();e.unstable_now=function(){return a.now()-i}}var s=[],l=[],c=1,d=null,p=3,y=!1,m=!1,f=!1,w=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(M){for(var U=n(l);U!==null;){if(U.callback===null)r(l);else if(U.startTime<=M)r(l),U.sortIndex=U.expirationTime,t(s,U);else break;U=n(l)}}function E(M){if(f=!1,C(M),!m)if(n(s)!==null)m=!0,G(B);else{var U=n(l);U!==null&&R(E,U.startTime-M)}}function B(M,U){m=!1,f&&(f=!1,h(S),S=-1),y=!0;var Q=p;try{for(C(U),d=n(s);d!==null&&(!(d.expirationTime>U)||M&&!H());){var ne=d.callback;if(typeof ne=="function"){d.callback=null,p=d.priorityLevel;var te=ne(d.expirationTime<=U);U=e.unstable_now(),typeof te=="function"?d.callback=te:d===n(s)&&r(s),C(U)}else r(s);d=n(s)}if(d!==null)var ve=!0;else{var F=n(l);F!==null&&R(E,F.startTime-U),ve=!1}return ve}finally{d=null,p=Q,y=!1}}var x=!1,b=null,S=-1,P=5,O=-1;function H(){return!(e.unstable_now()-O<P)}function k(){if(b!==null){var M=e.unstable_now();O=M;var U=!0;try{U=b(!0,M)}finally{U?W():(x=!1,b=null)}}else x=!1}var W;if(typeof g=="function")W=function(){g(k)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,V=$.port2;$.port1.onmessage=k,W=function(){V.postMessage(null)}}else W=function(){w(k,0)};function G(M){b=M,x||(x=!0,W())}function R(M,U){S=w(function(){M(e.unstable_now())},U)}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(M){M.callback=null},e.unstable_continueExecution=function(){m||y||(m=!0,G(B))},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(M){switch(p){case 1:case 2:case 3:var U=3;break;default:U=p}var Q=p;p=U;try{return M()}finally{p=Q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(M,U){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var Q=p;p=M;try{return U()}finally{p=Q}},e.unstable_scheduleCallback=function(M,U,Q){var ne=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?ne+Q:ne):Q=ne,M){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=Q+te,M={id:c++,callback:U,priorityLevel:M,startTime:Q,expirationTime:te,sortIndex:-1},Q>ne?(M.sortIndex=Q,t(l,M),n(s)===null&&M===n(l)&&(f?(h(S),S=-1):f=!0,R(E,Q-ne))):(M.sortIndex=te,t(s,M),m||y||(m=!0,G(B))),M},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(M){var U=p;return function(){var Q=p;p=U;try{return M.apply(this,arguments)}finally{p=Q}}}})(Rh),Th.exports=Rh;var Rx=Th.exports;/**
27
27
  * @license React
28
28
  * react-dom.production.min.js
29
29
  *
@@ -31,16 +31,16 @@ var Ky;(function(v){"use strict";const cn=(e,t,{checkForDefaultPrevented:n=!0}={
31
31
  *
32
32
  * This source code is licensed under the MIT license found in the
33
33
  * LICENSE file in the root directory of this source tree.
34
- */var Zv=L,Et=o2;function K(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Jv=new Set,ou={};function mr(e,t){Zr(e,t),Zr(e+"Capture",t)}function Zr(e,t){for(ou[e]=t,e=0;e<t.length;e++)Jv.add(t[e])}var gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Dl=Object.prototype.hasOwnProperty,u2=/^[: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]*$/,eh={},th={};function a2(e){return Dl.call(th,e)?!0:Dl.call(eh,e)?!1:u2.test(e)?th[e]=!0:(eh[e]=!0,!1)}function i2(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function s2(e,t,n,r){if(t===null||typeof t>"u"||i2(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function rt(e,t,n,r,o,u,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=a}var He={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){He[e]=new rt(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];He[t]=new rt(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){He[e]=new rt(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){He[e]=new rt(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){He[e]=new rt(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){He[e]=new rt(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){He[e]=new rt(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){He[e]=new rt(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){He[e]=new rt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Cl=/[\-:]([a-z])/g;function wl(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Cl,wl);He[t]=new rt(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Cl,wl);He[t]=new rt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Cl,wl);He[t]=new rt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){He[e]=new rt(e,1,!1,e.toLowerCase(),null,!1,!1)}),He.xlinkHref=new rt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){He[e]=new rt(e,1,!1,e.toLowerCase(),null,!0,!0)});function El(e,t,n,r){var o=He.hasOwnProperty(t)?He[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(s2(t,n,o,r)&&(n=null),r||o===null?a2(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var yn=Zv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ua=Symbol.for("react.element"),Jr=Symbol.for("react.portal"),eo=Symbol.for("react.fragment"),Bl=Symbol.for("react.strict_mode"),Al=Symbol.for("react.profiler"),nh=Symbol.for("react.provider"),rh=Symbol.for("react.context"),bl=Symbol.for("react.forward_ref"),Fl=Symbol.for("react.suspense"),xl=Symbol.for("react.suspense_list"),Sl=Symbol.for("react.memo"),Nn=Symbol.for("react.lazy"),oh=Symbol.for("react.offscreen"),uh=Symbol.iterator;function uu(e){return e===null||typeof e!="object"?null:(e=uh&&e[uh]||e["@@iterator"],typeof e=="function"?e:null)}var be=Object.assign,Ol;function au(e){if(Ol===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ol=t&&t[1]||""}return`
35
- `+Ol+e}var _l=!1;function kl(e,t){if(!e||_l)return"";_l=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&typeof l.stack=="string"){for(var o=l.stack.split(`
34
+ */var Nx=L,Et=Rx;function K(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Nh=new Set,cu={};function Dr(e,t){no(e,t),no(e+"Capture",t)}function no(e,t){for(cu[e]=t,e=0;e<t.length;e++)Nh.add(t[e])}var gn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$l=Object.prototype.hasOwnProperty,jx=/^[: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]*$/,jh={},Ih={};function Ix(e){return $l.call(Ih,e)?!0:$l.call(jh,e)?!1:jx.test(e)?Ih[e]=!0:(jh[e]=!0,!1)}function Mx(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $x(e,t,n,r){if(t===null||typeof t>"u"||Mx(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function rt(e,t,n,r,o,u,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=a}var He={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){He[e]=new rt(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];He[t]=new rt(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){He[e]=new rt(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){He[e]=new rt(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){He[e]=new rt(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){He[e]=new rt(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){He[e]=new rt(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){He[e]=new rt(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){He[e]=new rt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ll=/[\-:]([a-z])/g;function zl(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ll,zl);He[t]=new rt(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ll,zl);He[t]=new rt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ll,zl);He[t]=new rt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){He[e]=new rt(e,1,!1,e.toLowerCase(),null,!1,!1)}),He.xlinkHref=new rt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){He[e]=new rt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Vl(e,t,n,r){var o=He.hasOwnProperty(t)?He[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&($x(t,n,o,r)&&(n=null),r||o===null?Ix(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var yn=Nx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ni=Symbol.for("react.element"),ro=Symbol.for("react.portal"),oo=Symbol.for("react.fragment"),Wl=Symbol.for("react.strict_mode"),Ul=Symbol.for("react.profiler"),Mh=Symbol.for("react.provider"),$h=Symbol.for("react.context"),Hl=Symbol.for("react.forward_ref"),Kl=Symbol.for("react.suspense"),ql=Symbol.for("react.suspense_list"),Yl=Symbol.for("react.memo"),jn=Symbol.for("react.lazy"),Lh=Symbol.for("react.offscreen"),zh=Symbol.iterator;function fu(e){return e===null||typeof e!="object"?null:(e=zh&&e[zh]||e["@@iterator"],typeof e=="function"?e:null)}var Ae=Object.assign,Ql;function du(e){if(Ql===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ql=t&&t[1]||""}return`
35
+ `+Ql+e}var Gl=!1;function Xl(e,t){if(!e||Gl)return"";Gl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&typeof l.stack=="string"){for(var o=l.stack.split(`
36
36
  `),u=r.stack.split(`
37
37
  `),a=o.length-1,i=u.length-1;1<=a&&0<=i&&o[a]!==u[i];)i--;for(;1<=a&&0<=i;a--,i--)if(o[a]!==u[i]){if(a!==1||i!==1)do if(a--,i--,0>i||o[a]!==u[i]){var s=`
38
- `+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=a&&0<=i);break}}}finally{_l=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?au(e):""}function l2(e){switch(e.tag){case 5:return au(e.type);case 16:return au("Lazy");case 13:return au("Suspense");case 19:return au("SuspenseList");case 0:case 2:case 15:return e=kl(e.type,!1),e;case 11:return e=kl(e.type.render,!1),e;case 1:return e=kl(e.type,!0),e;default:return""}}function Pl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case eo:return"Fragment";case Jr:return"Portal";case Al:return"Profiler";case Bl:return"StrictMode";case Fl:return"Suspense";case xl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case rh:return(e.displayName||"Context")+".Consumer";case nh:return(e._context.displayName||"Context")+".Provider";case bl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Sl:return t=e.displayName||null,t!==null?t:Pl(e.type)||"Memo";case Nn:t=e._payload,e=e._init;try{return Pl(e(t))}catch{}}return null}function c2(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Pl(t);case 8:return t===Bl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function jn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ah(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function f2(e){var t=ah(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,u.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ha(e){e._valueTracker||(e._valueTracker=f2(e))}function ih(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ah(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ka(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Tl(e,t){var n=t.checked;return be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function sh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=jn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function lh(e,t){t=t.checked,t!=null&&El(e,"checked",t,!1)}function Rl(e,t){lh(e,t);var n=jn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Nl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Nl(e,t.type,jn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ch(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Nl(e,t,n){(t!=="number"||Ka(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var iu=Array.isArray;function to(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+jn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function jl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(K(91));return be({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function fh(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(K(92));if(iu(n)){if(1<n.length)throw Error(K(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:jn(n)}}function dh(e,t){var n=jn(t.value),r=jn(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function ph(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function vh(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Il(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?vh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var qa,hh=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(qa=qa||document.createElement("div"),qa.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=qa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function su(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var lu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},d2=["Webkit","ms","Moz","O"];Object.keys(lu).forEach(function(e){d2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),lu[t]=lu[e]})});function mh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||lu.hasOwnProperty(e)&&lu[e]?(""+t).trim():t+"px"}function gh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=mh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var p2=be({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ml(e,t){if(t){if(p2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(K(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(K(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(K(61))}if(t.style!=null&&typeof t.style!="object")throw Error(K(62))}}function $l(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ll=null;function zl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vl=null,no=null,ro=null;function yh(e){if(e=ku(e)){if(typeof Vl!="function")throw Error(K(280));var t=e.stateNode;t&&(t=mi(t),Vl(e.stateNode,e.type,t))}}function Dh(e){no?ro?ro.push(e):ro=[e]:no=e}function Ch(){if(no){var e=no,t=ro;if(ro=no=null,yh(e),t)for(e=0;e<t.length;e++)yh(t[e])}}function wh(e,t){return e(t)}function Eh(){}var Wl=!1;function Bh(e,t,n){if(Wl)return e(t,n);Wl=!0;try{return wh(e,t,n)}finally{Wl=!1,(no!==null||ro!==null)&&(Eh(),Ch())}}function cu(e,t){var n=e.stateNode;if(n===null)return null;var r=mi(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(K(231,t,typeof n));return n}var Ul=!1;if(gn)try{var fu={};Object.defineProperty(fu,"passive",{get:function(){Ul=!0}}),window.addEventListener("test",fu,fu),window.removeEventListener("test",fu,fu)}catch{Ul=!1}function v2(e,t,n,r,o,u,a,i,s){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(c){this.onError(c)}}var du=!1,Qa=null,Ya=!1,Hl=null,h2={onError:function(e){du=!0,Qa=e}};function m2(e,t,n,r,o,u,a,i,s){du=!1,Qa=null,v2.apply(h2,arguments)}function g2(e,t,n,r,o,u,a,i,s){if(m2.apply(this,arguments),du){if(du){var l=Qa;du=!1,Qa=null}else throw Error(K(198));Ya||(Ya=!0,Hl=l)}}function gr(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 Ah(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 bh(e){if(gr(e)!==e)throw Error(K(188))}function y2(e){var t=e.alternate;if(!t){if(t=gr(e),t===null)throw Error(K(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var u=o.alternate;if(u===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===n)return bh(o),e;if(u===r)return bh(o),t;u=u.sibling}throw Error(K(188))}if(n.return!==r.return)n=o,r=u;else{for(var a=!1,i=o.child;i;){if(i===n){a=!0,n=o,r=u;break}if(i===r){a=!0,r=o,n=u;break}i=i.sibling}if(!a){for(i=u.child;i;){if(i===n){a=!0,n=u,r=o;break}if(i===r){a=!0,r=u,n=o;break}i=i.sibling}if(!a)throw Error(K(189))}}if(n.alternate!==r)throw Error(K(190))}if(n.tag!==3)throw Error(K(188));return n.stateNode.current===n?e:t}function Fh(e){return e=y2(e),e!==null?xh(e):null}function xh(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=xh(e);if(t!==null)return t;e=e.sibling}return null}var Sh=Et.unstable_scheduleCallback,Oh=Et.unstable_cancelCallback,D2=Et.unstable_shouldYield,C2=Et.unstable_requestPaint,Pe=Et.unstable_now,w2=Et.unstable_getCurrentPriorityLevel,Kl=Et.unstable_ImmediatePriority,_h=Et.unstable_UserBlockingPriority,Ga=Et.unstable_NormalPriority,E2=Et.unstable_LowPriority,kh=Et.unstable_IdlePriority,Xa=null,nn=null;function B2(e){if(nn&&typeof nn.onCommitFiberRoot=="function")try{nn.onCommitFiberRoot(Xa,e,void 0,(e.current.flags&128)===128)}catch{}}var Ut=Math.clz32?Math.clz32:F2,A2=Math.log,b2=Math.LN2;function F2(e){return e>>>=0,e===0?32:31-(A2(e)/b2|0)|0}var Za=64,Ja=4194304;function pu(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ei(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,u=e.pingedLanes,a=n&268435455;if(a!==0){var i=a&~o;i!==0?r=pu(i):(u&=a,u!==0&&(r=pu(u)))}else a=n&~o,a!==0?r=pu(a):u!==0&&(r=pu(u));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,u=t&-t,o>=u||o===16&&(u&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ut(t),o=1<<n,r|=e[n],t&=~o;return r}function x2(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function S2(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes;0<u;){var a=31-Ut(u),i=1<<a,s=o[a];s===-1?(!(i&n)||i&r)&&(o[a]=x2(i,t)):s<=t&&(e.expiredLanes|=i),u&=~i}}function ql(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ph(){var e=Za;return Za<<=1,!(Za&4194240)&&(Za=64),e}function Ql(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ut(t),e[t]=n}function O2(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Ut(n),u=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~u}}function Yl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ut(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var pe=0;function Th(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Rh,Gl,Nh,jh,Ih,Xl=!1,ti=[],In=null,Mn=null,$n=null,hu=new Map,mu=new Map,Ln=[],_2="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mh(e,t){switch(e){case"focusin":case"focusout":In=null;break;case"dragenter":case"dragleave":Mn=null;break;case"mouseover":case"mouseout":$n=null;break;case"pointerover":case"pointerout":hu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":mu.delete(t.pointerId)}}function gu(e,t,n,r,o,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:u,targetContainers:[o]},t!==null&&(t=ku(t),t!==null&&Gl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function k2(e,t,n,r,o){switch(t){case"focusin":return In=gu(In,e,t,n,r,o),!0;case"dragenter":return Mn=gu(Mn,e,t,n,r,o),!0;case"mouseover":return $n=gu($n,e,t,n,r,o),!0;case"pointerover":var u=o.pointerId;return hu.set(u,gu(hu.get(u)||null,e,t,n,r,o)),!0;case"gotpointercapture":return u=o.pointerId,mu.set(u,gu(mu.get(u)||null,e,t,n,r,o)),!0}return!1}function $h(e){var t=yr(e.target);if(t!==null){var n=gr(t);if(n!==null){if(t=n.tag,t===13){if(t=Ah(n),t!==null){e.blockedOn=t,Ih(e.priority,function(){Nh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ni(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ll=r,n.target.dispatchEvent(r),Ll=null}else return t=ku(n),t!==null&&Gl(t),e.blockedOn=n,!1;t.shift()}return!0}function Lh(e,t,n){ni(e)&&n.delete(t)}function P2(){Xl=!1,In!==null&&ni(In)&&(In=null),Mn!==null&&ni(Mn)&&(Mn=null),$n!==null&&ni($n)&&($n=null),hu.forEach(Lh),mu.forEach(Lh)}function yu(e,t){e.blockedOn===t&&(e.blockedOn=null,Xl||(Xl=!0,Et.unstable_scheduleCallback(Et.unstable_NormalPriority,P2)))}function Du(e){function t(o){return yu(o,e)}if(0<ti.length){yu(ti[0],e);for(var n=1;n<ti.length;n++){var r=ti[n];r.blockedOn===e&&(r.blockedOn=null)}}for(In!==null&&yu(In,e),Mn!==null&&yu(Mn,e),$n!==null&&yu($n,e),hu.forEach(t),mu.forEach(t),n=0;n<Ln.length;n++)r=Ln[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ln.length&&(n=Ln[0],n.blockedOn===null);)$h(n),n.blockedOn===null&&Ln.shift()}var oo=yn.ReactCurrentBatchConfig,ri=!0;function T2(e,t,n,r){var o=pe,u=oo.transition;oo.transition=null;try{pe=1,Zl(e,t,n,r)}finally{pe=o,oo.transition=u}}function R2(e,t,n,r){var o=pe,u=oo.transition;oo.transition=null;try{pe=4,Zl(e,t,n,r)}finally{pe=o,oo.transition=u}}function Zl(e,t,n,r){if(ri){var o=Jl(e,t,n,r);if(o===null)mc(e,t,r,oi,n),Mh(e,r);else if(k2(o,e,t,n,r))r.stopPropagation();else if(Mh(e,r),t&4&&-1<_2.indexOf(e)){for(;o!==null;){var u=ku(o);if(u!==null&&Rh(u),u=Jl(e,t,n,r),u===null&&mc(e,t,r,oi,n),u===o)break;o=u}o!==null&&r.stopPropagation()}else mc(e,t,r,null,n)}}var oi=null;function Jl(e,t,n,r){if(oi=null,e=zl(r),e=yr(e),e!==null)if(t=gr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ah(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 oi=e,null}function zh(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(w2()){case Kl:return 1;case _h:return 4;case Ga:case E2:return 16;case kh:return 536870912;default:return 16}default:return 16}}var zn=null,ec=null,ui=null;function Vh(){if(ui)return ui;var e,t=ec,n=t.length,r,o="value"in zn?zn.value:zn.textContent,u=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===o[u-r];r++);return ui=o.slice(e,1<r?1-r:void 0)}function ai(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 ii(){return!0}function Wh(){return!1}function Bt(e){function t(n,r,o,u,a){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=u,this.target=a,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(n=e[i],this[i]=n?n(u):u[i]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?ii:Wh,this.isPropagationStopped=Wh,this}return be(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=ii)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ii)},persist:function(){},isPersistent:ii}),t}var uo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tc=Bt(uo),Cu=be({},uo,{view:0,detail:0}),N2=Bt(Cu),nc,rc,wu,si=be({},Cu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:uc,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!==wu&&(wu&&e.type==="mousemove"?(nc=e.screenX-wu.screenX,rc=e.screenY-wu.screenY):rc=nc=0,wu=e),nc)},movementY:function(e){return"movementY"in e?e.movementY:rc}}),Uh=Bt(si),j2=be({},si,{dataTransfer:0}),I2=Bt(j2),M2=be({},Cu,{relatedTarget:0}),oc=Bt(M2),$2=be({},uo,{animationName:0,elapsedTime:0,pseudoElement:0}),L2=Bt($2),z2=be({},uo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),V2=Bt(z2),W2=be({},uo,{data:0}),Hh=Bt(W2),U2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},H2={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"},K2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function q2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=K2[e])?!!t[e]:!1}function uc(){return q2}var Q2=be({},Cu,{key:function(e){if(e.key){var t=U2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ai(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?H2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:uc,charCode:function(e){return e.type==="keypress"?ai(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ai(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Y2=Bt(Q2),G2=be({},si,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kh=Bt(G2),X2=be({},Cu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:uc}),Z2=Bt(X2),J2=be({},uo,{propertyName:0,elapsedTime:0,pseudoElement:0}),eb=Bt(J2),tb=be({},si,{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}),nb=Bt(tb),rb=[9,13,27,32],ac=gn&&"CompositionEvent"in window,Eu=null;gn&&"documentMode"in document&&(Eu=document.documentMode);var ob=gn&&"TextEvent"in window&&!Eu,qh=gn&&(!ac||Eu&&8<Eu&&11>=Eu),Qh=" ",Yh=!1;function Gh(e,t){switch(e){case"keyup":return rb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ao=!1;function ub(e,t){switch(e){case"compositionend":return Xh(t);case"keypress":return t.which!==32?null:(Yh=!0,Qh);case"textInput":return e=t.data,e===Qh&&Yh?null:e;default:return null}}function ab(e,t){if(ao)return e==="compositionend"||!ac&&Gh(e,t)?(e=Vh(),ui=ec=zn=null,ao=!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 qh&&t.locale!=="ko"?null:t.data;default:return null}}var ib={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 Zh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ib[e.type]:t==="textarea"}function Jh(e,t,n,r){Dh(r),t=pi(t,"onChange"),0<t.length&&(n=new tc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Bu=null,Au=null;function sb(e){gm(e,0)}function li(e){var t=fo(e);if(ih(t))return e}function lb(e,t){if(e==="change")return t}var em=!1;if(gn){var ic;if(gn){var sc="oninput"in document;if(!sc){var tm=document.createElement("div");tm.setAttribute("oninput","return;"),sc=typeof tm.oninput=="function"}ic=sc}else ic=!1;em=ic&&(!document.documentMode||9<document.documentMode)}function nm(){Bu&&(Bu.detachEvent("onpropertychange",rm),Au=Bu=null)}function rm(e){if(e.propertyName==="value"&&li(Au)){var t=[];Jh(t,Au,e,zl(e)),Bh(sb,t)}}function cb(e,t,n){e==="focusin"?(nm(),Bu=t,Au=n,Bu.attachEvent("onpropertychange",rm)):e==="focusout"&&nm()}function fb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return li(Au)}function db(e,t){if(e==="click")return li(t)}function pb(e,t){if(e==="input"||e==="change")return li(t)}function vb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ht=typeof Object.is=="function"?Object.is:vb;function bu(e,t){if(Ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Dl.call(t,o)||!Ht(e[o],t[o]))return!1}return!0}function om(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function um(e,t){var n=om(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=om(n)}}function am(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?am(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function im(){for(var e=window,t=Ka();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ka(e.document)}return t}function lc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function hb(e){var t=im(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&am(n.ownerDocument.documentElement,n)){if(r!==null&&lc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,u=Math.min(r.start,o);r=r.end===void 0?u:Math.min(r.end,o),!e.extend&&u>r&&(o=r,r=u,u=o),o=um(n,u);var a=um(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),u>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mb=gn&&"documentMode"in document&&11>=document.documentMode,io=null,cc=null,Fu=null,fc=!1;function sm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;fc||io==null||io!==Ka(r)||(r=io,"selectionStart"in r&&lc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fu&&bu(Fu,r)||(Fu=r,r=pi(cc,"onSelect"),0<r.length&&(t=new tc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=io)))}function ci(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var so={animationend:ci("Animation","AnimationEnd"),animationiteration:ci("Animation","AnimationIteration"),animationstart:ci("Animation","AnimationStart"),transitionend:ci("Transition","TransitionEnd")},dc={},lm={};gn&&(lm=document.createElement("div").style,"AnimationEvent"in window||(delete so.animationend.animation,delete so.animationiteration.animation,delete so.animationstart.animation),"TransitionEvent"in window||delete so.transitionend.transition);function fi(e){if(dc[e])return dc[e];if(!so[e])return e;var t=so[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in lm)return dc[e]=t[n];return e}var cm=fi("animationend"),fm=fi("animationiteration"),dm=fi("animationstart"),pm=fi("transitionend"),vm=new Map,hm="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Vn(e,t){vm.set(e,t),mr(t,[e])}for(var pc=0;pc<hm.length;pc++){var vc=hm[pc],gb=vc.toLowerCase(),yb=vc[0].toUpperCase()+vc.slice(1);Vn(gb,"on"+yb)}Vn(cm,"onAnimationEnd"),Vn(fm,"onAnimationIteration"),Vn(dm,"onAnimationStart"),Vn("dblclick","onDoubleClick"),Vn("focusin","onFocus"),Vn("focusout","onBlur"),Vn(pm,"onTransitionEnd"),Zr("onMouseEnter",["mouseout","mouseover"]),Zr("onMouseLeave",["mouseout","mouseover"]),Zr("onPointerEnter",["pointerout","pointerover"]),Zr("onPointerLeave",["pointerout","pointerover"]),mr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),mr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),mr("onBeforeInput",["compositionend","keypress","textInput","paste"]),mr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),mr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),mr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xu="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(" "),Db=new Set("cancel close invalid load scroll toggle".split(" ").concat(xu));function mm(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,g2(r,t,void 0,e),e.currentTarget=null}function gm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var u=void 0;if(t)for(var a=r.length-1;0<=a;a--){var i=r[a],s=i.instance,l=i.currentTarget;if(i=i.listener,s!==u&&o.isPropagationStopped())break e;mm(o,i,l),u=s}else for(a=0;a<r.length;a++){if(i=r[a],s=i.instance,l=i.currentTarget,i=i.listener,s!==u&&o.isPropagationStopped())break e;mm(o,i,l),u=s}}}if(Ya)throw e=Hl,Ya=!1,Hl=null,e}function De(e,t){var n=t[Ec];n===void 0&&(n=t[Ec]=new Set);var r=e+"__bubble";n.has(r)||(ym(t,e,2,!1),n.add(r))}function hc(e,t,n){var r=0;t&&(r|=4),ym(n,e,r,t)}var di="_reactListening"+Math.random().toString(36).slice(2);function Su(e){if(!e[di]){e[di]=!0,Jv.forEach(function(n){n!=="selectionchange"&&(Db.has(n)||hc(n,!1,e),hc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[di]||(t[di]=!0,hc("selectionchange",!1,t))}}function ym(e,t,n,r){switch(zh(t)){case 1:var o=T2;break;case 4:o=R2;break;default:o=Zl}n=o.bind(null,t,n,e),o=void 0,!Ul||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function mc(e,t,n,r,o){var u=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var i=r.stateNode.containerInfo;if(i===o||i.nodeType===8&&i.parentNode===o)break;if(a===4)for(a=r.return;a!==null;){var s=a.tag;if((s===3||s===4)&&(s=a.stateNode.containerInfo,s===o||s.nodeType===8&&s.parentNode===o))return;a=a.return}for(;i!==null;){if(a=yr(i),a===null)return;if(s=a.tag,s===5||s===6){r=u=a;continue e}i=i.parentNode}}r=r.return}Bh(function(){var l=u,c=zl(n),d=[];e:{var p=vm.get(e);if(p!==void 0){var y=tc,m=e;switch(e){case"keypress":if(ai(n)===0)break e;case"keydown":case"keyup":y=Y2;break;case"focusin":m="focus",y=oc;break;case"focusout":m="blur",y=oc;break;case"beforeblur":case"afterblur":y=oc;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":y=Uh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=I2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=Z2;break;case cm:case fm:case dm:y=L2;break;case pm:y=eb;break;case"scroll":y=N2;break;case"wheel":y=nb;break;case"copy":case"cut":case"paste":y=V2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Kh}var f=(t&4)!==0,w=!f&&e==="scroll",h=f?p!==null?p+"Capture":null:p;f=[];for(var g=l,C;g!==null;){C=g;var E=C.stateNode;if(C.tag===5&&E!==null&&(C=E,h!==null&&(E=cu(g,h),E!=null&&f.push(Ou(g,E,C)))),w)break;g=g.return}0<f.length&&(p=new y(p,m,null,n,c),d.push({event:p,listeners:f}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",p&&n!==Ll&&(m=n.relatedTarget||n.fromElement)&&(yr(m)||m[Dn]))break e;if((y||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,y?(m=n.relatedTarget||n.toElement,y=l,m=m?yr(m):null,m!==null&&(w=gr(m),m!==w||m.tag!==5&&m.tag!==6)&&(m=null)):(y=null,m=l),y!==m)){if(f=Uh,E="onMouseLeave",h="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(f=Kh,E="onPointerLeave",h="onPointerEnter",g="pointer"),w=y==null?p:fo(y),C=m==null?p:fo(m),p=new f(E,g+"leave",y,n,c),p.target=w,p.relatedTarget=C,E=null,yr(c)===l&&(f=new f(h,g+"enter",m,n,c),f.target=C,f.relatedTarget=w,E=f),w=E,y&&m)t:{for(f=y,h=m,g=0,C=f;C;C=lo(C))g++;for(C=0,E=h;E;E=lo(E))C++;for(;0<g-C;)f=lo(f),g--;for(;0<C-g;)h=lo(h),C--;for(;g--;){if(f===h||h!==null&&f===h.alternate)break t;f=lo(f),h=lo(h)}f=null}else f=null;y!==null&&Dm(d,p,y,f,!1),m!==null&&w!==null&&Dm(d,w,m,f,!0)}}e:{if(p=l?fo(l):window,y=p.nodeName&&p.nodeName.toLowerCase(),y==="select"||y==="input"&&p.type==="file")var B=lb;else if(Zh(p))if(em)B=pb;else{B=fb;var F=cb}else(y=p.nodeName)&&y.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(B=db);if(B&&(B=B(e,l))){Jh(d,B,n,c);break e}F&&F(e,p,l),e==="focusout"&&(F=p._wrapperState)&&F.controlled&&p.type==="number"&&Nl(p,"number",p.value)}switch(F=l?fo(l):window,e){case"focusin":(Zh(F)||F.contentEditable==="true")&&(io=F,cc=l,Fu=null);break;case"focusout":Fu=cc=io=null;break;case"mousedown":fc=!0;break;case"contextmenu":case"mouseup":case"dragend":fc=!1,sm(d,n,c);break;case"selectionchange":if(mb)break;case"keydown":case"keyup":sm(d,n,c)}var A;if(ac)e:{switch(e){case"compositionstart":var S="onCompositionStart";break e;case"compositionend":S="onCompositionEnd";break e;case"compositionupdate":S="onCompositionUpdate";break e}S=void 0}else ao?Gh(e,n)&&(S="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(S="onCompositionStart");S&&(qh&&n.locale!=="ko"&&(ao||S!=="onCompositionStart"?S==="onCompositionEnd"&&ao&&(A=Vh()):(zn=c,ec="value"in zn?zn.value:zn.textContent,ao=!0)),F=pi(l,S),0<F.length&&(S=new Hh(S,e,null,n,c),d.push({event:S,listeners:F}),A?S.data=A:(A=Xh(n),A!==null&&(S.data=A)))),(A=ob?ub(e,n):ab(e,n))&&(l=pi(l,"onBeforeInput"),0<l.length&&(c=new Hh("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:l}),c.data=A))}gm(d,t)})}function Ou(e,t,n){return{instance:e,listener:t,currentTarget:n}}function pi(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,u=o.stateNode;o.tag===5&&u!==null&&(o=u,u=cu(e,n),u!=null&&r.unshift(Ou(e,u,o)),u=cu(e,t),u!=null&&r.push(Ou(e,u,o))),e=e.return}return r}function lo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Dm(e,t,n,r,o){for(var u=t._reactName,a=[];n!==null&&n!==r;){var i=n,s=i.alternate,l=i.stateNode;if(s!==null&&s===r)break;i.tag===5&&l!==null&&(i=l,o?(s=cu(n,u),s!=null&&a.unshift(Ou(n,s,i))):o||(s=cu(n,u),s!=null&&a.push(Ou(n,s,i)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var Cb=/\r\n?/g,wb=/\u0000|\uFFFD/g;function Cm(e){return(typeof e=="string"?e:""+e).replace(Cb,`
39
- `).replace(wb,"")}function vi(e,t,n){if(t=Cm(t),Cm(e)!==t&&n)throw Error(K(425))}function hi(){}var gc=null,yc=null;function Dc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Cc=typeof setTimeout=="function"?setTimeout:void 0,Eb=typeof clearTimeout=="function"?clearTimeout:void 0,wm=typeof Promise=="function"?Promise:void 0,Bb=typeof queueMicrotask=="function"?queueMicrotask:typeof wm<"u"?function(e){return wm.resolve(null).then(e).catch(Ab)}:Cc;function Ab(e){setTimeout(function(){throw e})}function wc(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Du(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Du(t)}function Wn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Em(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var co=Math.random().toString(36).slice(2),rn="__reactFiber$"+co,_u="__reactProps$"+co,Dn="__reactContainer$"+co,Ec="__reactEvents$"+co,bb="__reactListeners$"+co,Fb="__reactHandles$"+co;function yr(e){var t=e[rn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Dn]||n[rn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Em(e);e!==null;){if(n=e[rn])return n;e=Em(e)}return t}e=n,n=e.parentNode}return null}function ku(e){return e=e[rn]||e[Dn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function fo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(K(33))}function mi(e){return e[_u]||null}var Bc=[],po=-1;function Un(e){return{current:e}}function Ce(e){0>po||(e.current=Bc[po],Bc[po]=null,po--)}function ye(e,t){po++,Bc[po]=e.current,e.current=t}var Hn={},Ye=Un(Hn),ct=Un(!1),Dr=Hn;function vo(e,t){var n=e.type.contextTypes;if(!n)return Hn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},u;for(u in n)o[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ft(e){return e=e.childContextTypes,e!=null}function gi(){Ce(ct),Ce(Ye)}function Bm(e,t,n){if(Ye.current!==Hn)throw Error(K(168));ye(Ye,t),ye(ct,n)}function Am(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(K(108,c2(e)||"Unknown",o));return be({},n,r)}function yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Hn,Dr=Ye.current,ye(Ye,e),ye(ct,ct.current),!0}function bm(e,t,n){var r=e.stateNode;if(!r)throw Error(K(169));n?(e=Am(e,t,Dr),r.__reactInternalMemoizedMergedChildContext=e,Ce(ct),Ce(Ye),ye(Ye,e)):Ce(ct),ye(ct,n)}var Cn=null,Di=!1,Ac=!1;function Fm(e){Cn===null?Cn=[e]:Cn.push(e)}function xb(e){Di=!0,Fm(e)}function Kn(){if(!Ac&&Cn!==null){Ac=!0;var e=0,t=pe;try{var n=Cn;for(pe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Cn=null,Di=!1}catch(o){throw Cn!==null&&(Cn=Cn.slice(e+1)),Sh(Kl,Kn),o}finally{pe=t,Ac=!1}}return null}var ho=[],mo=0,Ci=null,wi=0,Pt=[],Tt=0,Cr=null,wn=1,En="";function wr(e,t){ho[mo++]=wi,ho[mo++]=Ci,Ci=e,wi=t}function xm(e,t,n){Pt[Tt++]=wn,Pt[Tt++]=En,Pt[Tt++]=Cr,Cr=e;var r=wn;e=En;var o=32-Ut(r)-1;r&=~(1<<o),n+=1;var u=32-Ut(t)+o;if(30<u){var a=o-o%5;u=(r&(1<<a)-1).toString(32),r>>=a,o-=a,wn=1<<32-Ut(t)+o|n<<o|r,En=u+e}else wn=1<<u|n<<o|r,En=e}function bc(e){e.return!==null&&(wr(e,1),xm(e,1,0))}function Fc(e){for(;e===Ci;)Ci=ho[--mo],ho[mo]=null,wi=ho[--mo],ho[mo]=null;for(;e===Cr;)Cr=Pt[--Tt],Pt[Tt]=null,En=Pt[--Tt],Pt[Tt]=null,wn=Pt[--Tt],Pt[Tt]=null}var At=null,bt=null,Ee=!1,Kt=null;function Sm(e,t){var n=It(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Om(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,At=e,bt=Wn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,At=e,bt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Cr!==null?{id:wn,overflow:En}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=It(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,At=e,bt=null,!0):!1;default:return!1}}function xc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Sc(e){if(Ee){var t=bt;if(t){var n=t;if(!Om(e,t)){if(xc(e))throw Error(K(418));t=Wn(n.nextSibling);var r=At;t&&Om(e,t)?Sm(r,n):(e.flags=e.flags&-4097|2,Ee=!1,At=e)}}else{if(xc(e))throw Error(K(418));e.flags=e.flags&-4097|2,Ee=!1,At=e}}}function _m(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;At=e}function Ei(e){if(e!==At)return!1;if(!Ee)return _m(e),Ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Dc(e.type,e.memoizedProps)),t&&(t=bt)){if(xc(e))throw km(),Error(K(418));for(;t;)Sm(e,t),t=Wn(t.nextSibling)}if(_m(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){bt=Wn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}bt=null}}else bt=At?Wn(e.stateNode.nextSibling):null;return!0}function km(){for(var e=bt;e;)e=Wn(e.nextSibling)}function go(){bt=At=null,Ee=!1}function Oc(e){Kt===null?Kt=[e]:Kt.push(e)}var Sb=yn.ReactCurrentBatchConfig;function qt(e,t){if(e&&e.defaultProps){t=be({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Bi=Un(null),Ai=null,yo=null,_c=null;function kc(){_c=yo=Ai=null}function Pc(e){var t=Bi.current;Ce(Bi),e._currentValue=t}function Tc(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Do(e,t){Ai=e,_c=yo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(dt=!0),e.firstContext=null)}function Rt(e){var t=e._currentValue;if(_c!==e)if(e={context:e,memoizedValue:t,next:null},yo===null){if(Ai===null)throw Error(K(308));yo=e,Ai.dependencies={lanes:0,firstContext:e}}else yo=yo.next=e;return t}var Er=null;function Rc(e){Er===null?Er=[e]:Er.push(e)}function Pm(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Rc(t)):(n.next=o.next,o.next=n),t.interleaved=n,Bn(e,r)}function Bn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var qn=!1;function Nc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Tm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function An(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Qn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,fe&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Bn(e,n)}return o=r.interleaved,o===null?(t.next=t,Rc(r)):(t.next=o.next,o.next=t),r.interleaved=t,Bn(e,n)}function bi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Yl(e,n)}}function Rm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?o=u=a:u=u.next=a,n=n.next}while(n!==null);u===null?o=u=t:u=u.next=t}else o=u=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fi(e,t,n,r){var o=e.updateQueue;qn=!1;var u=o.firstBaseUpdate,a=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var s=i,l=s.next;s.next=null,a===null?u=l:a.next=l,a=s;var c=e.alternate;c!==null&&(c=c.updateQueue,i=c.lastBaseUpdate,i!==a&&(i===null?c.firstBaseUpdate=l:i.next=l,c.lastBaseUpdate=s))}if(u!==null){var d=o.baseState;a=0,c=l=s=null,i=u;do{var p=i.lane,y=i.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:y,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var m=e,f=i;switch(p=t,y=n,f.tag){case 1:if(m=f.payload,typeof m=="function"){d=m.call(y,d,p);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=f.payload,p=typeof m=="function"?m.call(y,d,p):m,p==null)break e;d=be({},d,p);break e;case 2:qn=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[i]:p.push(i))}else y={eventTime:y,lane:p,tag:i.tag,payload:i.payload,callback:i.callback,next:null},c===null?(l=c=y,s=d):c=c.next=y,a|=p;if(i=i.next,i===null){if(i=o.shared.pending,i===null)break;p=i,i=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(c===null&&(s=d),o.baseState=s,o.firstBaseUpdate=l,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else u===null&&(o.shared.lanes=0);br|=a,e.lanes=a,e.memoizedState=d}}function Nm(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(K(191,o));o.call(r)}}}var jm=new Zv.Component().refs;function jc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:be({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var xi={isMounted:function(e){return(e=e._reactInternals)?gr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ut(),o=Zn(e),u=An(r,o);u.payload=t,n!=null&&(u.callback=n),t=Qn(e,u,o),t!==null&&(Gt(t,e,o,r),bi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ut(),o=Zn(e),u=An(r,o);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Qn(e,u,o),t!==null&&(Gt(t,e,o,r),bi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ut(),r=Zn(e),o=An(n,r);o.tag=2,t!=null&&(o.callback=t),t=Qn(e,o,r),t!==null&&(Gt(t,e,r,n),bi(t,e,r))}};function Im(e,t,n,r,o,u,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,u,a):t.prototype&&t.prototype.isPureReactComponent?!bu(n,r)||!bu(o,u):!0}function Mm(e,t,n){var r=!1,o=Hn,u=t.contextType;return typeof u=="object"&&u!==null?u=Rt(u):(o=ft(t)?Dr:Ye.current,r=t.contextTypes,u=(r=r!=null)?vo(e,o):Hn),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=xi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=u),t}function $m(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&xi.enqueueReplaceState(t,t.state,null)}function Ic(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=jm,Nc(e);var u=t.contextType;typeof u=="object"&&u!==null?o.context=Rt(u):(u=ft(t)?Dr:Ye.current,o.context=vo(e,u)),o.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(jc(e,t,u,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&xi.enqueueReplaceState(o,o.state,null),Fi(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Pu(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(K(309));var r=n.stateNode}if(!r)throw Error(K(147,e));var o=r,u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(a){var i=o.refs;i===jm&&(i=o.refs={}),a===null?delete i[u]:i[u]=a},t._stringRef=u,t)}if(typeof e!="string")throw Error(K(284));if(!n._owner)throw Error(K(290,e))}return e}function Si(e,t){throw e=Object.prototype.toString.call(t),Error(K(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Lm(e){var t=e._init;return t(e._payload)}function zm(e){function t(h,g){if(e){var C=h.deletions;C===null?(h.deletions=[g],h.flags|=16):C.push(g)}}function n(h,g){if(!e)return null;for(;g!==null;)t(h,g),g=g.sibling;return null}function r(h,g){for(h=new Map;g!==null;)g.key!==null?h.set(g.key,g):h.set(g.index,g),g=g.sibling;return h}function o(h,g){return h=er(h,g),h.index=0,h.sibling=null,h}function u(h,g,C){return h.index=C,e?(C=h.alternate,C!==null?(C=C.index,C<g?(h.flags|=2,g):C):(h.flags|=2,g)):(h.flags|=1048576,g)}function a(h){return e&&h.alternate===null&&(h.flags|=2),h}function i(h,g,C,E){return g===null||g.tag!==6?(g=wf(C,h.mode,E),g.return=h,g):(g=o(g,C),g.return=h,g)}function s(h,g,C,E){var B=C.type;return B===eo?c(h,g,C.props.children,E,C.key):g!==null&&(g.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===Nn&&Lm(B)===g.type)?(E=o(g,C.props),E.ref=Pu(h,g,C),E.return=h,E):(E=qi(C.type,C.key,C.props,null,h.mode,E),E.ref=Pu(h,g,C),E.return=h,E)}function l(h,g,C,E){return g===null||g.tag!==4||g.stateNode.containerInfo!==C.containerInfo||g.stateNode.implementation!==C.implementation?(g=Ef(C,h.mode,E),g.return=h,g):(g=o(g,C.children||[]),g.return=h,g)}function c(h,g,C,E,B){return g===null||g.tag!==7?(g=Or(C,h.mode,E,B),g.return=h,g):(g=o(g,C),g.return=h,g)}function d(h,g,C){if(typeof g=="string"&&g!==""||typeof g=="number")return g=wf(""+g,h.mode,C),g.return=h,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Ua:return C=qi(g.type,g.key,g.props,null,h.mode,C),C.ref=Pu(h,null,g),C.return=h,C;case Jr:return g=Ef(g,h.mode,C),g.return=h,g;case Nn:var E=g._init;return d(h,E(g._payload),C)}if(iu(g)||uu(g))return g=Or(g,h.mode,C,null),g.return=h,g;Si(h,g)}return null}function p(h,g,C,E){var B=g!==null?g.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return B!==null?null:i(h,g,""+C,E);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Ua:return C.key===B?s(h,g,C,E):null;case Jr:return C.key===B?l(h,g,C,E):null;case Nn:return B=C._init,p(h,g,B(C._payload),E)}if(iu(C)||uu(C))return B!==null?null:c(h,g,C,E,null);Si(h,C)}return null}function y(h,g,C,E,B){if(typeof E=="string"&&E!==""||typeof E=="number")return h=h.get(C)||null,i(g,h,""+E,B);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Ua:return h=h.get(E.key===null?C:E.key)||null,s(g,h,E,B);case Jr:return h=h.get(E.key===null?C:E.key)||null,l(g,h,E,B);case Nn:var F=E._init;return y(h,g,C,F(E._payload),B)}if(iu(E)||uu(E))return h=h.get(C)||null,c(g,h,E,B,null);Si(g,E)}return null}function m(h,g,C,E){for(var B=null,F=null,A=g,S=g=0,P=null;A!==null&&S<C.length;S++){A.index>S?(P=A,A=null):P=A.sibling;var O=p(h,A,C[S],E);if(O===null){A===null&&(A=P);break}e&&A&&O.alternate===null&&t(h,A),g=u(O,g,S),F===null?B=O:F.sibling=O,F=O,A=P}if(S===C.length)return n(h,A),Ee&&wr(h,S),B;if(A===null){for(;S<C.length;S++)A=d(h,C[S],E),A!==null&&(g=u(A,g,S),F===null?B=A:F.sibling=A,F=A);return Ee&&wr(h,S),B}for(A=r(h,A);S<C.length;S++)P=y(A,h,S,C[S],E),P!==null&&(e&&P.alternate!==null&&A.delete(P.key===null?S:P.key),g=u(P,g,S),F===null?B=P:F.sibling=P,F=P);return e&&A.forEach(function(H){return t(h,H)}),Ee&&wr(h,S),B}function f(h,g,C,E){var B=uu(C);if(typeof B!="function")throw Error(K(150));if(C=B.call(C),C==null)throw Error(K(151));for(var F=B=null,A=g,S=g=0,P=null,O=C.next();A!==null&&!O.done;S++,O=C.next()){A.index>S?(P=A,A=null):P=A.sibling;var H=p(h,A,O.value,E);if(H===null){A===null&&(A=P);break}e&&A&&H.alternate===null&&t(h,A),g=u(H,g,S),F===null?B=H:F.sibling=H,F=H,A=P}if(O.done)return n(h,A),Ee&&wr(h,S),B;if(A===null){for(;!O.done;S++,O=C.next())O=d(h,O.value,E),O!==null&&(g=u(O,g,S),F===null?B=O:F.sibling=O,F=O);return Ee&&wr(h,S),B}for(A=r(h,A);!O.done;S++,O=C.next())O=y(A,h,S,O.value,E),O!==null&&(e&&O.alternate!==null&&A.delete(O.key===null?S:O.key),g=u(O,g,S),F===null?B=O:F.sibling=O,F=O);return e&&A.forEach(function(k){return t(h,k)}),Ee&&wr(h,S),B}function w(h,g,C,E){if(typeof C=="object"&&C!==null&&C.type===eo&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Ua:e:{for(var B=C.key,F=g;F!==null;){if(F.key===B){if(B=C.type,B===eo){if(F.tag===7){n(h,F.sibling),g=o(F,C.props.children),g.return=h,h=g;break e}}else if(F.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===Nn&&Lm(B)===F.type){n(h,F.sibling),g=o(F,C.props),g.ref=Pu(h,F,C),g.return=h,h=g;break e}n(h,F);break}else t(h,F);F=F.sibling}C.type===eo?(g=Or(C.props.children,h.mode,E,C.key),g.return=h,h=g):(E=qi(C.type,C.key,C.props,null,h.mode,E),E.ref=Pu(h,g,C),E.return=h,h=E)}return a(h);case Jr:e:{for(F=C.key;g!==null;){if(g.key===F)if(g.tag===4&&g.stateNode.containerInfo===C.containerInfo&&g.stateNode.implementation===C.implementation){n(h,g.sibling),g=o(g,C.children||[]),g.return=h,h=g;break e}else{n(h,g);break}else t(h,g);g=g.sibling}g=Ef(C,h.mode,E),g.return=h,h=g}return a(h);case Nn:return F=C._init,w(h,g,F(C._payload),E)}if(iu(C))return m(h,g,C,E);if(uu(C))return f(h,g,C,E);Si(h,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,g!==null&&g.tag===6?(n(h,g.sibling),g=o(g,C),g.return=h,h=g):(n(h,g),g=wf(C,h.mode,E),g.return=h,h=g),a(h)):n(h,g)}return w}var Co=zm(!0),Vm=zm(!1),Tu={},on=Un(Tu),Ru=Un(Tu),Nu=Un(Tu);function Br(e){if(e===Tu)throw Error(K(174));return e}function Mc(e,t){switch(ye(Nu,t),ye(Ru,e),ye(on,Tu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Il(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Il(t,e)}Ce(on),ye(on,t)}function wo(){Ce(on),Ce(Ru),Ce(Nu)}function Wm(e){Br(Nu.current);var t=Br(on.current),n=Il(t,e.type);t!==n&&(ye(Ru,e),ye(on,n))}function $c(e){Ru.current===e&&(Ce(on),Ce(Ru))}var Fe=Un(0);function Oi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Lc=[];function zc(){for(var e=0;e<Lc.length;e++)Lc[e]._workInProgressVersionPrimary=null;Lc.length=0}var _i=yn.ReactCurrentDispatcher,Vc=yn.ReactCurrentBatchConfig,Ar=0,xe=null,Me=null,Ve=null,ki=!1,ju=!1,Iu=0,Ob=0;function Ge(){throw Error(K(321))}function Wc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ht(e[n],t[n]))return!1;return!0}function Uc(e,t,n,r,o,u){if(Ar=u,xe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_i.current=e===null||e.memoizedState===null?Tb:Rb,e=n(r,o),ju){u=0;do{if(ju=!1,Iu=0,25<=u)throw Error(K(301));u+=1,Ve=Me=null,t.updateQueue=null,_i.current=Nb,e=n(r,o)}while(ju)}if(_i.current=Ri,t=Me!==null&&Me.next!==null,Ar=0,Ve=Me=xe=null,ki=!1,t)throw Error(K(300));return e}function Hc(){var e=Iu!==0;return Iu=0,e}function un(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ve===null?xe.memoizedState=Ve=e:Ve=Ve.next=e,Ve}function Nt(){if(Me===null){var e=xe.alternate;e=e!==null?e.memoizedState:null}else e=Me.next;var t=Ve===null?xe.memoizedState:Ve.next;if(t!==null)Ve=t,Me=e;else{if(e===null)throw Error(K(310));Me=e,e={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},Ve===null?xe.memoizedState=Ve=e:Ve=Ve.next=e}return Ve}function Mu(e,t){return typeof t=="function"?t(e):t}function Kc(e){var t=Nt(),n=t.queue;if(n===null)throw Error(K(311));n.lastRenderedReducer=e;var r=Me,o=r.baseQueue,u=n.pending;if(u!==null){if(o!==null){var a=o.next;o.next=u.next,u.next=a}r.baseQueue=o=u,n.pending=null}if(o!==null){u=o.next,r=r.baseState;var i=a=null,s=null,l=u;do{var c=l.lane;if((Ar&c)===c)s!==null&&(s=s.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),r=l.hasEagerState?l.eagerState:e(r,l.action);else{var d={lane:c,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};s===null?(i=s=d,a=r):s=s.next=d,xe.lanes|=c,br|=c}l=l.next}while(l!==null&&l!==u);s===null?a=r:s.next=i,Ht(r,t.memoizedState)||(dt=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do u=o.lane,xe.lanes|=u,br|=u,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function qc(e){var t=Nt(),n=t.queue;if(n===null)throw Error(K(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,u=t.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do u=e(u,a.action),a=a.next;while(a!==o);Ht(u,t.memoizedState)||(dt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,r]}function Um(){}function Hm(e,t){var n=xe,r=Nt(),o=t(),u=!Ht(r.memoizedState,o);if(u&&(r.memoizedState=o,dt=!0),r=r.queue,Qc(Qm.bind(null,n,r,e),[e]),r.getSnapshot!==t||u||Ve!==null&&Ve.memoizedState.tag&1){if(n.flags|=2048,$u(9,qm.bind(null,n,r,o,t),void 0,null),We===null)throw Error(K(349));Ar&30||Km(n,t,o)}return o}function Km(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=xe.updateQueue,t===null?(t={lastEffect:null,stores:null},xe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function qm(e,t,n,r){t.value=n,t.getSnapshot=r,Ym(t)&&Gm(e)}function Qm(e,t,n){return n(function(){Ym(t)&&Gm(e)})}function Ym(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ht(e,n)}catch{return!0}}function Gm(e){var t=Bn(e,1);t!==null&&Gt(t,e,1,-1)}function Xm(e){var t=un();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Mu,lastRenderedState:e},t.queue=e,e=e.dispatch=Pb.bind(null,xe,e),[t.memoizedState,e]}function $u(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=xe.updateQueue,t===null?(t={lastEffect:null,stores:null},xe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Zm(){return Nt().memoizedState}function Pi(e,t,n,r){var o=un();xe.flags|=e,o.memoizedState=$u(1|t,n,void 0,r===void 0?null:r)}function Ti(e,t,n,r){var o=Nt();r=r===void 0?null:r;var u=void 0;if(Me!==null){var a=Me.memoizedState;if(u=a.destroy,r!==null&&Wc(r,a.deps)){o.memoizedState=$u(t,n,u,r);return}}xe.flags|=e,o.memoizedState=$u(1|t,n,u,r)}function Jm(e,t){return Pi(8390656,8,e,t)}function Qc(e,t){return Ti(2048,8,e,t)}function eg(e,t){return Ti(4,2,e,t)}function tg(e,t){return Ti(4,4,e,t)}function ng(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function rg(e,t,n){return n=n!=null?n.concat([e]):null,Ti(4,4,ng.bind(null,t,e),n)}function Yc(){}function og(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Wc(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ug(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Wc(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ag(e,t,n){return Ar&21?(Ht(n,t)||(n=Ph(),xe.lanes|=n,br|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,dt=!0),e.memoizedState=n)}function _b(e,t){var n=pe;pe=n!==0&&4>n?n:4,e(!0);var r=Vc.transition;Vc.transition={};try{e(!1),t()}finally{pe=n,Vc.transition=r}}function ig(){return Nt().memoizedState}function kb(e,t,n){var r=Zn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},sg(e))lg(t,n);else if(n=Pm(e,t,n,r),n!==null){var o=ut();Gt(n,e,r,o),cg(n,t,r)}}function Pb(e,t,n){var r=Zn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(sg(e))lg(t,o);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var a=t.lastRenderedState,i=u(a,n);if(o.hasEagerState=!0,o.eagerState=i,Ht(i,a)){var s=t.interleaved;s===null?(o.next=o,Rc(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=Pm(e,t,o,r),n!==null&&(o=ut(),Gt(n,e,r,o),cg(n,t,r))}}function sg(e){var t=e.alternate;return e===xe||t!==null&&t===xe}function lg(e,t){ju=ki=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Yl(e,n)}}var Ri={readContext:Rt,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useInsertionEffect:Ge,useLayoutEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useMutableSource:Ge,useSyncExternalStore:Ge,useId:Ge,unstable_isNewReconciler:!1},Tb={readContext:Rt,useCallback:function(e,t){return un().memoizedState=[e,t===void 0?null:t],e},useContext:Rt,useEffect:Jm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Pi(4194308,4,ng.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Pi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Pi(4,2,e,t)},useMemo:function(e,t){var n=un();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=un();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=kb.bind(null,xe,e),[r.memoizedState,e]},useRef:function(e){var t=un();return e={current:e},t.memoizedState=e},useState:Xm,useDebugValue:Yc,useDeferredValue:function(e){return un().memoizedState=e},useTransition:function(){var e=Xm(!1),t=e[0];return e=_b.bind(null,e[1]),un().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=xe,o=un();if(Ee){if(n===void 0)throw Error(K(407));n=n()}else{if(n=t(),We===null)throw Error(K(349));Ar&30||Km(r,t,n)}o.memoizedState=n;var u={value:n,getSnapshot:t};return o.queue=u,Jm(Qm.bind(null,r,u,e),[e]),r.flags|=2048,$u(9,qm.bind(null,r,u,n,t),void 0,null),n},useId:function(){var e=un(),t=We.identifierPrefix;if(Ee){var n=En,r=wn;n=(r&~(1<<32-Ut(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Iu++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Ob++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Rb={readContext:Rt,useCallback:og,useContext:Rt,useEffect:Qc,useImperativeHandle:rg,useInsertionEffect:eg,useLayoutEffect:tg,useMemo:ug,useReducer:Kc,useRef:Zm,useState:function(){return Kc(Mu)},useDebugValue:Yc,useDeferredValue:function(e){var t=Nt();return ag(t,Me.memoizedState,e)},useTransition:function(){var e=Kc(Mu)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:Um,useSyncExternalStore:Hm,useId:ig,unstable_isNewReconciler:!1},Nb={readContext:Rt,useCallback:og,useContext:Rt,useEffect:Qc,useImperativeHandle:rg,useInsertionEffect:eg,useLayoutEffect:tg,useMemo:ug,useReducer:qc,useRef:Zm,useState:function(){return qc(Mu)},useDebugValue:Yc,useDeferredValue:function(e){var t=Nt();return Me===null?t.memoizedState=e:ag(t,Me.memoizedState,e)},useTransition:function(){var e=qc(Mu)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:Um,useSyncExternalStore:Hm,useId:ig,unstable_isNewReconciler:!1};function Eo(e,t){try{var n="",r=t;do n+=l2(r),r=r.return;while(r);var o=n}catch(u){o=`
38
+ `+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=a&&0<=i);break}}}finally{Gl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?du(e):""}function Lx(e){switch(e.tag){case 5:return du(e.type);case 16:return du("Lazy");case 13:return du("Suspense");case 19:return du("SuspenseList");case 0:case 2:case 15:return e=Xl(e.type,!1),e;case 11:return e=Xl(e.type.render,!1),e;case 1:return e=Xl(e.type,!0),e;default:return""}}function Zl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case oo:return"Fragment";case ro:return"Portal";case Ul:return"Profiler";case Wl:return"StrictMode";case Kl:return"Suspense";case ql:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $h:return(e.displayName||"Context")+".Consumer";case Mh:return(e._context.displayName||"Context")+".Provider";case Hl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Yl:return t=e.displayName||null,t!==null?t:Zl(e.type)||"Memo";case jn:t=e._payload,e=e._init;try{return Zl(e(t))}catch{}}return null}function zx(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Zl(t);case 8:return t===Wl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function In(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Vx(e){var t=Vh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,u.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ri(e){e._valueTracker||(e._valueTracker=Vx(e))}function Wh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Vh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function oi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Jl(e,t){var n=t.checked;return Ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Uh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=In(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Hh(e,t){t=t.checked,t!=null&&Vl(e,"checked",t,!1)}function ec(e,t){Hh(e,t);var n=In(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?tc(e,t.type,n):t.hasOwnProperty("defaultValue")&&tc(e,t.type,In(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Kh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function tc(e,t,n){(t!=="number"||oi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var pu=Array.isArray;function uo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+In(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function nc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(K(91));return Ae({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function qh(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(K(92));if(pu(n)){if(1<n.length)throw Error(K(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:In(n)}}function Yh(e,t){var n=In(t.value),r=In(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Qh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Gh(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function rc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Gh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ui,Xh=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ui=ui||document.createElement("div"),ui.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ui.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function vu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hu={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Wx=["Webkit","ms","Moz","O"];Object.keys(hu).forEach(function(e){Wx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hu[t]=hu[e]})});function Zh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||hu.hasOwnProperty(e)&&hu[e]?(""+t).trim():t+"px"}function Jh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Zh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Ux=Ae({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function oc(e,t){if(t){if(Ux[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(K(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(K(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(K(61))}if(t.style!=null&&typeof t.style!="object")throw Error(K(62))}}function uc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ac=null;function ic(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sc=null,ao=null,io=null;function em(e){if(e=Iu(e)){if(typeof sc!="function")throw Error(K(280));var t=e.stateNode;t&&(t=Si(t),sc(e.stateNode,e.type,t))}}function tm(e){ao?io?io.push(e):io=[e]:ao=e}function nm(){if(ao){var e=ao,t=io;if(io=ao=null,em(e),t)for(e=0;e<t.length;e++)em(t[e])}}function rm(e,t){return e(t)}function om(){}var lc=!1;function um(e,t,n){if(lc)return e(t,n);lc=!0;try{return rm(e,t,n)}finally{lc=!1,(ao!==null||io!==null)&&(om(),nm())}}function mu(e,t){var n=e.stateNode;if(n===null)return null;var r=Si(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(K(231,t,typeof n));return n}var cc=!1;if(gn)try{var gu={};Object.defineProperty(gu,"passive",{get:function(){cc=!0}}),window.addEventListener("test",gu,gu),window.removeEventListener("test",gu,gu)}catch{cc=!1}function Hx(e,t,n,r,o,u,a,i,s){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(c){this.onError(c)}}var yu=!1,ai=null,ii=!1,fc=null,Kx={onError:function(e){yu=!0,ai=e}};function qx(e,t,n,r,o,u,a,i,s){yu=!1,ai=null,Hx.apply(Kx,arguments)}function Yx(e,t,n,r,o,u,a,i,s){if(qx.apply(this,arguments),yu){if(yu){var l=ai;yu=!1,ai=null}else throw Error(K(198));ii||(ii=!0,fc=l)}}function Cr(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 am(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 im(e){if(Cr(e)!==e)throw Error(K(188))}function Qx(e){var t=e.alternate;if(!t){if(t=Cr(e),t===null)throw Error(K(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var u=o.alternate;if(u===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===n)return im(o),e;if(u===r)return im(o),t;u=u.sibling}throw Error(K(188))}if(n.return!==r.return)n=o,r=u;else{for(var a=!1,i=o.child;i;){if(i===n){a=!0,n=o,r=u;break}if(i===r){a=!0,r=o,n=u;break}i=i.sibling}if(!a){for(i=u.child;i;){if(i===n){a=!0,n=u,r=o;break}if(i===r){a=!0,r=u,n=o;break}i=i.sibling}if(!a)throw Error(K(189))}}if(n.alternate!==r)throw Error(K(190))}if(n.tag!==3)throw Error(K(188));return n.stateNode.current===n?e:t}function sm(e){return e=Qx(e),e!==null?lm(e):null}function lm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=lm(e);if(t!==null)return t;e=e.sibling}return null}var cm=Et.unstable_scheduleCallback,fm=Et.unstable_cancelCallback,Gx=Et.unstable_shouldYield,Xx=Et.unstable_requestPaint,Pe=Et.unstable_now,Zx=Et.unstable_getCurrentPriorityLevel,dc=Et.unstable_ImmediatePriority,dm=Et.unstable_UserBlockingPriority,si=Et.unstable_NormalPriority,Jx=Et.unstable_LowPriority,pm=Et.unstable_IdlePriority,li=null,rn=null;function eF(e){if(rn&&typeof rn.onCommitFiberRoot=="function")try{rn.onCommitFiberRoot(li,e,void 0,(e.current.flags&128)===128)}catch{}}var Ht=Math.clz32?Math.clz32:rF,tF=Math.log,nF=Math.LN2;function rF(e){return e>>>=0,e===0?32:31-(tF(e)/nF|0)|0}var ci=64,fi=4194304;function Du(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function di(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,u=e.pingedLanes,a=n&268435455;if(a!==0){var i=a&~o;i!==0?r=Du(i):(u&=a,u!==0&&(r=Du(u)))}else a=n&~o,a!==0?r=Du(a):u!==0&&(r=Du(u));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,u=t&-t,o>=u||o===16&&(u&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ht(t),o=1<<n,r|=e[n],t&=~o;return r}function oF(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function uF(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes;0<u;){var a=31-Ht(u),i=1<<a,s=o[a];s===-1?(!(i&n)||i&r)&&(o[a]=oF(i,t)):s<=t&&(e.expiredLanes|=i),u&=~i}}function pc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function vm(){var e=ci;return ci<<=1,!(ci&4194240)&&(ci=64),e}function vc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Cu(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ht(t),e[t]=n}function aF(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Ht(n),u=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~u}}function hc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ht(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var pe=0;function hm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var mm,mc,gm,ym,Dm,gc=!1,pi=[],Mn=null,$n=null,Ln=null,wu=new Map,Eu=new Map,zn=[],iF="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Cm(e,t){switch(e){case"focusin":case"focusout":Mn=null;break;case"dragenter":case"dragleave":$n=null;break;case"mouseover":case"mouseout":Ln=null;break;case"pointerover":case"pointerout":wu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Eu.delete(t.pointerId)}}function Bu(e,t,n,r,o,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:u,targetContainers:[o]},t!==null&&(t=Iu(t),t!==null&&mc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function sF(e,t,n,r,o){switch(t){case"focusin":return Mn=Bu(Mn,e,t,n,r,o),!0;case"dragenter":return $n=Bu($n,e,t,n,r,o),!0;case"mouseover":return Ln=Bu(Ln,e,t,n,r,o),!0;case"pointerover":var u=o.pointerId;return wu.set(u,Bu(wu.get(u)||null,e,t,n,r,o)),!0;case"gotpointercapture":return u=o.pointerId,Eu.set(u,Bu(Eu.get(u)||null,e,t,n,r,o)),!0}return!1}function wm(e){var t=wr(e.target);if(t!==null){var n=Cr(t);if(n!==null){if(t=n.tag,t===13){if(t=am(n),t!==null){e.blockedOn=t,Dm(e.priority,function(){gm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Dc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ac=r,n.target.dispatchEvent(r),ac=null}else return t=Iu(n),t!==null&&mc(t),e.blockedOn=n,!1;t.shift()}return!0}function Em(e,t,n){vi(e)&&n.delete(t)}function lF(){gc=!1,Mn!==null&&vi(Mn)&&(Mn=null),$n!==null&&vi($n)&&($n=null),Ln!==null&&vi(Ln)&&(Ln=null),wu.forEach(Em),Eu.forEach(Em)}function bu(e,t){e.blockedOn===t&&(e.blockedOn=null,gc||(gc=!0,Et.unstable_scheduleCallback(Et.unstable_NormalPriority,lF)))}function Au(e){function t(o){return bu(o,e)}if(0<pi.length){bu(pi[0],e);for(var n=1;n<pi.length;n++){var r=pi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Mn!==null&&bu(Mn,e),$n!==null&&bu($n,e),Ln!==null&&bu(Ln,e),wu.forEach(t),Eu.forEach(t),n=0;n<zn.length;n++)r=zn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<zn.length&&(n=zn[0],n.blockedOn===null);)wm(n),n.blockedOn===null&&zn.shift()}var so=yn.ReactCurrentBatchConfig,hi=!0;function cF(e,t,n,r){var o=pe,u=so.transition;so.transition=null;try{pe=1,yc(e,t,n,r)}finally{pe=o,so.transition=u}}function fF(e,t,n,r){var o=pe,u=so.transition;so.transition=null;try{pe=4,yc(e,t,n,r)}finally{pe=o,so.transition=u}}function yc(e,t,n,r){if(hi){var o=Dc(e,t,n,r);if(o===null)jc(e,t,r,mi,n),Cm(e,r);else if(sF(o,e,t,n,r))r.stopPropagation();else if(Cm(e,r),t&4&&-1<iF.indexOf(e)){for(;o!==null;){var u=Iu(o);if(u!==null&&mm(u),u=Dc(e,t,n,r),u===null&&jc(e,t,r,mi,n),u===o)break;o=u}o!==null&&r.stopPropagation()}else jc(e,t,r,null,n)}}var mi=null;function Dc(e,t,n,r){if(mi=null,e=ic(r),e=wr(e),e!==null)if(t=Cr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=am(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 mi=e,null}function Bm(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Zx()){case dc:return 1;case dm:return 4;case si:case Jx:return 16;case pm:return 536870912;default:return 16}default:return 16}}var Vn=null,Cc=null,gi=null;function bm(){if(gi)return gi;var e,t=Cc,n=t.length,r,o="value"in Vn?Vn.value:Vn.textContent,u=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===o[u-r];r++);return gi=o.slice(e,1<r?1-r:void 0)}function yi(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 Di(){return!0}function Am(){return!1}function Bt(e){function t(n,r,o,u,a){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=u,this.target=a,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(n=e[i],this[i]=n?n(u):u[i]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Di:Am,this.isPropagationStopped=Am,this}return Ae(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=Di)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Di)},persist:function(){},isPersistent:Di}),t}var lo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wc=Bt(lo),xu=Ae({},lo,{view:0,detail:0}),dF=Bt(xu),Ec,Bc,Fu,Ci=Ae({},xu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ac,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!==Fu&&(Fu&&e.type==="mousemove"?(Ec=e.screenX-Fu.screenX,Bc=e.screenY-Fu.screenY):Bc=Ec=0,Fu=e),Ec)},movementY:function(e){return"movementY"in e?e.movementY:Bc}}),xm=Bt(Ci),pF=Ae({},Ci,{dataTransfer:0}),vF=Bt(pF),hF=Ae({},xu,{relatedTarget:0}),bc=Bt(hF),mF=Ae({},lo,{animationName:0,elapsedTime:0,pseudoElement:0}),gF=Bt(mF),yF=Ae({},lo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),DF=Bt(yF),CF=Ae({},lo,{data:0}),Fm=Bt(CF),wF={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},EF={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"},BF={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bF(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=BF[e])?!!t[e]:!1}function Ac(){return bF}var AF=Ae({},xu,{key:function(e){if(e.key){var t=wF[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=yi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?EF[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ac,charCode:function(e){return e.type==="keypress"?yi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?yi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),xF=Bt(AF),FF=Ae({},Ci,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sm=Bt(FF),SF=Ae({},xu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ac}),OF=Bt(SF),_F=Ae({},lo,{propertyName:0,elapsedTime:0,pseudoElement:0}),kF=Bt(_F),PF=Ae({},Ci,{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}),TF=Bt(PF),RF=[9,13,27,32],xc=gn&&"CompositionEvent"in window,Su=null;gn&&"documentMode"in document&&(Su=document.documentMode);var NF=gn&&"TextEvent"in window&&!Su,Om=gn&&(!xc||Su&&8<Su&&11>=Su),_m=" ",km=!1;function Pm(e,t){switch(e){case"keyup":return RF.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var co=!1;function jF(e,t){switch(e){case"compositionend":return Tm(t);case"keypress":return t.which!==32?null:(km=!0,_m);case"textInput":return e=t.data,e===_m&&km?null:e;default:return null}}function IF(e,t){if(co)return e==="compositionend"||!xc&&Pm(e,t)?(e=bm(),gi=Cc=Vn=null,co=!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 Om&&t.locale!=="ko"?null:t.data;default:return null}}var MF={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 Rm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!MF[e.type]:t==="textarea"}function Nm(e,t,n,r){tm(r),t=Ai(t,"onChange"),0<t.length&&(n=new wc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ou=null,_u=null;function $F(e){Jm(e,0)}function wi(e){var t=mo(e);if(Wh(t))return e}function LF(e,t){if(e==="change")return t}var jm=!1;if(gn){var Fc;if(gn){var Sc="oninput"in document;if(!Sc){var Im=document.createElement("div");Im.setAttribute("oninput","return;"),Sc=typeof Im.oninput=="function"}Fc=Sc}else Fc=!1;jm=Fc&&(!document.documentMode||9<document.documentMode)}function Mm(){Ou&&(Ou.detachEvent("onpropertychange",$m),_u=Ou=null)}function $m(e){if(e.propertyName==="value"&&wi(_u)){var t=[];Nm(t,_u,e,ic(e)),um($F,t)}}function zF(e,t,n){e==="focusin"?(Mm(),Ou=t,_u=n,Ou.attachEvent("onpropertychange",$m)):e==="focusout"&&Mm()}function VF(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return wi(_u)}function WF(e,t){if(e==="click")return wi(t)}function UF(e,t){if(e==="input"||e==="change")return wi(t)}function HF(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kt=typeof Object.is=="function"?Object.is:HF;function ku(e,t){if(Kt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!$l.call(t,o)||!Kt(e[o],t[o]))return!1}return!0}function Lm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zm(e,t){var n=Lm(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Lm(n)}}function Vm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wm(){for(var e=window,t=oi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=oi(e.document)}return t}function Oc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function KF(e){var t=Wm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Vm(n.ownerDocument.documentElement,n)){if(r!==null&&Oc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,u=Math.min(r.start,o);r=r.end===void 0?u:Math.min(r.end,o),!e.extend&&u>r&&(o=r,r=u,u=o),o=zm(n,u);var a=zm(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),u>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var qF=gn&&"documentMode"in document&&11>=document.documentMode,fo=null,_c=null,Pu=null,kc=!1;function Um(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;kc||fo==null||fo!==oi(r)||(r=fo,"selectionStart"in r&&Oc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Pu&&ku(Pu,r)||(Pu=r,r=Ai(_c,"onSelect"),0<r.length&&(t=new wc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=fo)))}function Ei(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var po={animationend:Ei("Animation","AnimationEnd"),animationiteration:Ei("Animation","AnimationIteration"),animationstart:Ei("Animation","AnimationStart"),transitionend:Ei("Transition","TransitionEnd")},Pc={},Hm={};gn&&(Hm=document.createElement("div").style,"AnimationEvent"in window||(delete po.animationend.animation,delete po.animationiteration.animation,delete po.animationstart.animation),"TransitionEvent"in window||delete po.transitionend.transition);function Bi(e){if(Pc[e])return Pc[e];if(!po[e])return e;var t=po[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Hm)return Pc[e]=t[n];return e}var Km=Bi("animationend"),qm=Bi("animationiteration"),Ym=Bi("animationstart"),Qm=Bi("transitionend"),Gm=new Map,Xm="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Wn(e,t){Gm.set(e,t),Dr(t,[e])}for(var Tc=0;Tc<Xm.length;Tc++){var Rc=Xm[Tc],YF=Rc.toLowerCase(),QF=Rc[0].toUpperCase()+Rc.slice(1);Wn(YF,"on"+QF)}Wn(Km,"onAnimationEnd"),Wn(qm,"onAnimationIteration"),Wn(Ym,"onAnimationStart"),Wn("dblclick","onDoubleClick"),Wn("focusin","onFocus"),Wn("focusout","onBlur"),Wn(Qm,"onTransitionEnd"),no("onMouseEnter",["mouseout","mouseover"]),no("onMouseLeave",["mouseout","mouseover"]),no("onPointerEnter",["pointerout","pointerover"]),no("onPointerLeave",["pointerout","pointerover"]),Dr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Dr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Dr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Dr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Dr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Dr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tu="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(" "),GF=new Set("cancel close invalid load scroll toggle".split(" ").concat(Tu));function Zm(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Yx(r,t,void 0,e),e.currentTarget=null}function Jm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var u=void 0;if(t)for(var a=r.length-1;0<=a;a--){var i=r[a],s=i.instance,l=i.currentTarget;if(i=i.listener,s!==u&&o.isPropagationStopped())break e;Zm(o,i,l),u=s}else for(a=0;a<r.length;a++){if(i=r[a],s=i.instance,l=i.currentTarget,i=i.listener,s!==u&&o.isPropagationStopped())break e;Zm(o,i,l),u=s}}}if(ii)throw e=fc,ii=!1,fc=null,e}function De(e,t){var n=t[Vc];n===void 0&&(n=t[Vc]=new Set);var r=e+"__bubble";n.has(r)||(eg(t,e,2,!1),n.add(r))}function Nc(e,t,n){var r=0;t&&(r|=4),eg(n,e,r,t)}var bi="_reactListening"+Math.random().toString(36).slice(2);function Ru(e){if(!e[bi]){e[bi]=!0,Nh.forEach(function(n){n!=="selectionchange"&&(GF.has(n)||Nc(n,!1,e),Nc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bi]||(t[bi]=!0,Nc("selectionchange",!1,t))}}function eg(e,t,n,r){switch(Bm(t)){case 1:var o=cF;break;case 4:o=fF;break;default:o=yc}n=o.bind(null,t,n,e),o=void 0,!cc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function jc(e,t,n,r,o){var u=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var i=r.stateNode.containerInfo;if(i===o||i.nodeType===8&&i.parentNode===o)break;if(a===4)for(a=r.return;a!==null;){var s=a.tag;if((s===3||s===4)&&(s=a.stateNode.containerInfo,s===o||s.nodeType===8&&s.parentNode===o))return;a=a.return}for(;i!==null;){if(a=wr(i),a===null)return;if(s=a.tag,s===5||s===6){r=u=a;continue e}i=i.parentNode}}r=r.return}um(function(){var l=u,c=ic(n),d=[];e:{var p=Gm.get(e);if(p!==void 0){var y=wc,m=e;switch(e){case"keypress":if(yi(n)===0)break e;case"keydown":case"keyup":y=xF;break;case"focusin":m="focus",y=bc;break;case"focusout":m="blur",y=bc;break;case"beforeblur":case"afterblur":y=bc;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":y=xm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=vF;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=OF;break;case Km:case qm:case Ym:y=gF;break;case Qm:y=kF;break;case"scroll":y=dF;break;case"wheel":y=TF;break;case"copy":case"cut":case"paste":y=DF;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Sm}var f=(t&4)!==0,w=!f&&e==="scroll",h=f?p!==null?p+"Capture":null:p;f=[];for(var g=l,C;g!==null;){C=g;var E=C.stateNode;if(C.tag===5&&E!==null&&(C=E,h!==null&&(E=mu(g,h),E!=null&&f.push(Nu(g,E,C)))),w)break;g=g.return}0<f.length&&(p=new y(p,m,null,n,c),d.push({event:p,listeners:f}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",p&&n!==ac&&(m=n.relatedTarget||n.fromElement)&&(wr(m)||m[Dn]))break e;if((y||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,y?(m=n.relatedTarget||n.toElement,y=l,m=m?wr(m):null,m!==null&&(w=Cr(m),m!==w||m.tag!==5&&m.tag!==6)&&(m=null)):(y=null,m=l),y!==m)){if(f=xm,E="onMouseLeave",h="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(f=Sm,E="onPointerLeave",h="onPointerEnter",g="pointer"),w=y==null?p:mo(y),C=m==null?p:mo(m),p=new f(E,g+"leave",y,n,c),p.target=w,p.relatedTarget=C,E=null,wr(c)===l&&(f=new f(h,g+"enter",m,n,c),f.target=C,f.relatedTarget=w,E=f),w=E,y&&m)t:{for(f=y,h=m,g=0,C=f;C;C=vo(C))g++;for(C=0,E=h;E;E=vo(E))C++;for(;0<g-C;)f=vo(f),g--;for(;0<C-g;)h=vo(h),C--;for(;g--;){if(f===h||h!==null&&f===h.alternate)break t;f=vo(f),h=vo(h)}f=null}else f=null;y!==null&&tg(d,p,y,f,!1),m!==null&&w!==null&&tg(d,w,m,f,!0)}}e:{if(p=l?mo(l):window,y=p.nodeName&&p.nodeName.toLowerCase(),y==="select"||y==="input"&&p.type==="file")var B=LF;else if(Rm(p))if(jm)B=UF;else{B=VF;var x=zF}else(y=p.nodeName)&&y.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(B=WF);if(B&&(B=B(e,l))){Nm(d,B,n,c);break e}x&&x(e,p,l),e==="focusout"&&(x=p._wrapperState)&&x.controlled&&p.type==="number"&&tc(p,"number",p.value)}switch(x=l?mo(l):window,e){case"focusin":(Rm(x)||x.contentEditable==="true")&&(fo=x,_c=l,Pu=null);break;case"focusout":Pu=_c=fo=null;break;case"mousedown":kc=!0;break;case"contextmenu":case"mouseup":case"dragend":kc=!1,Um(d,n,c);break;case"selectionchange":if(qF)break;case"keydown":case"keyup":Um(d,n,c)}var b;if(xc)e:{switch(e){case"compositionstart":var S="onCompositionStart";break e;case"compositionend":S="onCompositionEnd";break e;case"compositionupdate":S="onCompositionUpdate";break e}S=void 0}else co?Pm(e,n)&&(S="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(S="onCompositionStart");S&&(Om&&n.locale!=="ko"&&(co||S!=="onCompositionStart"?S==="onCompositionEnd"&&co&&(b=bm()):(Vn=c,Cc="value"in Vn?Vn.value:Vn.textContent,co=!0)),x=Ai(l,S),0<x.length&&(S=new Fm(S,e,null,n,c),d.push({event:S,listeners:x}),b?S.data=b:(b=Tm(n),b!==null&&(S.data=b)))),(b=NF?jF(e,n):IF(e,n))&&(l=Ai(l,"onBeforeInput"),0<l.length&&(c=new Fm("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:l}),c.data=b))}Jm(d,t)})}function Nu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ai(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,u=o.stateNode;o.tag===5&&u!==null&&(o=u,u=mu(e,n),u!=null&&r.unshift(Nu(e,u,o)),u=mu(e,t),u!=null&&r.push(Nu(e,u,o))),e=e.return}return r}function vo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function tg(e,t,n,r,o){for(var u=t._reactName,a=[];n!==null&&n!==r;){var i=n,s=i.alternate,l=i.stateNode;if(s!==null&&s===r)break;i.tag===5&&l!==null&&(i=l,o?(s=mu(n,u),s!=null&&a.unshift(Nu(n,s,i))):o||(s=mu(n,u),s!=null&&a.push(Nu(n,s,i)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var XF=/\r\n?/g,ZF=/\u0000|\uFFFD/g;function ng(e){return(typeof e=="string"?e:""+e).replace(XF,`
39
+ `).replace(ZF,"")}function xi(e,t,n){if(t=ng(t),ng(e)!==t&&n)throw Error(K(425))}function Fi(){}var Ic=null,Mc=null;function $c(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Lc=typeof setTimeout=="function"?setTimeout:void 0,JF=typeof clearTimeout=="function"?clearTimeout:void 0,rg=typeof Promise=="function"?Promise:void 0,eS=typeof queueMicrotask=="function"?queueMicrotask:typeof rg<"u"?function(e){return rg.resolve(null).then(e).catch(tS)}:Lc;function tS(e){setTimeout(function(){throw e})}function zc(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Au(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Au(t)}function Un(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function og(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ho=Math.random().toString(36).slice(2),on="__reactFiber$"+ho,ju="__reactProps$"+ho,Dn="__reactContainer$"+ho,Vc="__reactEvents$"+ho,nS="__reactListeners$"+ho,rS="__reactHandles$"+ho;function wr(e){var t=e[on];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Dn]||n[on]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=og(e);e!==null;){if(n=e[on])return n;e=og(e)}return t}e=n,n=e.parentNode}return null}function Iu(e){return e=e[on]||e[Dn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function mo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(K(33))}function Si(e){return e[ju]||null}var Wc=[],go=-1;function Hn(e){return{current:e}}function Ce(e){0>go||(e.current=Wc[go],Wc[go]=null,go--)}function ye(e,t){go++,Wc[go]=e.current,e.current=t}var Kn={},Ge=Hn(Kn),ct=Hn(!1),Er=Kn;function yo(e,t){var n=e.type.contextTypes;if(!n)return Kn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},u;for(u in n)o[u]=t[u];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ft(e){return e=e.childContextTypes,e!=null}function Oi(){Ce(ct),Ce(Ge)}function ug(e,t,n){if(Ge.current!==Kn)throw Error(K(168));ye(Ge,t),ye(ct,n)}function ag(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(K(108,zx(e)||"Unknown",o));return Ae({},n,r)}function _i(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Kn,Er=Ge.current,ye(Ge,e),ye(ct,ct.current),!0}function ig(e,t,n){var r=e.stateNode;if(!r)throw Error(K(169));n?(e=ag(e,t,Er),r.__reactInternalMemoizedMergedChildContext=e,Ce(ct),Ce(Ge),ye(Ge,e)):Ce(ct),ye(ct,n)}var Cn=null,ki=!1,Uc=!1;function sg(e){Cn===null?Cn=[e]:Cn.push(e)}function oS(e){ki=!0,sg(e)}function qn(){if(!Uc&&Cn!==null){Uc=!0;var e=0,t=pe;try{var n=Cn;for(pe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Cn=null,ki=!1}catch(o){throw Cn!==null&&(Cn=Cn.slice(e+1)),cm(dc,qn),o}finally{pe=t,Uc=!1}}return null}var Do=[],Co=0,Pi=null,Ti=0,Tt=[],Rt=0,Br=null,wn=1,En="";function br(e,t){Do[Co++]=Ti,Do[Co++]=Pi,Pi=e,Ti=t}function lg(e,t,n){Tt[Rt++]=wn,Tt[Rt++]=En,Tt[Rt++]=Br,Br=e;var r=wn;e=En;var o=32-Ht(r)-1;r&=~(1<<o),n+=1;var u=32-Ht(t)+o;if(30<u){var a=o-o%5;u=(r&(1<<a)-1).toString(32),r>>=a,o-=a,wn=1<<32-Ht(t)+o|n<<o|r,En=u+e}else wn=1<<u|n<<o|r,En=e}function Hc(e){e.return!==null&&(br(e,1),lg(e,1,0))}function Kc(e){for(;e===Pi;)Pi=Do[--Co],Do[Co]=null,Ti=Do[--Co],Do[Co]=null;for(;e===Br;)Br=Tt[--Rt],Tt[Rt]=null,En=Tt[--Rt],Tt[Rt]=null,wn=Tt[--Rt],Tt[Rt]=null}var bt=null,At=null,Ee=!1,qt=null;function cg(e,t){var n=Mt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function fg(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,bt=e,At=Un(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,bt=e,At=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Br!==null?{id:wn,overflow:En}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Mt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,bt=e,At=null,!0):!1;default:return!1}}function qc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Yc(e){if(Ee){var t=At;if(t){var n=t;if(!fg(e,t)){if(qc(e))throw Error(K(418));t=Un(n.nextSibling);var r=bt;t&&fg(e,t)?cg(r,n):(e.flags=e.flags&-4097|2,Ee=!1,bt=e)}}else{if(qc(e))throw Error(K(418));e.flags=e.flags&-4097|2,Ee=!1,bt=e}}}function dg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;bt=e}function Ri(e){if(e!==bt)return!1;if(!Ee)return dg(e),Ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!$c(e.type,e.memoizedProps)),t&&(t=At)){if(qc(e))throw pg(),Error(K(418));for(;t;)cg(e,t),t=Un(t.nextSibling)}if(dg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(K(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){At=Un(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}At=null}}else At=bt?Un(e.stateNode.nextSibling):null;return!0}function pg(){for(var e=At;e;)e=Un(e.nextSibling)}function wo(){At=bt=null,Ee=!1}function Qc(e){qt===null?qt=[e]:qt.push(e)}var uS=yn.ReactCurrentBatchConfig;function Mu(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(K(309));var r=n.stateNode}if(!r)throw Error(K(147,e));var o=r,u=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===u?t.ref:(t=function(a){var i=o.refs;a===null?delete i[u]:i[u]=a},t._stringRef=u,t)}if(typeof e!="string")throw Error(K(284));if(!n._owner)throw Error(K(290,e))}return e}function Ni(e,t){throw e=Object.prototype.toString.call(t),Error(K(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function vg(e){var t=e._init;return t(e._payload)}function hg(e){function t(h,g){if(e){var C=h.deletions;C===null?(h.deletions=[g],h.flags|=16):C.push(g)}}function n(h,g){if(!e)return null;for(;g!==null;)t(h,g),g=g.sibling;return null}function r(h,g){for(h=new Map;g!==null;)g.key!==null?h.set(g.key,g):h.set(g.index,g),g=g.sibling;return h}function o(h,g){return h=tr(h,g),h.index=0,h.sibling=null,h}function u(h,g,C){return h.index=C,e?(C=h.alternate,C!==null?(C=C.index,C<g?(h.flags|=2,g):C):(h.flags|=2,g)):(h.flags|=1048576,g)}function a(h){return e&&h.alternate===null&&(h.flags|=2),h}function i(h,g,C,E){return g===null||g.tag!==6?(g=zf(C,h.mode,E),g.return=h,g):(g=o(g,C),g.return=h,g)}function s(h,g,C,E){var B=C.type;return B===oo?c(h,g,C.props.children,E,C.key):g!==null&&(g.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===jn&&vg(B)===g.type)?(E=o(g,C.props),E.ref=Mu(h,g,C),E.return=h,E):(E=us(C.type,C.key,C.props,null,h.mode,E),E.ref=Mu(h,g,C),E.return=h,E)}function l(h,g,C,E){return g===null||g.tag!==4||g.stateNode.containerInfo!==C.containerInfo||g.stateNode.implementation!==C.implementation?(g=Vf(C,h.mode,E),g.return=h,g):(g=o(g,C.children||[]),g.return=h,g)}function c(h,g,C,E,B){return g===null||g.tag!==7?(g=Pr(C,h.mode,E,B),g.return=h,g):(g=o(g,C),g.return=h,g)}function d(h,g,C){if(typeof g=="string"&&g!==""||typeof g=="number")return g=zf(""+g,h.mode,C),g.return=h,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case ni:return C=us(g.type,g.key,g.props,null,h.mode,C),C.ref=Mu(h,null,g),C.return=h,C;case ro:return g=Vf(g,h.mode,C),g.return=h,g;case jn:var E=g._init;return d(h,E(g._payload),C)}if(pu(g)||fu(g))return g=Pr(g,h.mode,C,null),g.return=h,g;Ni(h,g)}return null}function p(h,g,C,E){var B=g!==null?g.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return B!==null?null:i(h,g,""+C,E);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case ni:return C.key===B?s(h,g,C,E):null;case ro:return C.key===B?l(h,g,C,E):null;case jn:return B=C._init,p(h,g,B(C._payload),E)}if(pu(C)||fu(C))return B!==null?null:c(h,g,C,E,null);Ni(h,C)}return null}function y(h,g,C,E,B){if(typeof E=="string"&&E!==""||typeof E=="number")return h=h.get(C)||null,i(g,h,""+E,B);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case ni:return h=h.get(E.key===null?C:E.key)||null,s(g,h,E,B);case ro:return h=h.get(E.key===null?C:E.key)||null,l(g,h,E,B);case jn:var x=E._init;return y(h,g,C,x(E._payload),B)}if(pu(E)||fu(E))return h=h.get(C)||null,c(g,h,E,B,null);Ni(g,E)}return null}function m(h,g,C,E){for(var B=null,x=null,b=g,S=g=0,P=null;b!==null&&S<C.length;S++){b.index>S?(P=b,b=null):P=b.sibling;var O=p(h,b,C[S],E);if(O===null){b===null&&(b=P);break}e&&b&&O.alternate===null&&t(h,b),g=u(O,g,S),x===null?B=O:x.sibling=O,x=O,b=P}if(S===C.length)return n(h,b),Ee&&br(h,S),B;if(b===null){for(;S<C.length;S++)b=d(h,C[S],E),b!==null&&(g=u(b,g,S),x===null?B=b:x.sibling=b,x=b);return Ee&&br(h,S),B}for(b=r(h,b);S<C.length;S++)P=y(b,h,S,C[S],E),P!==null&&(e&&P.alternate!==null&&b.delete(P.key===null?S:P.key),g=u(P,g,S),x===null?B=P:x.sibling=P,x=P);return e&&b.forEach(function(H){return t(h,H)}),Ee&&br(h,S),B}function f(h,g,C,E){var B=fu(C);if(typeof B!="function")throw Error(K(150));if(C=B.call(C),C==null)throw Error(K(151));for(var x=B=null,b=g,S=g=0,P=null,O=C.next();b!==null&&!O.done;S++,O=C.next()){b.index>S?(P=b,b=null):P=b.sibling;var H=p(h,b,O.value,E);if(H===null){b===null&&(b=P);break}e&&b&&H.alternate===null&&t(h,b),g=u(H,g,S),x===null?B=H:x.sibling=H,x=H,b=P}if(O.done)return n(h,b),Ee&&br(h,S),B;if(b===null){for(;!O.done;S++,O=C.next())O=d(h,O.value,E),O!==null&&(g=u(O,g,S),x===null?B=O:x.sibling=O,x=O);return Ee&&br(h,S),B}for(b=r(h,b);!O.done;S++,O=C.next())O=y(b,h,S,O.value,E),O!==null&&(e&&O.alternate!==null&&b.delete(O.key===null?S:O.key),g=u(O,g,S),x===null?B=O:x.sibling=O,x=O);return e&&b.forEach(function(k){return t(h,k)}),Ee&&br(h,S),B}function w(h,g,C,E){if(typeof C=="object"&&C!==null&&C.type===oo&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case ni:e:{for(var B=C.key,x=g;x!==null;){if(x.key===B){if(B=C.type,B===oo){if(x.tag===7){n(h,x.sibling),g=o(x,C.props.children),g.return=h,h=g;break e}}else if(x.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===jn&&vg(B)===x.type){n(h,x.sibling),g=o(x,C.props),g.ref=Mu(h,x,C),g.return=h,h=g;break e}n(h,x);break}else t(h,x);x=x.sibling}C.type===oo?(g=Pr(C.props.children,h.mode,E,C.key),g.return=h,h=g):(E=us(C.type,C.key,C.props,null,h.mode,E),E.ref=Mu(h,g,C),E.return=h,h=E)}return a(h);case ro:e:{for(x=C.key;g!==null;){if(g.key===x)if(g.tag===4&&g.stateNode.containerInfo===C.containerInfo&&g.stateNode.implementation===C.implementation){n(h,g.sibling),g=o(g,C.children||[]),g.return=h,h=g;break e}else{n(h,g);break}else t(h,g);g=g.sibling}g=Vf(C,h.mode,E),g.return=h,h=g}return a(h);case jn:return x=C._init,w(h,g,x(C._payload),E)}if(pu(C))return m(h,g,C,E);if(fu(C))return f(h,g,C,E);Ni(h,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,g!==null&&g.tag===6?(n(h,g.sibling),g=o(g,C),g.return=h,h=g):(n(h,g),g=zf(C,h.mode,E),g.return=h,h=g),a(h)):n(h,g)}return w}var Eo=hg(!0),mg=hg(!1),ji=Hn(null),Ii=null,Bo=null,Gc=null;function Xc(){Gc=Bo=Ii=null}function Zc(e){var t=ji.current;Ce(ji),e._currentValue=t}function Jc(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function bo(e,t){Ii=e,Gc=Bo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(dt=!0),e.firstContext=null)}function Nt(e){var t=e._currentValue;if(Gc!==e)if(e={context:e,memoizedValue:t,next:null},Bo===null){if(Ii===null)throw Error(K(308));Bo=e,Ii.dependencies={lanes:0,firstContext:e}}else Bo=Bo.next=e;return t}var Ar=null;function ef(e){Ar===null?Ar=[e]:Ar.push(e)}function gg(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,ef(t)):(n.next=o.next,o.next=n),t.interleaved=n,Bn(e,r)}function Bn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Yn=!1;function tf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function yg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function bn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Qn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,fe&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Bn(e,n)}return o=r.interleaved,o===null?(t.next=t,ef(r)):(t.next=o.next,o.next=t),r.interleaved=t,Bn(e,n)}function Mi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,hc(e,n)}}function Dg(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?o=u=a:u=u.next=a,n=n.next}while(n!==null);u===null?o=u=t:u=u.next=t}else o=u=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function $i(e,t,n,r){var o=e.updateQueue;Yn=!1;var u=o.firstBaseUpdate,a=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var s=i,l=s.next;s.next=null,a===null?u=l:a.next=l,a=s;var c=e.alternate;c!==null&&(c=c.updateQueue,i=c.lastBaseUpdate,i!==a&&(i===null?c.firstBaseUpdate=l:i.next=l,c.lastBaseUpdate=s))}if(u!==null){var d=o.baseState;a=0,c=l=s=null,i=u;do{var p=i.lane,y=i.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:y,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var m=e,f=i;switch(p=t,y=n,f.tag){case 1:if(m=f.payload,typeof m=="function"){d=m.call(y,d,p);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=f.payload,p=typeof m=="function"?m.call(y,d,p):m,p==null)break e;d=Ae({},d,p);break e;case 2:Yn=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[i]:p.push(i))}else y={eventTime:y,lane:p,tag:i.tag,payload:i.payload,callback:i.callback,next:null},c===null?(l=c=y,s=d):c=c.next=y,a|=p;if(i=i.next,i===null){if(i=o.shared.pending,i===null)break;p=i,i=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(c===null&&(s=d),o.baseState=s,o.firstBaseUpdate=l,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else u===null&&(o.shared.lanes=0);Sr|=a,e.lanes=a,e.memoizedState=d}}function Cg(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(K(191,o));o.call(r)}}}var $u={},un=Hn($u),Lu=Hn($u),zu=Hn($u);function xr(e){if(e===$u)throw Error(K(174));return e}function nf(e,t){switch(ye(zu,t),ye(Lu,e),ye(un,$u),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:rc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=rc(t,e)}Ce(un),ye(un,t)}function Ao(){Ce(un),Ce(Lu),Ce(zu)}function wg(e){xr(zu.current);var t=xr(un.current),n=rc(t,e.type);t!==n&&(ye(Lu,e),ye(un,n))}function rf(e){Lu.current===e&&(Ce(un),Ce(Lu))}var xe=Hn(0);function Li(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var of=[];function uf(){for(var e=0;e<of.length;e++)of[e]._workInProgressVersionPrimary=null;of.length=0}var zi=yn.ReactCurrentDispatcher,af=yn.ReactCurrentBatchConfig,Fr=0,Fe=null,Me=null,Ve=null,Vi=!1,Vu=!1,Wu=0,aS=0;function Xe(){throw Error(K(321))}function sf(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Kt(e[n],t[n]))return!1;return!0}function lf(e,t,n,r,o,u){if(Fr=u,Fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,zi.current=e===null||e.memoizedState===null?cS:fS,e=n(r,o),Vu){u=0;do{if(Vu=!1,Wu=0,25<=u)throw Error(K(301));u+=1,Ve=Me=null,t.updateQueue=null,zi.current=dS,e=n(r,o)}while(Vu)}if(zi.current=Hi,t=Me!==null&&Me.next!==null,Fr=0,Ve=Me=Fe=null,Vi=!1,t)throw Error(K(300));return e}function cf(){var e=Wu!==0;return Wu=0,e}function an(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ve===null?Fe.memoizedState=Ve=e:Ve=Ve.next=e,Ve}function jt(){if(Me===null){var e=Fe.alternate;e=e!==null?e.memoizedState:null}else e=Me.next;var t=Ve===null?Fe.memoizedState:Ve.next;if(t!==null)Ve=t,Me=e;else{if(e===null)throw Error(K(310));Me=e,e={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},Ve===null?Fe.memoizedState=Ve=e:Ve=Ve.next=e}return Ve}function Uu(e,t){return typeof t=="function"?t(e):t}function ff(e){var t=jt(),n=t.queue;if(n===null)throw Error(K(311));n.lastRenderedReducer=e;var r=Me,o=r.baseQueue,u=n.pending;if(u!==null){if(o!==null){var a=o.next;o.next=u.next,u.next=a}r.baseQueue=o=u,n.pending=null}if(o!==null){u=o.next,r=r.baseState;var i=a=null,s=null,l=u;do{var c=l.lane;if((Fr&c)===c)s!==null&&(s=s.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),r=l.hasEagerState?l.eagerState:e(r,l.action);else{var d={lane:c,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};s===null?(i=s=d,a=r):s=s.next=d,Fe.lanes|=c,Sr|=c}l=l.next}while(l!==null&&l!==u);s===null?a=r:s.next=i,Kt(r,t.memoizedState)||(dt=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do u=o.lane,Fe.lanes|=u,Sr|=u,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function df(e){var t=jt(),n=t.queue;if(n===null)throw Error(K(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,u=t.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do u=e(u,a.action),a=a.next;while(a!==o);Kt(u,t.memoizedState)||(dt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,r]}function Eg(){}function Bg(e,t){var n=Fe,r=jt(),o=t(),u=!Kt(r.memoizedState,o);if(u&&(r.memoizedState=o,dt=!0),r=r.queue,pf(xg.bind(null,n,r,e),[e]),r.getSnapshot!==t||u||Ve!==null&&Ve.memoizedState.tag&1){if(n.flags|=2048,Hu(9,Ag.bind(null,n,r,o,t),void 0,null),We===null)throw Error(K(349));Fr&30||bg(n,t,o)}return o}function bg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Fe.updateQueue,t===null?(t={lastEffect:null,stores:null},Fe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ag(e,t,n,r){t.value=n,t.getSnapshot=r,Fg(t)&&Sg(e)}function xg(e,t,n){return n(function(){Fg(t)&&Sg(e)})}function Fg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Kt(e,n)}catch{return!0}}function Sg(e){var t=Bn(e,1);t!==null&&Xt(t,e,1,-1)}function Og(e){var t=an();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Uu,lastRenderedState:e},t.queue=e,e=e.dispatch=lS.bind(null,Fe,e),[t.memoizedState,e]}function Hu(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Fe.updateQueue,t===null?(t={lastEffect:null,stores:null},Fe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function _g(){return jt().memoizedState}function Wi(e,t,n,r){var o=an();Fe.flags|=e,o.memoizedState=Hu(1|t,n,void 0,r===void 0?null:r)}function Ui(e,t,n,r){var o=jt();r=r===void 0?null:r;var u=void 0;if(Me!==null){var a=Me.memoizedState;if(u=a.destroy,r!==null&&sf(r,a.deps)){o.memoizedState=Hu(t,n,u,r);return}}Fe.flags|=e,o.memoizedState=Hu(1|t,n,u,r)}function kg(e,t){return Wi(8390656,8,e,t)}function pf(e,t){return Ui(2048,8,e,t)}function Pg(e,t){return Ui(4,2,e,t)}function Tg(e,t){return Ui(4,4,e,t)}function Rg(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ng(e,t,n){return n=n!=null?n.concat([e]):null,Ui(4,4,Rg.bind(null,t,e),n)}function vf(){}function jg(e,t){var n=jt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&sf(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ig(e,t){var n=jt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&sf(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Mg(e,t,n){return Fr&21?(Kt(n,t)||(n=vm(),Fe.lanes|=n,Sr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,dt=!0),e.memoizedState=n)}function iS(e,t){var n=pe;pe=n!==0&&4>n?n:4,e(!0);var r=af.transition;af.transition={};try{e(!1),t()}finally{pe=n,af.transition=r}}function $g(){return jt().memoizedState}function sS(e,t,n){var r=Jn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Lg(e))zg(t,n);else if(n=gg(e,t,n,r),n!==null){var o=ut();Xt(n,e,r,o),Vg(n,t,r)}}function lS(e,t,n){var r=Jn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Lg(e))zg(t,o);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var a=t.lastRenderedState,i=u(a,n);if(o.hasEagerState=!0,o.eagerState=i,Kt(i,a)){var s=t.interleaved;s===null?(o.next=o,ef(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=gg(e,t,o,r),n!==null&&(o=ut(),Xt(n,e,r,o),Vg(n,t,r))}}function Lg(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function zg(e,t){Vu=Vi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,hc(e,n)}}var Hi={readContext:Nt,useCallback:Xe,useContext:Xe,useEffect:Xe,useImperativeHandle:Xe,useInsertionEffect:Xe,useLayoutEffect:Xe,useMemo:Xe,useReducer:Xe,useRef:Xe,useState:Xe,useDebugValue:Xe,useDeferredValue:Xe,useTransition:Xe,useMutableSource:Xe,useSyncExternalStore:Xe,useId:Xe,unstable_isNewReconciler:!1},cS={readContext:Nt,useCallback:function(e,t){return an().memoizedState=[e,t===void 0?null:t],e},useContext:Nt,useEffect:kg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Wi(4194308,4,Rg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Wi(4,2,e,t)},useMemo:function(e,t){var n=an();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=an();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=sS.bind(null,Fe,e),[r.memoizedState,e]},useRef:function(e){var t=an();return e={current:e},t.memoizedState=e},useState:Og,useDebugValue:vf,useDeferredValue:function(e){return an().memoizedState=e},useTransition:function(){var e=Og(!1),t=e[0];return e=iS.bind(null,e[1]),an().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Fe,o=an();if(Ee){if(n===void 0)throw Error(K(407));n=n()}else{if(n=t(),We===null)throw Error(K(349));Fr&30||bg(r,t,n)}o.memoizedState=n;var u={value:n,getSnapshot:t};return o.queue=u,kg(xg.bind(null,r,u,e),[e]),r.flags|=2048,Hu(9,Ag.bind(null,r,u,n,t),void 0,null),n},useId:function(){var e=an(),t=We.identifierPrefix;if(Ee){var n=En,r=wn;n=(r&~(1<<32-Ht(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Wu++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=aS++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},fS={readContext:Nt,useCallback:jg,useContext:Nt,useEffect:pf,useImperativeHandle:Ng,useInsertionEffect:Pg,useLayoutEffect:Tg,useMemo:Ig,useReducer:ff,useRef:_g,useState:function(){return ff(Uu)},useDebugValue:vf,useDeferredValue:function(e){var t=jt();return Mg(t,Me.memoizedState,e)},useTransition:function(){var e=ff(Uu)[0],t=jt().memoizedState;return[e,t]},useMutableSource:Eg,useSyncExternalStore:Bg,useId:$g,unstable_isNewReconciler:!1},dS={readContext:Nt,useCallback:jg,useContext:Nt,useEffect:pf,useImperativeHandle:Ng,useInsertionEffect:Pg,useLayoutEffect:Tg,useMemo:Ig,useReducer:df,useRef:_g,useState:function(){return df(Uu)},useDebugValue:vf,useDeferredValue:function(e){var t=jt();return Me===null?t.memoizedState=e:Mg(t,Me.memoizedState,e)},useTransition:function(){var e=df(Uu)[0],t=jt().memoizedState;return[e,t]},useMutableSource:Eg,useSyncExternalStore:Bg,useId:$g,unstable_isNewReconciler:!1};function Yt(e,t){if(e&&e.defaultProps){t=Ae({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function hf(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ae({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ki={isMounted:function(e){return(e=e._reactInternals)?Cr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ut(),o=Jn(e),u=bn(r,o);u.payload=t,n!=null&&(u.callback=n),t=Qn(e,u,o),t!==null&&(Xt(t,e,o,r),Mi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ut(),o=Jn(e),u=bn(r,o);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Qn(e,u,o),t!==null&&(Xt(t,e,o,r),Mi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ut(),r=Jn(e),o=bn(n,r);o.tag=2,t!=null&&(o.callback=t),t=Qn(e,o,r),t!==null&&(Xt(t,e,r,n),Mi(t,e,r))}};function Wg(e,t,n,r,o,u,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,u,a):t.prototype&&t.prototype.isPureReactComponent?!ku(n,r)||!ku(o,u):!0}function Ug(e,t,n){var r=!1,o=Kn,u=t.contextType;return typeof u=="object"&&u!==null?u=Nt(u):(o=ft(t)?Er:Ge.current,r=t.contextTypes,u=(r=r!=null)?yo(e,o):Kn),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ki,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=u),t}function Hg(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ki.enqueueReplaceState(t,t.state,null)}function mf(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},tf(e);var u=t.contextType;typeof u=="object"&&u!==null?o.context=Nt(u):(u=ft(t)?Er:Ge.current,o.context=yo(e,u)),o.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(hf(e,t,u,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Ki.enqueueReplaceState(o,o.state,null),$i(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function xo(e,t){try{var n="",r=t;do n+=Lx(r),r=r.return;while(r);var o=n}catch(u){o=`
40
40
  Error generating stack: `+u.message+`
41
- `+u.stack}return{value:e,source:t,stack:o,digest:null}}function Gc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Xc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var jb=typeof WeakMap=="function"?WeakMap:Map;function fg(e,t,n){n=An(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){zi||(zi=!0,pf=r),Xc(e,t)},n}function dg(e,t,n){n=An(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Xc(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Xc(e,t),typeof r!="function"&&(Gn===null?Gn=new Set([this]):Gn.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function pg(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new jb;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Gb.bind(null,e,t,n),t.then(e,e))}function vg(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function hg(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=An(-1,1),t.tag=2,Qn(n,t,1))),n.lanes|=1),e)}var Ib=yn.ReactCurrentOwner,dt=!1;function ot(e,t,n,r){t.child=e===null?Vm(t,null,n,r):Co(t,e.child,n,r)}function mg(e,t,n,r,o){n=n.render;var u=t.ref;return Do(t,o),r=Uc(e,t,n,r,u,o),n=Hc(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,bn(e,t,o)):(Ee&&n&&bc(t),t.flags|=1,ot(e,t,r,o),t.child)}function gg(e,t,n,r,o){if(e===null){var u=n.type;return typeof u=="function"&&!Cf(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,yg(e,t,u,r,o)):(e=qi(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!(e.lanes&o)){var a=u.memoizedProps;if(n=n.compare,n=n!==null?n:bu,n(a,r)&&e.ref===t.ref)return bn(e,t,o)}return t.flags|=1,e=er(u,r),e.ref=t.ref,e.return=t,t.child=e}function yg(e,t,n,r,o){if(e!==null){var u=e.memoizedProps;if(bu(u,r)&&e.ref===t.ref)if(dt=!1,t.pendingProps=r=u,(e.lanes&o)!==0)e.flags&131072&&(dt=!0);else return t.lanes=e.lanes,bn(e,t,o)}return Zc(e,t,n,r,o)}function Dg(e,t,n){var r=t.pendingProps,o=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ye(Ao,Ft),Ft|=n;else{if(!(n&1073741824))return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ye(Ao,Ft),Ft|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,ye(Ao,Ft),Ft|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,ye(Ao,Ft),Ft|=r;return ot(e,t,o,n),t.child}function Cg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Zc(e,t,n,r,o){var u=ft(n)?Dr:Ye.current;return u=vo(t,u),Do(t,o),n=Uc(e,t,n,r,u,o),r=Hc(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,bn(e,t,o)):(Ee&&r&&bc(t),t.flags|=1,ot(e,t,n,o),t.child)}function wg(e,t,n,r,o){if(ft(n)){var u=!0;yi(t)}else u=!1;if(Do(t,o),t.stateNode===null)ji(e,t),Mm(t,n,r),Ic(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,i=t.memoizedProps;a.props=i;var s=a.context,l=n.contextType;typeof l=="object"&&l!==null?l=Rt(l):(l=ft(n)?Dr:Ye.current,l=vo(t,l));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(i!==r||s!==l)&&$m(t,a,r,l),qn=!1;var p=t.memoizedState;a.state=p,Fi(t,r,a,o),s=t.memoizedState,i!==r||p!==s||ct.current||qn?(typeof c=="function"&&(jc(t,n,c,r),s=t.memoizedState),(i=qn||Im(t,n,i,r,p,s,l))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=l,r=i):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Tm(e,t),i=t.memoizedProps,l=t.type===t.elementType?i:qt(t.type,i),a.props=l,d=t.pendingProps,p=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=Rt(s):(s=ft(n)?Dr:Ye.current,s=vo(t,s));var y=n.getDerivedStateFromProps;(c=typeof y=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(i!==d||p!==s)&&$m(t,a,r,s),qn=!1,p=t.memoizedState,a.state=p,Fi(t,r,a,o);var m=t.memoizedState;i!==d||p!==m||ct.current||qn?(typeof y=="function"&&(jc(t,n,y,r),m=t.memoizedState),(l=qn||Im(t,n,l,r,p,m,s)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,m,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,m,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=s,r=l):(typeof a.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Jc(e,t,n,r,u,o)}function Jc(e,t,n,r,o,u){Cg(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&bm(t,n,!1),bn(e,t,u);r=t.stateNode,Ib.current=t;var i=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Co(t,e.child,null,u),t.child=Co(t,null,i,u)):ot(e,t,i,u),t.memoizedState=r.state,o&&bm(t,n,!0),t.child}function Eg(e){var t=e.stateNode;t.pendingContext?Bm(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Bm(e,t.context,!1),Mc(e,t.containerInfo)}function Bg(e,t,n,r,o){return go(),Oc(o),t.flags|=256,ot(e,t,n,r),t.child}var ef={dehydrated:null,treeContext:null,retryLane:0};function tf(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ag(e,t,n){var r=t.pendingProps,o=Fe.current,u=!1,a=(t.flags&128)!==0,i;if((i=a)||(i=e!==null&&e.memoizedState===null?!1:(o&2)!==0),i?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ye(Fe,o&1),e===null)return Sc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,u?(r=t.mode,u=t.child,a={mode:"hidden",children:a},!(r&1)&&u!==null?(u.childLanes=0,u.pendingProps=a):u=Qi(a,r,0,null),e=Or(e,r,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=tf(n),t.memoizedState=ef,e):nf(t,a));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return Mb(e,t,a,r,i,o,n);if(u){u=r.fallback,a=t.mode,o=e.child,i=o.sibling;var s={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=er(o,s),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?u=er(i,u):(u=Or(u,a,n,null),u.flags|=2),u.return=t,r.return=t,r.sibling=u,t.child=r,r=u,u=t.child,a=e.child.memoizedState,a=a===null?tf(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},u.memoizedState=a,u.childLanes=e.childLanes&~n,t.memoizedState=ef,r}return u=e.child,e=u.sibling,r=er(u,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function nf(e,t){return t=Qi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ni(e,t,n,r){return r!==null&&Oc(r),Co(t,e.child,null,n),e=nf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Mb(e,t,n,r,o,u,a){if(n)return t.flags&256?(t.flags&=-257,r=Gc(Error(K(422))),Ni(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=r.fallback,o=t.mode,r=Qi({mode:"visible",children:r.children},o,0,null),u=Or(u,o,a,null),u.flags|=2,r.return=t,u.return=t,r.sibling=u,t.child=r,t.mode&1&&Co(t,e.child,null,a),t.child.memoizedState=tf(a),t.memoizedState=ef,u);if(!(t.mode&1))return Ni(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var i=r.dgst;return r=i,u=Error(K(419)),r=Gc(u,r,void 0),Ni(e,t,a,r)}if(i=(a&e.childLanes)!==0,dt||i){if(r=We,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==u.retryLane&&(u.retryLane=o,Bn(e,o),Gt(r,e,o,-1))}return Df(),r=Gc(Error(K(421))),Ni(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Xb.bind(null,e),o._reactRetry=t,null):(e=u.treeContext,bt=Wn(o.nextSibling),At=t,Ee=!0,Kt=null,e!==null&&(Pt[Tt++]=wn,Pt[Tt++]=En,Pt[Tt++]=Cr,wn=e.id,En=e.overflow,Cr=t),t=nf(t,r.children),t.flags|=4096,t)}function bg(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Tc(e.return,t,n)}function rf(e,t,n,r,o){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=r,u.tail=n,u.tailMode=o)}function Fg(e,t,n){var r=t.pendingProps,o=r.revealOrder,u=r.tail;if(ot(e,t,r.children,n),r=Fe.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bg(e,n,t);else if(e.tag===19)bg(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ye(Fe,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Oi(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),rf(t,!1,o,n,u);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Oi(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}rf(t,!0,n,null,u);break;case"together":rf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ji(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function bn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),br|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(K(153));if(t.child!==null){for(e=t.child,n=er(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=er(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function $b(e,t,n){switch(t.tag){case 3:Eg(t),go();break;case 5:Wm(t);break;case 1:ft(t.type)&&yi(t);break;case 4:Mc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ye(Bi,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ye(Fe,Fe.current&1),t.flags|=128,null):n&t.child.childLanes?Ag(e,t,n):(ye(Fe,Fe.current&1),e=bn(e,t,n),e!==null?e.sibling:null);ye(Fe,Fe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Fg(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ye(Fe,Fe.current),r)break;return null;case 22:case 23:return t.lanes=0,Dg(e,t,n)}return bn(e,t,n)}var xg,of,Sg,Og;xg=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},of=function(){},Sg=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Br(on.current);var u=null;switch(n){case"input":o=Tl(e,o),r=Tl(e,r),u=[];break;case"select":o=be({},o,{value:void 0}),r=be({},r,{value:void 0}),u=[];break;case"textarea":o=jl(e,o),r=jl(e,r),u=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=hi)}Ml(n,r);var a;n=null;for(l in o)if(!r.hasOwnProperty(l)&&o.hasOwnProperty(l)&&o[l]!=null)if(l==="style"){var i=o[l];for(a in i)i.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(ou.hasOwnProperty(l)?u||(u=[]):(u=u||[]).push(l,null));for(l in r){var s=r[l];if(i=o!=null?o[l]:void 0,r.hasOwnProperty(l)&&s!==i&&(s!=null||i!=null))if(l==="style")if(i){for(a in i)!i.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&i[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(u||(u=[]),u.push(l,n)),n=s;else l==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,i=i?i.__html:void 0,s!=null&&i!==s&&(u=u||[]).push(l,s)):l==="children"?typeof s!="string"&&typeof s!="number"||(u=u||[]).push(l,""+s):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(ou.hasOwnProperty(l)?(s!=null&&l==="onScroll"&&De("scroll",e),u||i===s||(u=[])):(u=u||[]).push(l,s))}n&&(u=u||[]).push("style",n);var l=u;(t.updateQueue=l)&&(t.flags|=4)}},Og=function(e,t,n,r){n!==r&&(t.flags|=4)};function Lu(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Lb(e,t,n){var r=t.pendingProps;switch(Fc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return ft(t.type)&&gi(),Xe(t),null;case 3:return r=t.stateNode,wo(),Ce(ct),Ce(Ye),zc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ei(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Kt!==null&&(mf(Kt),Kt=null))),of(e,t),Xe(t),null;case 5:$c(t);var o=Br(Nu.current);if(n=t.type,e!==null&&t.stateNode!=null)Sg(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(K(166));return Xe(t),null}if(e=Br(on.current),Ei(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[rn]=t,r[_u]=u,e=(t.mode&1)!==0,n){case"dialog":De("cancel",r),De("close",r);break;case"iframe":case"object":case"embed":De("load",r);break;case"video":case"audio":for(o=0;o<xu.length;o++)De(xu[o],r);break;case"source":De("error",r);break;case"img":case"image":case"link":De("error",r),De("load",r);break;case"details":De("toggle",r);break;case"input":sh(r,u),De("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},De("invalid",r);break;case"textarea":fh(r,u),De("invalid",r)}Ml(n,u),o=null;for(var a in u)if(u.hasOwnProperty(a)){var i=u[a];a==="children"?typeof i=="string"?r.textContent!==i&&(u.suppressHydrationWarning!==!0&&vi(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(u.suppressHydrationWarning!==!0&&vi(r.textContent,i,e),o=["children",""+i]):ou.hasOwnProperty(a)&&i!=null&&a==="onScroll"&&De("scroll",r)}switch(n){case"input":Ha(r),ch(r,u,!0);break;case"textarea":Ha(r),ph(r);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(r.onclick=hi)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=vh(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[rn]=t,e[_u]=r,xg(e,t,!1,!1),t.stateNode=e;e:{switch(a=$l(n,r),n){case"dialog":De("cancel",e),De("close",e),o=r;break;case"iframe":case"object":case"embed":De("load",e),o=r;break;case"video":case"audio":for(o=0;o<xu.length;o++)De(xu[o],e);o=r;break;case"source":De("error",e),o=r;break;case"img":case"image":case"link":De("error",e),De("load",e),o=r;break;case"details":De("toggle",e),o=r;break;case"input":sh(e,r),o=Tl(e,r),De("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=be({},r,{value:void 0}),De("invalid",e);break;case"textarea":fh(e,r),o=jl(e,r),De("invalid",e);break;default:o=r}Ml(n,o),i=o;for(u in i)if(i.hasOwnProperty(u)){var s=i[u];u==="style"?gh(e,s):u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&hh(e,s)):u==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&su(e,s):typeof s=="number"&&su(e,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ou.hasOwnProperty(u)?s!=null&&u==="onScroll"&&De("scroll",e):s!=null&&El(e,u,s,a))}switch(n){case"input":Ha(e),ch(e,r,!1);break;case"textarea":Ha(e),ph(e);break;case"option":r.value!=null&&e.setAttribute("value",""+jn(r.value));break;case"select":e.multiple=!!r.multiple,u=r.value,u!=null?to(e,!!r.multiple,u,!1):r.defaultValue!=null&&to(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=hi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Xe(t),null;case 6:if(e&&t.stateNode!=null)Og(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(K(166));if(n=Br(Nu.current),Br(on.current),Ei(t)){if(r=t.stateNode,n=t.memoizedProps,r[rn]=t,(u=r.nodeValue!==n)&&(e=At,e!==null))switch(e.tag){case 3:vi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&vi(r.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[rn]=t,t.stateNode=r}return Xe(t),null;case 13:if(Ce(Fe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&bt!==null&&t.mode&1&&!(t.flags&128))km(),go(),t.flags|=98560,u=!1;else if(u=Ei(t),r!==null&&r.dehydrated!==null){if(e===null){if(!u)throw Error(K(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(K(317));u[rn]=t}else go(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Xe(t),u=!1}else Kt!==null&&(mf(Kt),Kt=null),u=!0;if(!u)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Fe.current&1?$e===0&&($e=3):Df())),t.updateQueue!==null&&(t.flags|=4),Xe(t),null);case 4:return wo(),of(e,t),e===null&&Su(t.stateNode.containerInfo),Xe(t),null;case 10:return Pc(t.type._context),Xe(t),null;case 17:return ft(t.type)&&gi(),Xe(t),null;case 19:if(Ce(Fe),u=t.memoizedState,u===null)return Xe(t),null;if(r=(t.flags&128)!==0,a=u.rendering,a===null)if(r)Lu(u,!1);else{if($e!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Oi(e),a!==null){for(t.flags|=128,Lu(u,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)u=n,e=r,u.flags&=14680066,a=u.alternate,a===null?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=a.childLanes,u.lanes=a.lanes,u.child=a.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=a.memoizedProps,u.memoizedState=a.memoizedState,u.updateQueue=a.updateQueue,u.type=a.type,e=a.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ye(Fe,Fe.current&1|2),t.child}e=e.sibling}u.tail!==null&&Pe()>bo&&(t.flags|=128,r=!0,Lu(u,!1),t.lanes=4194304)}else{if(!r)if(e=Oi(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Lu(u,!0),u.tail===null&&u.tailMode==="hidden"&&!a.alternate&&!Ee)return Xe(t),null}else 2*Pe()-u.renderingStartTime>bo&&n!==1073741824&&(t.flags|=128,r=!0,Lu(u,!1),t.lanes=4194304);u.isBackwards?(a.sibling=t.child,t.child=a):(n=u.last,n!==null?n.sibling=a:t.child=a,u.last=a)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Pe(),t.sibling=null,n=Fe.current,ye(Fe,r?n&1|2:n&1),t):(Xe(t),null);case 22:case 23:return yf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ft&1073741824&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),null;case 24:return null;case 25:return null}throw Error(K(156,t.tag))}function zb(e,t){switch(Fc(t),t.tag){case 1:return ft(t.type)&&gi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wo(),Ce(ct),Ce(Ye),zc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return $c(t),null;case 13:if(Ce(Fe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(K(340));go()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ce(Fe),null;case 4:return wo(),null;case 10:return Pc(t.type._context),null;case 22:case 23:return yf(),null;case 24:return null;default:return null}}var Ii=!1,Ze=!1,Vb=typeof WeakSet=="function"?WeakSet:Set,Z=null;function Bo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Oe(e,t,r)}else n.current=null}function uf(e,t,n){try{n()}catch(r){Oe(e,t,r)}}var _g=!1;function Wb(e,t){if(gc=ri,e=im(),lc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var a=0,i=-1,s=-1,l=0,c=0,d=e,p=null;t:for(;;){for(var y;d!==n||o!==0&&d.nodeType!==3||(i=a+o),d!==u||r!==0&&d.nodeType!==3||(s=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(y=d.firstChild)!==null;)p=d,d=y;for(;;){if(d===e)break t;if(p===n&&++l===o&&(i=a),p===u&&++c===r&&(s=a),(y=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=y}n=i===-1||s===-1?null:{start:i,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(yc={focusedElem:e,selectionRange:n},ri=!1,Z=t;Z!==null;)if(t=Z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Z=e;else for(;Z!==null;){t=Z;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var f=m.memoizedProps,w=m.memoizedState,h=t.stateNode,g=h.getSnapshotBeforeUpdate(t.elementType===t.type?f:qt(t.type,f),w);h.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(K(163))}}catch(E){Oe(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,Z=e;break}Z=t.return}return m=_g,_g=!1,m}function zu(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var u=o.destroy;o.destroy=void 0,u!==void 0&&uf(t,n,u)}o=o.next}while(o!==r)}}function Mi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function af(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function kg(e){var t=e.alternate;t!==null&&(e.alternate=null,kg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[rn],delete t[_u],delete t[Ec],delete t[bb],delete t[Fb])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Pg(e){return e.tag===5||e.tag===3||e.tag===4}function Tg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=hi));else if(r!==4&&(e=e.child,e!==null))for(sf(e,t,n),e=e.sibling;e!==null;)sf(e,t,n),e=e.sibling}function lf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(lf(e,t,n),e=e.sibling;e!==null;)lf(e,t,n),e=e.sibling}var Ke=null,Qt=!1;function Yn(e,t,n){for(n=n.child;n!==null;)Rg(e,t,n),n=n.sibling}function Rg(e,t,n){if(nn&&typeof nn.onCommitFiberUnmount=="function")try{nn.onCommitFiberUnmount(Xa,n)}catch{}switch(n.tag){case 5:Ze||Bo(n,t);case 6:var r=Ke,o=Qt;Ke=null,Yn(e,t,n),Ke=r,Qt=o,Ke!==null&&(Qt?(e=Ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ke.removeChild(n.stateNode));break;case 18:Ke!==null&&(Qt?(e=Ke,n=n.stateNode,e.nodeType===8?wc(e.parentNode,n):e.nodeType===1&&wc(e,n),Du(e)):wc(Ke,n.stateNode));break;case 4:r=Ke,o=Qt,Ke=n.stateNode.containerInfo,Qt=!0,Yn(e,t,n),Ke=r,Qt=o;break;case 0:case 11:case 14:case 15:if(!Ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var u=o,a=u.destroy;u=u.tag,a!==void 0&&(u&2||u&4)&&uf(n,t,a),o=o.next}while(o!==r)}Yn(e,t,n);break;case 1:if(!Ze&&(Bo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){Oe(n,t,i)}Yn(e,t,n);break;case 21:Yn(e,t,n);break;case 22:n.mode&1?(Ze=(r=Ze)||n.memoizedState!==null,Yn(e,t,n),Ze=r):Yn(e,t,n);break;default:Yn(e,t,n)}}function Ng(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Vb),t.forEach(function(r){var o=Zb.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Yt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var u=e,a=t,i=a;e:for(;i!==null;){switch(i.tag){case 5:Ke=i.stateNode,Qt=!1;break e;case 3:Ke=i.stateNode.containerInfo,Qt=!0;break e;case 4:Ke=i.stateNode.containerInfo,Qt=!0;break e}i=i.return}if(Ke===null)throw Error(K(160));Rg(u,a,o),Ke=null,Qt=!1;var s=o.alternate;s!==null&&(s.return=null),o.return=null}catch(l){Oe(o,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)jg(t,e),t=t.sibling}function jg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Yt(t,e),an(e),r&4){try{zu(3,e,e.return),Mi(3,e)}catch(f){Oe(e,e.return,f)}try{zu(5,e,e.return)}catch(f){Oe(e,e.return,f)}}break;case 1:Yt(t,e),an(e),r&512&&n!==null&&Bo(n,n.return);break;case 5:if(Yt(t,e),an(e),r&512&&n!==null&&Bo(n,n.return),e.flags&32){var o=e.stateNode;try{su(o,"")}catch(f){Oe(e,e.return,f)}}if(r&4&&(o=e.stateNode,o!=null)){var u=e.memoizedProps,a=n!==null?n.memoizedProps:u,i=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{i==="input"&&u.type==="radio"&&u.name!=null&&lh(o,u),$l(i,a);var l=$l(i,u);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];c==="style"?gh(o,d):c==="dangerouslySetInnerHTML"?hh(o,d):c==="children"?su(o,d):El(o,c,d,l)}switch(i){case"input":Rl(o,u);break;case"textarea":dh(o,u);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!u.multiple;var y=u.value;y!=null?to(o,!!u.multiple,y,!1):p!==!!u.multiple&&(u.defaultValue!=null?to(o,!!u.multiple,u.defaultValue,!0):to(o,!!u.multiple,u.multiple?[]:"",!1))}o[_u]=u}catch(f){Oe(e,e.return,f)}}break;case 6:if(Yt(t,e),an(e),r&4){if(e.stateNode===null)throw Error(K(162));o=e.stateNode,u=e.memoizedProps;try{o.nodeValue=u}catch(f){Oe(e,e.return,f)}}break;case 3:if(Yt(t,e),an(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Du(t.containerInfo)}catch(f){Oe(e,e.return,f)}break;case 4:Yt(t,e),an(e);break;case 13:Yt(t,e),an(e),o=e.child,o.flags&8192&&(u=o.memoizedState!==null,o.stateNode.isHidden=u,!u||o.alternate!==null&&o.alternate.memoizedState!==null||(df=Pe())),r&4&&Ng(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Ze=(l=Ze)||c,Yt(t,e),Ze=l):Yt(t,e),an(e),r&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!c&&e.mode&1)for(Z=e,c=e.child;c!==null;){for(d=Z=c;Z!==null;){switch(p=Z,y=p.child,p.tag){case 0:case 11:case 14:case 15:zu(4,p,p.return);break;case 1:Bo(p,p.return);var m=p.stateNode;if(typeof m.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(f){Oe(r,n,f)}}break;case 5:Bo(p,p.return);break;case 22:if(p.memoizedState!==null){$g(d);continue}}y!==null?(y.return=p,Z=y):$g(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,l?(u=o.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(i=d.stateNode,s=d.memoizedProps.style,a=s!=null&&s.hasOwnProperty("display")?s.display:null,i.style.display=mh("display",a))}catch(f){Oe(e,e.return,f)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(f){Oe(e,e.return,f)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Yt(t,e),an(e),r&4&&Ng(e);break;case 21:break;default:Yt(t,e),an(e)}}function an(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Pg(n)){var r=n;break e}n=n.return}throw Error(K(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(su(o,""),r.flags&=-33);var u=Tg(e);lf(e,u,o);break;case 3:case 4:var a=r.stateNode.containerInfo,i=Tg(e);sf(e,i,a);break;default:throw Error(K(161))}}catch(s){Oe(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ub(e,t,n){Z=e,Ig(e)}function Ig(e,t,n){for(var r=(e.mode&1)!==0;Z!==null;){var o=Z,u=o.child;if(o.tag===22&&r){var a=o.memoizedState!==null||Ii;if(!a){var i=o.alternate,s=i!==null&&i.memoizedState!==null||Ze;i=Ii;var l=Ze;if(Ii=a,(Ze=s)&&!l)for(Z=o;Z!==null;)a=Z,s=a.child,a.tag===22&&a.memoizedState!==null?Lg(o):s!==null?(s.return=a,Z=s):Lg(o);for(;u!==null;)Z=u,Ig(u),u=u.sibling;Z=o,Ii=i,Ze=l}Mg(e)}else o.subtreeFlags&8772&&u!==null?(u.return=o,Z=u):Mg(e)}}function Mg(e){for(;Z!==null;){var t=Z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ze||Mi(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ze)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:qt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&Nm(t,u,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Nm(t,a,n)}break;case 5:var i=t.stateNode;if(n===null&&t.flags&4){n=i;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var c=l.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Du(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(K(163))}Ze||t.flags&512&&af(t)}catch(p){Oe(t,t.return,p)}}if(t===e){Z=null;break}if(n=t.sibling,n!==null){n.return=t.return,Z=n;break}Z=t.return}}function $g(e){for(;Z!==null;){var t=Z;if(t===e){Z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Z=n;break}Z=t.return}}function Lg(e){for(;Z!==null;){var t=Z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Mi(4,t)}catch(s){Oe(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(s){Oe(t,o,s)}}var u=t.return;try{af(t)}catch(s){Oe(t,u,s)}break;case 5:var a=t.return;try{af(t)}catch(s){Oe(t,a,s)}}}catch(s){Oe(t,t.return,s)}if(t===e){Z=null;break}var i=t.sibling;if(i!==null){i.return=t.return,Z=i;break}Z=t.return}}var Hb=Math.ceil,$i=yn.ReactCurrentDispatcher,cf=yn.ReactCurrentOwner,jt=yn.ReactCurrentBatchConfig,fe=0,We=null,je=null,qe=0,Ft=0,Ao=Un(0),$e=0,Vu=null,br=0,Li=0,ff=0,Wu=null,pt=null,df=0,bo=1/0,Fn=null,zi=!1,pf=null,Gn=null,Vi=!1,Xn=null,Wi=0,Uu=0,vf=null,Ui=-1,Hi=0;function ut(){return fe&6?Pe():Ui!==-1?Ui:Ui=Pe()}function Zn(e){return e.mode&1?fe&2&&qe!==0?qe&-qe:Sb.transition!==null?(Hi===0&&(Hi=Ph()),Hi):(e=pe,e!==0||(e=window.event,e=e===void 0?16:zh(e.type)),e):1}function Gt(e,t,n,r){if(50<Uu)throw Uu=0,vf=null,Error(K(185));vu(e,n,r),(!(fe&2)||e!==We)&&(e===We&&(!(fe&2)&&(Li|=n),$e===4&&Jn(e,qe)),vt(e,r),n===1&&fe===0&&!(t.mode&1)&&(bo=Pe()+500,Di&&Kn()))}function vt(e,t){var n=e.callbackNode;S2(e,t);var r=ei(e,e===We?qe:0);if(r===0)n!==null&&Oh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Oh(n),t===1)e.tag===0?xb(Vg.bind(null,e)):Fm(Vg.bind(null,e)),Bb(function(){!(fe&6)&&Kn()}),n=null;else{switch(Th(r)){case 1:n=Kl;break;case 4:n=_h;break;case 16:n=Ga;break;case 536870912:n=kh;break;default:n=Ga}n=Gg(n,zg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function zg(e,t){if(Ui=-1,Hi=0,fe&6)throw Error(K(327));var n=e.callbackNode;if(Fo()&&e.callbackNode!==n)return null;var r=ei(e,e===We?qe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ki(e,r);else{t=r;var o=fe;fe|=2;var u=Ug();(We!==e||qe!==t)&&(Fn=null,bo=Pe()+500,xr(e,t));do try{Qb();break}catch(i){Wg(e,i)}while(!0);kc(),$i.current=u,fe=o,je!==null?t=0:(We=null,qe=0,t=$e)}if(t!==0){if(t===2&&(o=ql(e),o!==0&&(r=o,t=hf(e,o))),t===1)throw n=Vu,xr(e,0),Jn(e,r),vt(e,Pe()),n;if(t===6)Jn(e,r);else{if(o=e.current.alternate,!(r&30)&&!Kb(o)&&(t=Ki(e,r),t===2&&(u=ql(e),u!==0&&(r=u,t=hf(e,u))),t===1))throw n=Vu,xr(e,0),Jn(e,r),vt(e,Pe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(K(345));case 2:Sr(e,pt,Fn);break;case 3:if(Jn(e,r),(r&130023424)===r&&(t=df+500-Pe(),10<t)){if(ei(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){ut(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Cc(Sr.bind(null,e,pt,Fn),t);break}Sr(e,pt,Fn);break;case 4:if(Jn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-Ut(r);u=1<<a,a=t[a],a>o&&(o=a),r&=~u}if(r=o,r=Pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Hb(r/1960))-r,10<r){e.timeoutHandle=Cc(Sr.bind(null,e,pt,Fn),r);break}Sr(e,pt,Fn);break;case 5:Sr(e,pt,Fn);break;default:throw Error(K(329))}}}return vt(e,Pe()),e.callbackNode===n?zg.bind(null,e):null}function hf(e,t){var n=Wu;return e.current.memoizedState.isDehydrated&&(xr(e,t).flags|=256),e=Ki(e,t),e!==2&&(t=pt,pt=n,t!==null&&mf(t)),e}function mf(e){pt===null?pt=e:pt.push.apply(pt,e)}function Kb(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],u=o.getSnapshot;o=o.value;try{if(!Ht(u(),o))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 Jn(e,t){for(t&=~ff,t&=~Li,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ut(t),r=1<<n;e[n]=-1,t&=~r}}function Vg(e){if(fe&6)throw Error(K(327));Fo();var t=ei(e,0);if(!(t&1))return vt(e,Pe()),null;var n=Ki(e,t);if(e.tag!==0&&n===2){var r=ql(e);r!==0&&(t=r,n=hf(e,r))}if(n===1)throw n=Vu,xr(e,0),Jn(e,t),vt(e,Pe()),n;if(n===6)throw Error(K(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sr(e,pt,Fn),vt(e,Pe()),null}function gf(e,t){var n=fe;fe|=1;try{return e(t)}finally{fe=n,fe===0&&(bo=Pe()+500,Di&&Kn())}}function Fr(e){Xn!==null&&Xn.tag===0&&!(fe&6)&&Fo();var t=fe;fe|=1;var n=jt.transition,r=pe;try{if(jt.transition=null,pe=1,e)return e()}finally{pe=r,jt.transition=n,fe=t,!(fe&6)&&Kn()}}function yf(){Ft=Ao.current,Ce(Ao)}function xr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Eb(n)),je!==null)for(n=je.return;n!==null;){var r=n;switch(Fc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&gi();break;case 3:wo(),Ce(ct),Ce(Ye),zc();break;case 5:$c(r);break;case 4:wo();break;case 13:Ce(Fe);break;case 19:Ce(Fe);break;case 10:Pc(r.type._context);break;case 22:case 23:yf()}n=n.return}if(We=e,je=e=er(e.current,null),qe=Ft=t,$e=0,Vu=null,ff=Li=br=0,pt=Wu=null,Er!==null){for(t=0;t<Er.length;t++)if(n=Er[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,u=n.pending;if(u!==null){var a=u.next;u.next=o,r.next=a}n.pending=r}Er=null}return e}function Wg(e,t){do{var n=je;try{if(kc(),_i.current=Ri,ki){for(var r=xe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}ki=!1}if(Ar=0,Ve=Me=xe=null,ju=!1,Iu=0,cf.current=null,n===null||n.return===null){$e=1,Vu=t,je=null;break}e:{var u=e,a=n.return,i=n,s=t;if(t=qe,i.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var l=s,c=i,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var y=vg(a);if(y!==null){y.flags&=-257,hg(y,a,i,u,t),y.mode&1&&pg(u,l,t),t=y,s=l;var m=t.updateQueue;if(m===null){var f=new Set;f.add(s),t.updateQueue=f}else m.add(s);break e}else{if(!(t&1)){pg(u,l,t),Df();break e}s=Error(K(426))}}else if(Ee&&i.mode&1){var w=vg(a);if(w!==null){!(w.flags&65536)&&(w.flags|=256),hg(w,a,i,u,t),Oc(Eo(s,i));break e}}u=s=Eo(s,i),$e!==4&&($e=2),Wu===null?Wu=[u]:Wu.push(u),u=a;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var h=fg(u,s,t);Rm(u,h);break e;case 1:i=s;var g=u.type,C=u.stateNode;if(!(u.flags&128)&&(typeof g.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Gn===null||!Gn.has(C)))){u.flags|=65536,t&=-t,u.lanes|=t;var E=dg(u,i,t);Rm(u,E);break e}}u=u.return}while(u!==null)}Kg(n)}catch(B){t=B,je===n&&n!==null&&(je=n=n.return);continue}break}while(!0)}function Ug(){var e=$i.current;return $i.current=Ri,e===null?Ri:e}function Df(){($e===0||$e===3||$e===2)&&($e=4),We===null||!(br&268435455)&&!(Li&268435455)||Jn(We,qe)}function Ki(e,t){var n=fe;fe|=2;var r=Ug();(We!==e||qe!==t)&&(Fn=null,xr(e,t));do try{qb();break}catch(o){Wg(e,o)}while(!0);if(kc(),fe=n,$i.current=r,je!==null)throw Error(K(261));return We=null,qe=0,$e}function qb(){for(;je!==null;)Hg(je)}function Qb(){for(;je!==null&&!D2();)Hg(je)}function Hg(e){var t=Yg(e.alternate,e,Ft);e.memoizedProps=e.pendingProps,t===null?Kg(e):je=t,cf.current=null}function Kg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=zb(n,t),n!==null){n.flags&=32767,je=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{$e=6,je=null;return}}else if(n=Lb(n,t,Ft),n!==null){je=n;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);$e===0&&($e=5)}function Sr(e,t,n){var r=pe,o=jt.transition;try{jt.transition=null,pe=1,Yb(e,t,n,r)}finally{jt.transition=o,pe=r}return null}function Yb(e,t,n,r){do Fo();while(Xn!==null);if(fe&6)throw Error(K(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(K(177));e.callbackNode=null,e.callbackPriority=0;var u=n.lanes|n.childLanes;if(O2(e,u),e===We&&(je=We=null,qe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Vi||(Vi=!0,Gg(Ga,function(){return Fo(),null})),u=(n.flags&15990)!==0,n.subtreeFlags&15990||u){u=jt.transition,jt.transition=null;var a=pe;pe=1;var i=fe;fe|=4,cf.current=null,Wb(e,n),jg(n,e),hb(yc),ri=!!gc,yc=gc=null,e.current=n,Ub(n),C2(),fe=i,pe=a,jt.transition=u}else e.current=n;if(Vi&&(Vi=!1,Xn=e,Wi=o),u=e.pendingLanes,u===0&&(Gn=null),B2(n.stateNode),vt(e,Pe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(zi)throw zi=!1,e=pf,pf=null,e;return Wi&1&&e.tag!==0&&Fo(),u=e.pendingLanes,u&1?e===vf?Uu++:(Uu=0,vf=e):Uu=0,Kn(),null}function Fo(){if(Xn!==null){var e=Th(Wi),t=jt.transition,n=pe;try{if(jt.transition=null,pe=16>e?16:e,Xn===null)var r=!1;else{if(e=Xn,Xn=null,Wi=0,fe&6)throw Error(K(331));var o=fe;for(fe|=4,Z=e.current;Z!==null;){var u=Z,a=u.child;if(Z.flags&16){var i=u.deletions;if(i!==null){for(var s=0;s<i.length;s++){var l=i[s];for(Z=l;Z!==null;){var c=Z;switch(c.tag){case 0:case 11:case 15:zu(8,c,u)}var d=c.child;if(d!==null)d.return=c,Z=d;else for(;Z!==null;){c=Z;var p=c.sibling,y=c.return;if(kg(c),c===l){Z=null;break}if(p!==null){p.return=y,Z=p;break}Z=y}}}var m=u.alternate;if(m!==null){var f=m.child;if(f!==null){m.child=null;do{var w=f.sibling;f.sibling=null,f=w}while(f!==null)}}Z=u}}if(u.subtreeFlags&2064&&a!==null)a.return=u,Z=a;else e:for(;Z!==null;){if(u=Z,u.flags&2048)switch(u.tag){case 0:case 11:case 15:zu(9,u,u.return)}var h=u.sibling;if(h!==null){h.return=u.return,Z=h;break e}Z=u.return}}var g=e.current;for(Z=g;Z!==null;){a=Z;var C=a.child;if(a.subtreeFlags&2064&&C!==null)C.return=a,Z=C;else e:for(a=g;Z!==null;){if(i=Z,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:Mi(9,i)}}catch(B){Oe(i,i.return,B)}if(i===a){Z=null;break e}var E=i.sibling;if(E!==null){E.return=i.return,Z=E;break e}Z=i.return}}if(fe=o,Kn(),nn&&typeof nn.onPostCommitFiberRoot=="function")try{nn.onPostCommitFiberRoot(Xa,e)}catch{}r=!0}return r}finally{pe=n,jt.transition=t}}return!1}function qg(e,t,n){t=Eo(n,t),t=fg(e,t,1),e=Qn(e,t,1),t=ut(),e!==null&&(vu(e,1,t),vt(e,t))}function Oe(e,t,n){if(e.tag===3)qg(e,e,n);else for(;t!==null;){if(t.tag===3){qg(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Gn===null||!Gn.has(r))){e=Eo(n,e),e=dg(t,e,1),t=Qn(t,e,1),e=ut(),t!==null&&(vu(t,1,e),vt(t,e));break}}t=t.return}}function Gb(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ut(),e.pingedLanes|=e.suspendedLanes&n,We===e&&(qe&n)===n&&($e===4||$e===3&&(qe&130023424)===qe&&500>Pe()-df?xr(e,0):ff|=n),vt(e,t)}function Qg(e,t){t===0&&(e.mode&1?(t=Ja,Ja<<=1,!(Ja&130023424)&&(Ja=4194304)):t=1);var n=ut();e=Bn(e,t),e!==null&&(vu(e,t,n),vt(e,n))}function Xb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qg(e,n)}function Zb(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(K(314))}r!==null&&r.delete(t),Qg(e,n)}var Yg;Yg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ct.current)dt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return dt=!1,$b(e,t,n);dt=!!(e.flags&131072)}else dt=!1,Ee&&t.flags&1048576&&xm(t,wi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ji(e,t),e=t.pendingProps;var o=vo(t,Ye.current);Do(t,n),o=Uc(null,t,r,e,o,n);var u=Hc();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ft(r)?(u=!0,yi(t)):u=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Nc(t),o.updater=xi,t.stateNode=o,o._reactInternals=t,Ic(t,r,e,n),t=Jc(null,t,r,!0,u,n)):(t.tag=0,Ee&&u&&bc(t),ot(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ji(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=eF(r),e=qt(r,e),o){case 0:t=Zc(null,t,r,e,n);break e;case 1:t=wg(null,t,r,e,n);break e;case 11:t=mg(null,t,r,e,n);break e;case 14:t=gg(null,t,r,qt(r.type,e),n);break e}throw Error(K(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qt(r,o),Zc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qt(r,o),wg(e,t,r,o,n);case 3:e:{if(Eg(t),e===null)throw Error(K(387));r=t.pendingProps,u=t.memoizedState,o=u.element,Tm(e,t),Fi(t,r,null,n);var a=t.memoizedState;if(r=a.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){o=Eo(Error(K(423)),t),t=Bg(e,t,r,n,o);break e}else if(r!==o){o=Eo(Error(K(424)),t),t=Bg(e,t,r,n,o);break e}else for(bt=Wn(t.stateNode.containerInfo.firstChild),At=t,Ee=!0,Kt=null,n=Vm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(go(),r===o){t=bn(e,t,n);break e}ot(e,t,r,n)}t=t.child}return t;case 5:return Wm(t),e===null&&Sc(t),r=t.type,o=t.pendingProps,u=e!==null?e.memoizedProps:null,a=o.children,Dc(r,o)?a=null:u!==null&&Dc(r,u)&&(t.flags|=32),Cg(e,t),ot(e,t,a,n),t.child;case 6:return e===null&&Sc(t),null;case 13:return Ag(e,t,n);case 4:return Mc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Co(t,null,r,n):ot(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qt(r,o),mg(e,t,r,o,n);case 7:return ot(e,t,t.pendingProps,n),t.child;case 8:return ot(e,t,t.pendingProps.children,n),t.child;case 12:return ot(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,u=t.memoizedProps,a=o.value,ye(Bi,r._currentValue),r._currentValue=a,u!==null)if(Ht(u.value,a)){if(u.children===o.children&&!ct.current){t=bn(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var i=u.dependencies;if(i!==null){a=u.child;for(var s=i.firstContext;s!==null;){if(s.context===r){if(u.tag===1){s=An(-1,n&-n),s.tag=2;var l=u.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?s.next=s:(s.next=c.next,c.next=s),l.pending=s}}u.lanes|=n,s=u.alternate,s!==null&&(s.lanes|=n),Tc(u.return,n,t),i.lanes|=n;break}s=s.next}}else if(u.tag===10)a=u.type===t.type?null:u.child;else if(u.tag===18){if(a=u.return,a===null)throw Error(K(341));a.lanes|=n,i=a.alternate,i!==null&&(i.lanes|=n),Tc(a,n,t),a=u.sibling}else a=u.child;if(a!==null)a.return=u;else for(a=u;a!==null;){if(a===t){a=null;break}if(u=a.sibling,u!==null){u.return=a.return,a=u;break}a=a.return}u=a}ot(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Do(t,n),o=Rt(o),r=r(o),t.flags|=1,ot(e,t,r,n),t.child;case 14:return r=t.type,o=qt(r,t.pendingProps),o=qt(r.type,o),gg(e,t,r,o,n);case 15:return yg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:qt(r,o),ji(e,t),t.tag=1,ft(r)?(e=!0,yi(t)):e=!1,Do(t,n),Mm(t,r,o),Ic(t,r,o,n),Jc(null,t,r,!0,e,n);case 19:return Fg(e,t,n);case 22:return Dg(e,t,n)}throw Error(K(156,t.tag))};function Gg(e,t){return Sh(e,t)}function Jb(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(e,t,n,r){return new Jb(e,t,n,r)}function Cf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function eF(e){if(typeof e=="function")return Cf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===bl)return 11;if(e===Sl)return 14}return 2}function er(e,t){var n=e.alternate;return n===null?(n=It(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function qi(e,t,n,r,o,u){var a=2;if(r=e,typeof e=="function")Cf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case eo:return Or(n.children,o,u,t);case Bl:a=8,o|=8;break;case Al:return e=It(12,n,t,o|2),e.elementType=Al,e.lanes=u,e;case Fl:return e=It(13,n,t,o),e.elementType=Fl,e.lanes=u,e;case xl:return e=It(19,n,t,o),e.elementType=xl,e.lanes=u,e;case oh:return Qi(n,o,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case nh:a=10;break e;case rh:a=9;break e;case bl:a=11;break e;case Sl:a=14;break e;case Nn:a=16,r=null;break e}throw Error(K(130,e==null?e:typeof e,""))}return t=It(a,n,t,o),t.elementType=e,t.type=r,t.lanes=u,t}function Or(e,t,n,r){return e=It(7,e,r,t),e.lanes=n,e}function Qi(e,t,n,r){return e=It(22,e,r,t),e.elementType=oh,e.lanes=n,e.stateNode={isHidden:!1},e}function wf(e,t,n){return e=It(6,e,null,t),e.lanes=n,e}function Ef(e,t,n){return t=It(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tF(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ql(0),this.expirationTimes=Ql(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ql(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bf(e,t,n,r,o,u,a,i,s){return e=new tF(e,t,n,i,s),t===1?(t=1,u===!0&&(t|=8)):t=0,u=It(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nc(u),e}function nF(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Jr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Xg(e){if(!e)return Hn;e=e._reactInternals;e:{if(gr(e)!==e||e.tag!==1)throw Error(K(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ft(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(K(171))}if(e.tag===1){var n=e.type;if(ft(n))return Am(e,n,t)}return t}function Zg(e,t,n,r,o,u,a,i,s){return e=Bf(n,r,!0,e,o,u,a,i,s),e.context=Xg(null),n=e.current,r=ut(),o=Zn(n),u=An(r,o),u.callback=t??null,Qn(n,u,o),e.current.lanes=o,vu(e,o,r),vt(e,r),e}function Yi(e,t,n,r){var o=t.current,u=ut(),a=Zn(o);return n=Xg(n),t.context===null?t.context=n:t.pendingContext=n,t=An(u,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Qn(o,t,a),e!==null&&(Gt(e,o,a,u),bi(e,o,a)),a}function Gi(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Jg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Af(e,t){Jg(e,t),(e=e.alternate)&&Jg(e,t)}function rF(){return null}var e0=typeof reportError=="function"?reportError:function(e){console.error(e)};function bf(e){this._internalRoot=e}Xi.prototype.render=bf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(K(409));Yi(e,t,null,null)},Xi.prototype.unmount=bf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Fr(function(){Yi(null,e,null,null)}),t[Dn]=null}};function Xi(e){this._internalRoot=e}Xi.prototype.unstable_scheduleHydration=function(e){if(e){var t=jh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ln.length&&t!==0&&t<Ln[n].priority;n++);Ln.splice(n,0,e),n===0&&$h(e)}};function Ff(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Zi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function t0(){}function oF(e,t,n,r,o){if(o){if(typeof r=="function"){var u=r;r=function(){var l=Gi(a);u.call(l)}}var a=Zg(t,r,e,0,null,!1,!1,"",t0);return e._reactRootContainer=a,e[Dn]=a.current,Su(e.nodeType===8?e.parentNode:e),Fr(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var l=Gi(s);i.call(l)}}var s=Bf(e,0,!1,null,null,!1,!1,"",t0);return e._reactRootContainer=s,e[Dn]=s.current,Su(e.nodeType===8?e.parentNode:e),Fr(function(){Yi(t,s,n,r)}),s}function Ji(e,t,n,r,o){var u=n._reactRootContainer;if(u){var a=u;if(typeof o=="function"){var i=o;o=function(){var s=Gi(a);i.call(s)}}Yi(t,a,e,o)}else a=oF(n,t,e,o,r);return Gi(a)}Rh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=pu(t.pendingLanes);n!==0&&(Yl(t,n|1),vt(t,Pe()),!(fe&6)&&(bo=Pe()+500,Kn()))}break;case 13:Fr(function(){var r=Bn(e,1);if(r!==null){var o=ut();Gt(r,e,1,o)}}),Af(e,1)}},Gl=function(e){if(e.tag===13){var t=Bn(e,134217728);if(t!==null){var n=ut();Gt(t,e,134217728,n)}Af(e,134217728)}},Nh=function(e){if(e.tag===13){var t=Zn(e),n=Bn(e,t);if(n!==null){var r=ut();Gt(n,e,t,r)}Af(e,t)}},jh=function(){return pe},Ih=function(e,t){var n=pe;try{return pe=e,t()}finally{pe=n}},Vl=function(e,t,n){switch(t){case"input":if(Rl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=mi(r);if(!o)throw Error(K(90));ih(r),Rl(r,o)}}}break;case"textarea":dh(e,n);break;case"select":t=n.value,t!=null&&to(e,!!n.multiple,t,!1)}},wh=gf,Eh=Fr;var uF={usingClientEntryPoint:!1,Events:[ku,fo,mi,Dh,Ch,gf]},Hu={findFiberByHostInstance:yr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},aF={bundleType:Hu.bundleType,version:Hu.version,rendererPackageName:Hu.rendererPackageName,rendererConfig:Hu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:yn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Fh(e),e===null?null:e.stateNode},findFiberByHostInstance:Hu.findFiberByHostInstance||rF,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var es=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!es.isDisabled&&es.supportsFiber)try{Xa=es.inject(aF),nn=es}catch{}}wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=uF,wt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ff(t))throw Error(K(200));return nF(e,t,null,n)},wt.createRoot=function(e,t){if(!Ff(e))throw Error(K(299));var n=!1,r="",o=e0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Bf(e,1,!1,null,null,n,!1,r,o),e[Dn]=t.current,Su(e.nodeType===8?e.parentNode:e),new bf(t)},wt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(K(188)):(e=Object.keys(e).join(","),Error(K(268,e)));return e=Fh(t),e=e===null?null:e.stateNode,e},wt.flushSync=function(e){return Fr(e)},wt.hydrate=function(e,t,n){if(!Zi(t))throw Error(K(200));return Ji(null,e,t,!0,n)},wt.hydrateRoot=function(e,t,n){if(!Ff(e))throw Error(K(405));var r=n!=null&&n.hydratedSources||null,o=!1,u="",a=e0;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Zg(t,null,e,1,n??null,o,!1,u,a),e[Dn]=t.current,Su(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Xi(t)},wt.render=function(e,t,n){if(!Zi(t))throw Error(K(200));return Ji(null,e,t,!1,n)},wt.unmountComponentAtNode=function(e){if(!Zi(e))throw Error(K(40));return e._reactRootContainer?(Fr(function(){Ji(null,null,e,!1,function(){e._reactRootContainer=null,e[Dn]=null})}),!0):!1},wt.unstable_batchedUpdates=gf,wt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zi(n))throw Error(K(200));if(e==null||e._reactInternals===void 0)throw Error(K(38));return Ji(e,t,n,!1,r)},wt.version="18.2.0-next-9e3b772b8-20220608";function n0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n0)}catch(e){console.error(e)}}n0(),Yv.exports=wt;var r0=Yv.exports;const xo=Uo(r0);function o0(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)),r}function z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o0(Object(n),!0).forEach(function(r){So(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Je(e){return(Je=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})(e)}function Ku(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qu(e,t,n){return t&&u0(e.prototype,t),n&&u0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function So(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _r(){return(_r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ts(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a0(e,t)}function xf(e){return(xf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function a0(e,t){return(a0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n})(e,t)}function iF(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function sF(e,t){if(e==null)return{};for(var n,r={},o=Object.keys(e),u=0;u<o.length;u++)n=o[u],0<=t.indexOf(n)||(r[n]=e[n]);return r}function Mt(e,t){if(e==null)return{};var n,r=sF(e,t);if(Object.getOwnPropertySymbols)for(var o=Object.getOwnPropertySymbols(e),u=0;u<o.length;u++)n=o[u],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}function ns(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lF(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ns(e)}function rs(e){var t=iF();return function(){var n,r=xf(e);return lF(this,t?(n=xf(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments))}}function i0(e,t){return fF(e)||pF(e,t)||s0(e,t)||hF()}function os(e){return cF(e)||dF(e)||s0(e)||vF()}function cF(e){if(Array.isArray(e))return Sf(e)}function fF(e){if(Array.isArray(e))return e}function dF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,u=[],a=!0,i=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(u.push(r.value),!t||u.length!==t);a=!0);}catch(s){i=!0,o=s}finally{try{a||n.return==null||n.return()}finally{if(i)throw o}}return u}}function s0(e,t){var n;if(e)return typeof e=="string"?Sf(e,t):(n=(n=Object.prototype.toString.call(e).slice(8,-1))==="Object"&&e.constructor?e.constructor.name:n)==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sf(e,t):void 0}function Sf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
42
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
43
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mF(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n===void 0)return(t==="string"?String:Number)(e);if(n=n.call(e,t||"default"),typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}function l0(e){return e=mF(e,"string"),typeof e=="symbol"?e:String(e)}var c0={react:{componentWrap:"div",slotWrap:"div",componentWrapAttrs:{__use_react_component_wrap:"",style:{all:"unset"}},slotWrapAttrs:{__use_react_slot_wrap:"",style:{all:"unset"}},vueNamedSlotsKey:["node:"]},vue:{componentWrapHOC:function(e){return function(){var t=(0<arguments.length&&arguments[0]!==void 0?arguments[0]:{}).portals;return L.createElement(L.Fragment,null,e,(t===void 0?[]:t).map(function(o){var r=o.Portal,o=o.key;return L.createElement(r,{key:o})}))}},componentWrapAttrs:{"data-use-vue-component-wrap":"",style:{all:"unset"}},slotWrapAttrs:{"data-use-vue-slot-wrap":"",style:{all:"unset"}}}};function f0(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{react:{},vue:{}},n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:c0,t=2<arguments.length?arguments[2]:void 0,n=(e.vue||(e.vue={}),e.react||(e.react={}),[n,z(z({},e),{},{react:z(z(z({},n.react),e.react),{},{componentWrapAttrs:z(z({},n.react.componentWrapAttrs),e.react.componentWrapAttrs),slotWrapAttrs:z(z({},n.react.slotWrapAttrs),e.react.slotWrapAttrs)}),vue:z(z(z({},n.vue),e.vue),{},{componentWrapAttrs:z(z({},n.vue.componentWrapAttrs),e.vue.componentWrapAttrs),slotWrapAttrs:z(z({},n.vue.slotWrapAttrs),e.vue.slotWrapAttrs)})})]);return t&&n.unshift({}),Object.assign.apply(this,n)}var d0=["getElementById","getElementsByClassName","getElementsByTagName","getElementsByTagNameNS","querySelector","querySelectorAll"],Qu={Document:{},Element:{}};function gF(e){Object.keys(Qu).forEach(function(t){d0.forEach(function(n){var r=window[t].prototype[n];Qu[t][n]=r,window[t].prototype[n]=function(){for(var o=arguments.length,u=new Array(o),a=0;a<o;a++)u[a]=arguments[a];var i=r.apply(this,u);return i&&(i.constructor!==NodeList||i.constructor===NodeList&&0<i.length)?i:(Qu.Element[n]||Element.prototype[mehtod]).apply(e,u)}})})}function yF(){Object.keys(Qu).forEach(function(e){d0.forEach(function(t){window[e].prototype[t]=Qu[e][t]})})}var DF=["ref"],CF=["key"],wF=["hashList"],p0=parseInt(L.version);function W3(e){return e}var EF=function(){ts(t,L.Component);var e=rs(t);function t(n){return Ku(this,t),e.call(this,n)}return qu(t,[{key:"render",value:function(){var n=this.props.component,r=this.props.passedProps,r=(r.ref,Mt(r,DF));return L.createElement(n,r,this.props.children)}}]),t}(),BF=function(e,t,n){var r=function(){ts(u,L.Component);var o=rs(u);function u(a){var i;return Ku(this,u),(i=o.call(this,a)).state=z(z({},a),t.isSlots?{children:e}:{}),i.setRef=i.setRef.bind(ns(i)),i.vueInReactCall=i.vueInReactCall.bind(ns(i)),(i.__veauryVueWrapperRef__=n).__veauryVueInReactCall__=i.vueInReactCall,i}return qu(u,[{key:"reactPropsLinkToVueInstance",value:function(a){Object.keys(a).forEach(function(i){n[i]||(n[i]=a[i])}),Object.getOwnPropertyNames(a.__proto__).filter(function(i){return["constructor","render"].indexOf(i)<0}).forEach(function(i){n[i]||(n[i]=a[i])})}},{key:"setRef",value:function(a){var i=this;a&&(n.__veauryReactRef__=a,this.reactPropsLinkToVueInstance(a),Promise.resolve().then(function(){return i.reactPropsLinkToVueInstance(a)}),(this.setRef.current=a).__veauryVueWrapperRef__=n)}},{key:"createSlot",value:function(a){return{originVNode:a,inheritAttrs:!1,__fromReactSlot:!0,render:function(){var i,s;return((i=a=(a=((s=this.$slots)==null||(i=s.default)==null?void 0:i.call(s))||a)instanceof Function?a(this):a)==null?void 0:i.length)===1&&(s=a[0])!=null&&s.data&&((i=this.$attrs).key,s=Mt(i,CF),a[0].props=z(z({},s),a[0].props)),a}}}},{key:"componentWillUnmount",value:function(){n.__veauryReactRef__&&(n.__veauryReactRef__.__veauryVueWrapperRef__=null,n.__veauryReactRef__=null)}},{key:"vueInReactCall",value:function(a){var i=this,s=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return 2<arguments.length&&arguments[2]&&a&&a[0]?a.map(function(l,c){return as(i.createSlot(l instanceof Function?l:[l]),z(z(z({},t),s),{},{isSlots:!0,wrapInstance:n})).render({key:(l==null||(l=l.data)==null?void 0:l.key)||c})}):as(this.createSlot(a),z(z(z({},t),s),{},{isSlots:!0,wrapInstance:n})).render()}},{key:"render",value:function(){var a,i,s,l=this,f=this.state,c=f.hashList,d=Mt(f,wF),p={},y={};for(a in d)i=a,s=void 0,d.hasOwnProperty(i)&&d[i]!=null&&(d[i].__slot?(d[i].reactSlot?d[i]=d[i].reactSlot:(s=d[i],t.defaultSlotsFormatter&&d[i].__trueChildren?(d[i].__top__=l.__veauryVueWrapperRef__,d[i]=t.defaultSlotsFormatter(d[i].__trueChildren,l.vueInReactCall,c),d[i]instanceof Array?d[i]=os(d[i]):-1<["string","number"].indexOf(Je(d[i]))?d[i]=[d[i]]:Je(d[i])==="object"&&(d[i]=z({},d[i]))):d[i]=z({},as(l.createSlot(d[i]),z(z({},t),{},{isSlots:!0,wrapInstance:n})).render()),d[i].vueFunction=s),p[i]=d[i]):d[i].__scopedSlot&&(d[i]=d[i](l.createSlot),y[i]=d[i]));var m,f={};return f.ref=this.setRef,t.isSlots?this.state.children||this.props.children:(m=d,m=z(z(z({},m=t.defaultPropsFormatter?t.defaultPropsFormatter(d,this.vueInReactCall,c):m),p),y),Object.getPrototypeOf(e)!==Function.prototype&&(Je(e)!=="object"||e.render)||u.catchVueRefs()?(Object.getPrototypeOf(e)===Function.prototype&&delete f.ref,L.createElement(e,_r({},m,f))):L.createElement(EF,_r({passedProps:m,component:e},f),m.children))}}],[{key:"catchVueRefs",value:function(){if(n.$parent){for(var a in n.$parent.$refs)if(n.$parent.$refs[a]===n)return!0}return!1}}]),u}();return So(r,"displayName","applyReact_".concat(e.displayName||e.name||"Component")),r};function Of(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return e.__esModule&&e.default&&(e=e.default),t.isSlots&&(e=e()),t=f0(t,void 0,!0),{originReactComponent:e,setup:function(n,r){var o,u,a,i;if(!t.isSlots)return o={},u=v.reactive({}),a=v.getCurrentInstance(),typeof(i=t.useInjectPropsFromWrapper||e.__veauryInjectPropsFromWrapper__)=="function"&&(typeof(i=i.call(a.proxy,n))!="function"?(Object.assign(u,i),o.__veauryInjectedProps__=u):a.proxy.__veauryInjectedComputed__=i),o},data:function(){return{VEAURY_Portals:[]}},created:function(){this.__veauryPortalKeyPool__=[],this.__veauryMaxPortalCount__=0},computed:{__veauryInjectedProps__:function(){var n;return(n=this.__veauryInjectedComputed__)==null?void 0:n.call(this)}},render:function(){var n=v.h(t.react.componentWrap,z({ref:"react"},t.react.componentWrapAttrs||{}),this.VEAURY_Portals.map(function(u){var o=u.Portal,u=u.key;return o(v.h,u)}));return this.__veauryCheckReactSlot__(this.$slots),n},methods:{__veauryCheckReactSlot__:function(n){var r=this;function o(u,a,i){return a[i]&&(u[i]=a[i],1)}Object.keys(n).forEach(function(u){try{var a,i,s,l=n[u],c=l.apply(r,l.__reactArgs||[{}]);(l.__trueChildren=c).forEach(function(d){d.children&&r.__veauryCheckReactSlot__(d.children)}),c.length!==1||o(l,i=c[0],"reactSlot")||o(l,i,"reactFunction")||i.type!==v.Fragment||((a=i.children)==null?void 0:a.length)!==1||o(l,s=i.children[0],"reactSlot")||o(l,s,"reactFunction")}catch{}})},__veauryPushVuePortal__:function(n){var r=this.__veauryPortalKeyPool__.shift()||this.__veauryMaxPortalCount__++;this.VEAURY_Portals.push({Portal:n,key:r})},__veauryRemoveVuePortal__:function(n){var r,o=this.VEAURY_Portals.find(function(u,a){if(u.Portal===n)return r=a,!0});this.__veauryPortalKeyPool__.push(o.key),this.VEAURY_Portals.splice(r,1)},__veauryGetScopeSlot__:function(n,r,o){var u=this;function a(i){function s(){for(var l,c=this,d=arguments.length,p=new Array(d),y=0;y<d;y++)p[y]=arguments[y];return n.reactFunction?n.reactFunction.apply(this,p):t.defaultSlotsFormatter?((l=n.apply(this,p)).__top__=u,(l=t.defaultSlotsFormatter(l,u.__veauryVueInReactCall__,r))instanceof Array||-1<Je(l).indexOf("string","number")?l=os(l):Je(l)==="object"&&(l=z({},l)),l):as(i(function(){return n.apply(c,p)}),z(z({},t),{},{isSlots:!0,wrapInstance:u})).render()}return t.pureTransformer&&o?s.vueFunction=o:s.vueFunction=n,s}return a.__scopedSlot=!0,a},__veaurySyncUpdateProps__:function(n){this.__veauryReactInstance__&&this.__veauryReactInstance__.setState(n)},__veauryMountReactComponent__:function(n,r){var o,u,a=this,i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{},s={},l=[],c=this.$.vnode.scopeId,d=(c&&(s[c]="",l.push(c)),{}),p={};if(!n||r!=null&&r.slot)for(var y in this.$slots||{})(function(C){var E;a.$slots.hasOwnProperty(C)&&a.$slots[C]!=null&&((E=t.react.vueNamedSlotsKey.find(function(B){return C.indexOf(B)===0}))||C==="default"?(E=C.replace(new RegExp("^".concat(E)),""),d[E]=a.$slots[C],d[E].__slot=!0):p[C]=a.__veauryGetScopeSlot__(a.$slots[C],l,(E=a.$.vnode)==null||(E=E.children)==null?void 0:E[C]))})(y);(!n||r!=null&&r.slot)&&(u=z({},d),o=u.default,delete u.default),this.__veauryLast__=this.__veauryLast__||{},this.__veauryLast__.slot=this.__veauryLast__.slot||{},this.__veauryLast__.attrs=this.__veauryLast__.attrs||{};var m={slot:function(){a.__veauryLast__.slot=z(z(z({},o?{children:o}:{children:null}),u),p)},attrs:function(){a.__veauryLast__.attrs=a.$attrs}};if(r&&Object.keys(r).forEach(function(C){return m[C]()}),n){let C=function(){a.__veauryReactInstance__&&a.__veauryReactInstance__.setState(function(E){return Object.keys(E).forEach(function(B){t.isSlots&&B==="children"||delete E[B]}),z(z(z(z({},a.__veauryCache__),a.__veauryInjectedProps__),!t.isSlots&&a.__veauryLast__.slot),a.__veauryLast__.attrs)}),a.__veauryCache__=null};!this.microTaskUpdate||this.__veauryCache__||this.$nextTick(function(){C(),a.microTaskUpdate=!1}),this.macroTaskUpdate&&(clearTimeout(this.updateTimer),this.updateTimer=setTimeout(function(){clearTimeout(a.updateTimer),C(),a.macroTaskUpdate=!1})),this.__veauryCache__=z(z({},this.__veauryCache__||{}),z(z(z(z({},i),this.$attrs.class?{className:this.$attrs.class}:{}),z({},s)),{},{hashList:l},this.$attrs.style?{style:this.$attrs.style}:{})),this.macroTaskUpdate||this.microTaskUpdate||C()}else{m.slot(),m.attrs();var c=BF(e,t,this),f=L.createElement(c,_r({},this.$attrs,this.__veauryInjectedProps__,{children:o},u,p,this.$attrs.class?{className:this.$attrs.class}:{},s,{hashList:l},this.$attrs.style?{style:this.$attrs.style}:{},{ref:function(E){return a.__veauryReactInstance__=E}})),w=this.$refs.react,h=t.wrapInstance;if(h)(h=t.wrapInstance).__veauryVueWrapperRef__=this;else for(var g=this.$parent;g;){if(g.parentReactWrapperRef){h=g.parentReactWrapperRef;break}if(g.reactWrapperRef){h=g.reactWrapperRef;break}g=g.$parent}h?(this.parentReactWrapperRef=h,this.reactPortal=function(){return r0.createPortal(f,w)},h.pushReactPortal(this.reactPortal)):17<p0?(xo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED!==void 0&&(xo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint=!0),this.__veauryReactApp__=xo.createRoot(w),this.__veauryReactApp__.render(f)):xo.render(f,w)}}},mounted:function(){var n=this;this.__VEAURY_IGNORE_STRANGE_UPDATE__=!0,Promise.resolve().then(function(){n.__VEAURY_IGNORE_STRANGE_UPDATE__=!1}),clearTimeout(this.updateTimer),this.__veauryMountReactComponent__()},beforeUnmount:function(){var n;clearTimeout(this.updateTimer),gF(this.$refs.react),this.reactPortal?(n=this.parentReactWrapperRef)!=null&&n.removeReactPortal(this.reactPortal):17<p0?this.__veauryReactApp__.unmount():xo.unmountComponentAtNode(this.$refs.react),yF()},updated:function(){this.__VEAURY_IGNORE_STRANGE_UPDATE__||this.__veauryMountReactComponent__(!0,{slot:!0})},inheritAttrs:!1,watch:{$attrs:{handler:function(){this.__veauryMountReactComponent__(!0,{attrs:!0})},deep:!0},__veauryInjectedProps__:{handler:function(){this.__veauryMountReactComponent__(!0,{attrs:!0})},deep:!0}}}}var AF=new Set(["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onChange","onInput","onInvalid","onReset","onSubmit","onError","onLoad","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onLoad","onError","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd","onToggle"]);function bF(e,t){for(var n=(e=t=(e==null?void 0:e._reactInternals)||(e==null?void 0:e._reactInternalFiber)||t)==null?void 0:e.return;n;){var r=n.stateNode;if(r=(r==null?void 0:r.parentVueWrapperRef)||(r==null?void 0:r.__veauryVueWrapperRef__))return r;n=n.return}}function v0(e,t,n){var r={};return n.forEach(function(o){r[o]=!0}),e[(t==="modelValue"?"model":t)+"Modifiers"]=r}function h0(e,t,n){var r=this,o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:"v-model",u=t;if(!(u instanceof Array))throw Error("[error:veaury] Parameter type error from '".concat(o,"', a single v-model is an array, such as [val, setter, argumentKey, modifiers] or [val, setter, modifiers]"));if(typeof u[1]!="function")throw Error("[error:veaury] Parameter type error from '".concat(o,"', a single v-model is an array, the second element of the array must be a setter function"));var a=u[1],i=(typeof u[2]=="string"?(n=u[2],u[3]instanceof Array&&v0(e,n,u[3])):u[2]instanceof Array&&v0(e,n,u[2]),e["onUpdate:"+n]);e["onUpdate:"+n]=typeof i=="function"?function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];i.apply(r,l),a.apply(r,l)}:a,e[n]=u[0]}function _f(e){var t=this,n={},r=z({},e);return Object.keys(e).forEach(function(o){var u,a=o.match(/^onUpdate-([^-]+)/);if(a)delete r[o],u=n["onUpdate:".concat(a[1])],n["onUpdate:".concat(a[1])]=typeof u=="function"?function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];u.apply(t,l),e[o].apply(t,l)}:e[o];else if(a=o.match(/^v-model($|:([^:]+)|-([^:]+))/))a=a[2]||a[3]||"modelValue",h0(n,e[o],a),delete r[o];else if(o==="v-models"){if(Je(e[o])!=="object"||e[o]instanceof Array)throw Error("[error:veaury] The parameter 'v-models' must be an object type, such as {[argumentKey]: singleVModel}");var i=e[o];Object.keys(i).forEach(function(s){h0(n,i[s],s,"v-models")}),delete r[o]}}),z(z({},r),n)}var us=function(){function e(){Ku(this,e),So(this,"pool",new Set)}return qu(e,[{key:"getRandomId",value:function(t){var n=t+(Math.random()+"").substr(2);return this.pool.has(n)?this.getRandomId(t):(this.pool.add(n),n)}}]),e}();function m0(r,t){var n,r=r.node;if(typeof r=="function"&&(r=r()),(n=t)!=null&&n.current||typeof t=="function"||(n=t)!=null&&n.toString().match(/^function/)||(t=null),-1<["string","number"].indexOf(Je(r)))return r;if(r instanceof Array){if(r.length!==1)return r;r=r[0]}return z(z({},r),{},{ref:t})}var FF=Of(m0);function kf(e){return v.h(FF,{node:function(){return e.node}})}kf.originReactComponent=L.forwardRef(m0);var xF=["component","node"],SF=["component","$slots","children","class","style"],OF=["className","classname"],tr="veaury-options",g0=new us;function _F(e,t){var n;return e=typeof e=="string"&&t?(t=t.$)==null||(t=t.appContext)==null||(t=t.app)==null||(n=t.component)==null?void 0:n.call(t,e):e}function y0(e){if(e)return Object.keys(e).forEach(function(t){var n=e[t];n!=null&&(typeof n=="function"?(e[t]=n,e[t].reactFunction=n):(e[t]=function(){return n},e[t].reactSlot=n),n.vueFunction&&(e[t].vueFunction=n.vueFunction))}),e}function kF(e){var t;return(t=e.node)==null?void 0:t.call(e)}var Pf=L.forwardRef(function(o,t){var n,a=o.component,r=o.node,o=Mt(o,xF);if(a==null&&r==null)return null;if(r!=null){if(r.$$typeof||typeof r=="string"||typeof r=="number")return r;typeof r!="function"&&(n=r,r=function(){return n})}var u,a=a||kF,i=f0(o[tr]||{},void 0,!0),s=i.useInjectPropsFromWrapper||a.__veauryInjectPropsFromWrapper__;return i.isSlots||typeof s=="function"&&(u=s(o)),L.createElement(PF,_r({},z(z(z(z({component:a},r?{node:r}:{}),o),u),{},So({},tr,i)),{ref:t}))}),PF=function(){ts(t,L.Component);var e=rs(t);function t(n){var r;return Ku(this,t),(r=e.call(this,n)).state={portals:[]},r.__veauryPortalKeyPool__=[],r.__veauryMaxPortalCount__=0,r.__veauryCurrentVueComponent__=n.component,r.__veauryCreateVueInstance__=r.__veauryCreateVueInstance__.bind(ns(r)),r.__veauryVueComponentContainer__=r.createVueComponentContainer(),r}return qu(t,[{key:"pushReactPortal",value:function(n){var r=this.state.portals,o=this.__veauryPortalKeyPool__.shift()||this.__veauryMaxPortalCount__++;r.push({Portal:n,key:o}),this.setState({portals:r})}},{key:"removeReactPortal",value:function(n){var r,o=this.state.portals,u=o.find(function(a,i){if(a.Portal===n)return r=i,!0});this.__veauryPortalKeyPool__.push(u.key),o.splice(r,1),this.__veauryVueRef__&&this.setState({portals:o})}},{key:"createVueComponentContainer",value:function(){var n=this,r={},o=this.props[tr];return o.isSlots?(Object.keys(this.props).forEach(function(u){AF.has(u)&&typeof n.props[u]=="function"&&(r[u]=n.props[u])}),o.vue.slotWrapAttrs&&(r=z(z({},r),o.vue.slotWrapAttrs))):o.vue.componentWrapAttrs&&(r=z(z({},r),o.vue.componentWrapAttrs)),o.vue.componentWrapHOC(L.createElement("div",_r({},o.vue.componentWrapAttrs,{ref:this.__veauryCreateVueInstance__,key:null})),r)}},{key:"shouldComponentUpdate",value:function(n,r,o){var u,a,i,s,l=this;return n===this.props||(u=n.component,n[tr],a=(a=n["v-slots"])===void 0?null:a,i=n.children,n=Mt(n,["component",tr,"v-slots","children"].map(l0)),this.__veauryCurrentVueComponent__!==u&&this.updateVueComponent(u),!!u.__fromReactSlot||(this.__veauryVueInstance__?(i&&(a=a||{},Je(i)!=="object"||i instanceof Array||i.$$typeof?a.default=i:a=i),(s=this.__veauryVueInstance__.$data.$slots)&&Object.keys(s).forEach(function(c){delete s[c]}),a&&(s||(this.__veauryVueInstance__.$data.$slots={}),Object.assign(this.__veauryVueInstance__.$data.$slots,y0(a))),Object.keys(this.__veauryVueInstance__.$data).forEach(function(c){c!=="$slots"&&delete l.__veauryVueInstance__.$data[c]}),this.__veauryVueInstance__&&Object.assign(this.__veauryVueInstance__.$data,_f(n)),!0):void 0))}},{key:"componentWillUnmount",value:function(){this.vuePortal?this.parentVueWrapperRef.__veauryRemoveVuePortal__(this.vuePortal):(this.__veauryVueInstance__&&this.__veauryVueInstance__.$.appContext.app.unmount(),g0.pool.delete(this.__veauryVueTargetId__))}},{key:"__veauryCreateVueInstance__",value:function(n){var r=this,o=this,s=this.props,u=(s.component,s[tr]),a=s.children,i=s["v-slots"],i=i===void 0?{}:i,s=Mt(s,["component",tr,"children","v-slots"].map(l0));function l(y){this.__veauryVueInstance__||(this.__veauryVueInstance__=y)}a&&(Je(a)!=="object"||a instanceof Array||a.$$typeof?i.default=a:i=a),(i=y0(i))&&(s.$slots=i),l=l.bind(this);var c,d=z({},_f(s)),p={data:function(){return u.isSlots?{children:o.__veauryCurrentVueComponent__.originVNode}:d},created:function(){this.reactWrapperRef=o,l(this)},methods:{reactInVueCall:function(y){return 2<arguments.length&&arguments[2]&&y&&y[0]?y.map(function(m,f){return v.h(kf,{node:m,key:(m==null||(m=m.data)==null?void 0:m.key)||f})}):v.h(kf,{node:y})},getScopedSlots:function(y,m){var f,w=this,h=(this.getScopedSlots.__scopeSlots||(this.getScopedSlots.__scopeSlots={}),z({},m));for(f in h)(function(g){var C,E;!h.hasOwnProperty(g)||(C=h[g])==null||(h[g]=(E=C,function(){for(var B,F,A,S,P=arguments.length,O=new Array(P),H=0;H<P;H++)O[H]=arguments[H];return E.vueFunction?E.vueFunction.apply(w,O):(A=E.reactSlot,S=E.reactFunction,A=A||(S==null?void 0:S.apply(w,O)),S=u.defaultSlotsFormatter,(B=w.getScopedSlots.__scopeSlots[g])!=null&&(B=B.component)!=null&&(B=B.ctx)!=null&&B.__veauryReactInstance__?(F=w.getScopedSlots.__scopeSlots[g],Promise.resolve().then(function(){var k;(k=F)!=null&&(k=k.component)!=null&&(k=k.ctx)!=null&&(k=k.__veauryReactInstance__)!=null&&k.setState({children:E.apply(w,O)})})):(F=S&&A?[S(A,w.reactInVueCall)]:y(Of(function(){return E.apply(w,O)},z(z({},u),{},{isSlots:!0,wrapInstance:o}))),w.getScopedSlots.__scopeSlots[g]=F),E.reactFunction?F.reactFunction=E.reactFunction:E.reactSlot&&(F.reactSlot=E.reactSlot),F)}),h[g].reactFunction=C)})(f);return h}},mounted:function(){n.removeAttribute("id"),o.__veauryVueRef__=this.$refs.use_vue_wrapper,this.$refs.use_vue_wrapper.reactWrapperRef=o},beforeUnmount:function(){o.__veauryVueRef__=null,this.$refs.use_vue_wrapper.reactWrapperRef=null},render:function(){var y=this,C=this.$data,h=(C.component,C.$slots),m=(C.children,C.class),f=C.style,C=Mt(C,SF),w=this.getScopedSlots(v.h,z({},h)),h=C.className,g=C.classname,C=Mt(C,OF),E={};return Object.keys(w).forEach(function(B){var F=w[B];E[B]=typeof F=="function"?F:function(){return F}}),v.h(_F(o.__veauryCurrentVueComponent__,this),z(z(z(z({},C),m||h||g?{class:m||h||g}:{}),f?{style:f}:{}),{},{ref:"use_vue_wrapper"}),z({},u.isSlots&&this.children?{default:typeof this.children=="function"?this.children:function(){return y.children}}:z({},E)))}};n&&(c=g0.getRandomId("__vue_wrapper_container_"),n.id=c,this.__veauryVueTargetId__=c,(a=u.wrapInstance)?(a=u.wrapInstance).reactWrapperRef=o:a=bF(this),a&&document.getElementById(c)?(this.parentVueWrapperRef=a,this.vuePortal=function(y,m){return y(v.Teleport,{to:"#"+c,key:c},[y(Object.assign(p,{router:r._router}))])},a.__veauryPushVuePortal__(this.vuePortal)):(i=v.createApp(p),typeof u.beforeVueAppMount=="function"&&u.beforeVueAppMount(i),this.__veauryVueInstance__=i.mount(n)))}},{key:"updateVueComponent",value:function(n){this.__veauryVueInstance__&&(n.__fromReactSlot?this.__veauryVueInstance__.children=typeof n.originVNode=="function"?n.originVNode:function(){return n.originVNode}:(this.__veauryCurrentVueComponent__=n,this.__veauryVueInstance__.$forceUpdate()))}},{key:"render",value:function(){return L.createElement(this.__veauryVueComponentContainer__,{portals:this.state.portals})}}]),t}();function as(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=(e||console.warn("Component must be passed in applyVueInReact!"),e.__esModule&&e.default&&(e=e.default),L.forwardRef(function(r,o){return L.createElement(Pf,_r({},r,{component:e,ref:o},So({},tr,t)))}));return n.originVueComponent=e,n}new us;function TF(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=t.globalName,r=t.combinedOption,o=(t.transparentApi,Of(e,r||{}));return o.install=function(u){var a=(1<arguments.length&&arguments[1]!==void 0?arguments[1]:{}).globalName;return n&&u.component(a||n,o),o},o}function D0(e){return e.replace(/-(\w)/g,function(t,n){return n.toUpperCase()})}function is(e){var t;return e?typeof e=="string"?(e=e.trim()).split(/\s*;\s*/).reduce(function(n,r){return r&&(r=r.split(/\s*:\s*/)).length===2&&Object.assign(n,So({},D0(r[0]),r[1])),n},{}):Je(e)==="object"?(t={},Object.keys(e).forEach(function(n){t[D0(n)]=e[n]}),t):{}:{}}function ss(e){return e?e instanceof Array?e:typeof e=="string"?(e=e.trim()).split(/\s+/):Je(e)==="object"?Object.keys(e).filter(function(t){return!!e[t]}):[]:[]}var RF=["ref"];function NF(e,t,n,r,o){var u=e.props||{},u=(u.ref,Mt(u,RF)),a={},i=(Object.keys(e.children||{}).forEach(function(c){var d=e.children[c],p=c0.react.vueNamedSlotsKey.find(function(y){return c.indexOf(y)===0});p||c==="default"?(p=c.replace(new RegExp("^".concat(p)),"").replace(/^default$/,"children"),a[p]=r(d(),n,o)):a[c]=function(){for(var y=arguments.length,m=new Array(y),f=0;f<y;f++)m[f]=arguments[f];return d.__reactArgs=m,r(d.apply(this,m),n,o)}}),{}),s=is(u.style),l=Array.from(new Set(ss(u.class))).join(" ");return 0<Object.keys(s).length&&(i.style=s),l!==""&&(i.className=l),Object.assign(u,z(z({},i),a)),delete u.class,u}function C0(e){return e.type===v.Text}new us;function w0(e,t){var n;return 0<((n=e.dirs)==null?void 0:n.length)?L.createElement(jF,{vnode:e},t):t}var jF=function(){ts(t,L.Component);var e=rs(t);function t(n){var r;return Ku(this,t),(r=e.call(this,n)).state={prevVnode:null,savedDirectives:[],ref:null,prevProps:n},r}return qu(t,[{key:"findDirectiveName",value:function(n){var r=n.dir,o=-1;return[this.state.savedDirectives.find(function(u,a){if(u.dir===r)return o=a,!0}),o]}},{key:"doDirective",value:function(){var n=this,a=this.state,r=a.savedDirectives;if(!(o=a.ref)){for(var o=(this._reactInternals||this._reactInternalFiber).child;o&&o.tag!==5;)o=o.child;if(!o)return;o=o.stateNode}var u=this.props.vnode,a=u.dirs;a&&(a.forEach(function(i){var s,l,c,d,p,y,m;i&&(m=(s=i0(n.findDirectiveName(i),2))[0],s=s[1],l=(p=i.dir).created,c=p.beforeMount,d=p.mounted,y=p.beforeUpdate,p=p.updated,m?(r[s]=z(z(z({},m),i),{},{oldValue:m.oldValue}),m=[o,r[s],u,n.state.prevVnode],y!=null&&y.apply(null,m),p!=null&&p.apply(null,m),r[s].oldValue=i.value):(r.push(i),y=[o,i,u,null],l!=null&&l.apply(null,y),c!=null&&c.apply(null,y),d!=null&&d.apply(null,y),i.oldValue=i.value))}),this.setState({prevVnode:z({},u),savedDirectives:r,ref:o}))}},{key:"componentDidMount",value:function(){this.doDirective()}},{key:"componentDidUpdate",value:function(n){n.vnode!==this.props.vnode&&this.doDirective()}},{key:"componentWillUnmount",value:function(){var n=this,r=this.props.vnode,i=this.state,o=i.savedDirectives,u=i.ref,a=i.prevVnode,i=r.dirs;i&&(i.forEach(function(s){var l,c,d,p;s&&(l=(p=i0(n.findDirectiveName(s),2))[0],p=p[1],l&&(c=(d=s.dir).beforeUnmount,d=d.unmounted,o[p]=z(z({},l),s),p=[u,l,r,a],c!=null&&c.apply(null,p),d!=null&&d.apply(null,p)))}),this.setState({prevVnode:z({},r),savedDirectives:o}))}},{key:"render",value:function(){var n=this.props;return n.vnode,n.children}}]),t}();function IF(e,t){var n;return typeof e=="function"&&(n=e.toString(),e.prototype!==void 0&&e.prototype.constructor===e&&(n.slice(0,5)=="class"||2<=Object.getOwnPropertyNames(e.prototype).length||!/^function\s+\(|^function\s+anonymous\(/.test(n)&&(!(!t||!/^function\s+[A-Z]/.test(n))||!!/\b\(this\b|\bthis[\.\[]\b/.test(n)&&(!(t&&!/classCallCheck\(this/.test(n))||/^function\sdefault_\d+\s*\(/.test(n)))))}function E0(e){var t,n;return typeof((n=e.type)==null?void 0:n.originReactComponent)!="function"||IF((n=e.type)==null?void 0:n.originReactComponent)?((n=(n=e.ref)==null?void 0:n.r)&&typeof n=="string"&&(t=n,n=function(r){var o;r&&(e.ref.i.refs&&((o=z({},e.ref.i.refs))[t]=r,e.ref.i.refs=o),((o=e.ref.i.setupState)==null?void 0:o[t])!==void 0&&(e.ref.i.setupState[t]=r))},n=new Proxy(n,{get:function(r,o){return r[o]},set:function(r,o,u){var a;return(a=e.ref.i.refs)!=null&&a[t]&&((a=z({},e.ref.i.refs))[o]=u,e.ref.i.refs=a),u}})),n):null}function Tf(e,t){return!t||t instanceof Array&&t.length===0||(typeof t=="string"&&(t=[t]),(e=z({},e)).props=z({},e.props),t.forEach(function(n){e.props[n]=""})),e}var MF=["style","class"];function B0(e,t,n,r,o,u,a){var i,s,l;return t==="all"||t instanceof Array||(t=t?[t]:[]),e.type===v.Fragment?o(e.children,n,u):typeof e.type=="string"&&(t==="all"||-1<t.indexOf(e.type))?(t=E0(e),l=(s=e.props||{}).style,i=s.class,s=z(z({},Mt(s,MF)),{},{style:is(l),className:Array.from(new Set(ss(i))).join(" ")},t?{ref:t}:{}),(l=e.children||s.children)&&((l=-1<["string","number"].indexOf(Je(l))?[l]:os(l)).__top__=a),w0(e,Tf(re.createElement(e.type,s,o(l,n,u)),e.scopeId))):n([e],null,r)}function $F(){return 0<arguments.length&&arguments[0]!==void 0?arguments[0]:{}}function A0(e,t,n){return!((e=e instanceof Array&&e.length===1?e[0]:e)instanceof Array)&&e.key==null&&1<t.length&&((e=z({},e)).key="_key_".concat(n)),e}function b0(r){var t=r.reactComponents,n=r.domTags,r=r.division,o=r===void 0||r;return function u(a,i,s){var l;return a&&a.forEach?(l=[],a.forEach(function(c,d){if(c&&c.type!==v.Comment){if((m=c.type)==null||!m.originReactComponent)return c.$$typeof||typeof c=="string"||typeof c=="number"?void l.push(c):C0(c)?void(c.children.trim()!==""&&l.push(c.children.trim())):void(c.type&&(Tf(m=A0(B0(c,n,i,o,u,s,a.__top__),a,d),c.scopeId),l.push(m)));var p,y,m=c.type.originReactComponent;Tf(p=A0(p=(t=t==="all"||t instanceof Array?t:[t])==="all"||-1<t.indexOf(m)?(c.__top__=a.__top__,p=NF(c,"_key_".concat(d),i,u,s),y=E0(c),c.children&&(c.children.__top__=a.__top__),w0(c,re.createElement(m,z(z(z({},$F(p,c,m)),c.__extraData||{}),y?{ref:y}:{})))):C0(c)?c.text:B0(c,n,i,o,u,s),a,d),c.scopeId),l.push(p)}}),l.length===1?l[0]:l):a}}var Rf=b0({reactComponents:"all",domTags:"all"});function LF(e,t){return TF(e,{combinedOption:z({pureTransformer:!0,defaultSlotsFormatter:Rf,defaultPropsFormatter:function(n,r,o){var u={};return Object.keys(n).forEach(function(a){var i=n[a];i&&(i.vueFunction?(u[a]=function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return Rf(i.vueFunction.apply(this,l),r,o)},Object.defineProperty(u[a],"length",{get:function(){return i.vueFunction.length}})):i.vueSlot&&(u[a]=Rf(i.vueSlot,r,o)))}),Object.assign(n,u)}},t)})}b0({reactComponents:"all",domTags:"all"});var zF=["ref","children","v-slots"];function VF(s,t,n,r,o){var s=s.props||{},l=(s.ref,s.children),a=s["v-slots"],u=a===void 0?{}:a,a=Mt(s,zF),i=(l&&(Je(l)!=="object"||l instanceof Array||l.$$typeof?u.default=l:u=l),null),s=(Object.keys(u||{}).forEach(function(d){var p=u[d];(i=i||{})[d]=function(){if(typeof p=="function"){for(var y=arguments.length,m=new Array(y),f=0;f<y;f++)m[f]=arguments[f];p=p.apply(this,m)}return r(p,n,o)}}),{}),l=is(a.style),c=Array.from(new Set(ss(a.className))).join(" ");return 0<Object.keys(l).length&&(s.style=l),c!==""&&(s.class=c),Object.assign(a,z({},s)),delete a.className,{props:a=_f(a),slots:i}}function F0(e){var t=e.ref;if(t)return Je(t)==="object"?function(n){e.ref.current=n}:typeof t=="function"?t:void 0}var WF=["style","class","children"];function x0(e,t,n,r,o,u){var a,i,s,l;return t==="all"||t instanceof Array||(t=t?[t]:[]),e.type===L.Fragment?o((a=e.props)==null?void 0:a.children,n):typeof e.type=="string"&&(t==="all"||-1<t.indexOf(e.type))?(a=F0(e),l=(t=e.props||{}).style,s=t.class,i=t.children,t=Mt(t,WF),s=Array.from(new Set(ss(s))).join(" "),l=is(l),t=z(z(z(z({},t),Object.keys(l).length===0?{}:{style:l}),s?{className:s}:{}),a?{ref:a}:{}),Object.keys(t).length===0&&(t=null),(l=i)&&((l=-1<["string","number"].indexOf(Je(l))?[l]:l instanceof Array?os(l):z({},l)).__top__=u),v.h(e.type,t,o(l,n))):n([e],null,r)}function S0(r){var t=r.vueComponents,n=r.domTags,r=r.division,o=r===void 0||r;return function u(a,i){if(a==null)return a;a instanceof Array||(a=[a]);var s=[];return a.forEach(function(l,c){if(((d=l.type)==null||!d.originVueComponent)&&l.type!==Pf)return l.__v_isVNode||typeof l=="string"||typeof l=="number"?void s.push(l):void(l.type&&(d=x0(l,n,i,o,u,a.__top__),s.push(d)));var d=l.type.originVueComponent;if(l.type===Pf){if(!l.props.component)return void s.push(l.props.node);d=l.props.component,l=z({},l);var p=z({},l.props);delete p.component,l.props=p}d=(t=t==="all"||t instanceof Array?t:[t])==="all"||-1<t.indexOf(d)?((l=z({},l)).__top__=a.__top__,c=(p=VF(l,"_key_".concat(c),i,u)).props,p=p.slots,F0(l),l.children&&(l.children.__top__=a.__top__),v.h(d,z({},c),p)):x0(l,n,i,o,u),s.push(d)}),(s=s.flat(1/0)).length===1?s[0]:s}}S0({vueComponents:"all",domTags:"all"}),S0({reactComponents:"all",domTags:"all"}),new us;var O0={exports:{}},ls={};/**
41
+ `+u.stack}return{value:e,source:t,stack:o,digest:null}}function gf(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function yf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var pS=typeof WeakMap=="function"?WeakMap:Map;function Kg(e,t,n){n=bn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ji||(Ji=!0,Tf=r),yf(e,t)},n}function qg(e,t,n){n=bn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){yf(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){yf(e,t),typeof r!="function"&&(Xn===null?Xn=new Set([this]):Xn.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Yg(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new pS;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=FS.bind(null,e,t,n),t.then(e,e))}function Qg(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Gg(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=bn(-1,1),t.tag=2,Qn(n,t,1))),n.lanes|=1),e)}var vS=yn.ReactCurrentOwner,dt=!1;function ot(e,t,n,r){t.child=e===null?mg(t,null,n,r):Eo(t,e.child,n,r)}function Xg(e,t,n,r,o){n=n.render;var u=t.ref;return bo(t,o),r=lf(e,t,n,r,u,o),n=cf(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,An(e,t,o)):(Ee&&n&&Hc(t),t.flags|=1,ot(e,t,r,o),t.child)}function Zg(e,t,n,r,o){if(e===null){var u=n.type;return typeof u=="function"&&!Lf(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,Jg(e,t,u,r,o)):(e=us(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!(e.lanes&o)){var a=u.memoizedProps;if(n=n.compare,n=n!==null?n:ku,n(a,r)&&e.ref===t.ref)return An(e,t,o)}return t.flags|=1,e=tr(u,r),e.ref=t.ref,e.return=t,t.child=e}function Jg(e,t,n,r,o){if(e!==null){var u=e.memoizedProps;if(ku(u,r)&&e.ref===t.ref)if(dt=!1,t.pendingProps=r=u,(e.lanes&o)!==0)e.flags&131072&&(dt=!0);else return t.lanes=e.lanes,An(e,t,o)}return Df(e,t,n,r,o)}function e0(e,t,n){var r=t.pendingProps,o=r.children,u=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ye(So,xt),xt|=n;else{if(!(n&1073741824))return e=u!==null?u.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ye(So,xt),xt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,ye(So,xt),xt|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,ye(So,xt),xt|=r;return ot(e,t,o,n),t.child}function t0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Df(e,t,n,r,o){var u=ft(n)?Er:Ge.current;return u=yo(t,u),bo(t,o),n=lf(e,t,n,r,u,o),r=cf(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,An(e,t,o)):(Ee&&r&&Hc(t),t.flags|=1,ot(e,t,n,o),t.child)}function n0(e,t,n,r,o){if(ft(n)){var u=!0;_i(t)}else u=!1;if(bo(t,o),t.stateNode===null)Yi(e,t),Ug(t,n,r),mf(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,i=t.memoizedProps;a.props=i;var s=a.context,l=n.contextType;typeof l=="object"&&l!==null?l=Nt(l):(l=ft(n)?Er:Ge.current,l=yo(t,l));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(i!==r||s!==l)&&Hg(t,a,r,l),Yn=!1;var p=t.memoizedState;a.state=p,$i(t,r,a,o),s=t.memoizedState,i!==r||p!==s||ct.current||Yn?(typeof c=="function"&&(hf(t,n,c,r),s=t.memoizedState),(i=Yn||Wg(t,n,i,r,p,s,l))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=l,r=i):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,yg(e,t),i=t.memoizedProps,l=t.type===t.elementType?i:Yt(t.type,i),a.props=l,d=t.pendingProps,p=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=Nt(s):(s=ft(n)?Er:Ge.current,s=yo(t,s));var y=n.getDerivedStateFromProps;(c=typeof y=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(i!==d||p!==s)&&Hg(t,a,r,s),Yn=!1,p=t.memoizedState,a.state=p,$i(t,r,a,o);var m=t.memoizedState;i!==d||p!==m||ct.current||Yn?(typeof y=="function"&&(hf(t,n,y,r),m=t.memoizedState),(l=Yn||Wg(t,n,l,r,p,m,s)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,m,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,m,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=s,r=l):(typeof a.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Cf(e,t,n,r,u,o)}function Cf(e,t,n,r,o,u){t0(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&ig(t,n,!1),An(e,t,u);r=t.stateNode,vS.current=t;var i=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Eo(t,e.child,null,u),t.child=Eo(t,null,i,u)):ot(e,t,i,u),t.memoizedState=r.state,o&&ig(t,n,!0),t.child}function r0(e){var t=e.stateNode;t.pendingContext?ug(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ug(e,t.context,!1),nf(e,t.containerInfo)}function o0(e,t,n,r,o){return wo(),Qc(o),t.flags|=256,ot(e,t,n,r),t.child}var wf={dehydrated:null,treeContext:null,retryLane:0};function Ef(e){return{baseLanes:e,cachePool:null,transitions:null}}function u0(e,t,n){var r=t.pendingProps,o=xe.current,u=!1,a=(t.flags&128)!==0,i;if((i=a)||(i=e!==null&&e.memoizedState===null?!1:(o&2)!==0),i?(u=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ye(xe,o&1),e===null)return Yc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,u?(r=t.mode,u=t.child,a={mode:"hidden",children:a},!(r&1)&&u!==null?(u.childLanes=0,u.pendingProps=a):u=as(a,r,0,null),e=Pr(e,r,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=Ef(n),t.memoizedState=wf,e):Bf(t,a));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return hS(e,t,a,r,i,o,n);if(u){u=r.fallback,a=t.mode,o=e.child,i=o.sibling;var s={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=tr(o,s),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?u=tr(i,u):(u=Pr(u,a,n,null),u.flags|=2),u.return=t,r.return=t,r.sibling=u,t.child=r,r=u,u=t.child,a=e.child.memoizedState,a=a===null?Ef(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},u.memoizedState=a,u.childLanes=e.childLanes&~n,t.memoizedState=wf,r}return u=e.child,e=u.sibling,r=tr(u,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Bf(e,t){return t=as({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function qi(e,t,n,r){return r!==null&&Qc(r),Eo(t,e.child,null,n),e=Bf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hS(e,t,n,r,o,u,a){if(n)return t.flags&256?(t.flags&=-257,r=gf(Error(K(422))),qi(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=r.fallback,o=t.mode,r=as({mode:"visible",children:r.children},o,0,null),u=Pr(u,o,a,null),u.flags|=2,r.return=t,u.return=t,r.sibling=u,t.child=r,t.mode&1&&Eo(t,e.child,null,a),t.child.memoizedState=Ef(a),t.memoizedState=wf,u);if(!(t.mode&1))return qi(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var i=r.dgst;return r=i,u=Error(K(419)),r=gf(u,r,void 0),qi(e,t,a,r)}if(i=(a&e.childLanes)!==0,dt||i){if(r=We,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==u.retryLane&&(u.retryLane=o,Bn(e,o),Xt(r,e,o,-1))}return $f(),r=gf(Error(K(421))),qi(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=SS.bind(null,e),o._reactRetry=t,null):(e=u.treeContext,At=Un(o.nextSibling),bt=t,Ee=!0,qt=null,e!==null&&(Tt[Rt++]=wn,Tt[Rt++]=En,Tt[Rt++]=Br,wn=e.id,En=e.overflow,Br=t),t=Bf(t,r.children),t.flags|=4096,t)}function a0(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Jc(e.return,t,n)}function bf(e,t,n,r,o){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=r,u.tail=n,u.tailMode=o)}function i0(e,t,n){var r=t.pendingProps,o=r.revealOrder,u=r.tail;if(ot(e,t,r.children,n),r=xe.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&a0(e,n,t);else if(e.tag===19)a0(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ye(xe,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Li(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),bf(t,!1,o,n,u);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Li(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}bf(t,!0,n,null,u);break;case"together":bf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Yi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function An(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Sr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(K(153));if(t.child!==null){for(e=t.child,n=tr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=tr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function mS(e,t,n){switch(t.tag){case 3:r0(t),wo();break;case 5:wg(t);break;case 1:ft(t.type)&&_i(t);break;case 4:nf(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ye(ji,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ye(xe,xe.current&1),t.flags|=128,null):n&t.child.childLanes?u0(e,t,n):(ye(xe,xe.current&1),e=An(e,t,n),e!==null?e.sibling:null);ye(xe,xe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return i0(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ye(xe,xe.current),r)break;return null;case 22:case 23:return t.lanes=0,e0(e,t,n)}return An(e,t,n)}var s0,Af,l0,c0;s0=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Af=function(){},l0=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,xr(un.current);var u=null;switch(n){case"input":o=Jl(e,o),r=Jl(e,r),u=[];break;case"select":o=Ae({},o,{value:void 0}),r=Ae({},r,{value:void 0}),u=[];break;case"textarea":o=nc(e,o),r=nc(e,r),u=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Fi)}oc(n,r);var a;n=null;for(l in o)if(!r.hasOwnProperty(l)&&o.hasOwnProperty(l)&&o[l]!=null)if(l==="style"){var i=o[l];for(a in i)i.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(cu.hasOwnProperty(l)?u||(u=[]):(u=u||[]).push(l,null));for(l in r){var s=r[l];if(i=o!=null?o[l]:void 0,r.hasOwnProperty(l)&&s!==i&&(s!=null||i!=null))if(l==="style")if(i){for(a in i)!i.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&i[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(u||(u=[]),u.push(l,n)),n=s;else l==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,i=i?i.__html:void 0,s!=null&&i!==s&&(u=u||[]).push(l,s)):l==="children"?typeof s!="string"&&typeof s!="number"||(u=u||[]).push(l,""+s):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(cu.hasOwnProperty(l)?(s!=null&&l==="onScroll"&&De("scroll",e),u||i===s||(u=[])):(u=u||[]).push(l,s))}n&&(u=u||[]).push("style",n);var l=u;(t.updateQueue=l)&&(t.flags|=4)}},c0=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ku(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function gS(e,t,n){var r=t.pendingProps;switch(Kc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(t),null;case 1:return ft(t.type)&&Oi(),Ze(t),null;case 3:return r=t.stateNode,Ao(),Ce(ct),Ce(Ge),uf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ri(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,qt!==null&&(jf(qt),qt=null))),Af(e,t),Ze(t),null;case 5:rf(t);var o=xr(zu.current);if(n=t.type,e!==null&&t.stateNode!=null)l0(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(K(166));return Ze(t),null}if(e=xr(un.current),Ri(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[on]=t,r[ju]=u,e=(t.mode&1)!==0,n){case"dialog":De("cancel",r),De("close",r);break;case"iframe":case"object":case"embed":De("load",r);break;case"video":case"audio":for(o=0;o<Tu.length;o++)De(Tu[o],r);break;case"source":De("error",r);break;case"img":case"image":case"link":De("error",r),De("load",r);break;case"details":De("toggle",r);break;case"input":Uh(r,u),De("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},De("invalid",r);break;case"textarea":qh(r,u),De("invalid",r)}oc(n,u),o=null;for(var a in u)if(u.hasOwnProperty(a)){var i=u[a];a==="children"?typeof i=="string"?r.textContent!==i&&(u.suppressHydrationWarning!==!0&&xi(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(u.suppressHydrationWarning!==!0&&xi(r.textContent,i,e),o=["children",""+i]):cu.hasOwnProperty(a)&&i!=null&&a==="onScroll"&&De("scroll",r)}switch(n){case"input":ri(r),Kh(r,u,!0);break;case"textarea":ri(r),Qh(r);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(r.onclick=Fi)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Gh(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[on]=t,e[ju]=r,s0(e,t,!1,!1),t.stateNode=e;e:{switch(a=uc(n,r),n){case"dialog":De("cancel",e),De("close",e),o=r;break;case"iframe":case"object":case"embed":De("load",e),o=r;break;case"video":case"audio":for(o=0;o<Tu.length;o++)De(Tu[o],e);o=r;break;case"source":De("error",e),o=r;break;case"img":case"image":case"link":De("error",e),De("load",e),o=r;break;case"details":De("toggle",e),o=r;break;case"input":Uh(e,r),o=Jl(e,r),De("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Ae({},r,{value:void 0}),De("invalid",e);break;case"textarea":qh(e,r),o=nc(e,r),De("invalid",e);break;default:o=r}oc(n,o),i=o;for(u in i)if(i.hasOwnProperty(u)){var s=i[u];u==="style"?Jh(e,s):u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&Xh(e,s)):u==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&vu(e,s):typeof s=="number"&&vu(e,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(cu.hasOwnProperty(u)?s!=null&&u==="onScroll"&&De("scroll",e):s!=null&&Vl(e,u,s,a))}switch(n){case"input":ri(e),Kh(e,r,!1);break;case"textarea":ri(e),Qh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+In(r.value));break;case"select":e.multiple=!!r.multiple,u=r.value,u!=null?uo(e,!!r.multiple,u,!1):r.defaultValue!=null&&uo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Fi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ze(t),null;case 6:if(e&&t.stateNode!=null)c0(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(K(166));if(n=xr(zu.current),xr(un.current),Ri(t)){if(r=t.stateNode,n=t.memoizedProps,r[on]=t,(u=r.nodeValue!==n)&&(e=bt,e!==null))switch(e.tag){case 3:xi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&xi(r.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[on]=t,t.stateNode=r}return Ze(t),null;case 13:if(Ce(xe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&At!==null&&t.mode&1&&!(t.flags&128))pg(),wo(),t.flags|=98560,u=!1;else if(u=Ri(t),r!==null&&r.dehydrated!==null){if(e===null){if(!u)throw Error(K(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(K(317));u[on]=t}else wo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ze(t),u=!1}else qt!==null&&(jf(qt),qt=null),u=!0;if(!u)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||xe.current&1?$e===0&&($e=3):$f())),t.updateQueue!==null&&(t.flags|=4),Ze(t),null);case 4:return Ao(),Af(e,t),e===null&&Ru(t.stateNode.containerInfo),Ze(t),null;case 10:return Zc(t.type._context),Ze(t),null;case 17:return ft(t.type)&&Oi(),Ze(t),null;case 19:if(Ce(xe),u=t.memoizedState,u===null)return Ze(t),null;if(r=(t.flags&128)!==0,a=u.rendering,a===null)if(r)Ku(u,!1);else{if($e!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Li(e),a!==null){for(t.flags|=128,Ku(u,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)u=n,e=r,u.flags&=14680066,a=u.alternate,a===null?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=a.childLanes,u.lanes=a.lanes,u.child=a.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=a.memoizedProps,u.memoizedState=a.memoizedState,u.updateQueue=a.updateQueue,u.type=a.type,e=a.dependencies,u.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ye(xe,xe.current&1|2),t.child}e=e.sibling}u.tail!==null&&Pe()>Oo&&(t.flags|=128,r=!0,Ku(u,!1),t.lanes=4194304)}else{if(!r)if(e=Li(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ku(u,!0),u.tail===null&&u.tailMode==="hidden"&&!a.alternate&&!Ee)return Ze(t),null}else 2*Pe()-u.renderingStartTime>Oo&&n!==1073741824&&(t.flags|=128,r=!0,Ku(u,!1),t.lanes=4194304);u.isBackwards?(a.sibling=t.child,t.child=a):(n=u.last,n!==null?n.sibling=a:t.child=a,u.last=a)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Pe(),t.sibling=null,n=xe.current,ye(xe,r?n&1|2:n&1),t):(Ze(t),null);case 22:case 23:return Mf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?xt&1073741824&&(Ze(t),t.subtreeFlags&6&&(t.flags|=8192)):Ze(t),null;case 24:return null;case 25:return null}throw Error(K(156,t.tag))}function yS(e,t){switch(Kc(t),t.tag){case 1:return ft(t.type)&&Oi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ao(),Ce(ct),Ce(Ge),uf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return rf(t),null;case 13:if(Ce(xe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(K(340));wo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ce(xe),null;case 4:return Ao(),null;case 10:return Zc(t.type._context),null;case 22:case 23:return Mf(),null;case 24:return null;default:return null}}var Qi=!1,Je=!1,DS=typeof WeakSet=="function"?WeakSet:Set,J=null;function Fo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Oe(e,t,r)}else n.current=null}function xf(e,t,n){try{n()}catch(r){Oe(e,t,r)}}var f0=!1;function CS(e,t){if(Ic=hi,e=Wm(),Oc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var a=0,i=-1,s=-1,l=0,c=0,d=e,p=null;t:for(;;){for(var y;d!==n||o!==0&&d.nodeType!==3||(i=a+o),d!==u||r!==0&&d.nodeType!==3||(s=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(y=d.firstChild)!==null;)p=d,d=y;for(;;){if(d===e)break t;if(p===n&&++l===o&&(i=a),p===u&&++c===r&&(s=a),(y=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=y}n=i===-1||s===-1?null:{start:i,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Mc={focusedElem:e,selectionRange:n},hi=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var f=m.memoizedProps,w=m.memoizedState,h=t.stateNode,g=h.getSnapshotBeforeUpdate(t.elementType===t.type?f:Yt(t.type,f),w);h.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(K(163))}}catch(E){Oe(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return m=f0,f0=!1,m}function qu(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var u=o.destroy;o.destroy=void 0,u!==void 0&&xf(t,n,u)}o=o.next}while(o!==r)}}function Gi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ff(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function d0(e){var t=e.alternate;t!==null&&(e.alternate=null,d0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[on],delete t[ju],delete t[Vc],delete t[nS],delete t[rS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function p0(e){return e.tag===5||e.tag===3||e.tag===4}function v0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||p0(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Sf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Fi));else if(r!==4&&(e=e.child,e!==null))for(Sf(e,t,n),e=e.sibling;e!==null;)Sf(e,t,n),e=e.sibling}function Of(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Of(e,t,n),e=e.sibling;e!==null;)Of(e,t,n),e=e.sibling}var Ke=null,Qt=!1;function Gn(e,t,n){for(n=n.child;n!==null;)h0(e,t,n),n=n.sibling}function h0(e,t,n){if(rn&&typeof rn.onCommitFiberUnmount=="function")try{rn.onCommitFiberUnmount(li,n)}catch{}switch(n.tag){case 5:Je||Fo(n,t);case 6:var r=Ke,o=Qt;Ke=null,Gn(e,t,n),Ke=r,Qt=o,Ke!==null&&(Qt?(e=Ke,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ke.removeChild(n.stateNode));break;case 18:Ke!==null&&(Qt?(e=Ke,n=n.stateNode,e.nodeType===8?zc(e.parentNode,n):e.nodeType===1&&zc(e,n),Au(e)):zc(Ke,n.stateNode));break;case 4:r=Ke,o=Qt,Ke=n.stateNode.containerInfo,Qt=!0,Gn(e,t,n),Ke=r,Qt=o;break;case 0:case 11:case 14:case 15:if(!Je&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var u=o,a=u.destroy;u=u.tag,a!==void 0&&(u&2||u&4)&&xf(n,t,a),o=o.next}while(o!==r)}Gn(e,t,n);break;case 1:if(!Je&&(Fo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){Oe(n,t,i)}Gn(e,t,n);break;case 21:Gn(e,t,n);break;case 22:n.mode&1?(Je=(r=Je)||n.memoizedState!==null,Gn(e,t,n),Je=r):Gn(e,t,n);break;default:Gn(e,t,n)}}function m0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new DS),t.forEach(function(r){var o=OS.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Gt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var u=e,a=t,i=a;e:for(;i!==null;){switch(i.tag){case 5:Ke=i.stateNode,Qt=!1;break e;case 3:Ke=i.stateNode.containerInfo,Qt=!0;break e;case 4:Ke=i.stateNode.containerInfo,Qt=!0;break e}i=i.return}if(Ke===null)throw Error(K(160));h0(u,a,o),Ke=null,Qt=!1;var s=o.alternate;s!==null&&(s.return=null),o.return=null}catch(l){Oe(o,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)g0(t,e),t=t.sibling}function g0(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Gt(t,e),sn(e),r&4){try{qu(3,e,e.return),Gi(3,e)}catch(f){Oe(e,e.return,f)}try{qu(5,e,e.return)}catch(f){Oe(e,e.return,f)}}break;case 1:Gt(t,e),sn(e),r&512&&n!==null&&Fo(n,n.return);break;case 5:if(Gt(t,e),sn(e),r&512&&n!==null&&Fo(n,n.return),e.flags&32){var o=e.stateNode;try{vu(o,"")}catch(f){Oe(e,e.return,f)}}if(r&4&&(o=e.stateNode,o!=null)){var u=e.memoizedProps,a=n!==null?n.memoizedProps:u,i=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{i==="input"&&u.type==="radio"&&u.name!=null&&Hh(o,u),uc(i,a);var l=uc(i,u);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];c==="style"?Jh(o,d):c==="dangerouslySetInnerHTML"?Xh(o,d):c==="children"?vu(o,d):Vl(o,c,d,l)}switch(i){case"input":ec(o,u);break;case"textarea":Yh(o,u);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!u.multiple;var y=u.value;y!=null?uo(o,!!u.multiple,y,!1):p!==!!u.multiple&&(u.defaultValue!=null?uo(o,!!u.multiple,u.defaultValue,!0):uo(o,!!u.multiple,u.multiple?[]:"",!1))}o[ju]=u}catch(f){Oe(e,e.return,f)}}break;case 6:if(Gt(t,e),sn(e),r&4){if(e.stateNode===null)throw Error(K(162));o=e.stateNode,u=e.memoizedProps;try{o.nodeValue=u}catch(f){Oe(e,e.return,f)}}break;case 3:if(Gt(t,e),sn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Au(t.containerInfo)}catch(f){Oe(e,e.return,f)}break;case 4:Gt(t,e),sn(e);break;case 13:Gt(t,e),sn(e),o=e.child,o.flags&8192&&(u=o.memoizedState!==null,o.stateNode.isHidden=u,!u||o.alternate!==null&&o.alternate.memoizedState!==null||(Pf=Pe())),r&4&&m0(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Je=(l=Je)||c,Gt(t,e),Je=l):Gt(t,e),sn(e),r&8192){if(l=e.memoizedState!==null,(e.stateNode.isHidden=l)&&!c&&e.mode&1)for(J=e,c=e.child;c!==null;){for(d=J=c;J!==null;){switch(p=J,y=p.child,p.tag){case 0:case 11:case 14:case 15:qu(4,p,p.return);break;case 1:Fo(p,p.return);var m=p.stateNode;if(typeof m.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(f){Oe(r,n,f)}}break;case 5:Fo(p,p.return);break;case 22:if(p.memoizedState!==null){C0(d);continue}}y!==null?(y.return=p,J=y):C0(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{o=d.stateNode,l?(u=o.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none"):(i=d.stateNode,s=d.memoizedProps.style,a=s!=null&&s.hasOwnProperty("display")?s.display:null,i.style.display=Zh("display",a))}catch(f){Oe(e,e.return,f)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(f){Oe(e,e.return,f)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Gt(t,e),sn(e),r&4&&m0(e);break;case 21:break;default:Gt(t,e),sn(e)}}function sn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(p0(n)){var r=n;break e}n=n.return}throw Error(K(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(vu(o,""),r.flags&=-33);var u=v0(e);Of(e,u,o);break;case 3:case 4:var a=r.stateNode.containerInfo,i=v0(e);Sf(e,i,a);break;default:throw Error(K(161))}}catch(s){Oe(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function wS(e,t,n){J=e,y0(e)}function y0(e,t,n){for(var r=(e.mode&1)!==0;J!==null;){var o=J,u=o.child;if(o.tag===22&&r){var a=o.memoizedState!==null||Qi;if(!a){var i=o.alternate,s=i!==null&&i.memoizedState!==null||Je;i=Qi;var l=Je;if(Qi=a,(Je=s)&&!l)for(J=o;J!==null;)a=J,s=a.child,a.tag===22&&a.memoizedState!==null?w0(o):s!==null?(s.return=a,J=s):w0(o);for(;u!==null;)J=u,y0(u),u=u.sibling;J=o,Qi=i,Je=l}D0(e)}else o.subtreeFlags&8772&&u!==null?(u.return=o,J=u):D0(e)}}function D0(e){for(;J!==null;){var t=J;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Je||Gi(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Je)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Yt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var u=t.updateQueue;u!==null&&Cg(t,u,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Cg(t,a,n)}break;case 5:var i=t.stateNode;if(n===null&&t.flags&4){n=i;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var l=t.alternate;if(l!==null){var c=l.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&Au(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(K(163))}Je||t.flags&512&&Ff(t)}catch(p){Oe(t,t.return,p)}}if(t===e){J=null;break}if(n=t.sibling,n!==null){n.return=t.return,J=n;break}J=t.return}}function C0(e){for(;J!==null;){var t=J;if(t===e){J=null;break}var n=t.sibling;if(n!==null){n.return=t.return,J=n;break}J=t.return}}function w0(e){for(;J!==null;){var t=J;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Gi(4,t)}catch(s){Oe(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(s){Oe(t,o,s)}}var u=t.return;try{Ff(t)}catch(s){Oe(t,u,s)}break;case 5:var a=t.return;try{Ff(t)}catch(s){Oe(t,a,s)}}}catch(s){Oe(t,t.return,s)}if(t===e){J=null;break}var i=t.sibling;if(i!==null){i.return=t.return,J=i;break}J=t.return}}var ES=Math.ceil,Xi=yn.ReactCurrentDispatcher,_f=yn.ReactCurrentOwner,It=yn.ReactCurrentBatchConfig,fe=0,We=null,je=null,qe=0,xt=0,So=Hn(0),$e=0,Yu=null,Sr=0,Zi=0,kf=0,Qu=null,pt=null,Pf=0,Oo=1/0,xn=null,Ji=!1,Tf=null,Xn=null,es=!1,Zn=null,ts=0,Gu=0,Rf=null,ns=-1,rs=0;function ut(){return fe&6?Pe():ns!==-1?ns:ns=Pe()}function Jn(e){return e.mode&1?fe&2&&qe!==0?qe&-qe:uS.transition!==null?(rs===0&&(rs=vm()),rs):(e=pe,e!==0||(e=window.event,e=e===void 0?16:Bm(e.type)),e):1}function Xt(e,t,n,r){if(50<Gu)throw Gu=0,Rf=null,Error(K(185));Cu(e,n,r),(!(fe&2)||e!==We)&&(e===We&&(!(fe&2)&&(Zi|=n),$e===4&&er(e,qe)),vt(e,r),n===1&&fe===0&&!(t.mode&1)&&(Oo=Pe()+500,ki&&qn()))}function vt(e,t){var n=e.callbackNode;uF(e,t);var r=di(e,e===We?qe:0);if(r===0)n!==null&&fm(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&fm(n),t===1)e.tag===0?oS(B0.bind(null,e)):sg(B0.bind(null,e)),eS(function(){!(fe&6)&&qn()}),n=null;else{switch(hm(r)){case 1:n=dc;break;case 4:n=dm;break;case 16:n=si;break;case 536870912:n=pm;break;default:n=si}n=k0(n,E0.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function E0(e,t){if(ns=-1,rs=0,fe&6)throw Error(K(327));var n=e.callbackNode;if(_o()&&e.callbackNode!==n)return null;var r=di(e,e===We?qe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=os(e,r);else{t=r;var o=fe;fe|=2;var u=A0();(We!==e||qe!==t)&&(xn=null,Oo=Pe()+500,_r(e,t));do try{AS();break}catch(i){b0(e,i)}while(!0);Xc(),Xi.current=u,fe=o,je!==null?t=0:(We=null,qe=0,t=$e)}if(t!==0){if(t===2&&(o=pc(e),o!==0&&(r=o,t=Nf(e,o))),t===1)throw n=Yu,_r(e,0),er(e,r),vt(e,Pe()),n;if(t===6)er(e,r);else{if(o=e.current.alternate,!(r&30)&&!BS(o)&&(t=os(e,r),t===2&&(u=pc(e),u!==0&&(r=u,t=Nf(e,u))),t===1))throw n=Yu,_r(e,0),er(e,r),vt(e,Pe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(K(345));case 2:kr(e,pt,xn);break;case 3:if(er(e,r),(r&130023424)===r&&(t=Pf+500-Pe(),10<t)){if(di(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){ut(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Lc(kr.bind(null,e,pt,xn),t);break}kr(e,pt,xn);break;case 4:if(er(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-Ht(r);u=1<<a,a=t[a],a>o&&(o=a),r&=~u}if(r=o,r=Pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ES(r/1960))-r,10<r){e.timeoutHandle=Lc(kr.bind(null,e,pt,xn),r);break}kr(e,pt,xn);break;case 5:kr(e,pt,xn);break;default:throw Error(K(329))}}}return vt(e,Pe()),e.callbackNode===n?E0.bind(null,e):null}function Nf(e,t){var n=Qu;return e.current.memoizedState.isDehydrated&&(_r(e,t).flags|=256),e=os(e,t),e!==2&&(t=pt,pt=n,t!==null&&jf(t)),e}function jf(e){pt===null?pt=e:pt.push.apply(pt,e)}function BS(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],u=o.getSnapshot;o=o.value;try{if(!Kt(u(),o))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 er(e,t){for(t&=~kf,t&=~Zi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function B0(e){if(fe&6)throw Error(K(327));_o();var t=di(e,0);if(!(t&1))return vt(e,Pe()),null;var n=os(e,t);if(e.tag!==0&&n===2){var r=pc(e);r!==0&&(t=r,n=Nf(e,r))}if(n===1)throw n=Yu,_r(e,0),er(e,t),vt(e,Pe()),n;if(n===6)throw Error(K(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kr(e,pt,xn),vt(e,Pe()),null}function If(e,t){var n=fe;fe|=1;try{return e(t)}finally{fe=n,fe===0&&(Oo=Pe()+500,ki&&qn())}}function Or(e){Zn!==null&&Zn.tag===0&&!(fe&6)&&_o();var t=fe;fe|=1;var n=It.transition,r=pe;try{if(It.transition=null,pe=1,e)return e()}finally{pe=r,It.transition=n,fe=t,!(fe&6)&&qn()}}function Mf(){xt=So.current,Ce(So)}function _r(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,JF(n)),je!==null)for(n=je.return;n!==null;){var r=n;switch(Kc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Oi();break;case 3:Ao(),Ce(ct),Ce(Ge),uf();break;case 5:rf(r);break;case 4:Ao();break;case 13:Ce(xe);break;case 19:Ce(xe);break;case 10:Zc(r.type._context);break;case 22:case 23:Mf()}n=n.return}if(We=e,je=e=tr(e.current,null),qe=xt=t,$e=0,Yu=null,kf=Zi=Sr=0,pt=Qu=null,Ar!==null){for(t=0;t<Ar.length;t++)if(n=Ar[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,u=n.pending;if(u!==null){var a=u.next;u.next=o,r.next=a}n.pending=r}Ar=null}return e}function b0(e,t){do{var n=je;try{if(Xc(),zi.current=Hi,Vi){for(var r=Fe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Vi=!1}if(Fr=0,Ve=Me=Fe=null,Vu=!1,Wu=0,_f.current=null,n===null||n.return===null){$e=1,Yu=t,je=null;break}e:{var u=e,a=n.return,i=n,s=t;if(t=qe,i.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var l=s,c=i,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var y=Qg(a);if(y!==null){y.flags&=-257,Gg(y,a,i,u,t),y.mode&1&&Yg(u,l,t),t=y,s=l;var m=t.updateQueue;if(m===null){var f=new Set;f.add(s),t.updateQueue=f}else m.add(s);break e}else{if(!(t&1)){Yg(u,l,t),$f();break e}s=Error(K(426))}}else if(Ee&&i.mode&1){var w=Qg(a);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Gg(w,a,i,u,t),Qc(xo(s,i));break e}}u=s=xo(s,i),$e!==4&&($e=2),Qu===null?Qu=[u]:Qu.push(u),u=a;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var h=Kg(u,s,t);Dg(u,h);break e;case 1:i=s;var g=u.type,C=u.stateNode;if(!(u.flags&128)&&(typeof g.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Xn===null||!Xn.has(C)))){u.flags|=65536,t&=-t,u.lanes|=t;var E=qg(u,i,t);Dg(u,E);break e}}u=u.return}while(u!==null)}F0(n)}catch(B){t=B,je===n&&n!==null&&(je=n=n.return);continue}break}while(!0)}function A0(){var e=Xi.current;return Xi.current=Hi,e===null?Hi:e}function $f(){($e===0||$e===3||$e===2)&&($e=4),We===null||!(Sr&268435455)&&!(Zi&268435455)||er(We,qe)}function os(e,t){var n=fe;fe|=2;var r=A0();(We!==e||qe!==t)&&(xn=null,_r(e,t));do try{bS();break}catch(o){b0(e,o)}while(!0);if(Xc(),fe=n,Xi.current=r,je!==null)throw Error(K(261));return We=null,qe=0,$e}function bS(){for(;je!==null;)x0(je)}function AS(){for(;je!==null&&!Gx();)x0(je)}function x0(e){var t=_0(e.alternate,e,xt);e.memoizedProps=e.pendingProps,t===null?F0(e):je=t,_f.current=null}function F0(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=yS(n,t),n!==null){n.flags&=32767,je=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{$e=6,je=null;return}}else if(n=gS(n,t,xt),n!==null){je=n;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);$e===0&&($e=5)}function kr(e,t,n){var r=pe,o=It.transition;try{It.transition=null,pe=1,xS(e,t,n,r)}finally{It.transition=o,pe=r}return null}function xS(e,t,n,r){do _o();while(Zn!==null);if(fe&6)throw Error(K(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(K(177));e.callbackNode=null,e.callbackPriority=0;var u=n.lanes|n.childLanes;if(aF(e,u),e===We&&(je=We=null,qe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||es||(es=!0,k0(si,function(){return _o(),null})),u=(n.flags&15990)!==0,n.subtreeFlags&15990||u){u=It.transition,It.transition=null;var a=pe;pe=1;var i=fe;fe|=4,_f.current=null,CS(e,n),g0(n,e),KF(Mc),hi=!!Ic,Mc=Ic=null,e.current=n,wS(n),Xx(),fe=i,pe=a,It.transition=u}else e.current=n;if(es&&(es=!1,Zn=e,ts=o),u=e.pendingLanes,u===0&&(Xn=null),eF(n.stateNode),vt(e,Pe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Ji)throw Ji=!1,e=Tf,Tf=null,e;return ts&1&&e.tag!==0&&_o(),u=e.pendingLanes,u&1?e===Rf?Gu++:(Gu=0,Rf=e):Gu=0,qn(),null}function _o(){if(Zn!==null){var e=hm(ts),t=It.transition,n=pe;try{if(It.transition=null,pe=16>e?16:e,Zn===null)var r=!1;else{if(e=Zn,Zn=null,ts=0,fe&6)throw Error(K(331));var o=fe;for(fe|=4,J=e.current;J!==null;){var u=J,a=u.child;if(J.flags&16){var i=u.deletions;if(i!==null){for(var s=0;s<i.length;s++){var l=i[s];for(J=l;J!==null;){var c=J;switch(c.tag){case 0:case 11:case 15:qu(8,c,u)}var d=c.child;if(d!==null)d.return=c,J=d;else for(;J!==null;){c=J;var p=c.sibling,y=c.return;if(d0(c),c===l){J=null;break}if(p!==null){p.return=y,J=p;break}J=y}}}var m=u.alternate;if(m!==null){var f=m.child;if(f!==null){m.child=null;do{var w=f.sibling;f.sibling=null,f=w}while(f!==null)}}J=u}}if(u.subtreeFlags&2064&&a!==null)a.return=u,J=a;else e:for(;J!==null;){if(u=J,u.flags&2048)switch(u.tag){case 0:case 11:case 15:qu(9,u,u.return)}var h=u.sibling;if(h!==null){h.return=u.return,J=h;break e}J=u.return}}var g=e.current;for(J=g;J!==null;){a=J;var C=a.child;if(a.subtreeFlags&2064&&C!==null)C.return=a,J=C;else e:for(a=g;J!==null;){if(i=J,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:Gi(9,i)}}catch(B){Oe(i,i.return,B)}if(i===a){J=null;break e}var E=i.sibling;if(E!==null){E.return=i.return,J=E;break e}J=i.return}}if(fe=o,qn(),rn&&typeof rn.onPostCommitFiberRoot=="function")try{rn.onPostCommitFiberRoot(li,e)}catch{}r=!0}return r}finally{pe=n,It.transition=t}}return!1}function S0(e,t,n){t=xo(n,t),t=Kg(e,t,1),e=Qn(e,t,1),t=ut(),e!==null&&(Cu(e,1,t),vt(e,t))}function Oe(e,t,n){if(e.tag===3)S0(e,e,n);else for(;t!==null;){if(t.tag===3){S0(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Xn===null||!Xn.has(r))){e=xo(n,e),e=qg(t,e,1),t=Qn(t,e,1),e=ut(),t!==null&&(Cu(t,1,e),vt(t,e));break}}t=t.return}}function FS(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ut(),e.pingedLanes|=e.suspendedLanes&n,We===e&&(qe&n)===n&&($e===4||$e===3&&(qe&130023424)===qe&&500>Pe()-Pf?_r(e,0):kf|=n),vt(e,t)}function O0(e,t){t===0&&(e.mode&1?(t=fi,fi<<=1,!(fi&130023424)&&(fi=4194304)):t=1);var n=ut();e=Bn(e,t),e!==null&&(Cu(e,t,n),vt(e,n))}function SS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),O0(e,n)}function OS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(K(314))}r!==null&&r.delete(t),O0(e,n)}var _0;_0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ct.current)dt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return dt=!1,mS(e,t,n);dt=!!(e.flags&131072)}else dt=!1,Ee&&t.flags&1048576&&lg(t,Ti,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Yi(e,t),e=t.pendingProps;var o=yo(t,Ge.current);bo(t,n),o=lf(null,t,r,e,o,n);var u=cf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ft(r)?(u=!0,_i(t)):u=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,tf(t),o.updater=Ki,t.stateNode=o,o._reactInternals=t,mf(t,r,e,n),t=Cf(null,t,r,!0,u,n)):(t.tag=0,Ee&&u&&Hc(t),ot(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Yi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=kS(r),e=Yt(r,e),o){case 0:t=Df(null,t,r,e,n);break e;case 1:t=n0(null,t,r,e,n);break e;case 11:t=Xg(null,t,r,e,n);break e;case 14:t=Zg(null,t,r,Yt(r.type,e),n);break e}throw Error(K(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yt(r,o),Df(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yt(r,o),n0(e,t,r,o,n);case 3:e:{if(r0(t),e===null)throw Error(K(387));r=t.pendingProps,u=t.memoizedState,o=u.element,yg(e,t),$i(t,r,null,n);var a=t.memoizedState;if(r=a.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){o=xo(Error(K(423)),t),t=o0(e,t,r,n,o);break e}else if(r!==o){o=xo(Error(K(424)),t),t=o0(e,t,r,n,o);break e}else for(At=Un(t.stateNode.containerInfo.firstChild),bt=t,Ee=!0,qt=null,n=mg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wo(),r===o){t=An(e,t,n);break e}ot(e,t,r,n)}t=t.child}return t;case 5:return wg(t),e===null&&Yc(t),r=t.type,o=t.pendingProps,u=e!==null?e.memoizedProps:null,a=o.children,$c(r,o)?a=null:u!==null&&$c(r,u)&&(t.flags|=32),t0(e,t),ot(e,t,a,n),t.child;case 6:return e===null&&Yc(t),null;case 13:return u0(e,t,n);case 4:return nf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Eo(t,null,r,n):ot(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yt(r,o),Xg(e,t,r,o,n);case 7:return ot(e,t,t.pendingProps,n),t.child;case 8:return ot(e,t,t.pendingProps.children,n),t.child;case 12:return ot(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,u=t.memoizedProps,a=o.value,ye(ji,r._currentValue),r._currentValue=a,u!==null)if(Kt(u.value,a)){if(u.children===o.children&&!ct.current){t=An(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var i=u.dependencies;if(i!==null){a=u.child;for(var s=i.firstContext;s!==null;){if(s.context===r){if(u.tag===1){s=bn(-1,n&-n),s.tag=2;var l=u.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?s.next=s:(s.next=c.next,c.next=s),l.pending=s}}u.lanes|=n,s=u.alternate,s!==null&&(s.lanes|=n),Jc(u.return,n,t),i.lanes|=n;break}s=s.next}}else if(u.tag===10)a=u.type===t.type?null:u.child;else if(u.tag===18){if(a=u.return,a===null)throw Error(K(341));a.lanes|=n,i=a.alternate,i!==null&&(i.lanes|=n),Jc(a,n,t),a=u.sibling}else a=u.child;if(a!==null)a.return=u;else for(a=u;a!==null;){if(a===t){a=null;break}if(u=a.sibling,u!==null){u.return=a.return,a=u;break}a=a.return}u=a}ot(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,bo(t,n),o=Nt(o),r=r(o),t.flags|=1,ot(e,t,r,n),t.child;case 14:return r=t.type,o=Yt(r,t.pendingProps),o=Yt(r.type,o),Zg(e,t,r,o,n);case 15:return Jg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yt(r,o),Yi(e,t),t.tag=1,ft(r)?(e=!0,_i(t)):e=!1,bo(t,n),Ug(t,r,o),mf(t,r,o,n),Cf(null,t,r,!0,e,n);case 19:return i0(e,t,n);case 22:return e0(e,t,n)}throw Error(K(156,t.tag))};function k0(e,t){return cm(e,t)}function _S(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(e,t,n,r){return new _S(e,t,n,r)}function Lf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kS(e){if(typeof e=="function")return Lf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Hl)return 11;if(e===Yl)return 14}return 2}function tr(e,t){var n=e.alternate;return n===null?(n=Mt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function us(e,t,n,r,o,u){var a=2;if(r=e,typeof e=="function")Lf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case oo:return Pr(n.children,o,u,t);case Wl:a=8,o|=8;break;case Ul:return e=Mt(12,n,t,o|2),e.elementType=Ul,e.lanes=u,e;case Kl:return e=Mt(13,n,t,o),e.elementType=Kl,e.lanes=u,e;case ql:return e=Mt(19,n,t,o),e.elementType=ql,e.lanes=u,e;case Lh:return as(n,o,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Mh:a=10;break e;case $h:a=9;break e;case Hl:a=11;break e;case Yl:a=14;break e;case jn:a=16,r=null;break e}throw Error(K(130,e==null?e:typeof e,""))}return t=Mt(a,n,t,o),t.elementType=e,t.type=r,t.lanes=u,t}function Pr(e,t,n,r){return e=Mt(7,e,r,t),e.lanes=n,e}function as(e,t,n,r){return e=Mt(22,e,r,t),e.elementType=Lh,e.lanes=n,e.stateNode={isHidden:!1},e}function zf(e,t,n){return e=Mt(6,e,null,t),e.lanes=n,e}function Vf(e,t,n){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function PS(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vc(0),this.expirationTimes=vc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Wf(e,t,n,r,o,u,a,i,s){return e=new PS(e,t,n,i,s),t===1?(t=1,u===!0&&(t|=8)):t=0,u=Mt(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},tf(u),e}function TS(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ro,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function P0(e){if(!e)return Kn;e=e._reactInternals;e:{if(Cr(e)!==e||e.tag!==1)throw Error(K(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ft(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(K(171))}if(e.tag===1){var n=e.type;if(ft(n))return ag(e,n,t)}return t}function T0(e,t,n,r,o,u,a,i,s){return e=Wf(n,r,!0,e,o,u,a,i,s),e.context=P0(null),n=e.current,r=ut(),o=Jn(n),u=bn(r,o),u.callback=t??null,Qn(n,u,o),e.current.lanes=o,Cu(e,o,r),vt(e,r),e}function is(e,t,n,r){var o=t.current,u=ut(),a=Jn(o);return n=P0(n),t.context===null?t.context=n:t.pendingContext=n,t=bn(u,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Qn(o,t,a),e!==null&&(Xt(e,o,a,u),Mi(e,o,a)),a}function ss(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function R0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Uf(e,t){R0(e,t),(e=e.alternate)&&R0(e,t)}function RS(){return null}var N0=typeof reportError=="function"?reportError:function(e){console.error(e)};function Hf(e){this._internalRoot=e}ls.prototype.render=Hf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(K(409));is(e,t,null,null)},ls.prototype.unmount=Hf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Or(function(){is(null,e,null,null)}),t[Dn]=null}};function ls(e){this._internalRoot=e}ls.prototype.unstable_scheduleHydration=function(e){if(e){var t=ym();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zn.length&&t!==0&&t<zn[n].priority;n++);zn.splice(n,0,e),n===0&&wm(e)}};function Kf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function cs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function j0(){}function NS(e,t,n,r,o){if(o){if(typeof r=="function"){var u=r;r=function(){var l=ss(a);u.call(l)}}var a=T0(t,r,e,0,null,!1,!1,"",j0);return e._reactRootContainer=a,e[Dn]=a.current,Ru(e.nodeType===8?e.parentNode:e),Or(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var l=ss(s);i.call(l)}}var s=Wf(e,0,!1,null,null,!1,!1,"",j0);return e._reactRootContainer=s,e[Dn]=s.current,Ru(e.nodeType===8?e.parentNode:e),Or(function(){is(t,s,n,r)}),s}function fs(e,t,n,r,o){var u=n._reactRootContainer;if(u){var a=u;if(typeof o=="function"){var i=o;o=function(){var s=ss(a);i.call(s)}}is(t,a,e,o)}else a=NS(n,t,e,o,r);return ss(a)}mm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Du(t.pendingLanes);n!==0&&(hc(t,n|1),vt(t,Pe()),!(fe&6)&&(Oo=Pe()+500,qn()))}break;case 13:Or(function(){var r=Bn(e,1);if(r!==null){var o=ut();Xt(r,e,1,o)}}),Uf(e,1)}},mc=function(e){if(e.tag===13){var t=Bn(e,134217728);if(t!==null){var n=ut();Xt(t,e,134217728,n)}Uf(e,134217728)}},gm=function(e){if(e.tag===13){var t=Jn(e),n=Bn(e,t);if(n!==null){var r=ut();Xt(n,e,t,r)}Uf(e,t)}},ym=function(){return pe},Dm=function(e,t){var n=pe;try{return pe=e,t()}finally{pe=n}},sc=function(e,t,n){switch(t){case"input":if(ec(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Si(r);if(!o)throw Error(K(90));Wh(r),ec(r,o)}}}break;case"textarea":Yh(e,n);break;case"select":t=n.value,t!=null&&uo(e,!!n.multiple,t,!1)}},rm=If,om=Or;var jS={usingClientEntryPoint:!1,Events:[Iu,mo,Si,tm,nm,If]},Xu={findFiberByHostInstance:wr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},IS={bundleType:Xu.bundleType,version:Xu.version,rendererPackageName:Xu.rendererPackageName,rendererConfig:Xu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:yn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=sm(e),e===null?null:e.stateNode},findFiberByHostInstance:Xu.findFiberByHostInstance||RS,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ds=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ds.isDisabled&&ds.supportsFiber)try{li=ds.inject(IS),rn=ds}catch{}}wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=jS,wt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Kf(t))throw Error(K(200));return TS(e,t,null,n)},wt.createRoot=function(e,t){if(!Kf(e))throw Error(K(299));var n=!1,r="",o=N0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Wf(e,1,!1,null,null,n,!1,r,o),e[Dn]=t.current,Ru(e.nodeType===8?e.parentNode:e),new Hf(t)},wt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(K(188)):(e=Object.keys(e).join(","),Error(K(268,e)));return e=sm(t),e=e===null?null:e.stateNode,e},wt.flushSync=function(e){return Or(e)},wt.hydrate=function(e,t,n){if(!cs(t))throw Error(K(200));return fs(null,e,t,!0,n)},wt.hydrateRoot=function(e,t,n){if(!Kf(e))throw Error(K(405));var r=n!=null&&n.hydratedSources||null,o=!1,u="",a=N0;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=T0(t,null,e,1,n??null,o,!1,u,a),e[Dn]=t.current,Ru(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new ls(t)},wt.render=function(e,t,n){if(!cs(t))throw Error(K(200));return fs(null,e,t,!1,n)},wt.unmountComponentAtNode=function(e){if(!cs(e))throw Error(K(40));return e._reactRootContainer?(Or(function(){fs(null,null,e,!1,function(){e._reactRootContainer=null,e[Dn]=null})}),!0):!1},wt.unstable_batchedUpdates=If,wt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!cs(n))throw Error(K(200));if(e==null||e._reactInternals===void 0)throw Error(K(38));return fs(e,t,n,!1,r)},wt.version="18.3.1-next-f1338f8080-20240426";function I0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(I0)}catch(e){console.error(e)}}I0(),Ph.exports=wt;var M0=Ph.exports;const ko=Jo(M0);function $0(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)),r}function z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$0(Object(n),!0).forEach(function(r){Po(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ye(e){return(Ye=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})(e)}function Zu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L0(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ju(e,t,n){return t&&L0(e.prototype,t),n&&L0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Po(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tr(){return(Tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ps(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&z0(e,t)}function qf(e){return(qf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function z0(e,t){return(z0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n})(e,t)}function MS(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $S(e,t){if(e==null)return{};for(var n,r={},o=Object.keys(e),u=0;u<o.length;u++)n=o[u],0<=t.indexOf(n)||(r[n]=e[n]);return r}function $t(e,t){if(e==null)return{};var n,r=$S(e,t);if(Object.getOwnPropertySymbols)for(var o=Object.getOwnPropertySymbols(e),u=0;u<o.length;u++)n=o[u],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}function vs(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LS(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vs(e)}function hs(e){var t=MS();return function(){var n,r=qf(e);return LS(this,t?(n=qf(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments))}}function V0(e,t){return VS(e)||US(e,t)||W0(e,t)||KS()}function ms(e){return zS(e)||WS(e)||W0(e)||HS()}function zS(e){if(Array.isArray(e))return Yf(e)}function VS(e){if(Array.isArray(e))return e}function WS(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function US(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,u=[],a=!0,i=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(u.push(r.value),!t||u.length!==t);a=!0);}catch(s){i=!0,o=s}finally{try{a||n.return==null||n.return()}finally{if(i)throw o}}return u}}function W0(e,t){var n;if(e)return typeof e=="string"?Yf(e,t):(n=(n=Object.prototype.toString.call(e).slice(8,-1))==="Object"&&e.constructor?e.constructor.name:n)==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yf(e,t):void 0}function Yf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function HS(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
42
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
43
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qS(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n===void 0)return(t==="string"?String:Number)(e);if(n=n.call(e,t||"default"),typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}function U0(e){return e=qS(e,"string"),typeof e=="symbol"?e:String(e)}var H0={react:{componentWrap:"div",slotWrap:"div",componentWrapAttrs:{__use_react_component_wrap:"",style:{all:"unset"}},slotWrapAttrs:{__use_react_slot_wrap:"",style:{all:"unset"}},vueNamedSlotsKey:["node:"]},vue:{componentWrapHOC:function(e){return function(){var t=(0<arguments.length&&arguments[0]!==void 0?arguments[0]:{}).portals;return L.createElement(L.Fragment,null,e,(t===void 0?[]:t).map(function(o){var r=o.Portal,o=o.key;return L.createElement(r,{key:o})}))}},componentWrapAttrs:{"data-use-vue-component-wrap":"",style:{all:"unset"}},slotWrapAttrs:{"data-use-vue-slot-wrap":"",style:{all:"unset"}}}};function K0(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{react:{},vue:{}},n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:H0,t=2<arguments.length?arguments[2]:void 0,n=(e.vue||(e.vue={}),e.react||(e.react={}),[n,z(z({},e),{},{react:z(z(z({},n.react),e.react),{},{componentWrapAttrs:z(z({},n.react.componentWrapAttrs),e.react.componentWrapAttrs),slotWrapAttrs:z(z({},n.react.slotWrapAttrs),e.react.slotWrapAttrs)}),vue:z(z(z({},n.vue),e.vue),{},{componentWrapAttrs:z(z({},n.vue.componentWrapAttrs),e.vue.componentWrapAttrs),slotWrapAttrs:z(z({},n.vue.slotWrapAttrs),e.vue.slotWrapAttrs)})})]);return t&&n.unshift({}),Object.assign.apply(this,n)}var q0=["getElementById","getElementsByClassName","getElementsByTagName","getElementsByTagNameNS","querySelector","querySelectorAll"],ea={Document:{},Element:{}};function YS(e){Object.keys(ea).forEach(function(t){q0.forEach(function(n){var r=window[t].prototype[n];ea[t][n]=r,window[t].prototype[n]=function(){for(var o=arguments.length,u=new Array(o),a=0;a<o;a++)u[a]=arguments[a];var i=r.apply(this,u);return i&&(i.constructor!==NodeList||i.constructor===NodeList&&0<i.length)?i:(ea.Element[n]||Element.prototype[n]).apply(e,u)}})})}function QS(){Object.keys(ea).forEach(function(e){q0.forEach(function(t){window[e].prototype[t]=ea[e][t]})})}var GS=["ref"],XS=["key"],ZS=["hashList"],Y0=parseInt(L.version);function wP(e){return e}var JS=function(){ps(t,L.Component);var e=hs(t);function t(n){return Zu(this,t),e.call(this,n)}return Ju(t,[{key:"render",value:function(){var n=this.props.component,r=this.props.passedProps,r=(r.ref,$t(r,GS));return L.createElement(n,r,this.props.children)}}]),t}(),eO=function(e,t,n){var r=function(){ps(u,L.Component);var o=hs(u);function u(a){var i;return Zu(this,u),(i=o.call(this,a)).state=z(z({},a),t.isSlots?{children:e}:{}),i.setRef=i.setRef.bind(vs(i)),i.vueInReactCall=i.vueInReactCall.bind(vs(i)),(i.__veauryVueWrapperRef__=n).__veauryVueInReactCall__=i.vueInReactCall,i}return Ju(u,[{key:"reactPropsLinkToVueInstance",value:function(a){Object.keys(a).forEach(function(i){n[i]||(n[i]=a[i])}),Object.getOwnPropertyNames(a.__proto__).filter(function(i){return["constructor","render"].indexOf(i)<0}).forEach(function(i){n[i]||(n[i]=a[i])})}},{key:"setRef",value:function(a){var i=this;a&&(n.__veauryReactRef__=a,this.reactPropsLinkToVueInstance(a),Promise.resolve().then(function(){return i.reactPropsLinkToVueInstance(a)}),(this.setRef.current=a).__veauryVueWrapperRef__=n)}},{key:"createSlot",value:function(a){return{originVNode:a,inheritAttrs:!1,__fromReactSlot:!0,render:function(){var i,s;return((i=a=(a=((s=this.$slots)==null||(i=s.default)==null?void 0:i.call(s))||a)instanceof Function?a(this):a)==null?void 0:i.length)===1&&(s=a[0])!=null&&s.data&&((i=this.$attrs).key,s=$t(i,XS),a[0].props=z(z({},s),a[0].props)),a}}}},{key:"componentWillUnmount",value:function(){n.__veauryReactRef__&&(n.__veauryReactRef__.__veauryVueWrapperRef__=null,n.__veauryReactRef__=null)}},{key:"vueInReactCall",value:function(a){var i=this,s=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return 2<arguments.length&&arguments[2]&&a&&a[0]?a.map(function(l,c){return ys(i.createSlot(l instanceof Function?l:[l]),z(z(z({},t),s),{},{isSlots:!0,wrapInstance:n})).render({key:(l==null?void 0:l.key)||void 0})}):ys(this.createSlot(a),z(z(z({},t),s),{},{isSlots:!0,wrapInstance:n})).render()}},{key:"render",value:function(){var a,i,s,l=this,w=this.state,c=w.hashList,d=$t(w,ZS),p={},y={};for(a in d)i=a,s=void 0,d.hasOwnProperty(i)&&d[i]!=null&&(d[i].__slot?(d[i].reactSlot?d[i]=d[i].reactSlot:(s=d[i],t.defaultSlotsFormatter&&d[i].__trueChildren?(d[i].__trueChildren.__top__=l.__veauryVueWrapperRef__,d[i]=t.defaultSlotsFormatter(d[i].__trueChildren,l.vueInReactCall,c),d[i]instanceof Array?d[i]=ms(d[i]):-1<["string","number"].indexOf(Ye(d[i]))?d[i]=[d[i]]:Ye(d[i])==="object"&&(d[i]=z({},d[i]))):d[i]=z({},ys(l.createSlot(d[i]),z(z({},t),{},{isSlots:!0,wrapInstance:n})).render()),d[i].vueFunction=s),p[i]=d[i]):d[i].__scopedSlot&&(d[i]=d[i](l.createSlot),y[i]=d[i]));var m,f,w={};return w.ref=this.setRef,t.isSlots?this.state.children||this.props.children:(m=d,e.__syncUpdateForPureReactInVue&&Object.keys(e.__syncUpdateForPureReactInVue).map(function(h){var g,C;m[h]&&typeof m[h]=="function"&&(g=l.__veauryVueWrapperRef__,C=m[h],m[h]=function(){for(var E=arguments.length,B=new Array(E),x=0;x<E;x++)B[x]=arguments[x];g.__veaurySyncUpdateProps__(e.__syncUpdateForPureReactInVue[h].apply(this,B)),C.apply(this,B),g.macroTaskUpdate=!0,g.__veauryMountReactComponent__(!0,!0,{})})}),f=z(z(z({},m=t.defaultPropsFormatter?t.defaultPropsFormatter.call(this,m,this.vueInReactCall,c):m),p),y),Object.getPrototypeOf(e)!==Function.prototype&&(Ye(e)!=="object"||e.render)||u.catchVueRefs()?(Object.getPrototypeOf(e)===Function.prototype&&delete w.ref,L.createElement(e,Tr({},f,w))):L.createElement(JS,Tr({passedProps:f,component:e},w),f.children))}}],[{key:"catchVueRefs",value:function(){if(n.$parent){for(var a in n.$parent.$refs)if(n.$parent.$refs[a]===n)return!0}return!1}}]),u}();return Po(r,"displayName","applyReact_".concat(e.displayName||e.name||"Component")),r};function Qf(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return e.__esModule&&e.default&&(e=e.default),t.isSlots&&(e=e()),t=K0(t,void 0,!0),{originReactComponent:e,setup:function(n,r){var o,u,a,i;if(!t.isSlots)return o={},u=v.reactive({}),a=v.getCurrentInstance(),typeof(i=t.useInjectPropsFromWrapper||e.__veauryInjectPropsFromWrapper__)=="function"&&(typeof(i=i.call(a.proxy,n))!="function"?(Object.assign(u,i),o.__veauryInjectedProps__=u):a.proxy.__veauryInjectedComputed__=i),o},data:function(){return{VEAURY_Portals:[]}},created:function(){this.__veauryPortalKeyPool__=[],this.__veauryMaxPortalCount__=0},computed:{__veauryInjectedProps__:function(){var n;return(n=this.__veauryInjectedComputed__)==null?void 0:n.call(this)}},render:function(){var n=v.h(t.react.componentWrap,z({ref:"react"},t.react.componentWrapAttrs||{}),this.VEAURY_Portals.map(function(u){var o=u.Portal,u=u.key;return o(v.h,u)}));return this.__veauryCheckReactSlot__(this.$slots),n},methods:{__veauryCheckReactSlot__:function(n){var r=this;function o(u,a,i){return a[i]&&(u[i]=a[i],1)}Ye(n)==="object"&&n!=null&&(n instanceof Array?n.forEach(function(u){r.__veauryCheckReactSlot__(u.children)}):Object.keys(n).forEach(function(s){var a,i,s=n[s];if(typeof s=="function"){try{a=s.apply(r,s.__reactArgs||[{}])}catch{return}(s.__trueChildren=a).forEach(function(l){l.children&&r.__veauryCheckReactSlot__(l.children)}),a.length!==1||o(s,a=a[0],"reactSlot")||o(s,a,"reactFunction")||a.type!==v.Fragment||((i=a.children)==null?void 0:i.length)!==1||o(s,i=a.children[0],"reactSlot")||o(s,i,"reactFunction")}}))},__veauryPushVuePortal__:function(n){var r=this.__veauryPortalKeyPool__.shift()||this.__veauryMaxPortalCount__++;this.VEAURY_Portals.push({Portal:n,key:r})},__veauryRemoveVuePortal__:function(n){var r,o=this.VEAURY_Portals.find(function(u,a){if(u.Portal===n)return r=a,!0});this.__veauryPortalKeyPool__.push(o.key),this.VEAURY_Portals.splice(r,1)},__veauryGetScopeSlot__:function(n,r,o){var u=this;function a(i){function s(){for(var l,c=this,d=arguments.length,p=new Array(d),y=0;y<d;y++)p[y]=arguments[y];return n.reactFunction?n.reactFunction.apply(this,p):t.defaultSlotsFormatter?((l=n.apply(this,p)).__top__=u,(l=t.defaultSlotsFormatter(l,u.__veauryVueInReactCall__,r))instanceof Array||-1<Ye(l).indexOf("string","number")?l=ms(l):Ye(l)==="object"&&(l=z({},l)),l):ys(i(function(){return n.apply(c,p)}),z(z({},t),{},{isSlots:!0,wrapInstance:u})).render()}return t.pureTransformer&&o?s.vueFunction=o:s.vueFunction=n,s}return a.__scopedSlot=!0,a},__veaurySyncUpdateProps__:function(n){this.__veauryReactInstance__&&this.__veauryReactInstance__.setState(n)},__veauryMountReactComponent__:function(n,r){var o,u,a=this,i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:{},s={},l=[],c=this.$.vnode.scopeId,d=(c&&(s[c]="",l.push(c)),{}),p={};if(!n||r!=null&&r.slot)for(var y in this.$slots||{})(function(C){var E;a.$slots.hasOwnProperty(C)&&a.$slots[C]!=null&&((E=t.react.vueNamedSlotsKey.find(function(B){return C.indexOf(B)===0}))||C==="default"?(E=C.replace(new RegExp("^".concat(E)),""),d[E]=a.$slots[C],d[E].__slot=!0):p[C]=a.__veauryGetScopeSlot__(a.$slots[C],l,(E=a.$.vnode)==null||(E=E.children)==null?void 0:E[C]))})(y);(!n||r!=null&&r.slot)&&(u=z({},d),o=u.default,delete u.default),this.__veauryLast__=this.__veauryLast__||{},this.__veauryLast__.slot=this.__veauryLast__.slot||{},this.__veauryLast__.attrs=this.__veauryLast__.attrs||{};var m={slot:function(){a.__veauryLast__.slot=z(z(z({},o?{children:o}:{children:null}),u),p)},attrs:function(){a.__veauryLast__.attrs=a.$attrs}};if(r&&Object.keys(r).forEach(function(C){return m[C]()}),n){let C=function(){a.__veauryReactInstance__&&a.__veauryReactInstance__.setState(function(E){return Object.keys(E).forEach(function(B){t.isSlots&&B==="children"||delete E[B]}),z(z(z(z({},a.__veauryCache__),a.__veauryInjectedProps__),!t.isSlots&&a.__veauryLast__.slot),a.__veauryLast__.attrs)}),a.__veauryCache__=null};!this.microTaskUpdate||this.__veauryCache__||this.$nextTick(function(){C(),a.microTaskUpdate=!1}),this.macroTaskUpdate&&(clearTimeout(this.updateTimer),this.updateTimer=setTimeout(function(){clearTimeout(a.updateTimer),C(),a.macroTaskUpdate=!1})),this.__veauryCache__=z(z({},this.__veauryCache__||{}),z(z(z(z({},i),this.$attrs.class?{className:this.$attrs.class}:{}),z({},s)),{},{hashList:l},this.$attrs.style?{style:this.$attrs.style}:{})),this.macroTaskUpdate||this.microTaskUpdate||C()}else{m.slot(),m.attrs();var c=eO(e,t,this),f=L.createElement(c,Tr({},this.$attrs,this.__veauryInjectedProps__,{children:o},u,p,this.$attrs.class?{className:this.$attrs.class}:{},s,{hashList:l},this.$attrs.style?{style:this.$attrs.style}:{},{ref:function(E){return a.__veauryReactInstance__=E}})),w=this.$refs.react,h=t.wrapInstance;if(h)(h=t.wrapInstance).__veauryVueWrapperRef__=this;else for(var g=this.$parent;g;){if(g.parentReactWrapperRef){h=g.parentReactWrapperRef;break}if(g.reactWrapperRef){h=g.reactWrapperRef;break}g=g.$parent}h?(this.parentReactWrapperRef=h,this.reactPortal=function(){return M0.createPortal(f,w)},h.pushReactPortal(this.reactPortal)):17<Y0?(ko.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED!==void 0&&(ko.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint=!0),this.__veauryReactApp__=ko.createRoot(w),this.__veauryReactApp__.render(f)):ko.render(f,w)}}},mounted:function(){var n=this;this.__VEAURY_IGNORE_STRANGE_UPDATE__=!0,Promise.resolve().then(function(){n.__VEAURY_IGNORE_STRANGE_UPDATE__=!1}),clearTimeout(this.updateTimer),this.__veauryMountReactComponent__()},beforeUnmount:function(){var n;clearTimeout(this.updateTimer),YS(this.$refs.react),this.reactPortal?(n=this.parentReactWrapperRef)!=null&&n.removeReactPortal(this.reactPortal):17<Y0?this.__veauryReactApp__.unmount():ko.unmountComponentAtNode(this.$refs.react),QS()},updated:function(){this.__VEAURY_IGNORE_STRANGE_UPDATE__||this.__veauryMountReactComponent__(!0,{slot:!0})},inheritAttrs:!1,watch:{$attrs:{handler:function(){this.__veauryMountReactComponent__(!0,{attrs:!0})},deep:!0},__veauryInjectedProps__:{handler:function(){this.__veauryMountReactComponent__(!0,{attrs:!0})},deep:!0}}}}var tO=new Set(["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onChange","onInput","onInvalid","onReset","onSubmit","onError","onLoad","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onLoad","onError","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd","onToggle"]);function nO(e,t){for(var n=(e=t=(e==null?void 0:e._reactInternals)||(e==null?void 0:e._reactInternalFiber)||t)==null?void 0:e.return;n;){var r=n.stateNode;if(r=(r==null?void 0:r.parentVueWrapperRef)||(r==null?void 0:r.__veauryVueWrapperRef__))return r;n=n.return}}function Q0(e,t,n){var r={};return n.forEach(function(o){r[o]=!0}),e[(t==="modelValue"?"model":t)+"Modifiers"]=r}function G0(e,t,n){var r=this,o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:"v-model",u=t;if(!(u instanceof Array))throw Error("[error:veaury] Parameter type error from '".concat(o,"', a single v-model is an array, such as [val, setter, argumentKey, modifiers] or [val, setter, modifiers]"));if(typeof u[1]!="function")throw Error("[error:veaury] Parameter type error from '".concat(o,"', a single v-model is an array, the second element of the array must be a setter function"));var a=u[1],i=(typeof u[2]=="string"?(n=u[2],u[3]instanceof Array&&Q0(e,n,u[3])):u[2]instanceof Array&&Q0(e,n,u[2]),e["onUpdate:"+n]);e["onUpdate:"+n]=typeof i=="function"?function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];i.apply(r,l),a.apply(r,l)}:a,e[n]=u[0]}function Gf(e){var t=this,n={},r=z({},e);return Object.keys(e).forEach(function(o){var u,a=o.match(/^onUpdate-([^-]+)/);if(a)delete r[o],u=n["onUpdate:".concat(a[1])],n["onUpdate:".concat(a[1])]=typeof u=="function"?function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];u.apply(t,l),e[o].apply(t,l)}:e[o];else if(a=o.match(/^v-model($|:([^:]+)|-([^:]+))/))a=a[2]||a[3]||"modelValue",G0(n,e[o],a),delete r[o];else if(o==="v-models"){if(Ye(e[o])!=="object"||e[o]instanceof Array)throw Error("[error:veaury] The parameter 'v-models' must be an object type, such as {[argumentKey]: singleVModel}");var i=e[o];Object.keys(i).forEach(function(s){G0(n,i[s],s,"v-models")}),delete r[o]}}),z(z({},r),n)}var gs=function(){function e(){Zu(this,e),Po(this,"pool",new Set)}return Ju(e,[{key:"getRandomId",value:function(t){var n=t+(Math.random()+"").substr(2);return this.pool.has(n)?this.getRandomId(t):(this.pool.add(n),n)}}]),e}();function X0(r,t){var n,r=r.node;if(typeof r=="function"&&(r=r()),(n=t)!=null&&n.current||typeof t=="function"||(n=t)!=null&&n.toString().match(/^function/)||(t=null),-1<["string","number"].indexOf(Ye(r)))return r;if(r instanceof Array){if(r.length!==1)return r;r=r[0]}return z(z({},r),{},{ref:t})}var rO=Qf(X0);function Xf(e){return v.h(rO,{node:function(){return e.node}})}Xf.originReactComponent=L.forwardRef(X0);var oO=["component","node"],uO=["component","$slots","children","class","style"],aO=["className","classname"],nr="veaury-options",Z0=new gs;function iO(e,t){var n;return e=typeof e=="string"&&t?(t=t.$)==null||(t=t.appContext)==null||(t=t.app)==null||(n=t.component)==null?void 0:n.call(t,e):e}function J0(e){if(e)return Object.keys(e).forEach(function(t){var n=e[t];n!=null&&(typeof n=="function"?(e[t]=n,e[t].reactFunction=n):(e[t]=function(){return n},e[t].reactSlot=n),n.vueFunction&&(e[t].vueFunction=n.vueFunction))}),e}function sO(e){var t;return(t=e.node)==null?void 0:t.call(e)}var Zf=L.forwardRef(function(o,t){var n,a=o.component,r=o.node,o=$t(o,oO);if(a==null&&r==null)return null;if(r!=null){if(r.$$typeof||typeof r=="string"||typeof r=="number")return r;typeof r!="function"&&(n=r,r=function(){return n})}var u,a=a||sO,i=K0(o[nr]||{},void 0,!0),s=i.useInjectPropsFromWrapper||a.__veauryInjectPropsFromWrapper__;return i.isSlots||typeof s=="function"&&(u=s(o)),L.createElement(lO,Tr({},z(z(z(z({component:a},r?{node:r}:{}),o),u),{},Po({},nr,i)),{ref:t}))}),lO=function(){ps(t,L.Component);var e=hs(t);function t(n){var r;return Zu(this,t),(r=e.call(this,n)).state={portals:[]},r.__veauryPortalKeyPool__=[],r.__veauryMaxPortalCount__=0,r.__veauryCurrentVueComponent__=n.component,r.__veauryCreateVueInstance__=r.__veauryCreateVueInstance__.bind(vs(r)),r.__veauryVueComponentContainer__=r.createVueComponentContainer(),r}return Ju(t,[{key:"pushReactPortal",value:function(n){var r=this.state.portals,o=this.__veauryPortalKeyPool__.shift()||this.__veauryMaxPortalCount__++;r.push({Portal:n,key:o}),this.setState({portals:r})}},{key:"removeReactPortal",value:function(n){var r,o=this.state.portals,u=o.find(function(a,i){if(a.Portal===n)return r=i,!0});this.__veauryPortalKeyPool__.push(u.key),o.splice(r,1),this.__veauryVueRef__&&this.setState({portals:o})}},{key:"createVueComponentContainer",value:function(){var n=this,r={},o=this.props[nr];return o.isSlots?(Object.keys(this.props).forEach(function(u){tO.has(u)&&typeof n.props[u]=="function"&&(r[u]=n.props[u])}),o.vue.slotWrapAttrs&&(r=z(z({},r),o.vue.slotWrapAttrs))):o.vue.componentWrapAttrs&&(r=z(z({},r),o.vue.componentWrapAttrs)),o.vue.componentWrapHOC(L.createElement("div",Tr({},o.vue.componentWrapAttrs,{ref:this.__veauryCreateVueInstance__,key:null})),r)}},{key:"shouldComponentUpdate",value:function(n,r,o){var u,a,i,s,l=this;return n===this.props||(u=n.component,n[nr],a=(a=n["v-slots"])===void 0?null:a,i=n.children,n=$t(n,["component",nr,"v-slots","children"].map(U0)),this.__veauryCurrentVueComponent__!==u&&this.updateVueComponent(u),!!u.__fromReactSlot||(this.__veauryVueInstance__?(i&&(a=a||{},Ye(i)!=="object"||i instanceof Array||i.$$typeof?a.default=i:a=i),(s=this.__veauryVueInstance__.$data.$slots)&&Object.keys(s).forEach(function(c){delete s[c]}),a&&(s||(this.__veauryVueInstance__.$data.$slots={}),Object.assign(this.__veauryVueInstance__.$data.$slots,J0(a))),Object.keys(this.__veauryVueInstance__.$data).forEach(function(c){c!=="$slots"&&delete l.__veauryVueInstance__.$data[c]}),this.__veauryVueInstance__&&Object.assign(this.__veauryVueInstance__.$data,Gf(n)),!0):void 0))}},{key:"componentWillUnmount",value:function(){this.vuePortal?this.parentVueWrapperRef.__veauryRemoveVuePortal__(this.vuePortal):(this.__veauryVueInstance__&&this.__veauryVueInstance__.$.appContext.app.unmount(),Z0.pool.delete(this.__veauryVueTargetId__))}},{key:"__veauryCreateVueInstance__",value:function(n){var r=this,o=this,s=this.props,u=(s.component,s[nr]),a=s.children,i=s["v-slots"],i=i===void 0?{}:i,s=$t(s,["component",nr,"children","v-slots"].map(U0));function l(y){this.__veauryVueInstance__||(this.__veauryVueInstance__=y)}a&&(Ye(a)!=="object"||a instanceof Array||a.$$typeof?i.default=a:i=a),(i=J0(i))&&(s.$slots=i),l=l.bind(this);var c,d=z({},Gf(s)),p={data:function(){return u.isSlots?{children:o.__veauryCurrentVueComponent__.originVNode}:d},created:function(){this.reactWrapperRef=o,l(this)},methods:{reactInVueCall:function(y){return 2<arguments.length&&arguments[2]&&y&&y[0]?y.map(function(m,f){return v.h(Xf,{node:m,key:(m==null||(m=m.data)==null?void 0:m.key)||f})}):v.h(Xf,{node:y})},getScopedSlots:function(y,m){var f,w=this,h=(this.getScopedSlots.__scopeSlots||(this.getScopedSlots.__scopeSlots={}),z({},m));for(f in h)(function(g){var C,E;!h.hasOwnProperty(g)||(C=h[g])==null||(h[g]=(E=C,function(){for(var B,x,b,S,P=arguments.length,O=new Array(P),H=0;H<P;H++)O[H]=arguments[H];return E.vueFunction?E.vueFunction.apply(w,O):(b=E.reactSlot,S=E.reactFunction,b=b||(S==null?void 0:S.apply(w,O)),S=u.defaultSlotsFormatter,(B=w.getScopedSlots.__scopeSlots[g])!=null&&(B=B.component)!=null&&(B=B.ctx)!=null&&B.__veauryReactInstance__?(x=w.getScopedSlots.__scopeSlots[g],Promise.resolve().then(function(){var k;(k=x)!=null&&(k=k.component)!=null&&(k=k.ctx)!=null&&(k=k.__veauryReactInstance__)!=null&&k.setState({children:E.apply(w,O)})})):(x=S&&b?[S(b,w.reactInVueCall)]:y(Qf(function(){return E.apply(w,O)},z(z({},u),{},{isSlots:!0,wrapInstance:o}))),w.getScopedSlots.__scopeSlots[g]=x),E.reactFunction?x.reactFunction=E.reactFunction:E.reactSlot&&(x.reactSlot=E.reactSlot),x)}),h[g].reactFunction=C)})(f);return h}},mounted:function(){n.removeAttribute("id"),o.__veauryVueRef__=this.$refs.use_vue_wrapper,this.$refs.use_vue_wrapper.reactWrapperRef=o},beforeUnmount:function(){o.__veauryVueRef__=null,this.$refs.use_vue_wrapper.reactWrapperRef=null},render:function(){var y=this,C=this.$data,h=(C.component,C.$slots),m=(C.children,C.class),f=C.style,C=$t(C,uO),w=this.getScopedSlots(v.h,z({},h)),h=C.className,g=C.classname,C=$t(C,aO),E={};return Object.keys(w).forEach(function(B){var x=w[B];E[B]=typeof x=="function"?x:function(){return x}}),v.h(iO(o.__veauryCurrentVueComponent__,this),z(z(z(z({},C),m||h||g?{class:m||h||g}:{}),f?{style:f}:{}),{},{ref:"use_vue_wrapper"}),z({},u.isSlots&&this.children?{default:typeof this.children=="function"?this.children:function(){return y.children}}:z({},E)))}};n&&(c=Z0.getRandomId("__vue_wrapper_container_"),n.id=c,this.__veauryVueTargetId__=c,(a=u.wrapInstance)?(a=u.wrapInstance).reactWrapperRef=o:a=nO(this),a&&document.getElementById(c)?(this.parentVueWrapperRef=a,this.vuePortal=function(y,m){return y(v.Teleport,{to:"#"+c,key:c},[y(Object.assign(p,{router:r._router}))])},a.__veauryPushVuePortal__(this.vuePortal)):(i=v.createApp(p),typeof u.beforeVueAppMount=="function"&&u.beforeVueAppMount(i),this.__veauryVueInstance__=i.mount(n)))}},{key:"updateVueComponent",value:function(n){this.__veauryVueInstance__&&(n.__fromReactSlot?this.__veauryVueInstance__.children=typeof n.originVNode=="function"?n.originVNode:function(){return n.originVNode}:(this.__veauryCurrentVueComponent__=n,this.__veauryVueInstance__.$forceUpdate()))}},{key:"render",value:function(){return L.createElement(this.__veauryVueComponentContainer__,{portals:this.state.portals})}}]),t}();function ys(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=(e||console.warn("Component must be passed in applyVueInReact!"),e.__esModule&&e.default&&(e=e.default),L.forwardRef(function(r,o){return L.createElement(Zf,Tr({},r,{component:e,ref:o},Po({},nr,t)))}));return n.originVueComponent=e,n}new gs;function cO(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=t.globalName,r=t.combinedOption,o=(t.transparentApi,Qf(e,r||{}));return o.install=function(u){var a=(1<arguments.length&&arguments[1]!==void 0?arguments[1]:{}).globalName;return n&&u.component(a||n,o),o},o}function ey(e){return e.replace(/-(\w)/g,function(t,n){return n.toUpperCase()})}function Ds(e){var t;return e?typeof e=="string"?(e=e.trim()).split(/\s*;\s*/).reduce(function(n,r){return r&&(r=r.split(/\s*:\s*/)).length===2&&Object.assign(n,Po({},ey(r[0]),r[1])),n},{}):Ye(e)==="object"?(t={},Object.keys(e).forEach(function(n){t[ey(n)]=e[n]}),t):{}:{}}function Cs(e){return e?e instanceof Array?e:typeof e=="string"?(e=e.trim()).split(/\s+/):Ye(e)==="object"?Object.keys(e).filter(function(t){return!!e[t]}):[]:[]}var fO=["ref"];function dO(e,t,n,r,o){var u=e.props||{},u=(u.ref,$t(u,fO)),a={},i=(Object.keys(e.children||{}).forEach(function(c){var d=e.children[c],p=H0.react.vueNamedSlotsKey.find(function(y){return c.indexOf(y)===0});p||c==="default"?(p=c.replace(new RegExp("^".concat(p)),"").replace(/^default$/,"children"),a[p]=r.call(e.__top__,d(),n,o)):typeof d=="function"&&(a[c]=function(){for(var y=arguments.length,m=new Array(y),f=0;f<y;f++)m[f]=arguments[f];return d.__reactArgs=m,r(d.apply(this,m),n,o)})}),{}),s=Ds(u.style),l=Array.from(new Set(Cs(u.class))).join(" ");return 0<Object.keys(s).length&&(i.style=s),l!==""&&(i.className=l),Object.assign(u,z(z({},i),a)),delete u.class,u}function ty(e){return e.type===v.Text}new gs;function ny(e,t){var n;return 0<((n=e.dirs)==null?void 0:n.length)?L.createElement(pO,{vnode:e},t):t}var pO=function(){ps(t,L.Component);var e=hs(t);function t(n){var r;return Zu(this,t),(r=e.call(this,n)).state={prevVnode:null,savedDirectives:[],ref:null,prevProps:n},r}return Ju(t,[{key:"findDirectiveName",value:function(n){var r=n.dir,o=-1;return[this.state.savedDirectives.find(function(u,a){if(u.dir===r)return o=a,!0}),o]}},{key:"doDirective",value:function(){var n=this,a=this.state,r=a.savedDirectives;if(!(o=a.ref)){for(var o=(this._reactInternals||this._reactInternalFiber).child;o&&o.tag!==5;)o=o.child;if(!o)return;o=o.stateNode}var u=this.props.vnode,a=u.dirs;a&&(a.forEach(function(i){var s,l,c,d,p,y,m;i&&(m=(s=V0(n.findDirectiveName(i),2))[0],s=s[1],l=(p=i.dir).created,c=p.beforeMount,d=p.mounted,y=p.beforeUpdate,p=p.updated,m?(r[s]=z(z(z({},m),i),{},{oldValue:m.oldValue}),m=[o,r[s],u,n.state.prevVnode],y!=null&&y.apply(null,m),p!=null&&p.apply(null,m),r[s].oldValue=i.value):(r.push(i),y=[o,i,u,null],l!=null&&l.apply(null,y),c!=null&&c.apply(null,y),d!=null&&d.apply(null,y),i.oldValue=i.value))}),this.setState({prevVnode:z({},u),savedDirectives:r,ref:o}))}},{key:"componentDidMount",value:function(){this.doDirective()}},{key:"componentDidUpdate",value:function(n){n.vnode!==this.props.vnode&&this.doDirective()}},{key:"componentWillUnmount",value:function(){var n=this,r=this.props.vnode,i=this.state,o=i.savedDirectives,u=i.ref,a=i.prevVnode,i=r.dirs;i&&(i.forEach(function(s){var l,c,d,p;s&&(l=(p=V0(n.findDirectiveName(s),2))[0],p=p[1],l&&(c=(d=s.dir).beforeUnmount,d=d.unmounted,o[p]=z(z({},l),s),p=[u,l,r,a],c!=null&&c.apply(null,p),d!=null&&d.apply(null,p)))}),this.setState({prevVnode:z({},r),savedDirectives:o}))}},{key:"render",value:function(){var n=this.props;return n.vnode,n.children}}]),t}();function vO(e,t){var n;return typeof e=="function"&&(n=e.toString(),e.prototype!==void 0&&e.prototype.constructor===e&&(n.slice(0,5)=="class"||2<=Object.getOwnPropertyNames(e.prototype).length||!/^function\s+\(|^function\s+anonymous\(/.test(n)&&!!/\b\(this\b|\bthis[\.\[]\b/.test(n)&&!t))}function ry(e,t){var n,r,o,u;return typeof((o=e.type)==null?void 0:o.originReactComponent)!="function"||vO((o=e.type)==null?void 0:o.originReactComponent)?((o=e.ref)!=null&&o.k?(n=(o=e.ref)==null?void 0:o.k,r=(o=e.ref)==null?void 0:o.r):n=(o=e.ref)==null?void 0:o.r,n&&typeof n=="string"&&(u=n,n=function(a){var i;(i=e.ref)!=null&&(i=i.i)!=null&&i.refs&&((i=z({},e.ref.i.refs))[u]=a,e.ref.i.refs=i),r?r.value=a:e.ref.i.setupState&&u in e.ref.i.setupState&&(e.ref.i.setupState[u]=a),a&&(a.__syncUpdateProps=function(){t.__top__&&(e.__extraData=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},t.__top__.__syncUpdateProps({}))})},n=new Proxy(n,{get:function(a,i){return a[i]},set:function(a,i,s){var l;return(l=e.ref)!=null&&(l=l.i)!=null&&l.refs&&u in((l=e.ref)==null||(l=l.i)==null?void 0:l.refs)&&((l=z({},e.ref.i.refs))[i]=s,e.ref.i.refs=l),s}})),n):null}function Jf(e,t){return!t||t instanceof Array&&t.length===0||(typeof t=="string"&&(t=[t]),(e=z({},e)).props=z({},e.props),t.forEach(function(n){e.props[n]=""})),e}var hO=["style","class"];function oy(e,t,n,r,o,u,a){var i,s,l;return t==="all"||t instanceof Array||(t=t?[t]:[]),e.type===v.Fragment?o.call(a,e.children,n,u):typeof e.type=="string"&&(t==="all"||-1<t.indexOf(e.type))?(t=ry(e),l=(s=e.props||{}).style,i=s.class,s=z(z({},$t(s,hO)),{},{style:Ds(l),className:Array.from(new Set(Cs(i))).join(" ")},t?{ref:t}:{}),(l=e.children||s.children)&&((l=-1<["string","number"].indexOf(Ye(l))?[l]:ms(l)).__top__=a),ny(e,Jf(re.createElement(e.type,s,o.call(a,l,n,u)),e.scopeId))):n([e],null,r)}function mO(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},t=1<arguments.length?arguments[1]:void 0,n=2<arguments.length?arguments[2]:void 0;return n.__syncUpdateForPureReactInVue&&Object.keys(n.__syncUpdateForPureReactInVue).map(function(r){var o;e[r]&&typeof e[r]=="function"&&t.__top__&&(o=e[r],e[r]=function(){for(var u=arguments.length,a=new Array(u),i=0;i<u;i++)a[i]=arguments[i];t.__extraData=n.__syncUpdateForPureReactInVue[r].apply(this,a),t.__top__.__veaurySyncUpdateProps__({}),t.__top__.macroTaskUpdate=!0,o.apply(this,a),t.__top__&&Promise.resolve().then(function(){t.__extraData=null,t.__top__.__veauryMountReactComponent__(!0)})})}),e}function uy(e,t,n){return!((e=e instanceof Array&&e.length===1?e[0]:e)instanceof Array)&&e.key==null&&1<t.length&&((e=z({},e)).key="_key_".concat(n)),e}function ay(r){var t=r.reactComponents,n=r.domTags,r=r.division,o=r===void 0||r;return function u(a,i,s){var l;return a&&a.forEach?(a.__top__||(a.__top__=this),l=[],a.forEach(function(c,d){if(c&&c.type!==v.Comment){if((m=c.type)==null||!m.originReactComponent)return c.$$typeof||typeof c=="string"||typeof c=="number"?void l.push(c):ty(c)?void(c.children.trim()!==""&&l.push(c.children.trim())):void(c.type&&(Jf(m=uy(oy(c,n,i,o,u,s,a.__top__),a,d),c.scopeId),l.push(m)));var p,y,m=c.type.originReactComponent;Jf(p=uy(p=(t=t==="all"||t instanceof Array?t:[t])==="all"||-1<t.indexOf(m)?(c.__top__=a.__top__,p=dO(c,"_key_".concat(d),i,u,s),y=ry(c,a),c.children&&(c.children.__top__=a.__top__),ny(c,re.createElement(m,z(z(z({},mO(p,c,m)),c.__extraData||{}),y?{ref:y}:{})))):ty(c)?c.text:oy(c,n,i,o,u,s),a,d),c.scopeId),l.push(p)}}),l.length===1?l[0]:l):a}}var ed=ay({reactComponents:"all",domTags:"all"});function gO(e,t){return cO(e,{combinedOption:z({pureTransformer:!0,defaultSlotsFormatter:ed,defaultPropsFormatter:function(n,r,o){var u={};return Object.keys(n).forEach(function(a){var i=n[a];i&&(i.vueFunction?(u[a]=function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return ed(i.vueFunction.apply(this,l),r,o)},Object.defineProperty(u[a],"length",{get:function(){return i.vueFunction.length}})):i.vueSlot&&(u[a]=ed(i.vueSlot,r,o)))}),Object.assign(n,u)}},t)})}ay({reactComponents:"all",domTags:"all"});var yO=["ref","children","v-slots"];function DO(s,t,n,r,o){var s=s.props||{},l=(s.ref,s.children),a=s["v-slots"],u=a===void 0?{}:a,a=$t(s,yO),i=(l&&(Ye(l)!=="object"||l instanceof Array||l.$$typeof?u.default=l:u=l),null),s=(Object.keys(u||{}).forEach(function(d){var p=u[d];(i=i||{})[d]=function(){if(typeof p=="function"){for(var y=arguments.length,m=new Array(y),f=0;f<y;f++)m[f]=arguments[f];p=p.apply(this,m)}return r(p,n,o)}}),{}),l=Ds(a.style),c=Array.from(new Set(Cs(a.className))).join(" ");return 0<Object.keys(l).length&&(s.style=l),c!==""&&(s.class=c),Object.assign(a,z({},s)),delete a.className,{props:a=Gf(a),slots:i}}function iy(e){var t=e.ref;if(t)return Ye(t)==="object"?function(n){e.ref.current=n}:typeof t=="function"?t:void 0}var CO=["style","class","children"];function sy(e,t,n,r,o,u){var a,i,s,l;return t==="all"||t instanceof Array||(t=t?[t]:[]),e.type===L.Fragment?o((a=e.props)==null?void 0:a.children,n):typeof e.type=="string"&&(t==="all"||-1<t.indexOf(e.type))?(a=iy(e),l=(t=e.props||{}).style,s=t.class,i=t.children,t=$t(t,CO),s=Array.from(new Set(Cs(s))).join(" "),l=Ds(l),t=z(z(z(z({},t),Object.keys(l).length===0?{}:{style:l}),s?{className:s}:{}),a?{ref:a}:{}),Object.keys(t).length===0&&(t=null),(l=i)&&((l=-1<["string","number"].indexOf(Ye(l))?[l]:l instanceof Array?ms(l):z({},l)).__top__=u),v.h(e.type,t,o(l,n))):n([e],null,r)}function ly(r){var t=r.vueComponents,n=r.domTags,r=r.division,o=r===void 0||r;return function u(a,i){if(a==null)return a;a instanceof Array||(a=[a]);var s=[];return a.forEach(function(l,c){if(((d=l.type)==null||!d.originVueComponent)&&l.type!==Zf)return l.__v_isVNode||typeof l=="string"||typeof l=="number"?void s.push(l):void(l.type&&(d=sy(l,n,i,o,u,a.__top__),s.push(d)));var d=l.type.originVueComponent;if(l.type===Zf){if(!l.props.component)return void s.push(l.props.node);d=l.props.component,l=z({},l);var p=z({},l.props);delete p.component,l.props=p}d=(t=t==="all"||t instanceof Array?t:[t])==="all"||-1<t.indexOf(d)?((l=z({},l)).__top__=a.__top__,c=(p=DO(l,"_key_".concat(c),i,u)).props,p=p.slots,iy(l),l.children&&(l.children.__top__=a.__top__),v.h(d,z({},c),p)):sy(l,n,i,o,u),s.push(d)}),(s=s.flat(1/0)).length===1?s[0]:s}}ly({vueComponents:"all",domTags:"all"}),ly({reactComponents:"all",domTags:"all"}),new gs;var cy={exports:{}},ws={};/**
44
44
  * @license React
45
45
  * react-jsx-runtime.production.min.js
46
46
  *
@@ -48,14 +48,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
48
48
  *
49
49
  * This source code is licensed under the MIT license found in the
50
50
  * LICENSE file in the root directory of this source tree.
51
- */var UF=L,HF=Symbol.for("react.element"),KF=Symbol.for("react.fragment"),qF=Object.prototype.hasOwnProperty,QF=UF.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,YF={key:!0,ref:!0,__self:!0,__source:!0};function _0(e,t,n){var r,o={},u=null,a=null;n!==void 0&&(u=""+n),t.key!==void 0&&(u=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)qF.call(t,r)&&!YF.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:HF,type:e,key:u,ref:a,props:o,_owner:QF.current}}ls.Fragment=KF,ls.jsx=_0,ls.jsxs=_0,O0.exports=ls;var Te=O0.exports,GF=JF,k0="֑-߿יִ-﷽ﹰ-ﻼ",P0="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",XF=new RegExp("^[^"+P0+"]*["+k0+"]"),ZF=new RegExp("^[^"+k0+"]*["+P0+"]");function JF(e){return e=String(e||""),XF.test(e)?"rtl":ZF.test(e)?"ltr":"neutral"}const T0=Uo(GF);function ex(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Nf=ex,tx=typeof ba=="object"&&ba&&ba.Object===Object&&ba,nx=tx,rx=nx,ox=typeof self=="object"&&self&&self.Object===Object&&self,ux=rx||ox||Function("return this")(),R0=ux,ax=R0,ix=function(){return ax.Date.now()},sx=ix,lx=/\s/;function cx(e){for(var t=e.length;t--&&lx.test(e.charAt(t)););return t}var fx=cx,dx=fx,px=/^\s+/;function vx(e){return e&&e.slice(0,dx(e)+1).replace(px,"")}var hx=vx,mx=R0,gx=mx.Symbol,N0=gx,j0=N0,I0=Object.prototype,yx=I0.hasOwnProperty,Dx=I0.toString,Yu=j0?j0.toStringTag:void 0;function Cx(e){var t=yx.call(e,Yu),n=e[Yu];try{e[Yu]=void 0;var r=!0}catch{}var o=Dx.call(e);return r&&(t?e[Yu]=n:delete e[Yu]),o}var wx=Cx,Ex=Object.prototype,Bx=Ex.toString;function Ax(e){return Bx.call(e)}var bx=Ax,M0=N0,Fx=wx,xx=bx,Sx="[object Null]",Ox="[object Undefined]",$0=M0?M0.toStringTag:void 0;function _x(e){return e==null?e===void 0?Ox:Sx:$0&&$0 in Object(e)?Fx(e):xx(e)}var kx=_x;function Px(e){return e!=null&&typeof e=="object"}var Tx=Px,Rx=kx,Nx=Tx,jx="[object Symbol]";function Ix(e){return typeof e=="symbol"||Nx(e)&&Rx(e)==jx}var Mx=Ix,$x=hx,L0=Nf,Lx=Mx,z0=NaN,zx=/^[-+]0x[0-9a-f]+$/i,Vx=/^0b[01]+$/i,Wx=/^0o[0-7]+$/i,Ux=parseInt;function Hx(e){if(typeof e=="number")return e;if(Lx(e))return z0;if(L0(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=L0(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=$x(e);var n=Vx.test(e);return n||Wx.test(e)?Ux(e.slice(2),n?2:8):zx.test(e)?z0:+e}var Kx=Hx,qx=Nf,jf=sx,V0=Kx,Qx="Expected a function",Yx=Math.max,Gx=Math.min;function Xx(e,t,n){var r,o,u,a,i,s,l=0,c=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(Qx);t=V0(t)||0,qx(n)&&(c=!!n.leading,d="maxWait"in n,u=d?Yx(V0(n.maxWait)||0,t):u,p="trailing"in n?!!n.trailing:p);function y(F){var A=r,S=o;return r=o=void 0,l=F,a=e.apply(S,A),a}function m(F){return l=F,i=setTimeout(h,t),c?y(F):a}function f(F){var A=F-s,S=F-l,P=t-A;return d?Gx(P,u-S):P}function w(F){var A=F-s,S=F-l;return s===void 0||A>=t||A<0||d&&S>=u}function h(){var F=jf();if(w(F))return g(F);i=setTimeout(h,f(F))}function g(F){return i=void 0,p&&r?y(F):(r=o=void 0,a)}function C(){i!==void 0&&clearTimeout(i),l=0,r=s=o=i=void 0}function E(){return i===void 0?a:g(jf())}function B(){var F=jf(),A=w(F);if(r=arguments,o=this,s=F,A){if(i===void 0)return m(s);if(d)return clearTimeout(i),i=setTimeout(h,t),y(s)}return i===void 0&&(i=setTimeout(h,t)),a}return B.cancel=C,B.flush=E,B}var W0=Xx;const Zx=Uo(W0);var Jx=W0,eS=Nf,tS="Expected a function";function nS(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(tS);return eS(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Jx(e,t,{leading:r,maxWait:t,trailing:o})}var rS=nS;const oS=Uo(rS),U0=e=>typeof e=="object"&&e!=null&&e.nodeType===1,H0=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",If=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return H0(n.overflowY,t)||H0(n.overflowX,t)||(r=>{const o=(u=>{if(!u.ownerDocument||!u.ownerDocument.defaultView)return null;try{return u.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},cs=(e,t,n,r,o,u,a,i)=>u<e&&a>t||u>e&&a<t?0:u<=e&&i<=n||a>=t&&i>=n?u-e-r:a>t&&i<n||u<e&&i>n?a-t+o:0,uS=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},K0=(e,t)=>{var n,r,o,u;if(typeof document>"u")return[];const{scrollMode:a,block:i,inline:s,boundary:l,skipOverflowHiddenElements:c}=t,d=typeof l=="function"?l:G=>G!==l;if(!U0(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,y=[];let m=e;for(;U0(m)&&d(m);){if(m=uS(m),m===p){y.push(m);break}m!=null&&m===document.body&&If(m)&&!If(document.documentElement)||m!=null&&If(m,c)&&y.push(m)}const f=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,w=(u=(o=window.visualViewport)==null?void 0:o.height)!=null?u:innerHeight,{scrollX:h,scrollY:g}=window,{height:C,width:E,top:B,right:F,bottom:A,left:S}=e.getBoundingClientRect(),{top:P,right:O,bottom:H,left:k}=(G=>{const R=window.getComputedStyle(G);return{top:parseFloat(R.scrollMarginTop)||0,right:parseFloat(R.scrollMarginRight)||0,bottom:parseFloat(R.scrollMarginBottom)||0,left:parseFloat(R.scrollMarginLeft)||0}})(e);let W=i==="start"||i==="nearest"?B-P:i==="end"?A+H:B+C/2-P+H,$=s==="center"?S+E/2-k+O:s==="end"?F+O:S-k;const V=[];for(let G=0;G<y.length;G++){const R=y[G],{height:M,width:U,top:Y,right:ne,bottom:te,left:ve}=R.getBoundingClientRect();if(a==="if-needed"&&B>=0&&S>=0&&A<=w&&F<=f&&B>=Y&&A<=te&&S>=ve&&F<=ne)return V;const x=getComputedStyle(R),j=parseInt(x.borderLeftWidth,10),N=parseInt(x.borderTopWidth,10),Q=parseInt(x.borderRightWidth,10),oe=parseInt(x.borderBottomWidth,10);let ee=0,ie=0;const ce="offsetWidth"in R?R.offsetWidth-R.clientWidth-j-Q:0,de="offsetHeight"in R?R.offsetHeight-R.clientHeight-N-oe:0,he="offsetWidth"in R?R.offsetWidth===0?0:U/R.offsetWidth:0,le="offsetHeight"in R?R.offsetHeight===0?0:M/R.offsetHeight:0;if(p===R)ee=i==="start"?W:i==="end"?W-w:i==="nearest"?cs(g,g+w,w,N,oe,g+W,g+W+C,C):W-w/2,ie=s==="start"?$:s==="center"?$-f/2:s==="end"?$-f:cs(h,h+f,f,j,Q,h+$,h+$+E,E),ee=Math.max(0,ee+g),ie=Math.max(0,ie+h);else{ee=i==="start"?W-Y-N:i==="end"?W-te+oe+de:i==="nearest"?cs(Y,te,M,N,oe+de,W,W+C,C):W-(Y+M/2)+de/2,ie=s==="start"?$-ve-j:s==="center"?$-(ve+U/2)+ce/2:s==="end"?$-ne+Q+ce:cs(ve,ne,U,j,Q+ce,$,$+E,E);const{scrollLeft:Ie,scrollTop:Re}=R;ee=le===0?0:Math.max(0,Math.min(Re+ee/le,R.scrollHeight-M/le+de)),ie=he===0?0:Math.max(0,Math.min(Ie+ie/he,R.scrollWidth-U/he+ce)),W+=Re-ee,$+=Ie-ie}V.push({el:R,top:ee,left:ie})}return V},aS=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function iS(e,t){if(!e.isConnected||!(o=>{let u=o;for(;u&&u.parentNode;){if(u.parentNode===document)return!0;u=u.parentNode instanceof ShadowRoot?u.parentNode.host:u.parentNode}return!1})(e))return;const n=(o=>{const u=window.getComputedStyle(o);return{top:parseFloat(u.scrollMarginTop)||0,right:parseFloat(u.scrollMarginRight)||0,bottom:parseFloat(u.scrollMarginBottom)||0,left:parseFloat(u.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(K0(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:u,left:a}of K0(e,aS(t))){const i=u-n.top+n.bottom,s=a-n.left+n.right;o.scroll({top:i,left:s,behavior:r})}}var kr=[],sS=function(){return kr.some(function(e){return e.activeTargets.length>0})},lS=function(){return kr.some(function(e){return e.skippedTargets.length>0})},q0="ResizeObserver loop completed with undelivered notifications.",cS=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:q0}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=q0),window.dispatchEvent(e)},Gu;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Gu||(Gu={}));var Pr=function(e){return Object.freeze(e)},fS=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Pr(this)}return e}(),Q0=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Pr(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,u=t.right,a=t.bottom,i=t.left,s=t.width,l=t.height;return{x:n,y:r,top:o,right:u,bottom:a,left:i,width:s,height:l}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Mf=function(e){return e instanceof SVGElement&&"getBBox"in e},Y0=function(e){if(Mf(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,u=o.offsetWidth,a=o.offsetHeight;return!(u||a||e.getClientRects().length)},G0=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},dS=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Xu=typeof window<"u"?window:{},fs=new WeakMap,X0=/auto|scroll/,pS=/^tb|vertical/,vS=/msie|trident/i.test(Xu.navigator&&Xu.navigator.userAgent),sn=function(e){return parseFloat(e||"0")},Oo=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new fS((n?t:e)||0,(n?e:t)||0)},Z0=Pr({devicePixelContentBoxSize:Oo(),borderBoxSize:Oo(),contentBoxSize:Oo(),contentRect:new Q0(0,0,0,0)}),J0=function(e,t){if(t===void 0&&(t=!1),fs.has(e)&&!t)return fs.get(e);if(Y0(e))return fs.set(e,Z0),Z0;var n=getComputedStyle(e),r=Mf(e)&&e.ownerSVGElement&&e.getBBox(),o=!vS&&n.boxSizing==="border-box",u=pS.test(n.writingMode||""),a=!r&&X0.test(n.overflowY||""),i=!r&&X0.test(n.overflowX||""),s=r?0:sn(n.paddingTop),l=r?0:sn(n.paddingRight),c=r?0:sn(n.paddingBottom),d=r?0:sn(n.paddingLeft),p=r?0:sn(n.borderTopWidth),y=r?0:sn(n.borderRightWidth),m=r?0:sn(n.borderBottomWidth),f=r?0:sn(n.borderLeftWidth),w=d+l,h=s+c,g=f+y,C=p+m,E=i?e.offsetHeight-C-e.clientHeight:0,B=a?e.offsetWidth-g-e.clientWidth:0,F=o?w+g:0,A=o?h+C:0,S=r?r.width:sn(n.width)-F-B,P=r?r.height:sn(n.height)-A-E,O=S+w+B+g,H=P+h+E+C,k=Pr({devicePixelContentBoxSize:Oo(Math.round(S*devicePixelRatio),Math.round(P*devicePixelRatio),u),borderBoxSize:Oo(O,H,u),contentBoxSize:Oo(S,P,u),contentRect:new Q0(d,s,S,P)});return fs.set(e,k),k},ey=function(e,t,n){var r=J0(e,n),o=r.borderBoxSize,u=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case Gu.DEVICE_PIXEL_CONTENT_BOX:return a;case Gu.BORDER_BOX:return o;default:return u}},hS=function(){function e(t){var n=J0(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Pr([n.borderBoxSize]),this.contentBoxSize=Pr([n.contentBoxSize]),this.devicePixelContentBoxSize=Pr([n.devicePixelContentBoxSize])}return e}(),ty=function(e){if(Y0(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},mS=function(){var e=1/0,t=[];kr.forEach(function(a){if(a.activeTargets.length!==0){var i=[];a.activeTargets.forEach(function(l){var c=new hS(l.target),d=ty(l.target);i.push(c),l.lastReportedSize=ey(l.target,l.observedBox),d<e&&(e=d)}),t.push(function(){a.callback.call(a.observer,i,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var o=r[n];o()}return e},ny=function(e){kr.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(ty(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},gS=function(){var e=0;for(ny(e);sS();)e=mS(),ny(e);return lS()&&cS(),e>0},$f,ry=[],yS=function(){return ry.splice(0).forEach(function(e){return e()})},DS=function(e){if(!$f){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return yS()}).observe(n,r),$f=function(){n.textContent="".concat(t?t--:t++)}}ry.push(e),$f()},CS=function(e){DS(function(){requestAnimationFrame(e)})},ds=0,wS=function(){return!!ds},ES=250,BS={attributes:!0,characterData:!0,childList:!0,subtree:!0},oy=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],uy=function(e){return e===void 0&&(e=0),Date.now()+e},Lf=!1,AS=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=ES),!Lf){Lf=!0;var r=uy(t);CS(function(){var o=!1;try{o=gS()}finally{if(Lf=!1,t=r-uy(),!wS())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,BS)};document.body?n():Xu.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),oy.forEach(function(n){return Xu.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),oy.forEach(function(n){return Xu.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),zf=new AS,ay=function(e){!ds&&e>0&&zf.start(),ds+=e,!ds&&zf.stop()},bS=function(e){return!Mf(e)&&!dS(e)&&getComputedStyle(e).display==="inline"},FS=function(){function e(t,n){this.target=t,this.observedBox=n||Gu.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=ey(this.target,this.observedBox,!0);return bS(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),xS=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),ps=new WeakMap,iy=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},vs=function(){function e(){}return e.connect=function(t,n){var r=new xS(t,n);ps.set(t,r)},e.observe=function(t,n,r){var o=ps.get(t),u=o.observationTargets.length===0;iy(o.observationTargets,n)<0&&(u&&kr.push(o),o.observationTargets.push(new FS(n,r&&r.box)),ay(1),zf.schedule())},e.unobserve=function(t,n){var r=ps.get(t),o=iy(r.observationTargets,n),u=r.observationTargets.length===1;o>=0&&(u&&kr.splice(kr.indexOf(r),1),r.observationTargets.splice(o,1),ay(-1))},e.disconnect=function(t){var n=this,r=ps.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),SS=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");vs.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!G0(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");vs.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!G0(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");vs.unobserve(this,t)},e.prototype.disconnect=function(){vs.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),xn={};Object.defineProperty(xn,"__esModule",{value:!0});for(var OS=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Vf={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},sy={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:OS?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Wf={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},hs=1;hs<20;hs++)Wf["f"+hs]=111+hs;function ms(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(a){return ly(a,t)}),o=function(i){return r.some(function(s){return cy(s,i)})},u=n==null?o:o(n);return u}function _S(e,t){return ms(e,t)}function kS(e,t){return ms(e,{byKey:!0},t)}function ly(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var o=e.split("+"),u=o.length;for(var a in Vf)r[Vf[a]]=!1;var i=!0,s=!1,l=void 0;try{for(var c=o[Symbol.iterator](),d;!(i=(d=c.next()).done);i=!0){var p=d.value,y=p.endsWith("?")&&p.length>1;y&&(p=p.slice(0,-1));var m=Uf(p),f=Vf[m];if(p.length>1&&!f&&!sy[p]&&!Wf[m])throw new TypeError('Unknown modifier: "'+p+'"');(u===1||!f)&&(n?r.key=m:r.which=fy(p)),f&&(r[f]=y?null:!0)}}catch(w){s=!0,l=w}finally{try{!i&&c.return&&c.return()}finally{if(s)throw l}}return r}function cy(e,t){for(var n in e){var r=e[n],o=void 0;if(r!=null&&(n==="key"&&t.key!=null?o=t.key.toLowerCase():n==="which"?o=r===91&&t.which===93?91:t.which:o=t[n],!(o==null&&r===!1)&&o!==r))return!1}return!0}function fy(e){e=Uf(e);var t=Wf[e]||e.toUpperCase().charCodeAt(0);return t}function Uf(e){return e=e.toLowerCase(),e=sy[e]||e,e}xn.default=ms;var Hf=xn.isHotkey=ms;xn.isCodeHotkey=_S,xn.isKeyHotkey=kS,xn.parseHotkey=ly,xn.compareHotkey=cy,xn.toKeyCode=fy,xn.toKeyName=Uf;function PS(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,u;for(u=0;u<r.length;u++)o=r[u],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function _o(e,t){if(e==null)return{};var n=PS(e,t),r,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(o=0;o<u.length;o++)r=u[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zu(e){"@babel/helpers - typeof";return Zu=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},Zu(e)}function TS(e,t){if(Zu(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Zu(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RS(e){var t=TS(e,"string");return Zu(t)==="symbol"?t:String(t)}function $t(e,t,n){return t=RS(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kf=L.createContext(null),nr=()=>{var e=L.useContext(Kf);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},dy=parseInt(re.version.split(".")[0],10),NS=typeof navigator<"u"&&typeof window<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,py=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),at=typeof navigator<"u"&&/Android/.test(navigator.userAgent),ko=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Ju=typeof navigator<"u"&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),jS=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),vy=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),IS=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),MS=at&&typeof navigator<"u"&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),$S=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),LS=typeof navigator<"u"&&/.*UCBrowser/.test(navigator.userAgent),zS=typeof navigator<"u"&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent),gs=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",rr=(!IS||!MS)&&!jS&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",qf=new WeakMap,Qf=new WeakMap,hy=new WeakMap,ys=new WeakMap,Yf=new WeakMap,ea=new WeakMap,Tr=new WeakMap,Ds=new WeakMap,Cs=new WeakMap,Gf=new WeakMap,or=new WeakMap,Rr=new WeakMap,ta=new WeakMap,Xf=new WeakMap,Zf=new WeakMap,Xt=new WeakMap,Sn=new WeakMap,ht=new WeakMap,ur=new WeakMap,ar=new WeakMap,my=new WeakMap,Po=Symbol("placeholder"),gy=Symbol("mark-placeholder"),VS=globalThis.Text,Jf=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,WS=e=>ir(e)&&e.nodeType===8,Lt=e=>ir(e)&&e.nodeType===1,ir=e=>{var t=Jf(e);return!!t&&e instanceof t.Node},ed=e=>{var t=e&&e.anchorNode&&Jf(e.anchorNode);return!!t&&e instanceof t.Selection},yy=e=>ir(e)&&e.nodeType===3,US=e=>e.clipboardData&&e.clipboardData.getData("text/plain")!==""&&e.clipboardData.types.length===1,HS=e=>{var[t,n]=e;if(Lt(t)&&t.childNodes.length){var r=n===t.childNodes.length,o=r?n-1:n;for([t,o]=Dy(t,o,r?"backward":"forward"),r=o<n;Lt(t)&&t.childNodes.length;){var u=r?t.childNodes.length-1:0;t=qS(t,u,r?"backward":"forward")}n=r&&t.textContent!=null?t.textContent.length:0}return[t,n]},KS=e=>{for(var t=e&&e.parentNode;t;){if(t.toString()==="[object ShadowRoot]")return!0;t=t.parentNode}return!1},Dy=(e,t,n)=>{for(var{childNodes:r}=e,o=r[t],u=t,a=!1,i=!1;(WS(o)||Lt(o)&&o.childNodes.length===0||Lt(o)&&o.getAttribute("contenteditable")==="false")&&!(a&&i);){if(u>=r.length){a=!0,u=t-1,n="backward";continue}if(u<0){i=!0,u=t+1,n="forward";continue}o=r[u],t=u,u+=n==="forward"?1:-1}return[o,t]},qS=(e,t,n)=>{var[r]=Dy(e,t,n);return r},Cy=e=>{var t="";if(yy(e)&&e.nodeValue)return e.nodeValue;if(Lt(e)){for(var n of Array.from(e.childNodes))t+=Cy(n);var r=getComputedStyle(e).getPropertyValue("display");(r==="block"||r==="list"||e.tagName==="BR")&&(t+=`
52
- `)}return t},QS=/data-slate-fragment="(.+?)"/m,YS=e=>{var t=e.getData("text/html"),[,n]=t.match(QS)||[];return n},td=(e,t,n)=>{var{target:r}=t;if(Lt(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:o}=T.getWindow(e);if(o.contains(r))return T.hasDOMNode(e,r,{editable:!0});var u=n.find(a=>{var{addedNodes:i,removedNodes:s}=a;for(var l of i)if(l===r||l.contains(r))return!0;for(var c of s)if(c===r||c.contains(r))return!0});return!u||u===t?!1:td(e,u,n)},GS=0;class XS{constructor(){$t(this,"id",void 0),this.id="".concat(GS++)}}var T={androidPendingDiffs:e=>ht.get(e),androidScheduleFlush:e=>{var t;(t=Zf.get(e))===null||t===void 0||t()},blur:e=>{var t=T.toDOMNode(e,e),n=T.findDocumentOrShadowRoot(e);or.set(e,!1),n.activeElement===t&&t.blur()},deselect:e=>{var{selection:t}=e,n=T.findDocumentOrShadowRoot(e),r=n.getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),t&&I.deselect(e)},findDocumentOrShadowRoot:e=>{var t=T.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},findEventRange:(e,t)=>{"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:n,clientY:r,target:o}=t;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var u=T.toSlateNode(e,t.target),a=T.findPath(e,u);if(X.isElement(u)&&D.isVoid(e,u)){var i=o.getBoundingClientRect(),s=e.isInline(u)?n-i.left<i.left+i.width-n:r-i.top<i.top+i.height-r,l=D.point(e,a,{edge:s?"start":"end"}),c=s?D.before(e,l):D.after(e,l);if(c){var d=D.range(e,c);return d}}var p,{document:y}=T.getWindow(e);if(y.caretRangeFromPoint)p=y.caretRangeFromPoint(n,r);else{var m=y.caretPositionFromPoint(n,r);m&&(p=y.createRange(),p.setStart(m.offsetNode,m.offset),p.setEnd(m.offsetNode,m.offset))}if(!p)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var f=T.toSlateRange(e,p,{exactMatch:!1,suppressThrow:!1});return f},findKey:(e,t)=>{var n=Ds.get(t);return n||(n=new XS,Ds.set(t,n)),n},findPath:(e,t)=>{for(var n=[],r=t;;){var o=Qf.get(r);if(o==null){if(D.isEditor(r))return n;break}var u=qf.get(r);if(u==null)break;n.unshift(u),r=o}throw new Error("Unable to find the path for Slate node: ".concat(ze.stringify(t)))},focus:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{retries:5};if(!or.get(t)){if(n.retries<=0)throw new Error("Could not set focus, editor seems stuck with pending operations");if(t.operations.length>0){setTimeout(()=>{T.focus(t,{retries:n.retries-1})},10);return}var r=T.toDOMNode(t,t),o=T.findDocumentOrShadowRoot(t);if(o.activeElement!==r){if(t.selection&&o instanceof Document){var u=o.getSelection(),a=T.toDOMRange(t,t.selection);u==null||u.removeAllRanges(),u==null||u.addRange(a)}t.selection||(I.select(t,D.start(t,[])),t.onChange()),or.set(t,!0),r.focus({preventScroll:!0})}}},getWindow:e=>{var t=hy.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},hasDOMNode:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{editable:o=!1}=r,u=T.toDOMNode(t,t),a;try{a=Lt(n)?n:n.parentElement}catch(i){if(i instanceof Error&&!i.message.includes('Permission denied to access property "nodeType"'))throw i}return a?a.closest("[data-slate-editor]")===u&&(!o||a.isContentEditable?!0:typeof a.isContentEditable=="boolean"&&a.closest('[contenteditable="false"]')===u||!!a.getAttribute("data-slate-zero-width")):!1},hasEditableTarget:(e,t)=>ir(t)&&T.hasDOMNode(e,t,{editable:!0}),hasRange:(e,t)=>{var{anchor:n,focus:r}=t;return D.hasPath(e,n.path)&&D.hasPath(e,r.path)},hasSelectableTarget:(e,t)=>T.hasEditableTarget(e,t)||T.isTargetInsideNonReadonlyVoid(e,t),hasTarget:(e,t)=>ir(t)&&T.hasDOMNode(e,t),insertData:(e,t)=>{e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),isComposing:e=>!!Rr.get(e),isFocused:e=>!!or.get(e),isReadOnly:e=>!!Gf.get(e),isTargetInsideNonReadonlyVoid:(e,t)=>{if(Gf.get(e))return!1;var n=T.hasTarget(e,t)&&T.toSlateNode(e,t);return X.isElement(n)&&D.isVoid(e,n)},setFragmentData:(e,t,n)=>e.setFragmentData(t,n),toDOMNode:(e,t)=>{var n=Cs.get(e),r=D.isEditor(t)?ys.get(e):n==null?void 0:n.get(T.findKey(e,t));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(ze.stringify(t)));return r},toDOMPoint:(e,t)=>{var[n]=D.node(e,t.path),r=T.toDOMNode(e,n),o;D.void(e,{at:t})&&(t={path:t.path,offset:0});for(var u="[data-slate-string], [data-slate-zero-width]",a=Array.from(r.querySelectorAll(u)),i=0,s=0;s<a.length;s++){var l=a[s],c=l.childNodes[0];if(!(c==null||c.textContent==null)){var{length:d}=c.textContent,p=l.getAttribute("data-slate-length"),y=p==null?d:parseInt(p,10),m=i+y,f=a[s+1];if(t.offset===m&&f!==null&&f!==void 0&&f.hasAttribute("data-slate-mark-placeholder")){var w,h=f.childNodes[0];o=[h instanceof VS?h:f,(w=f.textContent)!==null&&w!==void 0&&w.startsWith("\uFEFF")?1:0];break}if(t.offset<=m){var g=Math.min(d,Math.max(0,t.offset-i));o=[c,g];break}i=m}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(ze.stringify(t)));return o},toDOMRange:(e,t)=>{var{anchor:n,focus:r}=t,o=_.isBackward(t),u=T.toDOMPoint(e,n),a=_.isCollapsed(t)?u:T.toDOMPoint(e,r),i=T.getWindow(e),s=i.document.createRange(),[l,c]=o?a:u,[d,p]=o?u:a,y=Lt(l)?l:l.parentElement,m=!!y.getAttribute("data-slate-zero-width"),f=Lt(d)?d:d.parentElement,w=!!f.getAttribute("data-slate-zero-width");return s.setStart(l,m?1:c),s.setEnd(d,w?1:p),s},toSlateNode:(e,t)=>{var n=Lt(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?ea.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},toSlatePoint:(e,t,n)=>{var{exactMatch:r,suppressThrow:o}=n,[u,a]=r?t:HS(t),i=u.parentNode,s=null,l=0;if(i){var c,d,p=T.toDOMNode(e,e),y=i.closest('[data-slate-void="true"]'),m=y&&p.contains(y)?y:null,f=i.closest("[data-slate-leaf]"),w=null;if(f){if(s=f.closest('[data-slate-node="text"]'),s){var h=T.getWindow(e),g=h.document.createRange();g.setStart(s,0),g.setEnd(u,a);var C=g.cloneContents(),E=[...Array.prototype.slice.call(C.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(C.querySelectorAll("[contenteditable=false]"))];E.forEach($=>{if(at&&!r&&$.hasAttribute("data-slate-zero-width")&&$.textContent.length>0&&$.textContext!=="\uFEFF"){$.textContent.startsWith("\uFEFF")&&($.textContent=$.textContent.slice(1));return}$.parentNode.removeChild($)}),l=C.textContent.length,w=s}}else if(m){for(var B=m.querySelectorAll("[data-slate-leaf]"),F=0;F<B.length;F++){var A=B[F];if(T.hasDOMNode(e,A)){f=A;break}}f?(s=f.closest('[data-slate-node="text"]'),w=f,l=w.textContent.length,w.querySelectorAll("[data-slate-zero-width]").forEach($=>{l-=$.textContent.length})):l=1}w&&l===w.textContent.length&&at&&w.getAttribute("data-slate-zero-width")==="z"&&(c=w.textContent)!==null&&c!==void 0&&c.startsWith("\uFEFF")&&(i.hasAttribute("data-slate-zero-width")||ko&&(d=w.textContent)!==null&&d!==void 0&&d.endsWith(`
51
+ */var wO=L,EO=Symbol.for("react.element"),BO=Symbol.for("react.fragment"),bO=Object.prototype.hasOwnProperty,AO=wO.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,xO={key:!0,ref:!0,__self:!0,__source:!0};function fy(e,t,n){var r,o={},u=null,a=null;n!==void 0&&(u=""+n),t.key!==void 0&&(u=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)bO.call(t,r)&&!xO.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:EO,type:e,key:u,ref:a,props:o,_owner:AO.current}}ws.Fragment=BO,ws.jsx=fy,ws.jsxs=fy,cy.exports=ws;var Te=cy.exports,FO=_O,dy="֑-߿יִ-﷽ﹰ-ﻼ",py="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",SO=new RegExp("^[^"+py+"]*["+dy+"]"),OO=new RegExp("^[^"+dy+"]*["+py+"]");function _O(e){return e=String(e||""),SO.test(e)?"rtl":OO.test(e)?"ltr":"neutral"}const vy=Jo(FO);function kO(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var td=kO,PO=typeof Na=="object"&&Na&&Na.Object===Object&&Na,TO=PO,RO=TO,NO=typeof self=="object"&&self&&self.Object===Object&&self,jO=RO||NO||Function("return this")(),hy=jO,IO=hy,MO=function(){return IO.Date.now()},$O=MO,LO=/\s/;function zO(e){for(var t=e.length;t--&&LO.test(e.charAt(t)););return t}var VO=zO,WO=VO,UO=/^\s+/;function HO(e){return e&&e.slice(0,WO(e)+1).replace(UO,"")}var KO=HO,qO=hy,YO=qO.Symbol,my=YO,gy=my,yy=Object.prototype,QO=yy.hasOwnProperty,GO=yy.toString,ta=gy?gy.toStringTag:void 0;function XO(e){var t=QO.call(e,ta),n=e[ta];try{e[ta]=void 0;var r=!0}catch{}var o=GO.call(e);return r&&(t?e[ta]=n:delete e[ta]),o}var ZO=XO,JO=Object.prototype,e_=JO.toString;function t_(e){return e_.call(e)}var n_=t_,Dy=my,r_=ZO,o_=n_,u_="[object Null]",a_="[object Undefined]",Cy=Dy?Dy.toStringTag:void 0;function i_(e){return e==null?e===void 0?a_:u_:Cy&&Cy in Object(e)?r_(e):o_(e)}var s_=i_;function l_(e){return e!=null&&typeof e=="object"}var c_=l_,f_=s_,d_=c_,p_="[object Symbol]";function v_(e){return typeof e=="symbol"||d_(e)&&f_(e)==p_}var h_=v_,m_=KO,wy=td,g_=h_,Ey=NaN,y_=/^[-+]0x[0-9a-f]+$/i,D_=/^0b[01]+$/i,C_=/^0o[0-7]+$/i,w_=parseInt;function E_(e){if(typeof e=="number")return e;if(g_(e))return Ey;if(wy(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=wy(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=m_(e);var n=D_.test(e);return n||C_.test(e)?w_(e.slice(2),n?2:8):y_.test(e)?Ey:+e}var B_=E_,b_=td,nd=$O,By=B_,A_="Expected a function",x_=Math.max,F_=Math.min;function S_(e,t,n){var r,o,u,a,i,s,l=0,c=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(A_);t=By(t)||0,b_(n)&&(c=!!n.leading,d="maxWait"in n,u=d?x_(By(n.maxWait)||0,t):u,p="trailing"in n?!!n.trailing:p);function y(x){var b=r,S=o;return r=o=void 0,l=x,a=e.apply(S,b),a}function m(x){return l=x,i=setTimeout(h,t),c?y(x):a}function f(x){var b=x-s,S=x-l,P=t-b;return d?F_(P,u-S):P}function w(x){var b=x-s,S=x-l;return s===void 0||b>=t||b<0||d&&S>=u}function h(){var x=nd();if(w(x))return g(x);i=setTimeout(h,f(x))}function g(x){return i=void 0,p&&r?y(x):(r=o=void 0,a)}function C(){i!==void 0&&clearTimeout(i),l=0,r=s=o=i=void 0}function E(){return i===void 0?a:g(nd())}function B(){var x=nd(),b=w(x);if(r=arguments,o=this,s=x,b){if(i===void 0)return m(s);if(d)return clearTimeout(i),i=setTimeout(h,t),y(s)}return i===void 0&&(i=setTimeout(h,t)),a}return B.cancel=C,B.flush=E,B}var by=S_;const O_=Jo(by);var __=by,k_=td,P_="Expected a function";function T_(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(P_);return k_(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),__(e,t,{leading:r,maxWait:t,trailing:o})}var R_=T_;const N_=Jo(R_),Ay=e=>typeof e=="object"&&e!=null&&e.nodeType===1,xy=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",rd=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return xy(n.overflowY,t)||xy(n.overflowX,t)||(r=>{const o=(u=>{if(!u.ownerDocument||!u.ownerDocument.defaultView)return null;try{return u.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},Es=(e,t,n,r,o,u,a,i)=>u<e&&a>t||u>e&&a<t?0:u<=e&&i<=n||a>=t&&i>=n?u-e-r:a>t&&i<n||u<e&&i>n?a-t+o:0,j_=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Fy=(e,t)=>{var n,r,o,u;if(typeof document>"u")return[];const{scrollMode:a,block:i,inline:s,boundary:l,skipOverflowHiddenElements:c}=t,d=typeof l=="function"?l:G=>G!==l;if(!Ay(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,y=[];let m=e;for(;Ay(m)&&d(m);){if(m=j_(m),m===p){y.push(m);break}m!=null&&m===document.body&&rd(m)&&!rd(document.documentElement)||m!=null&&rd(m,c)&&y.push(m)}const f=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,w=(u=(o=window.visualViewport)==null?void 0:o.height)!=null?u:innerHeight,{scrollX:h,scrollY:g}=window,{height:C,width:E,top:B,right:x,bottom:b,left:S}=e.getBoundingClientRect(),{top:P,right:O,bottom:H,left:k}=(G=>{const R=window.getComputedStyle(G);return{top:parseFloat(R.scrollMarginTop)||0,right:parseFloat(R.scrollMarginRight)||0,bottom:parseFloat(R.scrollMarginBottom)||0,left:parseFloat(R.scrollMarginLeft)||0}})(e);let W=i==="start"||i==="nearest"?B-P:i==="end"?b+H:B+C/2-P+H,$=s==="center"?S+E/2-k+O:s==="end"?x+O:S-k;const V=[];for(let G=0;G<y.length;G++){const R=y[G],{height:M,width:U,top:Q,right:ne,bottom:te,left:ve}=R.getBoundingClientRect();if(a==="if-needed"&&B>=0&&S>=0&&b<=w&&x<=f&&B>=Q&&b<=te&&S>=ve&&x<=ne)return V;const F=getComputedStyle(R),j=parseInt(F.borderLeftWidth,10),N=parseInt(F.borderTopWidth,10),Y=parseInt(F.borderRightWidth,10),oe=parseInt(F.borderBottomWidth,10);let ee=0,ie=0;const ce="offsetWidth"in R?R.offsetWidth-R.clientWidth-j-Y:0,de="offsetHeight"in R?R.offsetHeight-R.clientHeight-N-oe:0,he="offsetWidth"in R?R.offsetWidth===0?0:U/R.offsetWidth:0,le="offsetHeight"in R?R.offsetHeight===0?0:M/R.offsetHeight:0;if(p===R)ee=i==="start"?W:i==="end"?W-w:i==="nearest"?Es(g,g+w,w,N,oe,g+W,g+W+C,C):W-w/2,ie=s==="start"?$:s==="center"?$-f/2:s==="end"?$-f:Es(h,h+f,f,j,Y,h+$,h+$+E,E),ee=Math.max(0,ee+g),ie=Math.max(0,ie+h);else{ee=i==="start"?W-Q-N:i==="end"?W-te+oe+de:i==="nearest"?Es(Q,te,M,N,oe+de,W,W+C,C):W-(Q+M/2)+de/2,ie=s==="start"?$-ve-j:s==="center"?$-(ve+U/2)+ce/2:s==="end"?$-ne+Y+ce:Es(ve,ne,U,j,Y+ce,$,$+E,E);const{scrollLeft:Ie,scrollTop:Re}=R;ee=le===0?0:Math.max(0,Math.min(Re+ee/le,R.scrollHeight-M/le+de)),ie=he===0?0:Math.max(0,Math.min(Ie+ie/he,R.scrollWidth-U/he+ce)),W+=Re-ee,$+=Ie-ie}V.push({el:R,top:ee,left:ie})}return V},I_=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function M_(e,t){if(!e.isConnected||!(o=>{let u=o;for(;u&&u.parentNode;){if(u.parentNode===document)return!0;u=u.parentNode instanceof ShadowRoot?u.parentNode.host:u.parentNode}return!1})(e))return;const n=(o=>{const u=window.getComputedStyle(o);return{top:parseFloat(u.scrollMarginTop)||0,right:parseFloat(u.scrollMarginRight)||0,bottom:parseFloat(u.scrollMarginBottom)||0,left:parseFloat(u.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(Fy(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:u,left:a}of Fy(e,I_(t))){const i=u-n.top+n.bottom,s=a-n.left+n.right;o.scroll({top:i,left:s,behavior:r})}}var Rr=[],$_=function(){return Rr.some(function(e){return e.activeTargets.length>0})},L_=function(){return Rr.some(function(e){return e.skippedTargets.length>0})},Sy="ResizeObserver loop completed with undelivered notifications.",z_=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Sy}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Sy),window.dispatchEvent(e)},na;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(na||(na={}));var Nr=function(e){return Object.freeze(e)},V_=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Nr(this)}return e}(),Oy=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Nr(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,u=t.right,a=t.bottom,i=t.left,s=t.width,l=t.height;return{x:n,y:r,top:o,right:u,bottom:a,left:i,width:s,height:l}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),od=function(e){return e instanceof SVGElement&&"getBBox"in e},_y=function(e){if(od(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,u=o.offsetWidth,a=o.offsetHeight;return!(u||a||e.getClientRects().length)},ky=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},W_=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},ra=typeof window<"u"?window:{},Bs=new WeakMap,Py=/auto|scroll/,U_=/^tb|vertical/,H_=/msie|trident/i.test(ra.navigator&&ra.navigator.userAgent),ln=function(e){return parseFloat(e||"0")},To=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new V_((n?t:e)||0,(n?e:t)||0)},Ty=Nr({devicePixelContentBoxSize:To(),borderBoxSize:To(),contentBoxSize:To(),contentRect:new Oy(0,0,0,0)}),Ry=function(e,t){if(t===void 0&&(t=!1),Bs.has(e)&&!t)return Bs.get(e);if(_y(e))return Bs.set(e,Ty),Ty;var n=getComputedStyle(e),r=od(e)&&e.ownerSVGElement&&e.getBBox(),o=!H_&&n.boxSizing==="border-box",u=U_.test(n.writingMode||""),a=!r&&Py.test(n.overflowY||""),i=!r&&Py.test(n.overflowX||""),s=r?0:ln(n.paddingTop),l=r?0:ln(n.paddingRight),c=r?0:ln(n.paddingBottom),d=r?0:ln(n.paddingLeft),p=r?0:ln(n.borderTopWidth),y=r?0:ln(n.borderRightWidth),m=r?0:ln(n.borderBottomWidth),f=r?0:ln(n.borderLeftWidth),w=d+l,h=s+c,g=f+y,C=p+m,E=i?e.offsetHeight-C-e.clientHeight:0,B=a?e.offsetWidth-g-e.clientWidth:0,x=o?w+g:0,b=o?h+C:0,S=r?r.width:ln(n.width)-x-B,P=r?r.height:ln(n.height)-b-E,O=S+w+B+g,H=P+h+E+C,k=Nr({devicePixelContentBoxSize:To(Math.round(S*devicePixelRatio),Math.round(P*devicePixelRatio),u),borderBoxSize:To(O,H,u),contentBoxSize:To(S,P,u),contentRect:new Oy(d,s,S,P)});return Bs.set(e,k),k},Ny=function(e,t,n){var r=Ry(e,n),o=r.borderBoxSize,u=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case na.DEVICE_PIXEL_CONTENT_BOX:return a;case na.BORDER_BOX:return o;default:return u}},K_=function(){function e(t){var n=Ry(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Nr([n.borderBoxSize]),this.contentBoxSize=Nr([n.contentBoxSize]),this.devicePixelContentBoxSize=Nr([n.devicePixelContentBoxSize])}return e}(),jy=function(e){if(_y(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},q_=function(){var e=1/0,t=[];Rr.forEach(function(a){if(a.activeTargets.length!==0){var i=[];a.activeTargets.forEach(function(l){var c=new K_(l.target),d=jy(l.target);i.push(c),l.lastReportedSize=Ny(l.target,l.observedBox),d<e&&(e=d)}),t.push(function(){a.callback.call(a.observer,i,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var o=r[n];o()}return e},Iy=function(e){Rr.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(jy(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},Y_=function(){var e=0;for(Iy(e);$_();)e=q_(),Iy(e);return L_()&&z_(),e>0},ud,My=[],Q_=function(){return My.splice(0).forEach(function(e){return e()})},G_=function(e){if(!ud){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return Q_()}).observe(n,r),ud=function(){n.textContent="".concat(t?t--:t++)}}My.push(e),ud()},X_=function(e){G_(function(){requestAnimationFrame(e)})},bs=0,Z_=function(){return!!bs},J_=250,e3={attributes:!0,characterData:!0,childList:!0,subtree:!0},$y=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ly=function(e){return e===void 0&&(e=0),Date.now()+e},ad=!1,t3=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=J_),!ad){ad=!0;var r=Ly(t);X_(function(){var o=!1;try{o=Y_()}finally{if(ad=!1,t=r-Ly(),!Z_())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,e3)};document.body?n():ra.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),$y.forEach(function(n){return ra.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),$y.forEach(function(n){return ra.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),id=new t3,zy=function(e){!bs&&e>0&&id.start(),bs+=e,!bs&&id.stop()},n3=function(e){return!od(e)&&!W_(e)&&getComputedStyle(e).display==="inline"},r3=function(){function e(t,n){this.target=t,this.observedBox=n||na.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Ny(this.target,this.observedBox,!0);return n3(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),o3=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),As=new WeakMap,Vy=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},xs=function(){function e(){}return e.connect=function(t,n){var r=new o3(t,n);As.set(t,r)},e.observe=function(t,n,r){var o=As.get(t),u=o.observationTargets.length===0;Vy(o.observationTargets,n)<0&&(u&&Rr.push(o),o.observationTargets.push(new r3(n,r&&r.box)),zy(1),id.schedule())},e.unobserve=function(t,n){var r=As.get(t),o=Vy(r.observationTargets,n),u=r.observationTargets.length===1;o>=0&&(u&&Rr.splice(Rr.indexOf(r),1),r.observationTargets.splice(o,1),zy(-1))},e.disconnect=function(t){var n=this,r=As.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),u3=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");xs.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ky(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");xs.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ky(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");xs.unobserve(this,t)},e.prototype.disconnect=function(){xs.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),Fn={};Object.defineProperty(Fn,"__esModule",{value:!0});for(var a3=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),sd={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Wy={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:a3?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},ld={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},Fs=1;Fs<20;Fs++)ld["f"+Fs]=111+Fs;function Ss(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(a){return Uy(a,t)}),o=function(i){return r.some(function(s){return Hy(s,i)})},u=n==null?o:o(n);return u}function i3(e,t){return Ss(e,t)}function s3(e,t){return Ss(e,{byKey:!0},t)}function Uy(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var o=e.split("+"),u=o.length;for(var a in sd)r[sd[a]]=!1;var i=!0,s=!1,l=void 0;try{for(var c=o[Symbol.iterator](),d;!(i=(d=c.next()).done);i=!0){var p=d.value,y=p.endsWith("?")&&p.length>1;y&&(p=p.slice(0,-1));var m=cd(p),f=sd[m];if(p.length>1&&!f&&!Wy[p]&&!ld[m])throw new TypeError('Unknown modifier: "'+p+'"');(u===1||!f)&&(n?r.key=m:r.which=Ky(p)),f&&(r[f]=y?null:!0)}}catch(w){s=!0,l=w}finally{try{!i&&c.return&&c.return()}finally{if(s)throw l}}return r}function Hy(e,t){for(var n in e){var r=e[n],o=void 0;if(r!=null&&(n==="key"&&t.key!=null?o=t.key.toLowerCase():n==="which"?o=r===91&&t.which===93?91:t.which:o=t[n],!(o==null&&r===!1)&&o!==r))return!1}return!0}function Ky(e){e=cd(e);var t=ld[e]||e.toUpperCase().charCodeAt(0);return t}function cd(e){return e=e.toLowerCase(),e=Wy[e]||e,e}Fn.default=Ss;var fd=Fn.isHotkey=Ss;Fn.isCodeHotkey=i3,Fn.isKeyHotkey=s3,Fn.parseHotkey=Uy,Fn.compareHotkey=Hy,Fn.toKeyCode=Ky,Fn.toKeyName=cd;function l3(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,u;for(u=0;u<r.length;u++)o=r[u],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Ro(e,t){if(e==null)return{};var n=l3(e,t),r,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(o=0;o<u.length;o++)r=u[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oa(e){"@babel/helpers - typeof";return oa=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},oa(e)}function c3(e,t){if(oa(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(oa(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function f3(e){var t=c3(e,"string");return oa(t)==="symbol"?t:String(t)}function Lt(e,t,n){return t=f3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dd=L.createContext(null),rr=()=>{var e=L.useContext(dd);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},qy=parseInt(re.version.split(".")[0],10),d3=typeof navigator<"u"&&typeof window<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Yy=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),at=typeof navigator<"u"&&/Android/.test(navigator.userAgent),No=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),ua=typeof navigator<"u"&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),p3=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Qy=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),v3=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),h3=at&&typeof navigator<"u"&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),m3=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),g3=typeof navigator<"u"&&/.*UCBrowser/.test(navigator.userAgent),y3=typeof navigator<"u"&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent),Os=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",or=(!v3||!h3)&&!p3&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",pd=new WeakMap,vd=new WeakMap,Gy=new WeakMap,_s=new WeakMap,hd=new WeakMap,aa=new WeakMap,jr=new WeakMap,ks=new WeakMap,Ps=new WeakMap,md=new WeakMap,ur=new WeakMap,Ir=new WeakMap,ia=new WeakMap,gd=new WeakMap,yd=new WeakMap,Zt=new WeakMap,Sn=new WeakMap,ht=new WeakMap,ar=new WeakMap,ir=new WeakMap,Xy=new WeakMap,jo=Symbol("placeholder"),Zy=Symbol("mark-placeholder"),D3=globalThis.Text,Dd=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,C3=e=>sr(e)&&e.nodeType===8,zt=e=>sr(e)&&e.nodeType===1,sr=e=>{var t=Dd(e);return!!t&&e instanceof t.Node},Cd=e=>{var t=e&&e.anchorNode&&Dd(e.anchorNode);return!!t&&e instanceof t.Selection},Jy=e=>sr(e)&&e.nodeType===3,w3=e=>e.clipboardData&&e.clipboardData.getData("text/plain")!==""&&e.clipboardData.types.length===1,E3=e=>{var[t,n]=e;if(zt(t)&&t.childNodes.length){var r=n===t.childNodes.length,o=r?n-1:n;for([t,o]=e1(t,o,r?"backward":"forward"),r=o<n;zt(t)&&t.childNodes.length;){var u=r?t.childNodes.length-1:0;t=b3(t,u,r?"backward":"forward")}n=r&&t.textContent!=null?t.textContent.length:0}return[t,n]},B3=e=>{for(var t=e&&e.parentNode;t;){if(t.toString()==="[object ShadowRoot]")return!0;t=t.parentNode}return!1},e1=(e,t,n)=>{for(var{childNodes:r}=e,o=r[t],u=t,a=!1,i=!1;(C3(o)||zt(o)&&o.childNodes.length===0||zt(o)&&o.getAttribute("contenteditable")==="false")&&!(a&&i);){if(u>=r.length){a=!0,u=t-1,n="backward";continue}if(u<0){i=!0,u=t+1,n="forward";continue}o=r[u],t=u,u+=n==="forward"?1:-1}return[o,t]},b3=(e,t,n)=>{var[r]=e1(e,t,n);return r},t1=e=>{var t="";if(Jy(e)&&e.nodeValue)return e.nodeValue;if(zt(e)){for(var n of Array.from(e.childNodes))t+=t1(n);var r=getComputedStyle(e).getPropertyValue("display");(r==="block"||r==="list"||e.tagName==="BR")&&(t+=`
52
+ `)}return t},A3=/data-slate-fragment="(.+?)"/m,x3=e=>{var t=e.getData("text/html"),[,n]=t.match(A3)||[];return n},wd=(e,t,n)=>{var{target:r}=t;if(zt(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:o}=T.getWindow(e);if(o.contains(r))return T.hasDOMNode(e,r,{editable:!0});var u=n.find(a=>{var{addedNodes:i,removedNodes:s}=a;for(var l of i)if(l===r||l.contains(r))return!0;for(var c of s)if(c===r||c.contains(r))return!0});return!u||u===t?!1:wd(e,u,n)},F3=0;class S3{constructor(){Lt(this,"id",void 0),this.id="".concat(F3++)}}var T={androidPendingDiffs:e=>ht.get(e),androidScheduleFlush:e=>{var t;(t=yd.get(e))===null||t===void 0||t()},blur:e=>{var t=T.toDOMNode(e,e),n=T.findDocumentOrShadowRoot(e);ur.set(e,!1),n.activeElement===t&&t.blur()},deselect:e=>{var{selection:t}=e,n=T.findDocumentOrShadowRoot(e),r=n.getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),t&&I.deselect(e)},findDocumentOrShadowRoot:e=>{var t=T.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},findEventRange:(e,t)=>{"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:n,clientY:r,target:o}=t;if(n==null||r==null)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var u=T.toSlateNode(e,t.target),a=T.findPath(e,u);if(X.isElement(u)&&D.isVoid(e,u)){var i=o.getBoundingClientRect(),s=e.isInline(u)?n-i.left<i.left+i.width-n:r-i.top<i.top+i.height-r,l=D.point(e,a,{edge:s?"start":"end"}),c=s?D.before(e,l):D.after(e,l);if(c){var d=D.range(e,c);return d}}var p,{document:y}=T.getWindow(e);if(y.caretRangeFromPoint)p=y.caretRangeFromPoint(n,r);else{var m=y.caretPositionFromPoint(n,r);m&&(p=y.createRange(),p.setStart(m.offsetNode,m.offset),p.setEnd(m.offsetNode,m.offset))}if(!p)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var f=T.toSlateRange(e,p,{exactMatch:!1,suppressThrow:!1});return f},findKey:(e,t)=>{var n=ks.get(t);return n||(n=new S3,ks.set(t,n)),n},findPath:(e,t)=>{for(var n=[],r=t;;){var o=vd.get(r);if(o==null){if(D.isEditor(r))return n;break}var u=pd.get(r);if(u==null)break;n.unshift(u),r=o}throw new Error("Unable to find the path for Slate node: ".concat(ze.stringify(t)))},focus:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{retries:5};if(!ur.get(t)){if(n.retries<=0)throw new Error("Could not set focus, editor seems stuck with pending operations");if(t.operations.length>0){setTimeout(()=>{T.focus(t,{retries:n.retries-1})},10);return}var r=T.toDOMNode(t,t),o=T.findDocumentOrShadowRoot(t);if(o.activeElement!==r){if(t.selection&&o instanceof Document){var u=o.getSelection(),a=T.toDOMRange(t,t.selection);u==null||u.removeAllRanges(),u==null||u.addRange(a)}t.selection||(I.select(t,D.start(t,[])),t.onChange()),ur.set(t,!0),r.focus({preventScroll:!0})}}},getWindow:e=>{var t=Gy.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},hasDOMNode:function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{editable:o=!1}=r,u=T.toDOMNode(t,t),a;try{a=zt(n)?n:n.parentElement}catch(i){if(i instanceof Error&&!i.message.includes('Permission denied to access property "nodeType"'))throw i}return a?a.closest("[data-slate-editor]")===u&&(!o||a.isContentEditable?!0:typeof a.isContentEditable=="boolean"&&a.closest('[contenteditable="false"]')===u||!!a.getAttribute("data-slate-zero-width")):!1},hasEditableTarget:(e,t)=>sr(t)&&T.hasDOMNode(e,t,{editable:!0}),hasRange:(e,t)=>{var{anchor:n,focus:r}=t;return D.hasPath(e,n.path)&&D.hasPath(e,r.path)},hasSelectableTarget:(e,t)=>T.hasEditableTarget(e,t)||T.isTargetInsideNonReadonlyVoid(e,t),hasTarget:(e,t)=>sr(t)&&T.hasDOMNode(e,t),insertData:(e,t)=>{e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),isComposing:e=>!!Ir.get(e),isFocused:e=>!!ur.get(e),isReadOnly:e=>!!md.get(e),isTargetInsideNonReadonlyVoid:(e,t)=>{if(md.get(e))return!1;var n=T.hasTarget(e,t)&&T.toSlateNode(e,t);return X.isElement(n)&&D.isVoid(e,n)},setFragmentData:(e,t,n)=>e.setFragmentData(t,n),toDOMNode:(e,t)=>{var n=Ps.get(e),r=D.isEditor(t)?_s.get(e):n==null?void 0:n.get(T.findKey(e,t));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(ze.stringify(t)));return r},toDOMPoint:(e,t)=>{var[n]=D.node(e,t.path),r=T.toDOMNode(e,n),o;D.void(e,{at:t})&&(t={path:t.path,offset:0});for(var u="[data-slate-string], [data-slate-zero-width]",a=Array.from(r.querySelectorAll(u)),i=0,s=0;s<a.length;s++){var l=a[s],c=l.childNodes[0];if(!(c==null||c.textContent==null)){var{length:d}=c.textContent,p=l.getAttribute("data-slate-length"),y=p==null?d:parseInt(p,10),m=i+y,f=a[s+1];if(t.offset===m&&f!==null&&f!==void 0&&f.hasAttribute("data-slate-mark-placeholder")){var w,h=f.childNodes[0];o=[h instanceof D3?h:f,(w=f.textContent)!==null&&w!==void 0&&w.startsWith("\uFEFF")?1:0];break}if(t.offset<=m){var g=Math.min(d,Math.max(0,t.offset-i));o=[c,g];break}i=m}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(ze.stringify(t)));return o},toDOMRange:(e,t)=>{var{anchor:n,focus:r}=t,o=_.isBackward(t),u=T.toDOMPoint(e,n),a=_.isCollapsed(t)?u:T.toDOMPoint(e,r),i=T.getWindow(e),s=i.document.createRange(),[l,c]=o?a:u,[d,p]=o?u:a,y=zt(l)?l:l.parentElement,m=!!y.getAttribute("data-slate-zero-width"),f=zt(d)?d:d.parentElement,w=!!f.getAttribute("data-slate-zero-width");return s.setStart(l,m?1:c),s.setEnd(d,w?1:p),s},toSlateNode:(e,t)=>{var n=zt(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?aa.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(n));return r},toSlatePoint:(e,t,n)=>{var{exactMatch:r,suppressThrow:o}=n,[u,a]=r?t:E3(t),i=u.parentNode,s=null,l=0;if(i){var c,d,p=T.toDOMNode(e,e),y=i.closest('[data-slate-void="true"]'),m=y&&p.contains(y)?y:null,f=i.closest("[data-slate-leaf]"),w=null;if(f){if(s=f.closest('[data-slate-node="text"]'),s){var h=T.getWindow(e),g=h.document.createRange();g.setStart(s,0),g.setEnd(u,a);var C=g.cloneContents(),E=[...Array.prototype.slice.call(C.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(C.querySelectorAll("[contenteditable=false]"))];E.forEach($=>{if(at&&!r&&$.hasAttribute("data-slate-zero-width")&&$.textContent.length>0&&$.textContext!=="\uFEFF"){$.textContent.startsWith("\uFEFF")&&($.textContent=$.textContent.slice(1));return}$.parentNode.removeChild($)}),l=C.textContent.length,w=s}}else if(m){for(var B=m.querySelectorAll("[data-slate-leaf]"),x=0;x<B.length;x++){var b=B[x];if(T.hasDOMNode(e,b)){f=b;break}}f?(s=f.closest('[data-slate-node="text"]'),w=f,l=w.textContent.length,w.querySelectorAll("[data-slate-zero-width]").forEach($=>{l-=$.textContent.length})):l=1}w&&l===w.textContent.length&&at&&w.getAttribute("data-slate-zero-width")==="z"&&(c=w.textContent)!==null&&c!==void 0&&c.startsWith("\uFEFF")&&(i.hasAttribute("data-slate-zero-width")||No&&(d=w.textContent)!==null&&d!==void 0&&d.endsWith(`
53
53
 
54
- `))&&l--}if(at&&!s&&!r){var S=i.hasAttribute("data-slate-node")?i:i.closest("[data-slate-node]");if(S&&T.hasDOMNode(e,S,{editable:!0})){var P=T.toSlateNode(e,S),{path:O,offset:H}=D.start(e,T.findPath(e,P));return S.querySelector("[data-slate-leaf]")||(H=a),{path:O,offset:H}}}if(!s){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var k=T.toSlateNode(e,s),W=T.findPath(e,k);return{path:W,offset:l}},toSlateRange:(e,t,n)=>{var r,{exactMatch:o,suppressThrow:u}=n,a=ed(t)?t.anchorNode:t.startContainer,i,s,l,c,d;if(a)if(ed(t)){if(ko&&t.rangeCount>1){l=t.focusNode;var p=t.getRangeAt(0),y=t.getRangeAt(t.rangeCount-1);if(l instanceof HTMLTableRowElement&&p.startContainer instanceof HTMLTableRowElement&&y.startContainer instanceof HTMLTableRowElement){let F=function(A){return A.childElementCount>0?F(A.children[0]):A};var m=p.startContainer,f=y.startContainer,w=F(m.children[p.startOffset]),h=F(f.children[y.startOffset]);c=0,h.childNodes.length>0?i=h.childNodes[0]:i=h,w.childNodes.length>0?l=w.childNodes[0]:l=w,h instanceof HTMLElement?s=h.innerHTML.length:s=0}else p.startContainer===l?(i=y.endContainer,s=y.endOffset,c=p.startOffset):(i=p.startContainer,s=p.endOffset,c=y.startOffset)}else i=t.anchorNode,s=t.anchorOffset,l=t.focusNode,c=t.focusOffset;vy&&KS(i)||ko?d=t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:d=t.isCollapsed}else i=t.startContainer,s=t.startOffset,l=t.endContainer,c=t.endOffset,d=t.collapsed;if(i==null||l==null||s==null||c==null)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));if(ko&&(r=l.textContent)!==null&&r!==void 0&&r.endsWith(`
54
+ `))&&l--}if(at&&!s&&!r){var S=i.hasAttribute("data-slate-node")?i:i.closest("[data-slate-node]");if(S&&T.hasDOMNode(e,S,{editable:!0})){var P=T.toSlateNode(e,S),{path:O,offset:H}=D.start(e,T.findPath(e,P));return S.querySelector("[data-slate-leaf]")||(H=a),{path:O,offset:H}}}if(!s){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var k=T.toSlateNode(e,s),W=T.findPath(e,k);return{path:W,offset:l}},toSlateRange:(e,t,n)=>{var r,{exactMatch:o,suppressThrow:u}=n,a=Cd(t)?t.anchorNode:t.startContainer,i,s,l,c,d;if(a)if(Cd(t)){if(No&&t.rangeCount>1){l=t.focusNode;var p=t.getRangeAt(0),y=t.getRangeAt(t.rangeCount-1);if(l instanceof HTMLTableRowElement&&p.startContainer instanceof HTMLTableRowElement&&y.startContainer instanceof HTMLTableRowElement){let x=function(b){return b.childElementCount>0?x(b.children[0]):b};var m=p.startContainer,f=y.startContainer,w=x(m.children[p.startOffset]),h=x(f.children[y.startOffset]);c=0,h.childNodes.length>0?i=h.childNodes[0]:i=h,w.childNodes.length>0?l=w.childNodes[0]:l=w,h instanceof HTMLElement?s=h.innerHTML.length:s=0}else p.startContainer===l?(i=y.endContainer,s=y.endOffset,c=p.startOffset):(i=p.startContainer,s=p.endOffset,c=y.startOffset)}else i=t.anchorNode,s=t.anchorOffset,l=t.focusNode,c=t.focusOffset;Qy&&B3(i)||No?d=t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:d=t.isCollapsed}else i=t.startContainer,s=t.startOffset,l=t.endContainer,c=t.endOffset,d=t.collapsed;if(i==null||l==null||s==null||c==null)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));if(No&&(r=l.textContent)!==null&&r!==void 0&&r.endsWith(`
55
55
 
56
- `)&&c===l.textContent.length&&c--,"getAttribute"in l&&l.getAttribute("contenteditable")==="false"&&l.getAttribute("data-slate-void")!=="true"){var g;l=i,c=((g=i.textContent)===null||g===void 0?void 0:g.length)||0}var C=T.toSlatePoint(e,[i,s],{exactMatch:o,suppressThrow:u});if(!C)return null;var E=d?C:T.toSlatePoint(e,[l,c],{exactMatch:o,suppressThrow:u});if(!E)return null;var B={anchor:C,focus:E};return _.isExpanded(B)&&_.isForward(B)&&Lt(l)&&D.void(e,{at:B.focus,mode:"highest"})&&(B=D.unhangRange(e,B,{voids:!0})),B}};function ZS(e,t){var{path:n,diff:r}=t;if(!D.hasPath(e,n))return!1;var o=q.get(e,n);if(!J.isText(o))return!1;if(r.start!==o.text.length||r.text.length===0)return o.text.slice(r.start,r.start+r.text.length)===r.text;var u=b.next(n);if(!D.hasPath(e,u))return!1;var a=q.get(e,u);return J.isText(a)&&a.text.startsWith(r.text)}function wy(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((o,u)=>o.slice(0,u.start)+u.text+o.slice(u.end),e)}function JS(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return n}function eO(e,t,n){for(var r=Math.min(e.length,t.length,n),o=0;o<r;o++)if(e.charAt(e.length-o-1)!==t.charAt(t.length-o-1))return o;return r}function Ey(e,t){var{start:n,end:r,text:o}=t,u=e.slice(n,r),a=JS(u,o),i=Math.min(u.length-a,o.length-a),s=eO(u,o,i),l={start:n+a,end:r-s,text:o.slice(a,o.length-s)};return l.start===l.end&&l.text.length===0?null:l}function tO(e,t,n){var r=Math.min(t.start,n.start),o=Math.max(0,Math.min(t.start+t.text.length,n.end)-n.start),u=wy(e,t,n),a=Math.max(n.start+n.text.length,t.start+t.text.length+(t.start+t.text.length>n.start?n.text.length:0)-o),i=u.slice(r,a),s=Math.max(t.end,n.end-t.text.length+(t.end-t.start));return Ey(e,{start:r,end:s,text:i})}function nO(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function nd(e,t){var{path:n,offset:r}=t;if(!D.hasPath(e,n))return null;var o=q.get(e,n);if(!J.isText(o))return null;var u=D.above(e,{match:i=>X.isElement(i)&&D.isBlock(e,i),at:n});if(!u)return null;for(;r>o.text.length;){var a=D.next(e,{at:n,match:J.isText});if(!a||!b.isDescendant(a[1],u[1]))return null;r-=o.text.length,o=a[0],n=a[1]}return{path:n,offset:r}}function By(e,t){var n=nd(e,t.anchor);if(!n)return null;if(_.isCollapsed(t))return{anchor:n,focus:n};var r=nd(e,t.focus);return r?{anchor:n,focus:r}:null}function rd(e,t,n){var r=ht.get(e),o=r==null?void 0:r.find(c=>{var{path:d}=c;return b.equals(d,t.path)});if(!o||t.offset<=o.diff.start)return ae.transform(t,n,{affinity:"backward"});var{diff:u}=o;if(t.offset<=u.start+u.text.length){var a={path:t.path,offset:u.start},i=ae.transform(a,n,{affinity:"backward"});return i?{path:i.path,offset:i.offset+t.offset-u.start}:null}var s={path:t.path,offset:t.offset-u.text.length+u.end-u.start},l=ae.transform(s,n,{affinity:"backward"});return l?n.type==="split_node"&&b.equals(n.path,t.path)&&s.offset<n.position&&u.start<n.position?l:{path:l.path,offset:l.offset+u.text.length-u.end+u.start}:null}function Ay(e,t,n){var r=rd(e,t.anchor,n);if(!r)return null;if(_.isCollapsed(t))return{anchor:r,focus:r};var o=rd(e,t.focus,n);return o?{anchor:r,focus:o}:null}function rO(e,t){var{path:n,diff:r,id:o}=e;switch(t.type){case"insert_text":return!b.equals(t.path,n)||t.offset>=r.end?e:t.offset<=r.start?{diff:{start:t.text.length+r.start,end:t.text.length+r.end,text:r.text},id:o,path:n}:{diff:{start:r.start,end:r.end+t.text.length,text:r.text},id:o,path:n};case"remove_text":return!b.equals(t.path,n)||t.offset>=r.end?e:t.offset+t.text.length<=r.start?{diff:{start:r.start-t.text.length,end:r.end-t.text.length,text:r.text},id:o,path:n}:{diff:{start:r.start,end:r.end-t.text.length,text:r.text},id:o,path:n};case"split_node":return!b.equals(t.path,n)||t.position>=r.end?{diff:r,id:o,path:b.transform(n,t,{affinity:"backward"})}:t.position>r.start?{diff:{start:r.start,end:Math.min(t.position,r.end),text:r.text},id:o,path:n}:{diff:{start:r.start-t.position,end:r.end-t.position,text:r.text},id:o,path:b.transform(n,t,{affinity:"forward"})};case"merge_node":return b.equals(t.path,n)?{diff:{start:r.start+t.position,end:r.end+t.position,text:r.text},id:o,path:b.transform(n,t)}:{diff:r,id:o,path:b.transform(n,t)}}var u=b.transform(n,t);return u?{diff:r,path:u,id:o}:null}function by(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ws(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?by(Object(n),!0).forEach(function(r){$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):by(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var oO=25,uO=200,aO=function(){},iO=e=>(e==null?void 0:e.constructor.name)==="DataTransfer";function sO(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=e,o=!1,u=null,a=null,i=null,s=0,l=!1,c=()=>{var k=ar.get(t);if(ar.delete(t),k){var{selection:W}=t,$=By(t,k);$&&(!W||!_.equals($,W))&&I.select(t,$)}},d=()=>{var k=ur.get(t);if(ur.delete(t),!!k){if(k.at){var W=ae.isPoint(k.at)?nd(t,k.at):By(t,k.at);if(!W)return;var $=D.range(t,W);(!t.selection||!_.equals(t.selection,$))&&I.select(t,W)}k.run()}},p=()=>{if(a&&(clearTimeout(a),a=null),i&&(clearTimeout(i),i=null),!E()&&!C()){c();return}o||(o=!0,setTimeout(()=>o=!1)),C()&&(o="action");var k=t.selection&&D.rangeRef(t,t.selection,{affinity:"forward"});Sn.set(t,t.marks),aO("flush",ur.get(t),ht.get(t));for(var W=E(),$;$=(V=ht.get(t))===null||V===void 0?void 0:V[0];){var V,G,R=Xt.get(t);R!==void 0&&(Xt.delete(t),t.marks=R),R&&l===!1&&(l=null);var M=nO($);(!t.selection||!_.equals(t.selection,M))&&I.select(t,M),$.diff.text?D.insertText(t,$.diff.text):D.deleteFragment(t),ht.set(t,(G=ht.get(t))===null||G===void 0?void 0:G.filter(ne=>{var{id:te}=ne;return te!==$.id})),ZS(t,$)||(W=!1,ur.delete(t),Sn.delete(t),o="action",ar.delete(t),n.cancel(),r.cancel(),k==null||k.unref())}var U=k==null?void 0:k.unref();if(U&&!ar.get(t)&&(!t.selection||!_.equals(U,t.selection))&&I.select(t,U),C()){d();return}W&&n(),n.flush(),r.flush(),c();var Y=Sn.get(t);Sn.delete(t),Y!==void 0&&(t.marks=Y,t.onChange())},y=k=>{u&&clearTimeout(u),u=setTimeout(()=>{Rr.set(t,!1),p()},oO)},m=k=>{Rr.set(t,!0),u&&(clearTimeout(u),u=null)},f=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,$=Yf.get(t);if($){if(E()||W){$.style.display="none";return}$.style.removeProperty("display")}},w=(k,W)=>{var $,V=($=ht.get(t))!==null&&$!==void 0?$:[];ht.set(t,V);var G=q.leaf(t,k),R=V.findIndex(Y=>b.equals(Y.path,k));if(R<0){var M=Ey(G.text,W);M&&V.push({path:k,diff:W,id:s++}),f();return}var U=tO(G.text,V[R].diff,W);if(!U){V.splice(R,1),f();return}V[R]=ws(ws({},V[R]),{},{diff:U})},h=function(W){var{at:$}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};l=!1,ar.delete(t),n.cancel(),r.cancel(),C()&&p(),ur.set(t,{at:$,run:W}),i=setTimeout(p)},g=k=>{var W;a&&(clearTimeout(a),a=null);var{inputType:$}=k,V=null,G=k.dataTransfer||k.data||void 0;l!==!1&&$!=="insertText"&&$!=="insertCompositionText"&&(l=!1);var[R]=k.getTargetRanges();R&&(V=T.toSlateRange(t,R,{exactMatch:!1,suppressThrow:!0}));var M=T.getWindow(t),U=M.getSelection();if(!V&&U&&(R=U,V=T.toSlateRange(t,U,{exactMatch:!1,suppressThrow:!0})),V=(W=V)!==null&&W!==void 0?W:t.selection,!!V){var Y=!0;if($.startsWith("delete")){if(_.isExpanded(V)){var[ne,te]=_.edges(V),ve=q.leaf(t,ne.path);if(ve.text.length===ne.offset&&te.offset===0){var x=D.next(t,{at:ne.path,match:J.isText});x&&b.equals(x[1],te.path)&&(V={anchor:te,focus:te})}}var j=$.endsWith("Backward")?"backward":"forward",[N,Q]=_.edges(V),[oe,ee]=D.leaf(t,N.path),ie={text:"",start:N.offset,end:Q.offset},ce=ht.get(t),de=ce==null?void 0:ce.find(gt=>b.equals(gt.path,ee)),he=de?[de.diff,ie]:[ie],le=wy(oe.text,...he);if(le.length===0&&(Y=!1),_.isExpanded(V)){if(Y&&b.equals(V.anchor.path,V.focus.path)){var Ie={path:V.anchor.path,offset:N.offset},Re=D.range(t,Ie,Ie);return A(Re),w(V.anchor.path,{text:"",end:Q.offset,start:N.offset})}return h(()=>D.deleteFragment(t,{direction:j}),{at:V})}}switch($){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return h(()=>D.deleteFragment(t),{at:V});case"deleteContent":case"deleteContentForward":{var{anchor:Ae}=V;if(Y&&_.isCollapsed(V)){var xt=q.leaf(t,Ae.path);if(Ae.offset<xt.text.length)return w(Ae.path,{text:"",start:Ae.offset,end:Ae.offset+1})}return h(()=>D.deleteForward(t),{at:V})}case"deleteContentBackward":{var zt,{anchor:_e}=V,et=ed(R)?R.isCollapsed:!!((zt=R)!==null&&zt!==void 0&&zt.collapsed);return Y&&et&&_.isCollapsed(V)&&_e.offset>0?w(_e.path,{text:"",start:_e.offset-1,end:_e.offset}):h(()=>D.deleteBackward(t),{at:V})}case"deleteEntireSoftLine":return h(()=>{D.deleteBackward(t,{unit:"line"}),D.deleteForward(t,{unit:"line"})},{at:V});case"deleteHardLineBackward":return h(()=>D.deleteBackward(t,{unit:"block"}),{at:V});case"deleteSoftLineBackward":return h(()=>D.deleteBackward(t,{unit:"line"}),{at:V});case"deleteHardLineForward":return h(()=>D.deleteForward(t,{unit:"block"}),{at:V});case"deleteSoftLineForward":return h(()=>D.deleteForward(t,{unit:"line"}),{at:V});case"deleteWordBackward":return h(()=>D.deleteBackward(t,{unit:"word"}),{at:V});case"deleteWordForward":return h(()=>D.deleteForward(t,{unit:"word"}),{at:V});case"insertLineBreak":return h(()=>D.insertSoftBreak(t),{at:V});case"insertParagraph":return h(()=>D.insertBreak(t),{at:V});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{if(iO(G))return h(()=>T.insertData(t,G),{at:V});var me=G??"";if(Xt.get(t)&&(me=me.replace("\uFEFF","")),$==="insertText"&&/.*\n.*\n$/.test(me)&&(me=me.slice(0,-1)),me.includes(`
56
+ `)&&c===l.textContent.length&&c--,"getAttribute"in l&&l.getAttribute("contenteditable")==="false"&&l.getAttribute("data-slate-void")!=="true"){var g;l=i,c=((g=i.textContent)===null||g===void 0?void 0:g.length)||0}var C=T.toSlatePoint(e,[i,s],{exactMatch:o,suppressThrow:u});if(!C)return null;var E=d?C:T.toSlatePoint(e,[l,c],{exactMatch:o,suppressThrow:u});if(!E)return null;var B={anchor:C,focus:E};return _.isExpanded(B)&&_.isForward(B)&&zt(l)&&D.void(e,{at:B.focus,mode:"highest"})&&(B=D.unhangRange(e,B,{voids:!0})),B}};function O3(e,t){var{path:n,diff:r}=t;if(!D.hasPath(e,n))return!1;var o=q.get(e,n);if(!Z.isText(o))return!1;if(r.start!==o.text.length||r.text.length===0)return o.text.slice(r.start,r.start+r.text.length)===r.text;var u=A.next(n);if(!D.hasPath(e,u))return!1;var a=q.get(e,u);return Z.isText(a)&&a.text.startsWith(r.text)}function n1(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((o,u)=>o.slice(0,u.start)+u.text+o.slice(u.end),e)}function _3(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return n}function k3(e,t,n){for(var r=Math.min(e.length,t.length,n),o=0;o<r;o++)if(e.charAt(e.length-o-1)!==t.charAt(t.length-o-1))return o;return r}function r1(e,t){var{start:n,end:r,text:o}=t,u=e.slice(n,r),a=_3(u,o),i=Math.min(u.length-a,o.length-a),s=k3(u,o,i),l={start:n+a,end:r-s,text:o.slice(a,o.length-s)};return l.start===l.end&&l.text.length===0?null:l}function P3(e,t,n){var r=Math.min(t.start,n.start),o=Math.max(0,Math.min(t.start+t.text.length,n.end)-n.start),u=n1(e,t,n),a=Math.max(n.start+n.text.length,t.start+t.text.length+(t.start+t.text.length>n.start?n.text.length:0)-o),i=u.slice(r,a),s=Math.max(t.end,n.end-t.text.length+(t.end-t.start));return r1(e,{start:r,end:s,text:i})}function T3(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function Ed(e,t){var{path:n,offset:r}=t;if(!D.hasPath(e,n))return null;var o=q.get(e,n);if(!Z.isText(o))return null;var u=D.above(e,{match:i=>X.isElement(i)&&D.isBlock(e,i),at:n});if(!u)return null;for(;r>o.text.length;){var a=D.next(e,{at:n,match:Z.isText});if(!a||!A.isDescendant(a[1],u[1]))return null;r-=o.text.length,o=a[0],n=a[1]}return{path:n,offset:r}}function o1(e,t){var n=Ed(e,t.anchor);if(!n)return null;if(_.isCollapsed(t))return{anchor:n,focus:n};var r=Ed(e,t.focus);return r?{anchor:n,focus:r}:null}function Bd(e,t,n){var r=ht.get(e),o=r==null?void 0:r.find(c=>{var{path:d}=c;return A.equals(d,t.path)});if(!o||t.offset<=o.diff.start)return ae.transform(t,n,{affinity:"backward"});var{diff:u}=o;if(t.offset<=u.start+u.text.length){var a={path:t.path,offset:u.start},i=ae.transform(a,n,{affinity:"backward"});return i?{path:i.path,offset:i.offset+t.offset-u.start}:null}var s={path:t.path,offset:t.offset-u.text.length+u.end-u.start},l=ae.transform(s,n,{affinity:"backward"});return l?n.type==="split_node"&&A.equals(n.path,t.path)&&s.offset<n.position&&u.start<n.position?l:{path:l.path,offset:l.offset+u.text.length-u.end+u.start}:null}function u1(e,t,n){var r=Bd(e,t.anchor,n);if(!r)return null;if(_.isCollapsed(t))return{anchor:r,focus:r};var o=Bd(e,t.focus,n);return o?{anchor:r,focus:o}:null}function R3(e,t){var{path:n,diff:r,id:o}=e;switch(t.type){case"insert_text":return!A.equals(t.path,n)||t.offset>=r.end?e:t.offset<=r.start?{diff:{start:t.text.length+r.start,end:t.text.length+r.end,text:r.text},id:o,path:n}:{diff:{start:r.start,end:r.end+t.text.length,text:r.text},id:o,path:n};case"remove_text":return!A.equals(t.path,n)||t.offset>=r.end?e:t.offset+t.text.length<=r.start?{diff:{start:r.start-t.text.length,end:r.end-t.text.length,text:r.text},id:o,path:n}:{diff:{start:r.start,end:r.end-t.text.length,text:r.text},id:o,path:n};case"split_node":return!A.equals(t.path,n)||t.position>=r.end?{diff:r,id:o,path:A.transform(n,t,{affinity:"backward"})}:t.position>r.start?{diff:{start:r.start,end:Math.min(t.position,r.end),text:r.text},id:o,path:n}:{diff:{start:r.start-t.position,end:r.end-t.position,text:r.text},id:o,path:A.transform(n,t,{affinity:"forward"})};case"merge_node":return A.equals(t.path,n)?{diff:{start:r.start+t.position,end:r.end+t.position,text:r.text},id:o,path:A.transform(n,t)}:{diff:r,id:o,path:A.transform(n,t)}}var u=A.transform(n,t);return u?{diff:r,path:u,id:o}:null}function a1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ts(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a1(Object(n),!0).forEach(function(r){Lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var N3=25,j3=200,I3=function(){},M3=e=>(e==null?void 0:e.constructor.name)==="DataTransfer";function $3(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=e,o=!1,u=null,a=null,i=null,s=0,l=!1,c=()=>{var k=ir.get(t);if(ir.delete(t),k){var{selection:W}=t,$=o1(t,k);$&&(!W||!_.equals($,W))&&I.select(t,$)}},d=()=>{var k=ar.get(t);if(ar.delete(t),!!k){if(k.at){var W=ae.isPoint(k.at)?Ed(t,k.at):o1(t,k.at);if(!W)return;var $=D.range(t,W);(!t.selection||!_.equals(t.selection,$))&&I.select(t,W)}k.run()}},p=()=>{if(a&&(clearTimeout(a),a=null),i&&(clearTimeout(i),i=null),!E()&&!C()){c();return}o||(o=!0,setTimeout(()=>o=!1)),C()&&(o="action");var k=t.selection&&D.rangeRef(t,t.selection,{affinity:"forward"});Sn.set(t,t.marks),I3("flush",ar.get(t),ht.get(t));for(var W=E(),$;$=(V=ht.get(t))===null||V===void 0?void 0:V[0];){var V,G,R=Zt.get(t);R!==void 0&&(Zt.delete(t),t.marks=R),R&&l===!1&&(l=null);var M=T3($);(!t.selection||!_.equals(t.selection,M))&&I.select(t,M),$.diff.text?D.insertText(t,$.diff.text):D.deleteFragment(t),ht.set(t,(G=ht.get(t))===null||G===void 0?void 0:G.filter(ne=>{var{id:te}=ne;return te!==$.id})),O3(t,$)||(W=!1,ar.delete(t),Sn.delete(t),o="action",ir.delete(t),n.cancel(),r.cancel(),k==null||k.unref())}var U=k==null?void 0:k.unref();if(U&&!ir.get(t)&&(!t.selection||!_.equals(U,t.selection))&&I.select(t,U),C()){d();return}W&&n(),n.flush(),r.flush(),c();var Q=Sn.get(t);Sn.delete(t),Q!==void 0&&(t.marks=Q,t.onChange())},y=k=>{u&&clearTimeout(u),u=setTimeout(()=>{Ir.set(t,!1),p()},N3)},m=k=>{Ir.set(t,!0),u&&(clearTimeout(u),u=null)},f=function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,$=hd.get(t);if($){if(E()||W){$.style.display="none";return}$.style.removeProperty("display")}},w=(k,W)=>{var $,V=($=ht.get(t))!==null&&$!==void 0?$:[];ht.set(t,V);var G=q.leaf(t,k),R=V.findIndex(Q=>A.equals(Q.path,k));if(R<0){var M=r1(G.text,W);M&&V.push({path:k,diff:W,id:s++}),f();return}var U=P3(G.text,V[R].diff,W);if(!U){V.splice(R,1),f();return}V[R]=Ts(Ts({},V[R]),{},{diff:U})},h=function(W){var{at:$}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};l=!1,ir.delete(t),n.cancel(),r.cancel(),C()&&p(),ar.set(t,{at:$,run:W}),i=setTimeout(p)},g=k=>{var W;a&&(clearTimeout(a),a=null);var{inputType:$}=k,V=null,G=k.dataTransfer||k.data||void 0;l!==!1&&$!=="insertText"&&$!=="insertCompositionText"&&(l=!1);var[R]=k.getTargetRanges();R&&(V=T.toSlateRange(t,R,{exactMatch:!1,suppressThrow:!0}));var M=T.getWindow(t),U=M.getSelection();if(!V&&U&&(R=U,V=T.toSlateRange(t,U,{exactMatch:!1,suppressThrow:!0})),V=(W=V)!==null&&W!==void 0?W:t.selection,!!V){var Q=!0;if($.startsWith("delete")){if(_.isExpanded(V)){var[ne,te]=_.edges(V),ve=q.leaf(t,ne.path);if(ve.text.length===ne.offset&&te.offset===0){var F=D.next(t,{at:ne.path,match:Z.isText});F&&A.equals(F[1],te.path)&&(V={anchor:te,focus:te})}}var j=$.endsWith("Backward")?"backward":"forward",[N,Y]=_.edges(V),[oe,ee]=D.leaf(t,N.path),ie={text:"",start:N.offset,end:Y.offset},ce=ht.get(t),de=ce==null?void 0:ce.find(gt=>A.equals(gt.path,ee)),he=de?[de.diff,ie]:[ie],le=n1(oe.text,...he);if(le.length===0&&(Q=!1),_.isExpanded(V)){if(Q&&A.equals(V.anchor.path,V.focus.path)){var Ie={path:V.anchor.path,offset:N.offset},Re=D.range(t,Ie,Ie);return b(Re),w(V.anchor.path,{text:"",end:Y.offset,start:N.offset})}return h(()=>D.deleteFragment(t,{direction:j}),{at:V})}}switch($){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return h(()=>D.deleteFragment(t),{at:V});case"deleteContent":case"deleteContentForward":{var{anchor:be}=V;if(Q&&_.isCollapsed(V)){var Ft=q.leaf(t,be.path);if(be.offset<Ft.text.length)return w(be.path,{text:"",start:be.offset,end:be.offset+1})}return h(()=>D.deleteForward(t),{at:V})}case"deleteContentBackward":{var Vt,{anchor:_e}=V,et=Cd(R)?R.isCollapsed:!!((Vt=R)!==null&&Vt!==void 0&&Vt.collapsed);return Q&&et&&_.isCollapsed(V)&&_e.offset>0?w(_e.path,{text:"",start:_e.offset-1,end:_e.offset}):h(()=>D.deleteBackward(t),{at:V})}case"deleteEntireSoftLine":return h(()=>{D.deleteBackward(t,{unit:"line"}),D.deleteForward(t,{unit:"line"})},{at:V});case"deleteHardLineBackward":return h(()=>D.deleteBackward(t,{unit:"block"}),{at:V});case"deleteSoftLineBackward":return h(()=>D.deleteBackward(t,{unit:"line"}),{at:V});case"deleteHardLineForward":return h(()=>D.deleteForward(t,{unit:"block"}),{at:V});case"deleteSoftLineForward":return h(()=>D.deleteForward(t,{unit:"line"}),{at:V});case"deleteWordBackward":return h(()=>D.deleteBackward(t,{unit:"word"}),{at:V});case"deleteWordForward":return h(()=>D.deleteForward(t,{unit:"word"}),{at:V});case"insertLineBreak":return h(()=>D.insertSoftBreak(t),{at:V});case"insertParagraph":return h(()=>D.insertBreak(t),{at:V});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{if(M3(G))return h(()=>T.insertData(t,G),{at:V});var me=G??"";if(Zt.get(t)&&(me=me.replace("\uFEFF","")),$==="insertText"&&/.*\n.*\n$/.test(me)&&(me=me.slice(0,-1)),me.includes(`
57
57
  `))return h(()=>{var gt=me.split(`
58
- `);gt.forEach((jr,Es)=>{jr&&D.insertText(t,jr),Es!==gt.length-1&&D.insertSoftBreak(t)})},{at:V});if(b.equals(V.anchor.path,V.focus.path)){var[Le,ke]=_.edges(V),Ne={start:Le.offset,end:ke.offset,text:me};if(me&&l&&$==="insertCompositionText"){var mt=l.start+l.text.search(/\S|$/),Nr=Ne.start+Ne.text.search(/\S|$/);Nr===mt+1&&Ne.end===l.start+l.text.length?(Ne.start-=1,l=null,O()):l=!1}else $==="insertText"?l===null?l=Ne:l&&_.isCollapsed(V)&&l.end+l.text.length===Le.offset?l=ws(ws({},l),{},{text:l.text+me}):l=!1:l=!1;if(Y){w(Le.path,Ne);return}}return h(()=>D.insertText(t,me),{at:V})}}}},C=()=>!!ur.get(t),E=()=>{var k;return!!((k=ht.get(t))!==null&&k!==void 0&&k.length)},B=()=>C()||E(),F=()=>o,A=k=>{ar.set(t,k),a&&(clearTimeout(a),a=null);var{selection:W}=t;if(k){var $=!W||!b.equals(W.anchor.path,k.anchor.path),V=!W||!b.equals(W.anchor.path.slice(0,-1),k.anchor.path.slice(0,-1));($&&l||V)&&(l=!1),($||E())&&(a=setTimeout(p,uO))}},S=()=>{(C()||!E())&&p()},P=k=>{E()||(f(!0),setTimeout(f))},O=()=>{C()||(i=setTimeout(p))},H=k=>{if(!(E()||C())&&k.some($=>td(t,$,k))){var W;(W=my.get(t))===null||W===void 0||W()}};return{flush:p,scheduleFlush:O,hasPendingDiffs:E,hasPendingAction:C,hasPendingChanges:B,isFlushing:F,handleUserSelect:A,handleCompositionEnd:y,handleCompositionStart:m,handleDOMBeforeInput:g,handleKeyDown:P,handleDomMutations:H,handleInput:S}}function lO(){var e=L.useRef(!1);return L.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e.current}var na=gs?L.useLayoutEffect:L.useEffect;function cO(e,t,n){var[r]=L.useState(()=>new MutationObserver(t));na(()=>{r.takeRecords()}),L.useEffect(()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(e.current,n),()=>r.disconnect()},[r,e,n])}var fO=["node"];function Fy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function dO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fy(Object(n),!0).forEach(function(r){$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var pO={subtree:!0,childList:!0,characterData:!0},vO=at?e=>{var{node:t}=e,n=_o(e,fO);if(!at)return null;var r=nr(),o=lO(),[u]=L.useState(()=>sO(dO({editor:r},n)));return cO(t,u.handleDomMutations,pO),Zf.set(r,u.scheduleFlush),o&&u.flush(),u}:()=>null,hO=["anchor","focus"],mO=["anchor","focus"],gO=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(n=>t.hasOwnProperty(n)&&e[n]===t[n]),xy=(e,t)=>{var n=_o(e,hO),r=_o(t,mO);return e[Po]===t[Po]&&gO(n,r)},yO=(e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(!_.equals(r,o)||!xy(r,o))return!1}return!0},DO=(e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(r.anchor.offset!==o.anchor.offset||r.focus.offset!==o.focus.offset||!xy(r,o))return!1}return!0};function Sy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function CO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Sy(Object(n),!0).forEach(function(r){$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var wO=e=>{var{isLast:t,leaf:n,parent:r,text:o}=e,u=nr(),a=T.findPath(u,o),i=b.parent(a),s=!!n[gy];return u.isVoid(r)?re.createElement(od,{length:q.string(r).length}):n.text===""&&r.children[r.children.length-1]===o&&!u.isInline(r)&&D.string(u,i)===""?re.createElement(od,{isLineBreak:!0,isMarkPlaceholder:s}):n.text===""?re.createElement(od,{isMarkPlaceholder:s}):t&&n.text.slice(-1)===`
59
- `?re.createElement(Oy,{isTrailing:!0,text:n.text}):re.createElement(Oy,{text:n.text})},Oy=e=>{var{text:t,isTrailing:n=!1}=e,r=L.useRef(null),o=()=>"".concat(t??"").concat(n?`
60
- `:""),[u]=L.useState(o);return na(()=>{var a=o();r.current&&r.current.textContent!==a&&(r.current.textContent=a)}),re.createElement(EO,{ref:r},u)},EO=L.memo(L.forwardRef((e,t)=>re.createElement("span",{"data-slate-string":!0,ref:t},e.children))),od=e=>{var{length:t=0,isLineBreak:n=!1,isMarkPlaceholder:r=!1}=e,o={"data-slate-zero-width":n?"n":"z","data-slate-length":t};return r&&(o["data-slate-mark-placeholder"]=!0),re.createElement("span",CO({},o),!at||!n?"\uFEFF":null,n?re.createElement("br",null):null)};function _y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ky(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_y(Object(n),!0).forEach(function(r){$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_y(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var BO=at?300:0;function AO(e,t){e.current&&(e.current.disconnect(),t&&(e.current=null))}function Py(e){e.current&&(clearTimeout(e.current),e.current=null)}var bO=e=>{var{leaf:t,isLast:n,text:r,parent:o,renderPlaceholder:u,renderLeaf:a=g=>re.createElement(xO,ky({},g))}=e,i=nr(),s=L.useRef(null),l=L.useRef(null),[c,d]=L.useState(!1),p=L.useRef(null),y=L.useCallback(g=>{if(AO(s,g==null),g==null){var C;Yf.delete(i),(C=t.onPlaceholderResize)===null||C===void 0||C.call(t,null)}else{if(Yf.set(i,g),!s.current){var E=window.ResizeObserver||SS;s.current=new E(()=>{var B;(B=t.onPlaceholderResize)===null||B===void 0||B.call(t,g)})}s.current.observe(g),l.current=g}},[l,t,i]),m=re.createElement(wO,{isLast:n,leaf:t,parent:o,text:r}),f=!!t[Po];if(L.useEffect(()=>(f?p.current||(p.current=setTimeout(()=>{d(!0),p.current=null},BO)):(Py(p),d(!1)),()=>Py(p)),[f,d]),f&&c){var w={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",top:0,pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none",WebkitUserModify:Ju?"inherit":void 0},contentEditable:!1,ref:y}};m=re.createElement(re.Fragment,null,u(w),m)}var h={"data-slate-leaf":!0};return a({attributes:h,children:m,leaf:t,text:r})},FO=re.memo(bO,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&J.equals(t.leaf,e.leaf)&&t.leaf[Po]===e.leaf[Po]),xO=e=>{var{attributes:t,children:n}=e;return re.createElement("span",ky({},t),n)},SO=e=>{for(var{decorations:t,isLast:n,parent:r,renderPlaceholder:o,renderLeaf:u,text:a}=e,i=nr(),s=L.useRef(null),l=J.decorations(a,t),c=T.findKey(i,a),d=[],p=0;p<l.length;p++){var y=l[p];d.push(re.createElement(FO,{isLast:n&&p===l.length-1,key:"".concat(c.id,"-").concat(p),renderPlaceholder:o,leaf:y,text:a,parent:r,renderLeaf:u}))}var m=L.useCallback(f=>{var w=Cs.get(i);f?(w==null||w.set(c,f),Tr.set(a,f),ea.set(f,a)):(w==null||w.delete(c),Tr.delete(a),s.current&&ea.delete(s.current)),s.current=f},[s,i,c,a]);return re.createElement("span",{"data-slate-node":"text",ref:m},d)},Ty=re.memo(SO,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&DO(t.decorations,e.decorations));function Ry(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ud(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ry(Object(n),!0).forEach(function(r){$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ry(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var OO=e=>{var{decorations:t,element:n,renderElement:r=g=>re.createElement(kO,ud({},g)),renderPlaceholder:o,renderLeaf:u,selection:a}=e,i=nr(),s=RO(),l=i.isInline(n),c=T.findKey(i,n),d=L.useCallback(g=>{var C=Cs.get(i);g?(C==null||C.set(c,g),Tr.set(n,g),ea.set(g,n)):(C==null||C.delete(c),Tr.delete(n))},[i,c,n]),p=jy({decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:u,selection:a}),y={"data-slate-node":"element",ref:d};if(l&&(y["data-slate-inline"]=!0),!l&&D.hasInlines(i,n)){var m=q.string(n),f=T0(m);f==="rtl"&&(y.dir=f)}if(D.isVoid(i,n)){y["data-slate-void"]=!0,!s&&l&&(y.contentEditable=!1);var w=l?"span":"div",[[h]]=q.texts(n);p=re.createElement(w,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},re.createElement(Ty,{renderPlaceholder:o,decorations:[],isLast:!1,parent:n,text:h})),qf.set(h,0),Qf.set(h,n)}return r({attributes:y,children:p,element:n})},_O=re.memo(OO,(e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&yO(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&_.equals(e.selection,t.selection))),kO=e=>{var{attributes:t,children:n,element:r}=e,o=nr(),u=o.isInline(r)?"span":"div";return re.createElement(u,ud(ud({},t),{},{style:{position:"relative"}}),n)},Ny=L.createContext(()=>[]),PO=()=>L.useContext(Ny),TO=L.createContext(!1),jy=e=>{for(var{decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:u,selection:a}=e,i=PO(),s=nr(),l=T.findPath(s,n),c=[],d=X.isElement(n)&&!s.isInline(n)&&D.hasInlines(s,n),p=0;p<n.children.length;p++){var y=l.concat(p),m=n.children[p],f=T.findKey(s,m),w=D.range(s,y),h=a&&_.intersection(w,a),g=i([m,y]);for(var C of t){var E=_.intersection(C,w);E&&g.push(E)}X.isElement(m)?c.push(re.createElement(TO.Provider,{key:"provider-".concat(f.id),value:!!h},re.createElement(_O,{decorations:g,element:m,key:f.id,renderElement:r,renderPlaceholder:o,renderLeaf:u,selection:h}))):c.push(re.createElement(Ty,{decorations:g,key:f.id,isLast:d&&p===n.children.length-1,parent:n,renderPlaceholder:o,renderLeaf:u,text:m})),qf.set(m,p),Qf.set(m,n)}return c},Iy=L.createContext(!1),RO=()=>L.useContext(Iy),My=L.createContext(null),NO=()=>{var e=L.useContext(My);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t};function jO(){var e=nr(),t=L.useRef(!1),n=L.useRef(0),r=L.useCallback(()=>{if(!t.current){t.current=!0;var o=T.getWindow(e);o.cancelAnimationFrame(n.current),n.current=o.requestAnimationFrame(()=>{t.current=!1})}},[e]);return L.useEffect(()=>()=>cancelAnimationFrame(n.current),[]),{receivedUserInput:t,onUserInput:r}}var IO=3,MO={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},$O={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},LO={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Be=e=>{var t=MO[e],n=$O[e],r=LO[e],o=t&&Hf(t),u=n&&Hf(n),a=r&&Hf(r);return i=>!!(o&&o(i)||py&&u&&u(i)||!py&&a&&a(i))},Se={isBold:Be("bold"),isCompose:Be("compose"),isMoveBackward:Be("moveBackward"),isMoveForward:Be("moveForward"),isDeleteBackward:Be("deleteBackward"),isDeleteForward:Be("deleteForward"),isDeleteLineBackward:Be("deleteLineBackward"),isDeleteLineForward:Be("deleteLineForward"),isDeleteWordBackward:Be("deleteWordBackward"),isDeleteWordForward:Be("deleteWordForward"),isExtendBackward:Be("extendBackward"),isExtendForward:Be("extendForward"),isExtendLineBackward:Be("extendLineBackward"),isExtendLineForward:Be("extendLineForward"),isItalic:Be("italic"),isMoveLineBackward:Be("moveLineBackward"),isMoveLineForward:Be("moveLineForward"),isMoveWordBackward:Be("moveWordBackward"),isMoveWordForward:Be("moveWordForward"),isRedo:Be("redo"),isSoftBreak:Be("insertSoftBreak"),isSplitBlock:Be("splitBlock"),isTransposeCharacter:Be("transposeCharacter"),isUndo:Be("undo")},zO=(e,t)=>{var n=[],r=()=>{n=[]},o=a=>{if(t.current){var i=a.filter(s=>td(e,s,a));n.push(...i)}};function u(){n.length>0&&(n.reverse().forEach(a=>{a.type!=="characterData"&&(a.removedNodes.forEach(i=>{a.target.insertBefore(i,a.nextSibling)}),a.addedNodes.forEach(i=>{a.target.removeChild(i)}))}),r())}return{registerMutations:o,restoreDOM:u,clear:r}},VO={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class $y extends L.Component{constructor(){super(...arguments),$t(this,"context",null),$t(this,"manager",null),$t(this,"mutationObserver",null)}observe(){var t,{node:n}=this.props;if(!n.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");(t=this.mutationObserver)===null||t===void 0||t.observe(n.current,VO)}componentDidMount(){var{receivedUserInput:t}=this.props,n=this.context;this.manager=zO(n,t),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var t,n,r,o=(t=this.mutationObserver)===null||t===void 0?void 0:t.takeRecords();if(o!=null&&o.length){var u;(u=this.manager)===null||u===void 0||u.registerMutations(o)}return(n=this.mutationObserver)===null||n===void 0||n.disconnect(),(r=this.manager)===null||r===void 0||r.restoreDOM(),null}componentDidUpdate(){var t;(t=this.manager)===null||t===void 0||t.clear(),this.observe()}componentWillUnmount(){var t;(t=this.mutationObserver)===null||t===void 0||t.disconnect()}render(){return this.props.children}}$t($y,"contextType",Kf);var WO=at?$y:e=>{var{children:t}=e;return re.createElement(re.Fragment,null,t)},UO=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],HO=["text"];function Ly(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ln(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ly(Object(n),!0).forEach(function(r){$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ly(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var KO=e=>re.createElement(re.Fragment,null,jy(e)),qO=e=>{var t=L.useCallback(x=>re.createElement(QO,ln({},x)),[]),{autoFocus:n,decorate:r=YO,onDOMBeforeInput:o,placeholder:u,readOnly:a=!1,renderElement:i,renderLeaf:s,renderPlaceholder:l=t,scrollSelectionIntoView:c=GO,style:d={},as:p="div",disableDefaultStyles:y=!1}=e,m=_o(e,UO),f=NO(),[w,h]=L.useState(!1),g=L.useRef(null),C=L.useRef([]),[E,B]=L.useState(),{onUserInput:F,receivedUserInput:A}=jO(),[,S]=L.useReducer(x=>x+1,0);my.set(f,S),Gf.set(f,a);var P=L.useMemo(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);L.useEffect(()=>{g.current&&n&&g.current.focus()},[n]);var O=L.useRef(),H=L.useMemo(()=>oS(()=>{var x=O.current;if((at||!T.isComposing(f))&&(!P.isUpdatingSelection||x!=null&&x.isFlushing())&&!P.isDraggingInternally){var j=T.findDocumentOrShadowRoot(f),{activeElement:N}=j,Q=T.toDOMNode(f,f),oe=j.getSelection();if(N===Q?(P.latestElement=N,or.set(f,!0)):or.delete(f),!oe)return I.deselect(f);var{anchorNode:ee,focusNode:ie}=oe,ce=T.hasEditableTarget(f,ee)||T.isTargetInsideNonReadonlyVoid(f,ee),de=T.hasEditableTarget(f,ie)||T.isTargetInsideNonReadonlyVoid(f,ie);if(ce&&de){var he=T.toSlateRange(f,oe,{exactMatch:!1,suppressThrow:!0});he&&(!T.isComposing(f)&&!(x!=null&&x.hasPendingChanges())&&!(x!=null&&x.isFlushing())?I.select(f,he):x==null||x.handleUserSelect(he))}a&&(!ce||!de)&&I.deselect(f)}},100),[f,a,P]),k=L.useMemo(()=>Zx(H,0),[H]);O.current=vO({node:g,onDOMSelectionChange:H,scheduleOnDOMSelectionChange:k}),na(()=>{var x,j,N;g.current&&(N=Jf(g.current))?(hy.set(f,N),ys.set(f,g.current),Tr.set(f,g.current),ea.set(g.current,f)):Tr.delete(f);var{selection:Q}=f,oe=T.findDocumentOrShadowRoot(f),ee=oe.getSelection();if(!(!ee||!T.isFocused(f)||(x=O.current)!==null&&x!==void 0&&x.hasPendingAction())){var ie=le=>{var Ie=ee.type!=="None";if(!(!Q&&!Ie)){var Re=ee.focusNode,Ae;if(ko&&ee.rangeCount>1){var xt=ee.getRangeAt(0),zt=ee.getRangeAt(ee.rangeCount-1);xt.startContainer===Re?Ae=zt.endContainer:Ae=xt.startContainer}else Ae=ee.anchorNode;var _e=ys.get(f),et=!1;if(_e.contains(Ae)&&_e.contains(Re)&&(et=!0),Ie&&et&&Q&&!le){var me=T.toSlateRange(f,ee,{exactMatch:!0,suppressThrow:!0});if(me&&_.equals(me,Q)){var Le;if(!P.hasMarkPlaceholder||(Le=Ae)!==null&&Le!==void 0&&(Le=Le.parentElement)!==null&&Le!==void 0&&Le.hasAttribute("data-slate-mark-placeholder"))return}}if(Q&&!T.hasRange(f,Q)){f.selection=T.toSlateRange(f,ee,{exactMatch:!1,suppressThrow:!0});return}P.isUpdatingSelection=!0;var ke=Q&&T.toDOMRange(f,Q);return ke?(T.isComposing(f)&&!at?ee.collapseToEnd():_.isBackward(Q)?ee.setBaseAndExtent(ke.endContainer,ke.endOffset,ke.startContainer,ke.startOffset):ee.setBaseAndExtent(ke.startContainer,ke.startOffset,ke.endContainer,ke.endOffset),c(f,ke)):ee.removeAllRanges(),ke}};ee.rangeCount<=1&&ie();var ce=((j=O.current)===null||j===void 0?void 0:j.isFlushing())==="action";if(!at||!ce){setTimeout(()=>{P.isUpdatingSelection=!1});return}var de=null,he=requestAnimationFrame(()=>{if(ce){var le=Ie=>{try{var Re=T.toDOMNode(f,f);Re.focus(),ie(Ie)}catch{}};le(),de=setTimeout(()=>{le(!0),P.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(he),de&&clearTimeout(de)}}});var W=L.useCallback(x=>{if(F(),!a&&T.hasEditableTarget(f,x.target)&&!XO(x,o)){var j;if(O.current)return O.current.handleDOMBeforeInput(x);k.flush(),H.flush();var{selection:N}=f,{inputType:Q}=x,oe=x.dataTransfer||x.data||void 0,ee=Q==="insertCompositionText"||Q==="deleteCompositionText";if(ee&&T.isComposing(f))return;var ie=!1;if(Q==="insertText"&&N&&_.isCollapsed(N)&&x.data&&x.data.length===1&&/[a-z ]/i.test(x.data)&&N.anchor.offset!==0){var ce,de;ie=!0,f.marks&&(ie=!1);var{anchor:he}=N,[le,Ie]=T.toDOMPoint(f,he),Re=(ce=le.parentElement)===null||ce===void 0?void 0:ce.closest("a"),Ae=T.getWindow(f);if(ie&&Re&&T.hasDOMNode(f,Re)){var xt,zt=Ae==null?void 0:Ae.document.createTreeWalker(Re,NodeFilter.SHOW_TEXT).lastChild();zt===le&&((xt=zt.textContent)===null||xt===void 0?void 0:xt.length)===Ie&&(ie=!1)}if(ie&&le.parentElement&&(Ae==null||(de=Ae.getComputedStyle(le.parentElement))===null||de===void 0?void 0:de.whiteSpace)==="pre"){var _e=D.above(f,{at:he.path,match:mt=>X.isElement(mt)&&D.isBlock(f,mt)});_e&&q.string(_e[0]).includes(" ")&&(ie=!1)}}if(!Q.startsWith("delete")||Q.startsWith("deleteBy")){var[et]=x.getTargetRanges();if(et){var me=T.toSlateRange(f,et,{exactMatch:!1,suppressThrow:!1});if(!N||!_.equals(N,me)){ie=!1;var Le=!ee&&f.selection&&D.rangeRef(f,f.selection);I.select(f,me),Le&&ta.set(f,Le)}}}if(ee)return;if(ie||x.preventDefault(),N&&_.isExpanded(N)&&Q.startsWith("delete")){var ke=Q.endsWith("Backward")?"backward":"forward";D.deleteFragment(f,{direction:ke});return}switch(Q){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":{D.deleteFragment(f);break}case"deleteContent":case"deleteContentForward":{D.deleteForward(f);break}case"deleteContentBackward":{D.deleteBackward(f);break}case"deleteEntireSoftLine":{D.deleteBackward(f,{unit:"line"}),D.deleteForward(f,{unit:"line"});break}case"deleteHardLineBackward":{D.deleteBackward(f,{unit:"block"});break}case"deleteSoftLineBackward":{D.deleteBackward(f,{unit:"line"});break}case"deleteHardLineForward":{D.deleteForward(f,{unit:"block"});break}case"deleteSoftLineForward":{D.deleteForward(f,{unit:"line"});break}case"deleteWordBackward":{D.deleteBackward(f,{unit:"word"});break}case"deleteWordForward":{D.deleteForward(f,{unit:"word"});break}case"insertLineBreak":D.insertSoftBreak(f);break;case"insertParagraph":{D.insertBreak(f);break}case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{Q==="insertFromComposition"&&T.isComposing(f)&&(h(!1),Rr.set(f,!1)),(oe==null?void 0:oe.constructor.name)==="DataTransfer"?T.insertData(f,oe):typeof oe=="string"&&(ie?C.current.push(()=>D.insertText(f,oe)):D.insertText(f,oe));break}}var Ne=(j=ta.get(f))===null||j===void 0?void 0:j.unref();ta.delete(f),Ne&&(!f.selection||!_.equals(f.selection,Ne))&&I.select(f,Ne)}},[f,H,F,o,a,k]),$=L.useCallback(x=>{x==null?(H.cancel(),k.cancel(),ys.delete(f),Tr.delete(f),g.current&&rr&&g.current.removeEventListener("beforeinput",W)):rr&&x.addEventListener("beforeinput",W),g.current=x},[H,k,f,W]);na(()=>{var x=T.getWindow(f);return x.document.addEventListener("selectionchange",k),()=>{x.document.removeEventListener("selectionchange",k)}},[k]);var V=r([f,[]]),G=u&&f.children.length===1&&Array.from(q.texts(f)).length===1&&q.string(f)===""&&!w,R=L.useCallback(x=>{if(x&&G){var j;B((j=x.getBoundingClientRect())===null||j===void 0?void 0:j.height)}else B(void 0)},[G]);if(G){var M=D.start(f,[]);V.push({[Po]:!0,placeholder:u,onPlaceholderResize:R,anchor:M,focus:M})}var{marks:U}=f;if(P.hasMarkPlaceholder=!1,f.selection&&_.isCollapsed(f.selection)&&U){var{anchor:Y}=f.selection,ne=q.leaf(f,Y.path),te=_o(ne,HO);if(!J.equals(ne,U,{loose:!0})){P.hasMarkPlaceholder=!0;var ve=Object.fromEntries(Object.keys(te).map(x=>[x,null]));V.push(ln(ln(ln({[gy]:!0},ve),U),{},{anchor:Y,focus:Y}))}}return L.useEffect(()=>{setTimeout(()=>{var{selection:x}=f;if(x){var{anchor:j}=x,N=q.leaf(f,j.path);if(U&&!J.equals(N,U,{loose:!0})){Xt.set(f,U);return}}Xt.delete(f)})}),re.createElement(Iy.Provider,{value:a},re.createElement(Ny.Provider,{value:r},re.createElement(WO,{node:g,receivedUserInput:A},re.createElement(p,ln(ln({role:a?void 0:"textbox","aria-multiline":a?void 0:!0},m),{},{spellCheck:rr||!gs?m.spellCheck:!1,autoCorrect:rr||!gs?m.autoCorrect:"false",autoCapitalize:rr||!gs?m.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a,zindex:-1,suppressContentEditableWarning:!0,ref:$,style:ln(ln({},y?{}:ln({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},E?{minHeight:E}:{})),d),onBeforeInput:L.useCallback(x=>{if(!rr&&!a&&!it(x,m.onBeforeInput)&&T.hasSelectableTarget(f,x.target)&&(x.preventDefault(),!T.isComposing(f))){var j=x.data;D.insertText(f,j)}},[m.onBeforeInput,f,a]),onInput:L.useCallback(x=>{if(!it(x,m.onInput)){if(O.current){O.current.handleInput();return}for(var j of C.current)j();C.current=[]}},[m.onInput]),onBlur:L.useCallback(x=>{if(!(a||P.isUpdatingSelection||!T.hasSelectableTarget(f,x.target)||it(x,m.onBlur))){var j=T.findDocumentOrShadowRoot(f);if(P.latestElement!==j.activeElement){var{relatedTarget:N}=x,Q=T.toDOMNode(f,f);if(N!==Q&&!(Lt(N)&&N.hasAttribute("data-slate-spacer"))){if(N!=null&&ir(N)&&T.hasDOMNode(f,N)){var oe=T.toSlateNode(f,N);if(X.isElement(oe)&&!f.isVoid(oe))return}if(Ju){var ee=j.getSelection();ee==null||ee.removeAllRanges()}or.delete(f)}}}},[a,P.isUpdatingSelection,P.latestElement,f,m.onBlur]),onClick:L.useCallback(x=>{if(T.hasTarget(f,x.target)&&!it(x,m.onClick)&&ir(x.target)){var j=T.toSlateNode(f,x.target),N=T.findPath(f,j);if(!D.hasPath(f,N)||q.get(f,N)!==j)return;if(x.detail===IO&&N.length>=1){var Q=N;if(!(X.isElement(j)&&D.isBlock(f,j))){var oe,ee=D.above(f,{match:Re=>X.isElement(Re)&&D.isBlock(f,Re),at:N});Q=(oe=ee==null?void 0:ee[1])!==null&&oe!==void 0?oe:N.slice(0,1)}var ie=D.range(f,Q);I.select(f,ie);return}if(a)return;var ce=D.start(f,N),de=D.end(f,N),he=D.void(f,{at:ce}),le=D.void(f,{at:de});if(he&&le&&b.equals(he[1],le[1])){var Ie=D.range(f,ce);I.select(f,Ie)}}},[f,m.onClick,a]),onCompositionEnd:L.useCallback(x=>{if(T.hasSelectableTarget(f,x.target)){var j;if(T.isComposing(f)&&Promise.resolve().then(()=>{h(!1),Rr.set(f,!1)}),(j=O.current)===null||j===void 0||j.handleCompositionEnd(x),it(x,m.onCompositionEnd)||at)return;if(!Ju&&!$S&&!NS&&!zS&&!LS&&x.data){var N=Xt.get(f);Xt.delete(f),N!==void 0&&(Sn.set(f,f.marks),f.marks=N),D.insertText(f,x.data);var Q=Sn.get(f);Sn.delete(f),Q!==void 0&&(f.marks=Q)}}},[m.onCompositionEnd,f]),onCompositionUpdate:L.useCallback(x=>{T.hasSelectableTarget(f,x.target)&&!it(x,m.onCompositionUpdate)&&(T.isComposing(f)||(h(!0),Rr.set(f,!0)))},[m.onCompositionUpdate,f]),onCompositionStart:L.useCallback(x=>{if(T.hasSelectableTarget(f,x.target)){var j;if((j=O.current)===null||j===void 0||j.handleCompositionStart(x),it(x,m.onCompositionStart)||at)return;h(!0);var{selection:N}=f;if(N&&_.isExpanded(N)){D.deleteFragment(f);return}}},[m.onCompositionStart,f]),onCopy:L.useCallback(x=>{T.hasSelectableTarget(f,x.target)&&!it(x,m.onCopy)&&!zy(x)&&(x.preventDefault(),T.setFragmentData(f,x.clipboardData,"copy"))},[m.onCopy,f]),onCut:L.useCallback(x=>{if(!a&&T.hasSelectableTarget(f,x.target)&&!it(x,m.onCut)&&!zy(x)){x.preventDefault(),T.setFragmentData(f,x.clipboardData,"cut");var{selection:j}=f;if(j)if(_.isExpanded(j))D.deleteFragment(f);else{var N=q.parent(f,j.anchor.path);D.isVoid(f,N)&&I.delete(f)}}},[a,f,m.onCut]),onDragOver:L.useCallback(x=>{if(T.hasTarget(f,x.target)&&!it(x,m.onDragOver)){var j=T.toSlateNode(f,x.target);X.isElement(j)&&D.isVoid(f,j)&&x.preventDefault()}},[m.onDragOver,f]),onDragStart:L.useCallback(x=>{if(!a&&T.hasTarget(f,x.target)&&!it(x,m.onDragStart)){var j=T.toSlateNode(f,x.target),N=T.findPath(f,j),Q=X.isElement(j)&&D.isVoid(f,j)||D.void(f,{at:N,voids:!0});if(Q){var oe=D.range(f,N);I.select(f,oe)}P.isDraggingInternally=!0,T.setFragmentData(f,x.dataTransfer,"drag")}},[a,f,m.onDragStart,P]),onDrop:L.useCallback(x=>{if(!a&&T.hasTarget(f,x.target)&&!it(x,m.onDrop)){x.preventDefault();var j=f.selection,N=T.findEventRange(f,x),Q=x.dataTransfer;I.select(f,N),P.isDraggingInternally&&j&&!_.equals(j,N)&&!D.void(f,{at:N,voids:!0})&&I.delete(f,{at:j}),T.insertData(f,Q),T.isFocused(f)||T.focus(f)}P.isDraggingInternally=!1},[a,f,m.onDrop,P]),onDragEnd:L.useCallback(x=>{!a&&P.isDraggingInternally&&m.onDragEnd&&T.hasTarget(f,x.target)&&m.onDragEnd(x),P.isDraggingInternally=!1},[a,P,m,f]),onFocus:L.useCallback(x=>{if(!a&&!P.isUpdatingSelection&&T.hasEditableTarget(f,x.target)&&!it(x,m.onFocus)){var j=T.toDOMNode(f,f),N=T.findDocumentOrShadowRoot(f);if(P.latestElement=N.activeElement,ko&&x.target!==j){j.focus();return}or.set(f,!0)}},[a,P,f,m.onFocus]),onKeyDown:L.useCallback(x=>{if(!a&&T.hasEditableTarget(f,x.target)){var j;(j=O.current)===null||j===void 0||j.handleKeyDown(x);var{nativeEvent:N}=x;if(T.isComposing(f)&&N.isComposing===!1&&(Rr.set(f,!1),h(!1)),it(x,m.onKeyDown)||T.isComposing(f))return;var{selection:Q}=f,oe=f.children[Q!==null?Q.focus.path[0]:0],ee=T0(q.string(oe))==="rtl";if(Se.isRedo(N)){x.preventDefault();var ie=f;typeof ie.redo=="function"&&ie.redo();return}if(Se.isUndo(N)){x.preventDefault();var ce=f;typeof ce.undo=="function"&&ce.undo();return}if(Se.isMoveLineBackward(N)){x.preventDefault(),I.move(f,{unit:"line",reverse:!0});return}if(Se.isMoveLineForward(N)){x.preventDefault(),I.move(f,{unit:"line"});return}if(Se.isExtendLineBackward(N)){x.preventDefault(),I.move(f,{unit:"line",edge:"focus",reverse:!0});return}if(Se.isExtendLineForward(N)){x.preventDefault(),I.move(f,{unit:"line",edge:"focus"});return}if(Se.isMoveBackward(N)){x.preventDefault(),Q&&_.isCollapsed(Q)?I.move(f,{reverse:!ee}):I.collapse(f,{edge:ee?"end":"start"});return}if(Se.isMoveForward(N)){x.preventDefault(),Q&&_.isCollapsed(Q)?I.move(f,{reverse:ee}):I.collapse(f,{edge:ee?"start":"end"});return}if(Se.isMoveWordBackward(N)){x.preventDefault(),Q&&_.isExpanded(Q)&&I.collapse(f,{edge:"focus"}),I.move(f,{unit:"word",reverse:!ee});return}if(Se.isMoveWordForward(N)){x.preventDefault(),Q&&_.isExpanded(Q)&&I.collapse(f,{edge:"focus"}),I.move(f,{unit:"word",reverse:ee});return}if(rr){if((vy||Ju)&&Q&&(Se.isDeleteBackward(N)||Se.isDeleteForward(N))&&_.isCollapsed(Q)){var de=q.parent(f,Q.anchor.path);if(X.isElement(de)&&D.isVoid(f,de)&&(D.isInline(f,de)||D.isBlock(f,de))){x.preventDefault(),D.deleteBackward(f,{unit:"block"});return}}}else{if(Se.isBold(N)||Se.isItalic(N)||Se.isTransposeCharacter(N)){x.preventDefault();return}if(Se.isSoftBreak(N)){x.preventDefault(),D.insertSoftBreak(f);return}if(Se.isSplitBlock(N)){x.preventDefault(),D.insertBreak(f);return}if(Se.isDeleteBackward(N)){x.preventDefault(),Q&&_.isExpanded(Q)?D.deleteFragment(f,{direction:"backward"}):D.deleteBackward(f);return}if(Se.isDeleteForward(N)){x.preventDefault(),Q&&_.isExpanded(Q)?D.deleteFragment(f,{direction:"forward"}):D.deleteForward(f);return}if(Se.isDeleteLineBackward(N)){x.preventDefault(),Q&&_.isExpanded(Q)?D.deleteFragment(f,{direction:"backward"}):D.deleteBackward(f,{unit:"line"});return}if(Se.isDeleteLineForward(N)){x.preventDefault(),Q&&_.isExpanded(Q)?D.deleteFragment(f,{direction:"forward"}):D.deleteForward(f,{unit:"line"});return}if(Se.isDeleteWordBackward(N)){x.preventDefault(),Q&&_.isExpanded(Q)?D.deleteFragment(f,{direction:"backward"}):D.deleteBackward(f,{unit:"word"});return}if(Se.isDeleteWordForward(N)){x.preventDefault(),Q&&_.isExpanded(Q)?D.deleteFragment(f,{direction:"forward"}):D.deleteForward(f,{unit:"word"});return}}}},[a,f,m.onKeyDown]),onPaste:L.useCallback(x=>{!a&&T.hasEditableTarget(f,x.target)&&!it(x,m.onPaste)&&(!rr||US(x.nativeEvent)||Ju)&&(x.preventDefault(),T.insertData(f,x.clipboardData))},[a,f,m.onPaste])}),re.createElement(KO,{decorations:V,node:f,renderElement:i,renderPlaceholder:l,renderLeaf:s,selection:f.selection})))))},QO=e=>{var{attributes:t,children:n}=e;return re.createElement("span",ln({},t),n,at&&re.createElement("br",null))},YO=()=>[],GO=(e,t)=>{if(t.getBoundingClientRect&&(!e.selection||e.selection&&_.isCollapsed(e.selection))){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),iS(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},it=(e,t)=>{if(!t)return!1;var n=t(e);return n??(e.isDefaultPrevented()||e.isPropagationStopped())},zy=e=>ir(e.target)&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement),XO=(e,t)=>{if(!t)return!1;var n=t(e);return n??e.defaultPrevented},ZO=L.createContext(!1),JO=L.createContext({});function e3(e){var t=L.useRef([]).current,n=L.useRef({editor:e}).current,r=L.useCallback(u=>{n.editor=u,t.forEach(a=>a(u))},[t,n]),o=L.useMemo(()=>({getSlate:()=>n.editor,addEventListener:u=>(t.push(u),()=>{t.splice(t.indexOf(u),1)})}),[t,n]);return{selectorContext:o,onChange:r}}var t3=["editor","children","onChange","onSelectionChange","onValueChange","initialValue"],n3=e=>{var{editor:t,children:n,onChange:r,onSelectionChange:o,onValueChange:u,initialValue:a}=e,i=_o(e,t3),[s,l]=re.useState(()=>{if(!q.isNodeList(a))throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(ze.stringify(a)));if(!D.isEditor(t))throw new Error("[Slate] editor is invalid! You passed: ".concat(ze.stringify(t)));return t.children=a,Object.assign(t,i),{v:0,editor:t}}),{selectorContext:c,onChange:d}=e3(t),p=L.useCallback(f=>{var w;switch(r&&r(t.children),f==null||(w=f.operation)===null||w===void 0?void 0:w.type){case"set_selection":o==null||o(t.selection);break;default:u==null||u(t.children)}l(h=>({v:h.v+1,editor:t})),d(t)},[t,d,r,o,u]);L.useEffect(()=>(Xf.set(t,p),()=>{Xf.set(t,()=>{})}),[t,p]);var[y,m]=L.useState(T.isFocused(t));return L.useEffect(()=>{m(T.isFocused(t))},[t]),na(()=>{var f=()=>m(T.isFocused(t));return dy>=17?(document.addEventListener("focusin",f),document.addEventListener("focusout",f),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",f)}):(document.addEventListener("focus",f,!0),document.addEventListener("blur",f,!0),()=>{document.removeEventListener("focus",f,!0),document.removeEventListener("blur",f,!0)})},[]),re.createElement(JO.Provider,{value:c},re.createElement(My.Provider,{value:s},re.createElement(Kf.Provider,{value:s.editor},re.createElement(ZO.Provider,{value:y},n))))},Vy=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},Wy=(e,t,n)=>{var r=T.toDOMRange(e,t).getBoundingClientRect(),o=T.toDOMRange(e,n).getBoundingClientRect();return Vy(r,o)&&Vy(o,r)},r3=(e,t)=>{var n=D.range(e,_.end(t)),r=Array.from(D.positions(e,{at:t})),o=0,u=r.length,a=Math.floor(u/2);if(Wy(e,D.range(e,r[o]),n))return D.range(e,r[o],n);if(r.length<2)return D.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)Wy(e,D.range(e,r[a]),n)?u=a:o=a,a=Math.floor((o+u)/2);return D.range(e,r[u],n)};function Uy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Hy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uy(Object(n),!0).forEach(function(r){$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var o3=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x-slate-fragment",r=t,{apply:o,onChange:u,deleteBackward:a,addMark:i,removeMark:s}=r;return Cs.set(r,new WeakMap),r.addMark=(l,c)=>{var d,p;(d=Zf.get(r))===null||d===void 0||d(),!Xt.get(r)&&(p=ht.get(r))!==null&&p!==void 0&&p.length&&Xt.set(r,null),Sn.delete(r),i(l,c)},r.removeMark=l=>{var c;!Xt.get(r)&&(c=ht.get(r))!==null&&c!==void 0&&c.length&&Xt.set(r,null),Sn.delete(r),s(l)},r.deleteBackward=l=>{if(l!=="line")return a(l);if(r.selection&&_.isCollapsed(r.selection)){var c=D.above(r,{match:m=>X.isElement(m)&&D.isBlock(r,m),at:r.selection});if(c){var[,d]=c,p=D.range(r,d,r.selection.anchor),y=r3(r,p);_.isCollapsed(y)||I.delete(r,{at:y})}}},r.apply=l=>{var c=[],d=[],p=ht.get(r);if(p!=null&&p.length){var y=p.map($=>rO($,l)).filter(Boolean);ht.set(r,y)}var m=ar.get(r);m&&ar.set(r,Ay(r,m,l));var f=ur.get(r);if(f!=null&&f.at){var w=ae.isPoint(f==null?void 0:f.at)?rd(r,f.at,l):Ay(r,f.at,l);ur.set(r,w?Hy(Hy({},f),{},{at:w}):null)}switch(l.type){case"insert_text":case"remove_text":case"set_node":case"split_node":{c.push(...To(r,l.path));break}case"set_selection":{var h;(h=ta.get(r))===null||h===void 0||h.unref(),ta.delete(r);break}case"insert_node":case"remove_node":{c.push(...To(r,b.parent(l.path)));break}case"merge_node":{var g=b.previous(l.path);c.push(...To(r,g));break}case"move_node":{var C=b.common(b.parent(l.path),b.parent(l.newPath));c.push(...To(r,C));var E;b.isBefore(l.path,l.newPath)?(c.push(...To(r,b.parent(l.path))),E=l.newPath):(c.push(...To(r,b.parent(l.newPath))),E=l.path);var B=q.get(t,b.parent(E)),F=T.findKey(r,B),A=D.pathRef(r,b.parent(E));d.push([A,F]);break}}o(l);for(var[S,P]of c){var[O]=D.node(r,S);Ds.set(O,P)}for(var[H,k]of d)if(H.current){var[W]=D.node(r,H.current);Ds.set(W,k)}},r.setFragmentData=l=>{var{selection:c}=r;if(c){var[d,p]=_.edges(c),y=D.void(r,{at:d.path}),m=D.void(r,{at:p.path});if(!(_.isCollapsed(c)&&!y)){var f=T.toDOMRange(r,c),w=f.cloneContents(),h=w.childNodes[0];if(w.childNodes.forEach(O=>{O.textContent&&O.textContent.trim()!==""&&(h=O)}),m){var[g]=m,C=f.cloneRange(),E=T.toDOMNode(r,g);C.setEndAfter(E),w=C.cloneContents()}if(y&&(h=w.querySelector("[data-slate-spacer]")),Array.from(w.querySelectorAll("[data-slate-zero-width]")).forEach(O=>{var H=O.getAttribute("data-slate-zero-width")==="n";O.textContent=H?`
61
- `:""}),yy(h)){var B=h.ownerDocument.createElement("span");B.style.whiteSpace="pre",B.appendChild(h),w.appendChild(B),h=B}var F=r.getFragment(),A=JSON.stringify(F),S=window.btoa(encodeURIComponent(A));h.setAttribute("data-slate-fragment",S),l.setData("application/".concat(n),S);var P=w.ownerDocument.createElement("div");return P.appendChild(w),P.setAttribute("hidden","true"),w.ownerDocument.body.appendChild(P),l.setData("text/html",P.innerHTML),l.setData("text/plain",Cy(P)),w.ownerDocument.body.removeChild(P),l}}},r.insertData=l=>{r.insertFragmentData(l)||r.insertTextData(l)},r.insertFragmentData=l=>{var c=l.getData("application/".concat(n))||YS(l);if(c){var d=decodeURIComponent(window.atob(c)),p=JSON.parse(d);return r.insertFragment(p),!0}return!1},r.insertTextData=l=>{var c=l.getData("text/plain");if(c){var d=c.split(/\r\n|\r|\n/),p=!1;for(var y of d)p&&I.splitNodes(r,{always:!0}),r.insertText(y),p=!0;return!0}return!1},r.onChange=l=>{var c=dy<18?xo.unstable_batchedUpdates:d=>d();c(()=>{var d=Xf.get(r);d&&d(l),u(l)})},r},To=(e,t)=>{var n=[];for(var[r,o]of D.levels(e,{at:t})){var u=T.findKey(e,r);n.push([o,u])}return n},u3={isHistory(e){return Ue(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Rn.isOperationList(e.redos[0].operations))&&(e.undos.length===0||Rn.isOperationList(e.undos[0].operations))}},ad=new WeakMap,id=new WeakMap,Ro={isHistoryEditor(e){return u3.isHistory(e.history)&&D.isEditor(e)},isMerging(e){return id.get(e)},isSaving(e){return ad.get(e)},redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=Ro.isMerging(e);id.set(e,!1),t(),id.set(e,n)},withoutSaving(e,t){var n=Ro.isSaving(e);ad.set(e,!1),t(),ad.set(e,n)}},a3=e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:r}=t,{redos:o}=r;if(o.length>0){var u=o[o.length-1];u.selectionBefore&&I.setSelection(t,u.selectionBefore),Ro.withoutSaving(t,()=>{D.withoutNormalizing(t,()=>{for(var a of u.operations)t.apply(a)})}),r.redos.pop(),t.writeHistory("undos",u)}},t.undo=()=>{var{history:r}=t,{undos:o}=r;if(o.length>0){var u=o[o.length-1];Ro.withoutSaving(t,()=>{D.withoutNormalizing(t,()=>{var a=u.operations.map(Rn.inverse).reverse();for(var i of a)t.apply(i);u.selectionBefore&&I.setSelection(t,u.selectionBefore)})}),t.writeHistory("redos",u),r.undos.pop()}},t.apply=r=>{var{operations:o,history:u}=t,{undos:a}=u,i=a[a.length-1],s=i&&i.operations[i.operations.length-1],l=Ro.isSaving(t),c=Ro.isMerging(t);if(l==null&&(l=s3(r)),l){if(c==null&&(i==null?c=!1:o.length!==0?c=!0:c=i3(r,s)),i&&c)i.operations.push(r);else{var d={operations:[r],selectionBefore:t.selection};t.writeHistory("undos",d)}for(;a.length>100;)a.shift();u.redos=[]}n(r)},t.writeHistory=(r,o)=>{t.history[r].push(o)},t},i3=(e,t)=>!!(t&&e.type==="insert_text"&&t.type==="insert_text"&&e.offset===t.offset+t.text.length&&b.equals(e.path,t.path)||t&&e.type==="remove_text"&&t.type==="remove_text"&&e.offset+e.text.length===t.offset&&b.equals(e.path,t.path)),s3=(e,t)=>e.type!=="set_selection";function l3(e){const n=`docx-h${e.element.level}`;return Te.jsx(n,{...e.attributes,children:e.children})}function c3(e){return Te.jsx("docx-blockquote",{...e.attributes,children:e.children})}const{Provider:f3,Consumer:d3}=L.createContext(!1);function p3(e){const t=e.element,n=`docx-${t.ordered?"o":"u"}l`;return Te.jsx(f3,{value:!!t.ordered,children:Te.jsx(n,{...e.attributes,children:e.children})})}function v3(e){return Te.jsx(d3,{children:t=>Te.jsx("docx-li",{className:t?"ordered":"",children:e.children})})}const h3={"#":"heading","##":"heading","###":"heading","####":"heading","#####":"heading","######":"heading",">":"blockquote","*":"list-item","-":"list-item","+":"list-item"},m3=[[/\*\*(.+?)\*\*$/,"bold"],[/\*(.+?)\*$/,"italic"],[/\~\~(.+?)\~\~$/,"del"],[/\~(.+?)\~$/,"underline"]];function g3(e){return e.element.type==="heading"?Te.jsx(l3,{...e}):e.element.type==="blockquote"?Te.jsx(c3,{...e}):e.element.type==="list"?Te.jsx(p3,{...e}):e.element.type==="list-item"?Te.jsx(v3,{...e}):Te.jsx("p",{...e.attributes,children:e.children})}function y3({attributes:e,children:t,leaf:n}){return n.bold&&(t=Te.jsx("strong",{children:t})),n.code&&(t=Te.jsx("code",{children:t})),n.italic&&(t=Te.jsx("em",{children:t})),n.del&&(t=Te.jsx("del",{children:t})),n.underline&&(t=Te.jsx("u",{children:t})),Te.jsx("span",{...e,children:t})}function D3(e){const{initialValue:t=[{type:"paragraph",children:[{text:""}]}],onBeforeInput:n,withOverride:r=c=>c}=e,o=L.useMemo(()=>r(o3(a3(IA()))),[]),u=L.useCallback(c=>Te.jsx(g3,{...c}),[]),a=L.useCallback(c=>Te.jsx(y3,{...c}),[]),i=L.useCallback(n?c=>{queueMicrotask(()=>n(c))}:()=>{},[o]),s=L.useCallback(c=>tE.trigger(c),[o]),l=L.useCallback(c=>Lp.trigger(c),[o]);return Sa.value=o,Te.jsx(n3,{editor:o,initialValue:t,onSelectionChange:s,onValueChange:l,children:Te.jsx(qO,{className:"smart-docx-editor",renderElement:u,renderLeaf:a,onDOMBeforeInput:i})})}const C3=nu(v.defineComponent({__name:"Markdown",props:{initialValue:{type:null}},setup(e){const t=e,n=LF(D3);function r(u){return{match:a=>X.isElement(a)&&D.isBlock(u,a)}}const o=u=>{const{insertText:a,deleteBackward:i,insertBreak:s}=u;return u.insertBreak=()=>{const{selection:l}=u;if(l&&_.isCollapsed(l)){const[c,d]=D.above(u,r(u))||[];if(c&&X.isElement(c)&&ae.equals(l.anchor,D.end(u,d))){if(c.type==="list-item")return I.insertNodes(u,{type:"list-item",children:[{text:""}]},r(u));if(c.type!=="paragraph")return I.insertNodes(u,{type:"paragraph",children:[{text:""}]},r(u))}}s()},u.insertText=l=>{const{selection:c}=u;if(l.endsWith(" ")&&c&&_.isCollapsed(c)){const d=D.above(u,r(u)),p=d?d[1]:[],y=D.start(u,p),m={anchor:c.anchor,focus:y},f=D.string(u,m)+l.slice(0,-1),w=h3[f];if(w){I.select(u,m),_.isCollapsed(m)||I.delete(u);const h={type:w};w==="heading"?h.level=`${f.length}`:w==="blockquote"&&(h.type="paragraph"),I.setNodes(u,h,r(u)),w==="blockquote"?I.wrapNodes(u,{type:"blockquote",children:[]},r(u)):w==="list-item"&&I.wrapNodes(u,{type:"list",children:[]},r(u));return}else for(const[h,g]of m3){const[C,E]=f.match(h)||[];if(C){const B=D.before(u,c,{unit:"character",distance:C.length}),F=D.range(u,B,c);return I.insertText(u,E,{at:F}),I.setNodes(u,{[g]:!0},{at:F,match:A=>J.isText(A),split:!0}),I.insertNodes(u,{text:" "})}}}a(l)},u.deleteBackward=(...l)=>{const{selection:c}=u;if(c&&_.isCollapsed(c)){const[d,p]=D.above(u,r(u))||[];if(d&&ae.equals(c.anchor,D.start(u,p))){const[y,m]=D.parent(u,p);if(y)if(X.isElement(y)){const f=y.children[0]===d,w=y.children.at(-1)===d;let h=!1;if(f&&w?(h=!0,I.unwrapNodes(u,{at:m})):f?(h=!0,I.moveNodes(u,{to:m})):w&&(h=!0,I.moveNodes(u,{to:b.next(m)})),h){I.setNodes(u,{type:"paragraph"});return}}else D.isEditor(y)&&y.children.length===1&&I.setNodes(u,{type:"paragraph"})}i(...l)}},u};{const{isValidSelection:u}=Vp();Qe(xa(),"dragstart",a=>{u.value&&a.preventDefault()})}return(u,a)=>(v.openBlock(),v.createBlock(v.unref(n),v.mergeProps(t,{withOverride:o}),null,16))}}),[["styles",["*[data-v-01a5af76],[data-v-01a5af76]:before,[data-v-01a5af76]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-01a5af76]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.list-item[data-v-01a5af76]{display:list-item}"]],["__scopeId","data-v-01a5af76"]]),w3=nu(v.defineComponent({__name:"index",props:{initialValue:{type:null}},setup(e){const t=e;return(n,r)=>(v.openBlock(),v.createElementBlock(v.Fragment,null,[v.createCommentVNode(" Markdown "),v.createVNode(C3,v.normalizeProps(v.guardReactiveProps(t)),null,16),v.createCommentVNode(" 菜单栏 "),v.createVNode(VA)],64))}}),[["styles",[`@charset "UTF-8";[data-use-vue-component-wrap],[__use_react_component_wrap]{display:contents}.smart-docx-editor{font-size:1rem;line-height:1.5rem;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-duration:.3s;outline:2px solid transparent;outline-offset:2px;width:100%;height:100%}.smart-docx-editor>:first-child{margin-top:0!important}docx-h1,docx-h2,docx-h3,docx-h4,docx-h5,docx-h6{display:block;font-weight:700}docx-h1{margin-top:26px;margin-bottom:10px;font-size:26px}docx-h2{margin-top:22px;margin-bottom:8px;font-size:22px}docx-h3{margin-top:20px;margin-bottom:8px;font-size:20px}docx-h4{margin-top:18px;margin-bottom:8px;font-size:18px}docx-h5{margin-top:18px;margin-bottom:8px;font-size:16px}docx-h6{margin-top:16px;margin-bottom:8px;font-size:16px}docx-blockquote{display:block;--un-text-opacity:1;color:rgb(82 82 82 / var(--un-text-opacity));border-left-width:2px;--un-border-opacity:1;--un-border-left-opacity:var(--un-border-opacity);border-left-color:rgb(163 163 163 / var(--un-border-left-opacity));border-left-style:solid;margin-top:.5rem;margin-bottom:.5rem;padding-left:.75rem}:host-context(.dark) docx-blockquote{--un-text-opacity:1;color:rgb(163 163 163 / var(--un-text-opacity))}docx-ul,docx-ol,docx-li{display:block}docx-li{list-style-type:none}docx-li:not(.ordered){position:relative;padding-left:1.5rem;line-height:1.5rem}docx-li:not(.ordered):before{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 14a2 2 0 1 1 0-4a2 2 0 0 1 0 4Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em;pointer-events:none;position:absolute;top:0;left:0;display:flex;--un-translate-x:-25%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z));align-items:center;justify-content:left;content:"";width:1.5rem;height:1.5rem}`,"*[data-v-1360e702],[data-v-1360e702]:before,[data-v-1360e702]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-1360e702]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }"]],["__scopeId","data-v-1360e702"]]),E3=nu(v.defineComponent({__name:"index",props:{initialValue:{type:null}},setup(e){const t=e;return(n,r)=>(v.openBlock(),v.createBlock(w3,v.normalizeProps(v.guardReactiveProps(t)),null,16))}}),[["styles",["*[data-v-9cb0b441],[data-v-9cb0b441]:before,[data-v-9cb0b441]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-9cb0b441]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }"]],["__scopeId","data-v-9cb0b441"]]),B3="2.0.2";function A3(e=oE()){const t=xa(),n=`style[cssr-id^="${e}-"]`;return v.onMounted(()=>{function r(){const o=t.value.parentNode;o.querySelectorAll(n).forEach(u=>{o.removeChild(u)}),Array.from(document.querySelectorAll(n)).forEach(u=>{o.appendChild(u.cloneNode()).textContent=u.textContent})}Xw(document.head,r,{childList:!0}),r()}),e}function b3(){const e=xa();return v.onMounted(()=>{var o;const t=e.value.parentNode,{tailwindResetStyle:n,elementPlusStyle:r}=((o=globalThis.SmartCore)==null?void 0:o[B3])??{};if(n&&(t.appendChild(document.createElement("style")).textContent=n),r){const u=document.createElement("style");u.setAttribute("namespace","smart"),t.appendChild(u).textContent=r,document.querySelector('style[namespace="smart"]')||(document.head.appendChild(u.cloneNode()).textContent=r)}}),{classPrefix:A3()}}const F3=nu(v.defineComponent({__name:"App",props:{initialValue:{type:null}},emits:["change"],setup(e,{emit:t}){const n=t;return b3(),Lp.on(r=>{n("change",r)}),v.onMounted(()=>{Oa.value=xa().value.parentNode}),(r,o)=>{const u=YD;return v.openBlock(),v.createBlock(u,{namespace:"smart"},{default:v.withCtx(()=>[v.createVNode(E3,{"initial-value":r.initialValue},null,8,["initial-value"])]),_:1})}}}),[["styles",["*[data-v-6eedc1cf],[data-v-6eedc1cf]:before,[data-v-6eedc1cf]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-6eedc1cf]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }"]],["__scopeId","data-v-6eedc1cf"]]),x3="smart-docx-editor";function S3(e,t){var n;uE&&!customElements.get(e)&&customElements.define(e,(n=t.prototype)!=null&&n.connectedCallback?t:v.defineCustomElement(t))}S3(x3,F3)})((Ky=SmartCore["2.0.2"])==null?void 0:Ky.Vue);
58
+ `);gt.forEach(($r,Rs)=>{$r&&D.insertText(t,$r),Rs!==gt.length-1&&D.insertSoftBreak(t)})},{at:V});if(A.equals(V.anchor.path,V.focus.path)){var[Le,ke]=_.edges(V),Ne={start:Le.offset,end:ke.offset,text:me};if(me&&l&&$==="insertCompositionText"){var mt=l.start+l.text.search(/\S|$/),Mr=Ne.start+Ne.text.search(/\S|$/);Mr===mt+1&&Ne.end===l.start+l.text.length?(Ne.start-=1,l=null,O()):l=!1}else $==="insertText"?l===null?l=Ne:l&&_.isCollapsed(V)&&l.end+l.text.length===Le.offset?l=Ts(Ts({},l),{},{text:l.text+me}):l=!1:l=!1;if(Q){w(Le.path,Ne);return}}return h(()=>D.insertText(t,me),{at:V})}}}},C=()=>!!ar.get(t),E=()=>{var k;return!!((k=ht.get(t))!==null&&k!==void 0&&k.length)},B=()=>C()||E(),x=()=>o,b=k=>{ir.set(t,k),a&&(clearTimeout(a),a=null);var{selection:W}=t;if(k){var $=!W||!A.equals(W.anchor.path,k.anchor.path),V=!W||!A.equals(W.anchor.path.slice(0,-1),k.anchor.path.slice(0,-1));($&&l||V)&&(l=!1),($||E())&&(a=setTimeout(p,j3))}},S=()=>{(C()||!E())&&p()},P=k=>{E()||(f(!0),setTimeout(f))},O=()=>{C()||(i=setTimeout(p))},H=k=>{if(!(E()||C())&&k.some($=>wd(t,$,k))){var W;(W=Xy.get(t))===null||W===void 0||W()}};return{flush:p,scheduleFlush:O,hasPendingDiffs:E,hasPendingAction:C,hasPendingChanges:B,isFlushing:x,handleUserSelect:b,handleCompositionEnd:y,handleCompositionStart:m,handleDOMBeforeInput:g,handleKeyDown:P,handleDomMutations:H,handleInput:S}}function L3(){var e=L.useRef(!1);return L.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e.current}var sa=Os?L.useLayoutEffect:L.useEffect;function z3(e,t,n){var[r]=L.useState(()=>new MutationObserver(t));sa(()=>{r.takeRecords()}),L.useEffect(()=>{if(!e.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");return r.observe(e.current,n),()=>r.disconnect()},[r,e,n])}var V3=["node"];function i1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function W3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i1(Object(n),!0).forEach(function(r){Lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var U3={subtree:!0,childList:!0,characterData:!0},H3=at?e=>{var{node:t}=e,n=Ro(e,V3);if(!at)return null;var r=rr(),o=L3(),[u]=L.useState(()=>$3(W3({editor:r},n)));return z3(t,u.handleDomMutations,U3),yd.set(r,u.scheduleFlush),o&&u.flush(),u}:()=>null,K3=["anchor","focus"],q3=["anchor","focus"],Y3=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(n=>t.hasOwnProperty(n)&&e[n]===t[n]),s1=(e,t)=>{var n=Ro(e,K3),r=Ro(t,q3);return e[jo]===t[jo]&&Y3(n,r)},Q3=(e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(!_.equals(r,o)||!s1(r,o))return!1}return!0},G3=(e,t)=>{if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],o=t[n];if(r.anchor.offset!==o.anchor.offset||r.focus.offset!==o.focus.offset||!s1(r,o))return!1}return!0};function l1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function X3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l1(Object(n),!0).forEach(function(r){Lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Z3=e=>{var{isLast:t,leaf:n,parent:r,text:o}=e,u=rr(),a=T.findPath(u,o),i=A.parent(a),s=!!n[Zy];return u.isVoid(r)?re.createElement(bd,{length:q.string(r).length}):n.text===""&&r.children[r.children.length-1]===o&&!u.isInline(r)&&D.string(u,i)===""?re.createElement(bd,{isLineBreak:!0,isMarkPlaceholder:s}):n.text===""?re.createElement(bd,{isMarkPlaceholder:s}):t&&n.text.slice(-1)===`
59
+ `?re.createElement(c1,{isTrailing:!0,text:n.text}):re.createElement(c1,{text:n.text})},c1=e=>{var{text:t,isTrailing:n=!1}=e,r=L.useRef(null),o=()=>"".concat(t??"").concat(n?`
60
+ `:""),[u]=L.useState(o);return sa(()=>{var a=o();r.current&&r.current.textContent!==a&&(r.current.textContent=a)}),re.createElement(J3,{ref:r},u)},J3=L.memo(L.forwardRef((e,t)=>re.createElement("span",{"data-slate-string":!0,ref:t},e.children))),bd=e=>{var{length:t=0,isLineBreak:n=!1,isMarkPlaceholder:r=!1}=e,o={"data-slate-zero-width":n?"n":"z","data-slate-length":t};return r&&(o["data-slate-mark-placeholder"]=!0),re.createElement("span",X3({},o),!at||!n?"\uFEFF":null,n?re.createElement("br",null):null)};function f1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function d1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?f1(Object(n),!0).forEach(function(r){Lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ek=at?300:0;function tk(e,t){e.current&&(e.current.disconnect(),t&&(e.current=null))}function p1(e){e.current&&(clearTimeout(e.current),e.current=null)}var nk=e=>{var{leaf:t,isLast:n,text:r,parent:o,renderPlaceholder:u,renderLeaf:a=g=>re.createElement(ok,d1({},g))}=e,i=rr(),s=L.useRef(null),l=L.useRef(null),[c,d]=L.useState(!1),p=L.useRef(null),y=L.useCallback(g=>{if(tk(s,g==null),g==null){var C;hd.delete(i),(C=t.onPlaceholderResize)===null||C===void 0||C.call(t,null)}else{if(hd.set(i,g),!s.current){var E=window.ResizeObserver||u3;s.current=new E(()=>{var B;(B=t.onPlaceholderResize)===null||B===void 0||B.call(t,g)})}s.current.observe(g),l.current=g}},[l,t,i]),m=re.createElement(Z3,{isLast:n,leaf:t,parent:o,text:r}),f=!!t[jo];if(L.useEffect(()=>(f?p.current||(p.current=setTimeout(()=>{d(!0),p.current=null},ek)):(p1(p),d(!1)),()=>p1(p)),[f,d]),f&&c){var w={children:t.placeholder,attributes:{"data-slate-placeholder":!0,style:{position:"absolute",top:0,pointerEvents:"none",width:"100%",maxWidth:"100%",display:"block",opacity:"0.333",userSelect:"none",textDecoration:"none",WebkitUserModify:ua?"inherit":void 0},contentEditable:!1,ref:y}};m=re.createElement(re.Fragment,null,u(w),m)}var h={"data-slate-leaf":!0};return a({attributes:h,children:m,leaf:t,text:r})},rk=re.memo(nk,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&Z.equals(t.leaf,e.leaf)&&t.leaf[jo]===e.leaf[jo]),ok=e=>{var{attributes:t,children:n}=e;return re.createElement("span",d1({},t),n)},uk=e=>{for(var{decorations:t,isLast:n,parent:r,renderPlaceholder:o,renderLeaf:u,text:a}=e,i=rr(),s=L.useRef(null),l=Z.decorations(a,t),c=T.findKey(i,a),d=[],p=0;p<l.length;p++){var y=l[p];d.push(re.createElement(rk,{isLast:n&&p===l.length-1,key:"".concat(c.id,"-").concat(p),renderPlaceholder:o,leaf:y,text:a,parent:r,renderLeaf:u}))}var m=L.useCallback(f=>{var w=Ps.get(i);f?(w==null||w.set(c,f),jr.set(a,f),aa.set(f,a)):(w==null||w.delete(c),jr.delete(a),s.current&&aa.delete(s.current)),s.current=f},[s,i,c,a]);return re.createElement("span",{"data-slate-node":"text",ref:m},d)},v1=re.memo(uk,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&G3(t.decorations,e.decorations));function h1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ad(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h1(Object(n),!0).forEach(function(r){Lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ak=e=>{var{decorations:t,element:n,renderElement:r=g=>re.createElement(sk,Ad({},g)),renderPlaceholder:o,renderLeaf:u,selection:a}=e,i=rr(),s=fk(),l=i.isInline(n),c=T.findKey(i,n),d=L.useCallback(g=>{var C=Ps.get(i);g?(C==null||C.set(c,g),jr.set(n,g),aa.set(g,n)):(C==null||C.delete(c),jr.delete(n))},[i,c,n]),p=g1({decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:u,selection:a}),y={"data-slate-node":"element",ref:d};if(l&&(y["data-slate-inline"]=!0),!l&&D.hasInlines(i,n)){var m=q.string(n),f=vy(m);f==="rtl"&&(y.dir=f)}if(D.isVoid(i,n)){y["data-slate-void"]=!0,!s&&l&&(y.contentEditable=!1);var w=l?"span":"div",[[h]]=q.texts(n);p=re.createElement(w,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},re.createElement(v1,{renderPlaceholder:o,decorations:[],isLast:!1,parent:n,text:h})),pd.set(h,0),vd.set(h,n)}return r({attributes:y,children:p,element:n})},ik=re.memo(ak,(e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&Q3(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&_.equals(e.selection,t.selection))),sk=e=>{var{attributes:t,children:n,element:r}=e,o=rr(),u=o.isInline(r)?"span":"div";return re.createElement(u,Ad(Ad({},t),{},{style:{position:"relative"}}),n)},m1=L.createContext(()=>[]),lk=()=>L.useContext(m1),ck=L.createContext(!1),g1=e=>{for(var{decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:u,selection:a}=e,i=lk(),s=rr(),l=T.findPath(s,n),c=[],d=X.isElement(n)&&!s.isInline(n)&&D.hasInlines(s,n),p=0;p<n.children.length;p++){var y=l.concat(p),m=n.children[p],f=T.findKey(s,m),w=D.range(s,y),h=a&&_.intersection(w,a),g=i([m,y]);for(var C of t){var E=_.intersection(C,w);E&&g.push(E)}X.isElement(m)?c.push(re.createElement(ck.Provider,{key:"provider-".concat(f.id),value:!!h},re.createElement(ik,{decorations:g,element:m,key:f.id,renderElement:r,renderPlaceholder:o,renderLeaf:u,selection:h}))):c.push(re.createElement(v1,{decorations:g,key:f.id,isLast:d&&p===n.children.length-1,parent:n,renderPlaceholder:o,renderLeaf:u,text:m})),pd.set(m,p),vd.set(m,n)}return c},y1=L.createContext(!1),fk=()=>L.useContext(y1),D1=L.createContext(null),dk=()=>{var e=L.useContext(D1);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t};function pk(){var e=rr(),t=L.useRef(!1),n=L.useRef(0),r=L.useCallback(()=>{if(!t.current){t.current=!0;var o=T.getWindow(e);o.cancelAnimationFrame(n.current),n.current=o.requestAnimationFrame(()=>{t.current=!1})}},[e]);return L.useEffect(()=>()=>cancelAnimationFrame(n.current),[]),{receivedUserInput:t,onUserInput:r}}var vk=3,hk={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",insertSoftBreak:"shift+enter",splitBlock:"enter",undo:"mod+z"},mk={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},gk={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Be=e=>{var t=hk[e],n=mk[e],r=gk[e],o=t&&fd(t),u=n&&fd(n),a=r&&fd(r);return i=>!!(o&&o(i)||Yy&&u&&u(i)||!Yy&&a&&a(i))},Se={isBold:Be("bold"),isCompose:Be("compose"),isMoveBackward:Be("moveBackward"),isMoveForward:Be("moveForward"),isDeleteBackward:Be("deleteBackward"),isDeleteForward:Be("deleteForward"),isDeleteLineBackward:Be("deleteLineBackward"),isDeleteLineForward:Be("deleteLineForward"),isDeleteWordBackward:Be("deleteWordBackward"),isDeleteWordForward:Be("deleteWordForward"),isExtendBackward:Be("extendBackward"),isExtendForward:Be("extendForward"),isExtendLineBackward:Be("extendLineBackward"),isExtendLineForward:Be("extendLineForward"),isItalic:Be("italic"),isMoveLineBackward:Be("moveLineBackward"),isMoveLineForward:Be("moveLineForward"),isMoveWordBackward:Be("moveWordBackward"),isMoveWordForward:Be("moveWordForward"),isRedo:Be("redo"),isSoftBreak:Be("insertSoftBreak"),isSplitBlock:Be("splitBlock"),isTransposeCharacter:Be("transposeCharacter"),isUndo:Be("undo")},yk=(e,t)=>{var n=[],r=()=>{n=[]},o=a=>{if(t.current){var i=a.filter(s=>wd(e,s,a));n.push(...i)}};function u(){n.length>0&&(n.reverse().forEach(a=>{a.type!=="characterData"&&(a.removedNodes.forEach(i=>{a.target.insertBefore(i,a.nextSibling)}),a.addedNodes.forEach(i=>{a.target.removeChild(i)}))}),r())}return{registerMutations:o,restoreDOM:u,clear:r}},Dk={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class C1 extends L.Component{constructor(){super(...arguments),Lt(this,"context",null),Lt(this,"manager",null),Lt(this,"mutationObserver",null)}observe(){var t,{node:n}=this.props;if(!n.current)throw new Error("Failed to attach MutationObserver, `node` is undefined");(t=this.mutationObserver)===null||t===void 0||t.observe(n.current,Dk)}componentDidMount(){var{receivedUserInput:t}=this.props,n=this.context;this.manager=yk(n,t),this.mutationObserver=new MutationObserver(this.manager.registerMutations),this.observe()}getSnapshotBeforeUpdate(){var t,n,r,o=(t=this.mutationObserver)===null||t===void 0?void 0:t.takeRecords();if(o!=null&&o.length){var u;(u=this.manager)===null||u===void 0||u.registerMutations(o)}return(n=this.mutationObserver)===null||n===void 0||n.disconnect(),(r=this.manager)===null||r===void 0||r.restoreDOM(),null}componentDidUpdate(){var t;(t=this.manager)===null||t===void 0||t.clear(),this.observe()}componentWillUnmount(){var t;(t=this.mutationObserver)===null||t===void 0||t.disconnect()}render(){return this.props.children}}Lt(C1,"contextType",dd);var Ck=at?C1:e=>{var{children:t}=e;return re.createElement(re.Fragment,null,t)},wk=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],Ek=["text"];function w1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function cn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w1(Object(n),!0).forEach(function(r){Lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Bk=e=>re.createElement(re.Fragment,null,g1(e)),bk=e=>{var t=L.useCallback(F=>re.createElement(Ak,cn({},F)),[]),{autoFocus:n,decorate:r=xk,onDOMBeforeInput:o,placeholder:u,readOnly:a=!1,renderElement:i,renderLeaf:s,renderPlaceholder:l=t,scrollSelectionIntoView:c=Fk,style:d={},as:p="div",disableDefaultStyles:y=!1}=e,m=Ro(e,wk),f=dk(),[w,h]=L.useState(!1),g=L.useRef(null),C=L.useRef([]),[E,B]=L.useState(),{onUserInput:x,receivedUserInput:b}=pk(),[,S]=L.useReducer(F=>F+1,0);Xy.set(f,S),md.set(f,a);var P=L.useMemo(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);L.useEffect(()=>{g.current&&n&&g.current.focus()},[n]);var O=L.useRef(),H=L.useMemo(()=>N_(()=>{var F=O.current;if((at||!T.isComposing(f))&&(!P.isUpdatingSelection||F!=null&&F.isFlushing())&&!P.isDraggingInternally){var j=T.findDocumentOrShadowRoot(f),{activeElement:N}=j,Y=T.toDOMNode(f,f),oe=j.getSelection();if(N===Y?(P.latestElement=N,ur.set(f,!0)):ur.delete(f),!oe)return I.deselect(f);var{anchorNode:ee,focusNode:ie}=oe,ce=T.hasEditableTarget(f,ee)||T.isTargetInsideNonReadonlyVoid(f,ee),de=T.hasEditableTarget(f,ie)||T.isTargetInsideNonReadonlyVoid(f,ie);if(ce&&de){var he=T.toSlateRange(f,oe,{exactMatch:!1,suppressThrow:!0});he&&(!T.isComposing(f)&&!(F!=null&&F.hasPendingChanges())&&!(F!=null&&F.isFlushing())?I.select(f,he):F==null||F.handleUserSelect(he))}a&&(!ce||!de)&&I.deselect(f)}},100),[f,a,P]),k=L.useMemo(()=>O_(H,0),[H]);O.current=H3({node:g,onDOMSelectionChange:H,scheduleOnDOMSelectionChange:k}),sa(()=>{var F,j,N;g.current&&(N=Dd(g.current))?(Gy.set(f,N),_s.set(f,g.current),jr.set(f,g.current),aa.set(g.current,f)):jr.delete(f);var{selection:Y}=f,oe=T.findDocumentOrShadowRoot(f),ee=oe.getSelection();if(!(!ee||!T.isFocused(f)||(F=O.current)!==null&&F!==void 0&&F.hasPendingAction())){var ie=le=>{var Ie=ee.type!=="None";if(!(!Y&&!Ie)){var Re=ee.focusNode,be;if(No&&ee.rangeCount>1){var Ft=ee.getRangeAt(0),Vt=ee.getRangeAt(ee.rangeCount-1);Ft.startContainer===Re?be=Vt.endContainer:be=Ft.startContainer}else be=ee.anchorNode;var _e=_s.get(f),et=!1;if(_e.contains(be)&&_e.contains(Re)&&(et=!0),Ie&&et&&Y&&!le){var me=T.toSlateRange(f,ee,{exactMatch:!0,suppressThrow:!0});if(me&&_.equals(me,Y)){var Le;if(!P.hasMarkPlaceholder||(Le=be)!==null&&Le!==void 0&&(Le=Le.parentElement)!==null&&Le!==void 0&&Le.hasAttribute("data-slate-mark-placeholder"))return}}if(Y&&!T.hasRange(f,Y)){f.selection=T.toSlateRange(f,ee,{exactMatch:!1,suppressThrow:!0});return}P.isUpdatingSelection=!0;var ke=Y&&T.toDOMRange(f,Y);return ke?(T.isComposing(f)&&!at?ee.collapseToEnd():_.isBackward(Y)?ee.setBaseAndExtent(ke.endContainer,ke.endOffset,ke.startContainer,ke.startOffset):ee.setBaseAndExtent(ke.startContainer,ke.startOffset,ke.endContainer,ke.endOffset),c(f,ke)):ee.removeAllRanges(),ke}};ee.rangeCount<=1&&ie();var ce=((j=O.current)===null||j===void 0?void 0:j.isFlushing())==="action";if(!at||!ce){setTimeout(()=>{P.isUpdatingSelection=!1});return}var de=null,he=requestAnimationFrame(()=>{if(ce){var le=Ie=>{try{var Re=T.toDOMNode(f,f);Re.focus(),ie(Ie)}catch{}};le(),de=setTimeout(()=>{le(!0),P.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(he),de&&clearTimeout(de)}}});var W=L.useCallback(F=>{if(x(),!a&&T.hasEditableTarget(f,F.target)&&!Sk(F,o)){var j;if(O.current)return O.current.handleDOMBeforeInput(F);k.flush(),H.flush();var{selection:N}=f,{inputType:Y}=F,oe=F.dataTransfer||F.data||void 0,ee=Y==="insertCompositionText"||Y==="deleteCompositionText";if(ee&&T.isComposing(f))return;var ie=!1;if(Y==="insertText"&&N&&_.isCollapsed(N)&&F.data&&F.data.length===1&&/[a-z ]/i.test(F.data)&&N.anchor.offset!==0){var ce,de;ie=!0,f.marks&&(ie=!1);var{anchor:he}=N,[le,Ie]=T.toDOMPoint(f,he),Re=(ce=le.parentElement)===null||ce===void 0?void 0:ce.closest("a"),be=T.getWindow(f);if(ie&&Re&&T.hasDOMNode(f,Re)){var Ft,Vt=be==null?void 0:be.document.createTreeWalker(Re,NodeFilter.SHOW_TEXT).lastChild();Vt===le&&((Ft=Vt.textContent)===null||Ft===void 0?void 0:Ft.length)===Ie&&(ie=!1)}if(ie&&le.parentElement&&(be==null||(de=be.getComputedStyle(le.parentElement))===null||de===void 0?void 0:de.whiteSpace)==="pre"){var _e=D.above(f,{at:he.path,match:mt=>X.isElement(mt)&&D.isBlock(f,mt)});_e&&q.string(_e[0]).includes(" ")&&(ie=!1)}}if(!Y.startsWith("delete")||Y.startsWith("deleteBy")){var[et]=F.getTargetRanges();if(et){var me=T.toSlateRange(f,et,{exactMatch:!1,suppressThrow:!1});if(!N||!_.equals(N,me)){ie=!1;var Le=!ee&&f.selection&&D.rangeRef(f,f.selection);I.select(f,me),Le&&ia.set(f,Le)}}}if(ee)return;if(ie||F.preventDefault(),N&&_.isExpanded(N)&&Y.startsWith("delete")){var ke=Y.endsWith("Backward")?"backward":"forward";D.deleteFragment(f,{direction:ke});return}switch(Y){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":{D.deleteFragment(f);break}case"deleteContent":case"deleteContentForward":{D.deleteForward(f);break}case"deleteContentBackward":{D.deleteBackward(f);break}case"deleteEntireSoftLine":{D.deleteBackward(f,{unit:"line"}),D.deleteForward(f,{unit:"line"});break}case"deleteHardLineBackward":{D.deleteBackward(f,{unit:"block"});break}case"deleteSoftLineBackward":{D.deleteBackward(f,{unit:"line"});break}case"deleteHardLineForward":{D.deleteForward(f,{unit:"block"});break}case"deleteSoftLineForward":{D.deleteForward(f,{unit:"line"});break}case"deleteWordBackward":{D.deleteBackward(f,{unit:"word"});break}case"deleteWordForward":{D.deleteForward(f,{unit:"word"});break}case"insertLineBreak":D.insertSoftBreak(f);break;case"insertParagraph":{D.insertBreak(f);break}case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{Y==="insertFromComposition"&&T.isComposing(f)&&(h(!1),Ir.set(f,!1)),(oe==null?void 0:oe.constructor.name)==="DataTransfer"?T.insertData(f,oe):typeof oe=="string"&&(ie?C.current.push(()=>D.insertText(f,oe)):D.insertText(f,oe));break}}var Ne=(j=ia.get(f))===null||j===void 0?void 0:j.unref();ia.delete(f),Ne&&(!f.selection||!_.equals(f.selection,Ne))&&I.select(f,Ne)}},[f,H,x,o,a,k]),$=L.useCallback(F=>{F==null?(H.cancel(),k.cancel(),_s.delete(f),jr.delete(f),g.current&&or&&g.current.removeEventListener("beforeinput",W)):or&&F.addEventListener("beforeinput",W),g.current=F},[H,k,f,W]);sa(()=>{var F=T.getWindow(f);return F.document.addEventListener("selectionchange",k),()=>{F.document.removeEventListener("selectionchange",k)}},[k]);var V=r([f,[]]),G=u&&f.children.length===1&&Array.from(q.texts(f)).length===1&&q.string(f)===""&&!w,R=L.useCallback(F=>{if(F&&G){var j;B((j=F.getBoundingClientRect())===null||j===void 0?void 0:j.height)}else B(void 0)},[G]);if(G){var M=D.start(f,[]);V.push({[jo]:!0,placeholder:u,onPlaceholderResize:R,anchor:M,focus:M})}var{marks:U}=f;if(P.hasMarkPlaceholder=!1,f.selection&&_.isCollapsed(f.selection)&&U){var{anchor:Q}=f.selection,ne=q.leaf(f,Q.path),te=Ro(ne,Ek);if(!Z.equals(ne,U,{loose:!0})){P.hasMarkPlaceholder=!0;var ve=Object.fromEntries(Object.keys(te).map(F=>[F,null]));V.push(cn(cn(cn({[Zy]:!0},ve),U),{},{anchor:Q,focus:Q}))}}return L.useEffect(()=>{setTimeout(()=>{var{selection:F}=f;if(F){var{anchor:j}=F,N=q.leaf(f,j.path);if(U&&!Z.equals(N,U,{loose:!0})){Zt.set(f,U);return}}Zt.delete(f)})}),re.createElement(y1.Provider,{value:a},re.createElement(m1.Provider,{value:r},re.createElement(Ck,{node:g,receivedUserInput:b},re.createElement(p,cn(cn({role:a?void 0:"textbox","aria-multiline":a?void 0:!0},m),{},{spellCheck:or||!Os?m.spellCheck:!1,autoCorrect:or||!Os?m.autoCorrect:"false",autoCapitalize:or||!Os?m.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a,zindex:-1,suppressContentEditableWarning:!0,ref:$,style:cn(cn({},y?{}:cn({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},E?{minHeight:E}:{})),d),onBeforeInput:L.useCallback(F=>{if(!or&&!a&&!it(F,m.onBeforeInput)&&T.hasSelectableTarget(f,F.target)&&(F.preventDefault(),!T.isComposing(f))){var j=F.data;D.insertText(f,j)}},[m.onBeforeInput,f,a]),onInput:L.useCallback(F=>{if(!it(F,m.onInput)){if(O.current){O.current.handleInput();return}for(var j of C.current)j();C.current=[]}},[m.onInput]),onBlur:L.useCallback(F=>{if(!(a||P.isUpdatingSelection||!T.hasSelectableTarget(f,F.target)||it(F,m.onBlur))){var j=T.findDocumentOrShadowRoot(f);if(P.latestElement!==j.activeElement){var{relatedTarget:N}=F,Y=T.toDOMNode(f,f);if(N!==Y&&!(zt(N)&&N.hasAttribute("data-slate-spacer"))){if(N!=null&&sr(N)&&T.hasDOMNode(f,N)){var oe=T.toSlateNode(f,N);if(X.isElement(oe)&&!f.isVoid(oe))return}if(ua){var ee=j.getSelection();ee==null||ee.removeAllRanges()}ur.delete(f)}}}},[a,P.isUpdatingSelection,P.latestElement,f,m.onBlur]),onClick:L.useCallback(F=>{if(T.hasTarget(f,F.target)&&!it(F,m.onClick)&&sr(F.target)){var j=T.toSlateNode(f,F.target),N=T.findPath(f,j);if(!D.hasPath(f,N)||q.get(f,N)!==j)return;if(F.detail===vk&&N.length>=1){var Y=N;if(!(X.isElement(j)&&D.isBlock(f,j))){var oe,ee=D.above(f,{match:Re=>X.isElement(Re)&&D.isBlock(f,Re),at:N});Y=(oe=ee==null?void 0:ee[1])!==null&&oe!==void 0?oe:N.slice(0,1)}var ie=D.range(f,Y);I.select(f,ie);return}if(a)return;var ce=D.start(f,N),de=D.end(f,N),he=D.void(f,{at:ce}),le=D.void(f,{at:de});if(he&&le&&A.equals(he[1],le[1])){var Ie=D.range(f,ce);I.select(f,Ie)}}},[f,m.onClick,a]),onCompositionEnd:L.useCallback(F=>{if(T.hasSelectableTarget(f,F.target)){var j;if(T.isComposing(f)&&Promise.resolve().then(()=>{h(!1),Ir.set(f,!1)}),(j=O.current)===null||j===void 0||j.handleCompositionEnd(F),it(F,m.onCompositionEnd)||at)return;if(!ua&&!m3&&!d3&&!y3&&!g3&&F.data){var N=Zt.get(f);Zt.delete(f),N!==void 0&&(Sn.set(f,f.marks),f.marks=N),D.insertText(f,F.data);var Y=Sn.get(f);Sn.delete(f),Y!==void 0&&(f.marks=Y)}}},[m.onCompositionEnd,f]),onCompositionUpdate:L.useCallback(F=>{T.hasSelectableTarget(f,F.target)&&!it(F,m.onCompositionUpdate)&&(T.isComposing(f)||(h(!0),Ir.set(f,!0)))},[m.onCompositionUpdate,f]),onCompositionStart:L.useCallback(F=>{if(T.hasSelectableTarget(f,F.target)){var j;if((j=O.current)===null||j===void 0||j.handleCompositionStart(F),it(F,m.onCompositionStart)||at)return;h(!0);var{selection:N}=f;if(N&&_.isExpanded(N)){D.deleteFragment(f);return}}},[m.onCompositionStart,f]),onCopy:L.useCallback(F=>{T.hasSelectableTarget(f,F.target)&&!it(F,m.onCopy)&&!E1(F)&&(F.preventDefault(),T.setFragmentData(f,F.clipboardData,"copy"))},[m.onCopy,f]),onCut:L.useCallback(F=>{if(!a&&T.hasSelectableTarget(f,F.target)&&!it(F,m.onCut)&&!E1(F)){F.preventDefault(),T.setFragmentData(f,F.clipboardData,"cut");var{selection:j}=f;if(j)if(_.isExpanded(j))D.deleteFragment(f);else{var N=q.parent(f,j.anchor.path);D.isVoid(f,N)&&I.delete(f)}}},[a,f,m.onCut]),onDragOver:L.useCallback(F=>{if(T.hasTarget(f,F.target)&&!it(F,m.onDragOver)){var j=T.toSlateNode(f,F.target);X.isElement(j)&&D.isVoid(f,j)&&F.preventDefault()}},[m.onDragOver,f]),onDragStart:L.useCallback(F=>{if(!a&&T.hasTarget(f,F.target)&&!it(F,m.onDragStart)){var j=T.toSlateNode(f,F.target),N=T.findPath(f,j),Y=X.isElement(j)&&D.isVoid(f,j)||D.void(f,{at:N,voids:!0});if(Y){var oe=D.range(f,N);I.select(f,oe)}P.isDraggingInternally=!0,T.setFragmentData(f,F.dataTransfer,"drag")}},[a,f,m.onDragStart,P]),onDrop:L.useCallback(F=>{if(!a&&T.hasTarget(f,F.target)&&!it(F,m.onDrop)){F.preventDefault();var j=f.selection,N=T.findEventRange(f,F),Y=F.dataTransfer;I.select(f,N),P.isDraggingInternally&&j&&!_.equals(j,N)&&!D.void(f,{at:N,voids:!0})&&I.delete(f,{at:j}),T.insertData(f,Y),T.isFocused(f)||T.focus(f)}P.isDraggingInternally=!1},[a,f,m.onDrop,P]),onDragEnd:L.useCallback(F=>{!a&&P.isDraggingInternally&&m.onDragEnd&&T.hasTarget(f,F.target)&&m.onDragEnd(F),P.isDraggingInternally=!1},[a,P,m,f]),onFocus:L.useCallback(F=>{if(!a&&!P.isUpdatingSelection&&T.hasEditableTarget(f,F.target)&&!it(F,m.onFocus)){var j=T.toDOMNode(f,f),N=T.findDocumentOrShadowRoot(f);if(P.latestElement=N.activeElement,No&&F.target!==j){j.focus();return}ur.set(f,!0)}},[a,P,f,m.onFocus]),onKeyDown:L.useCallback(F=>{if(!a&&T.hasEditableTarget(f,F.target)){var j;(j=O.current)===null||j===void 0||j.handleKeyDown(F);var{nativeEvent:N}=F;if(T.isComposing(f)&&N.isComposing===!1&&(Ir.set(f,!1),h(!1)),it(F,m.onKeyDown)||T.isComposing(f))return;var{selection:Y}=f,oe=f.children[Y!==null?Y.focus.path[0]:0],ee=vy(q.string(oe))==="rtl";if(Se.isRedo(N)){F.preventDefault();var ie=f;typeof ie.redo=="function"&&ie.redo();return}if(Se.isUndo(N)){F.preventDefault();var ce=f;typeof ce.undo=="function"&&ce.undo();return}if(Se.isMoveLineBackward(N)){F.preventDefault(),I.move(f,{unit:"line",reverse:!0});return}if(Se.isMoveLineForward(N)){F.preventDefault(),I.move(f,{unit:"line"});return}if(Se.isExtendLineBackward(N)){F.preventDefault(),I.move(f,{unit:"line",edge:"focus",reverse:!0});return}if(Se.isExtendLineForward(N)){F.preventDefault(),I.move(f,{unit:"line",edge:"focus"});return}if(Se.isMoveBackward(N)){F.preventDefault(),Y&&_.isCollapsed(Y)?I.move(f,{reverse:!ee}):I.collapse(f,{edge:ee?"end":"start"});return}if(Se.isMoveForward(N)){F.preventDefault(),Y&&_.isCollapsed(Y)?I.move(f,{reverse:ee}):I.collapse(f,{edge:ee?"start":"end"});return}if(Se.isMoveWordBackward(N)){F.preventDefault(),Y&&_.isExpanded(Y)&&I.collapse(f,{edge:"focus"}),I.move(f,{unit:"word",reverse:!ee});return}if(Se.isMoveWordForward(N)){F.preventDefault(),Y&&_.isExpanded(Y)&&I.collapse(f,{edge:"focus"}),I.move(f,{unit:"word",reverse:ee});return}if(or){if((Qy||ua)&&Y&&(Se.isDeleteBackward(N)||Se.isDeleteForward(N))&&_.isCollapsed(Y)){var de=q.parent(f,Y.anchor.path);if(X.isElement(de)&&D.isVoid(f,de)&&(D.isInline(f,de)||D.isBlock(f,de))){F.preventDefault(),D.deleteBackward(f,{unit:"block"});return}}}else{if(Se.isBold(N)||Se.isItalic(N)||Se.isTransposeCharacter(N)){F.preventDefault();return}if(Se.isSoftBreak(N)){F.preventDefault(),D.insertSoftBreak(f);return}if(Se.isSplitBlock(N)){F.preventDefault(),D.insertBreak(f);return}if(Se.isDeleteBackward(N)){F.preventDefault(),Y&&_.isExpanded(Y)?D.deleteFragment(f,{direction:"backward"}):D.deleteBackward(f);return}if(Se.isDeleteForward(N)){F.preventDefault(),Y&&_.isExpanded(Y)?D.deleteFragment(f,{direction:"forward"}):D.deleteForward(f);return}if(Se.isDeleteLineBackward(N)){F.preventDefault(),Y&&_.isExpanded(Y)?D.deleteFragment(f,{direction:"backward"}):D.deleteBackward(f,{unit:"line"});return}if(Se.isDeleteLineForward(N)){F.preventDefault(),Y&&_.isExpanded(Y)?D.deleteFragment(f,{direction:"forward"}):D.deleteForward(f,{unit:"line"});return}if(Se.isDeleteWordBackward(N)){F.preventDefault(),Y&&_.isExpanded(Y)?D.deleteFragment(f,{direction:"backward"}):D.deleteBackward(f,{unit:"word"});return}if(Se.isDeleteWordForward(N)){F.preventDefault(),Y&&_.isExpanded(Y)?D.deleteFragment(f,{direction:"forward"}):D.deleteForward(f,{unit:"word"});return}}}},[a,f,m.onKeyDown]),onPaste:L.useCallback(F=>{!a&&T.hasEditableTarget(f,F.target)&&!it(F,m.onPaste)&&(!or||w3(F.nativeEvent)||ua)&&(F.preventDefault(),T.insertData(f,F.clipboardData))},[a,f,m.onPaste])}),re.createElement(Bk,{decorations:V,node:f,renderElement:i,renderPlaceholder:l,renderLeaf:s,selection:f.selection})))))},Ak=e=>{var{attributes:t,children:n}=e;return re.createElement("span",cn({},t),n,at&&re.createElement("br",null))},xk=()=>[],Fk=(e,t)=>{if(t.getBoundingClientRect&&(!e.selection||e.selection&&_.isCollapsed(e.selection))){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),M_(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},it=(e,t)=>{if(!t)return!1;var n=t(e);return n??(e.isDefaultPrevented()||e.isPropagationStopped())},E1=e=>sr(e.target)&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement),Sk=(e,t)=>{if(!t)return!1;var n=t(e);return n??e.defaultPrevented},Ok=L.createContext(!1),_k=L.createContext({});function kk(e){var t=L.useRef([]).current,n=L.useRef({editor:e}).current,r=L.useCallback(u=>{n.editor=u,t.forEach(a=>a(u))},[t,n]),o=L.useMemo(()=>({getSlate:()=>n.editor,addEventListener:u=>(t.push(u),()=>{t.splice(t.indexOf(u),1)})}),[t,n]);return{selectorContext:o,onChange:r}}var Pk=["editor","children","onChange","onSelectionChange","onValueChange","initialValue"],Tk=e=>{var{editor:t,children:n,onChange:r,onSelectionChange:o,onValueChange:u,initialValue:a}=e,i=Ro(e,Pk),[s,l]=re.useState(()=>{if(!q.isNodeList(a))throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(ze.stringify(a)));if(!D.isEditor(t))throw new Error("[Slate] editor is invalid! You passed: ".concat(ze.stringify(t)));return t.children=a,Object.assign(t,i),{v:0,editor:t}}),{selectorContext:c,onChange:d}=kk(t),p=L.useCallback(f=>{var w;switch(r&&r(t.children),f==null||(w=f.operation)===null||w===void 0?void 0:w.type){case"set_selection":o==null||o(t.selection);break;default:u==null||u(t.children)}l(h=>({v:h.v+1,editor:t})),d(t)},[t,d,r,o,u]);L.useEffect(()=>(gd.set(t,p),()=>{gd.set(t,()=>{})}),[t,p]);var[y,m]=L.useState(T.isFocused(t));return L.useEffect(()=>{m(T.isFocused(t))},[t]),sa(()=>{var f=()=>m(T.isFocused(t));return qy>=17?(document.addEventListener("focusin",f),document.addEventListener("focusout",f),()=>{document.removeEventListener("focusin",f),document.removeEventListener("focusout",f)}):(document.addEventListener("focus",f,!0),document.addEventListener("blur",f,!0),()=>{document.removeEventListener("focus",f,!0),document.removeEventListener("blur",f,!0)})},[]),re.createElement(_k.Provider,{value:c},re.createElement(D1.Provider,{value:s},re.createElement(dd.Provider,{value:s.editor},re.createElement(Ok.Provider,{value:y},n))))},B1=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},b1=(e,t,n)=>{var r=T.toDOMRange(e,t).getBoundingClientRect(),o=T.toDOMRange(e,n).getBoundingClientRect();return B1(r,o)&&B1(o,r)},Rk=(e,t)=>{var n=D.range(e,_.end(t)),r=Array.from(D.positions(e,{at:t})),o=0,u=r.length,a=Math.floor(u/2);if(b1(e,D.range(e,r[o]),n))return D.range(e,r[o],n);if(r.length<2)return D.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)b1(e,D.range(e,r[a]),n)?u=a:o=a,a=Math.floor((o+u)/2);return D.range(e,r[u],n)};function A1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function x1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A1(Object(n),!0).forEach(function(r){Lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Nk=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x-slate-fragment",r=t,{apply:o,onChange:u,deleteBackward:a,addMark:i,removeMark:s}=r;return Ps.set(r,new WeakMap),r.addMark=(l,c)=>{var d,p;(d=yd.get(r))===null||d===void 0||d(),!Zt.get(r)&&(p=ht.get(r))!==null&&p!==void 0&&p.length&&Zt.set(r,null),Sn.delete(r),i(l,c)},r.removeMark=l=>{var c;!Zt.get(r)&&(c=ht.get(r))!==null&&c!==void 0&&c.length&&Zt.set(r,null),Sn.delete(r),s(l)},r.deleteBackward=l=>{if(l!=="line")return a(l);if(r.selection&&_.isCollapsed(r.selection)){var c=D.above(r,{match:m=>X.isElement(m)&&D.isBlock(r,m),at:r.selection});if(c){var[,d]=c,p=D.range(r,d,r.selection.anchor),y=Rk(r,p);_.isCollapsed(y)||I.delete(r,{at:y})}}},r.apply=l=>{var c=[],d=[],p=ht.get(r);if(p!=null&&p.length){var y=p.map($=>R3($,l)).filter(Boolean);ht.set(r,y)}var m=ir.get(r);m&&ir.set(r,u1(r,m,l));var f=ar.get(r);if(f!=null&&f.at){var w=ae.isPoint(f==null?void 0:f.at)?Bd(r,f.at,l):u1(r,f.at,l);ar.set(r,w?x1(x1({},f),{},{at:w}):null)}switch(l.type){case"insert_text":case"remove_text":case"set_node":case"split_node":{c.push(...Io(r,l.path));break}case"set_selection":{var h;(h=ia.get(r))===null||h===void 0||h.unref(),ia.delete(r);break}case"insert_node":case"remove_node":{c.push(...Io(r,A.parent(l.path)));break}case"merge_node":{var g=A.previous(l.path);c.push(...Io(r,g));break}case"move_node":{var C=A.common(A.parent(l.path),A.parent(l.newPath));c.push(...Io(r,C));var E;A.isBefore(l.path,l.newPath)?(c.push(...Io(r,A.parent(l.path))),E=l.newPath):(c.push(...Io(r,A.parent(l.newPath))),E=l.path);var B=q.get(t,A.parent(E)),x=T.findKey(r,B),b=D.pathRef(r,A.parent(E));d.push([b,x]);break}}o(l);for(var[S,P]of c){var[O]=D.node(r,S);ks.set(O,P)}for(var[H,k]of d)if(H.current){var[W]=D.node(r,H.current);ks.set(W,k)}},r.setFragmentData=l=>{var{selection:c}=r;if(c){var[d,p]=_.edges(c),y=D.void(r,{at:d.path}),m=D.void(r,{at:p.path});if(!(_.isCollapsed(c)&&!y)){var f=T.toDOMRange(r,c),w=f.cloneContents(),h=w.childNodes[0];if(w.childNodes.forEach(O=>{O.textContent&&O.textContent.trim()!==""&&(h=O)}),m){var[g]=m,C=f.cloneRange(),E=T.toDOMNode(r,g);C.setEndAfter(E),w=C.cloneContents()}if(y&&(h=w.querySelector("[data-slate-spacer]")),Array.from(w.querySelectorAll("[data-slate-zero-width]")).forEach(O=>{var H=O.getAttribute("data-slate-zero-width")==="n";O.textContent=H?`
61
+ `:""}),Jy(h)){var B=h.ownerDocument.createElement("span");B.style.whiteSpace="pre",B.appendChild(h),w.appendChild(B),h=B}var x=r.getFragment(),b=JSON.stringify(x),S=window.btoa(encodeURIComponent(b));h.setAttribute("data-slate-fragment",S),l.setData("application/".concat(n),S);var P=w.ownerDocument.createElement("div");return P.appendChild(w),P.setAttribute("hidden","true"),w.ownerDocument.body.appendChild(P),l.setData("text/html",P.innerHTML),l.setData("text/plain",t1(P)),w.ownerDocument.body.removeChild(P),l}}},r.insertData=l=>{r.insertFragmentData(l)||r.insertTextData(l)},r.insertFragmentData=l=>{var c=l.getData("application/".concat(n))||x3(l);if(c){var d=decodeURIComponent(window.atob(c)),p=JSON.parse(d);return r.insertFragment(p),!0}return!1},r.insertTextData=l=>{var c=l.getData("text/plain");if(c){var d=c.split(/\r\n|\r|\n/),p=!1;for(var y of d)p&&I.splitNodes(r,{always:!0}),r.insertText(y),p=!0;return!0}return!1},r.onChange=l=>{var c=qy<18?ko.unstable_batchedUpdates:d=>d();c(()=>{var d=gd.get(r);d&&d(l),u(l)})},r},Io=(e,t)=>{var n=[];for(var[r,o]of D.levels(e,{at:t})){var u=T.findKey(e,r);n.push([o,u])}return n},jk={isHistory(e){return Ue(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Nn.isOperationList(e.redos[0].operations))&&(e.undos.length===0||Nn.isOperationList(e.undos[0].operations))}},xd=new WeakMap,Fd=new WeakMap,Mo={isHistoryEditor(e){return jk.isHistory(e.history)&&D.isEditor(e)},isMerging(e){return Fd.get(e)},isSaving(e){return xd.get(e)},redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=Mo.isMerging(e);Fd.set(e,!1),t(),Fd.set(e,n)},withoutSaving(e,t){var n=Mo.isSaving(e);xd.set(e,!1),t(),xd.set(e,n)}},Ik=e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:r}=t,{redos:o}=r;if(o.length>0){var u=o[o.length-1];u.selectionBefore&&I.setSelection(t,u.selectionBefore),Mo.withoutSaving(t,()=>{D.withoutNormalizing(t,()=>{for(var a of u.operations)t.apply(a)})}),r.redos.pop(),t.writeHistory("undos",u)}},t.undo=()=>{var{history:r}=t,{undos:o}=r;if(o.length>0){var u=o[o.length-1];Mo.withoutSaving(t,()=>{D.withoutNormalizing(t,()=>{var a=u.operations.map(Nn.inverse).reverse();for(var i of a)t.apply(i);u.selectionBefore&&I.setSelection(t,u.selectionBefore)})}),t.writeHistory("redos",u),r.undos.pop()}},t.apply=r=>{var{operations:o,history:u}=t,{undos:a}=u,i=a[a.length-1],s=i&&i.operations[i.operations.length-1],l=Mo.isSaving(t),c=Mo.isMerging(t);if(l==null&&(l=$k(r)),l){if(c==null&&(i==null?c=!1:o.length!==0?c=!0:c=Mk(r,s)),i&&c)i.operations.push(r);else{var d={operations:[r],selectionBefore:t.selection};t.writeHistory("undos",d)}for(;a.length>100;)a.shift();u.redos=[]}n(r)},t.writeHistory=(r,o)=>{t.history[r].push(o)},t},Mk=(e,t)=>!!(t&&e.type==="insert_text"&&t.type==="insert_text"&&e.offset===t.offset+t.text.length&&A.equals(e.path,t.path)||t&&e.type==="remove_text"&&t.type==="remove_text"&&e.offset+e.text.length===t.offset&&A.equals(e.path,t.path)),$k=(e,t)=>e.type!=="set_selection";function Lk(e){const n=`docx-h${e.element.level}`;return Te.jsx(n,{...e.attributes,children:e.children})}function zk(e){return Te.jsx("docx-blockquote",{...e.attributes,children:e.children})}const{Provider:Vk,Consumer:Wk}=L.createContext(!1);function Uk(e){const t=e.element,n=`docx-${t.ordered?"o":"u"}l`;return Te.jsx(Vk,{value:!!t.ordered,children:Te.jsx(n,{...e.attributes,children:e.children})})}function Hk(e){return Te.jsx(Wk,{children:t=>Te.jsx("docx-li",{className:t?"ordered":"",children:e.children})})}const Kk={"#":"heading","##":"heading","###":"heading","####":"heading","#####":"heading","######":"heading",">":"blockquote","*":"list-item","-":"list-item","+":"list-item"},qk=[[/\*\*(.+?)\*\*$/,"bold"],[/\*(.+?)\*$/,"italic"],[/\~\~(.+?)\~\~$/,"del"],[/\~(.+?)\~$/,"underline"]];function Yk(e){return e.element.type==="heading"?Te.jsx(Lk,{...e}):e.element.type==="blockquote"?Te.jsx(zk,{...e}):e.element.type==="list"?Te.jsx(Uk,{...e}):e.element.type==="list-item"?Te.jsx(Hk,{...e}):Te.jsx("p",{...e.attributes,children:e.children})}function Qk({attributes:e,children:t,leaf:n}){return n.bold&&(t=Te.jsx("strong",{children:t})),n.code&&(t=Te.jsx("code",{children:t})),n.italic&&(t=Te.jsx("em",{children:t})),n.del&&(t=Te.jsx("del",{children:t})),n.underline&&(t=Te.jsx("u",{children:t})),Te.jsx("span",{...e,children:t})}function Gk(e){const{initialValue:t=[{type:"paragraph",children:[{text:""}]}],onBeforeInput:n,withOverride:r=c=>c}=e,o=L.useMemo(()=>r(Nk(Ik(px()))),[]),u=L.useCallback(c=>Te.jsx(Yk,{...c}),[]),a=L.useCallback(c=>Te.jsx(Qk,{...c}),[]),i=L.useCallback(n?c=>{queueMicrotask(()=>n(c))}:()=>{},[o]),s=L.useCallback(c=>_b.trigger(c),[o]),l=L.useCallback(c=>Ev.trigger(c),[o]);return $a.value=o,Te.jsx(Tk,{editor:o,initialValue:t,onSelectionChange:s,onValueChange:l,children:Te.jsx(bk,{className:"smart-docx-editor",renderElement:u,renderLeaf:a,onDOMBeforeInput:i})})}const Xk=su(v.defineComponent({__name:"Markdown",props:{initialValue:{type:Array}},setup(e){const t=e,n=gO(Gk);function r(u){return{match:a=>X.isElement(a)&&D.isBlock(u,a)}}const o=u=>{const{insertText:a,deleteBackward:i,insertBreak:s}=u;return u.insertBreak=()=>{const{selection:l}=u;if(l&&_.isCollapsed(l)){const[c,d]=D.above(u,r(u))||[];if(c&&X.isElement(c)&&ae.equals(l.anchor,D.end(u,d))){if(c.type==="list-item")return I.insertNodes(u,{type:"list-item",children:[{text:""}]},r(u));if(c.type!=="paragraph")return I.insertNodes(u,{type:"paragraph",children:[{text:""}]},r(u))}}s()},u.insertText=l=>{const{selection:c}=u;if(l.endsWith(" ")&&c&&_.isCollapsed(c)){const d=D.above(u,r(u)),p=d?d[1]:[],y=D.start(u,p),m={anchor:c.anchor,focus:y},f=D.string(u,m)+l.slice(0,-1),w=Kk[f];if(w){I.select(u,m),_.isCollapsed(m)||I.delete(u);const h={type:w};w==="heading"?h.level=`${f.length}`:w==="blockquote"&&(h.type="paragraph"),I.setNodes(u,h,r(u)),w==="blockquote"?I.wrapNodes(u,{type:"blockquote",children:[]},r(u)):w==="list-item"&&I.wrapNodes(u,{type:"list",children:[]},r(u));return}else for(const[h,g]of qk){const[C,E]=f.match(h)||[];if(C){const B=D.before(u,c,{unit:"character",distance:C.length}),x=D.range(u,B,c);return I.insertText(u,E,{at:x}),I.setNodes(u,{[g]:!0},{at:x,match:b=>Z.isText(b),split:!0}),I.insertNodes(u,{text:" "})}}}a(l)},u.deleteBackward=(...l)=>{const{selection:c}=u;if(c&&_.isCollapsed(c)){const[d,p]=D.above(u,r(u))||[];if(d&&ae.equals(c.anchor,D.start(u,p))){const[y,m]=D.parent(u,p);if(y)if(X.isElement(y)){const f=y.children[0]===d,w=y.children.at(-1)===d;let h=!1;if(f&&w?(h=!0,I.unwrapNodes(u,{at:m})):f?(h=!0,I.moveNodes(u,{to:m})):w&&(h=!0,I.moveNodes(u,{to:A.next(m)})),h){I.setNodes(u,{type:"paragraph"});return}}else D.isEditor(y)&&y.children.length===1&&I.setNodes(u,{type:"paragraph"})}i(...l)}},u};{const{isValidSelection:u}=bv();Qe(Ma(),"dragstart",a=>{u.value&&a.preventDefault()})}return(u,a)=>(v.openBlock(),v.createBlock(v.unref(n),v.mergeProps(t,{"with-override":o}),null,16))}}),[["styles",["[data-v-14d7ea7c],[data-v-14d7ea7c]:before,[data-v-14d7ea7c]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-14d7ea7c]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.list-item[data-v-14d7ea7c]{display:list-item}"]],["__scopeId","data-v-14d7ea7c"]]),Zk=su(v.defineComponent({__name:"index",props:{initialValue:{type:Array}},setup(e){const t=e;return(n,r)=>(v.openBlock(),v.createElementBlock(v.Fragment,null,[v.createCommentVNode(" Markdown "),v.createVNode(Xk,v.normalizeProps(v.guardReactiveProps(t)),null,16),v.createCommentVNode(" 菜单栏 "),v.createVNode(yx)],64))}}),[["styles",[`@charset "UTF-8";[data-use-vue-component-wrap],[__use_react_component_wrap]{display:contents}.smart-docx-editor{font-size:1rem;line-height:1.5rem;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-duration:.3s;outline:2px solid transparent;outline-offset:2px;width:100%;height:100%}.smart-docx-editor>:first-child{margin-top:0!important}docx-h1,docx-h2,docx-h3,docx-h4,docx-h5,docx-h6{display:block;font-weight:700}docx-h1{margin-top:26px;margin-bottom:10px;font-size:26px}docx-h2{margin-top:22px;margin-bottom:8px;font-size:22px}docx-h3{margin-top:20px;margin-bottom:8px;font-size:20px}docx-h4{margin-top:18px;margin-bottom:8px;font-size:18px}docx-h5{margin-top:18px;margin-bottom:8px;font-size:16px}docx-h6{margin-top:16px;margin-bottom:8px;font-size:16px}docx-blockquote{display:block;--un-text-opacity:1;color:rgb(82 82 82 / var(--un-text-opacity));border-left-width:2px;--un-border-opacity:1;--un-border-left-opacity:var(--un-border-opacity);border-left-color:rgb(163 163 163 / var(--un-border-left-opacity));border-left-style:solid;margin-top:.5rem;margin-bottom:.5rem;padding-left:.75rem}:host-context(.dark) docx-blockquote{--un-text-opacity:1;color:rgb(163 163 163 / var(--un-text-opacity))}docx-ul,docx-ol,docx-li{display:block}docx-li{list-style-type:none}docx-li:not(.ordered){position:relative;padding-left:1.5rem;line-height:1.5rem}docx-li:not(.ordered):before{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M12 14a2 2 0 1 1 0-4a2 2 0 0 1 0 4Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em;pointer-events:none;position:absolute;top:0;left:0;display:flex;--un-translate-x:-25%;transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z));align-items:center;justify-content:left;content:"";width:1.5rem;height:1.5rem}`,"[data-v-1360e702],[data-v-1360e702]:before,[data-v-1360e702]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-1360e702]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }"]],["__scopeId","data-v-1360e702"]]),Jk=su(v.defineComponent({__name:"index",props:{initialValue:{type:Array}},setup(e){const t=e;return(n,r)=>(v.openBlock(),v.createBlock(Zk,v.normalizeProps(v.guardReactiveProps(t)),null,16))}}),[["styles",["[data-v-9cb0b441],[data-v-9cb0b441]:before,[data-v-9cb0b441]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-9cb0b441]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }"]],["__scopeId","data-v-9cb0b441"]]),eP="2.0.4";function tP(e=Tb()){const t=Ma(),n=`style[cssr-id^="${e}-"]`;return v.onMounted(()=>{function r(){const o=t.value.parentNode;o.querySelectorAll(n).forEach(u=>{o.removeChild(u)}),Array.from(document.querySelectorAll(n)).forEach(u=>{o.appendChild(u.cloneNode()).textContent=u.textContent})}xb(document.head,r,{childList:!0}),r()}),e}function nP(){const e=Ma();return v.onMounted(()=>{var o;const t=e.value.parentNode,{tailwindResetStyle:n,elementPlusStyle:r}=((o=globalThis.SmartCore)==null?void 0:o[eP])??{};if(n&&(t.appendChild(document.createElement("style")).textContent=n),r){const u=document.createElement("style");u.setAttribute("namespace","smart"),t.appendChild(u).textContent=r,document.querySelector('style[namespace="smart"]')||(document.head.appendChild(u.cloneNode()).textContent=r)}}),{classPrefix:tP()}}const rP=su(v.defineComponent({__name:"App",props:{initialValue:{type:Array}},emits:["change"],setup(e,{emit:t}){const n=t;return nP(),Ev.on(r=>{n("change",r)}),v.onMounted(()=>{La.value=Ma().value.parentNode}),(r,o)=>{const u=WE;return v.openBlock(),v.createBlock(u,{namespace:"smart"},{default:v.withCtx(()=>[v.createVNode(Jk,{"initial-value":r.initialValue},null,8,["initial-value"])]),_:1})}}}),[["styles",["[data-v-59b0d3b6],[data-v-59b0d3b6]:before,[data-v-59b0d3b6]:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }[data-v-59b0d3b6]::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / .5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }"]],["__scopeId","data-v-59b0d3b6"]]),oP="smart-docx-editor";function uP(e,t){var n;Rb&&!customElements.get(e)&&customElements.define(e,(n=t.prototype)!=null&&n.connectedCallback?t:v.defineCustomElement(t))}uP(oP,rP)})((F1=SmartCore["2.0.4"])==null?void 0:F1.Vue);