@smartos-lib/components 2.0.9 → 2.0.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/smart-docx-editor/index.js +22 -22
- package/dist/smart-file-preview/index.js +7 -7
- package/dist/smart-upload/index.js +1 -1
- package/package.json +3 -3
- package/scripts/shared.ts +1 -1
- package/src/web-components/smart-docx-drive-page/components/DocxDoc.vue +1 -1
- package/src/web-components/smart-docx-editor/MarkdownShortcuts/components-react/MarkdownElement.tsx +2 -2
@@ -1,13 +1,13 @@
|
|
1
|
-
var
|
2
|
-
* @vue/shared v3.4.
|
1
|
+
var N1;(function(v){"use strict";const vn=(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 Nd;const Jt=typeof window<"u",j1=e=>typeof e=="string",jd=()=>{},I1=Jt&&((Nd=window==null?void 0:window.navigator)==null?void 0:Nd.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Id(e){return typeof e=="function"?e():v.unref(e)}function M1(e){return e}function Md(e){return v.getCurrentScope()?(v.onScopeDispose(e),!0):!1}function dr(e){var t;const n=Id(e);return(t=n==null?void 0:n.$el)!=null?t:n}const $d=Jt?window:void 0;function Is(...e){let t,n,r,o;if(j1(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=$d):[t,n,r,o]=e,!t)return jd;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(()=>[dr(t),Id(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 Md(l),l}let Ld=!1;function $1(e,t,n={}){const{window:r=$d,ignore:o=[],capture:u=!0,detectIframe:a=!1}=n;if(!r)return;I1&&!Ld&&(Ld=!0,Array.from(r.document.body.children).forEach(p=>p.addEventListener("click",jd)));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=dr(y);return m&&(p.target===m||p.composedPath().includes(m))}}),c=[Is(r,"click",p=>{const y=dr(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}),Is(r,"pointerdown",p=>{const y=dr(e);y&&(i=!p.composedPath().includes(y)&&!s(p))},{passive:!0}),a&&Is(r,"blur",p=>{var y;const m=dr(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 zd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Vd="__vueuse_ssr_handlers__";zd[Vd]=zd[Vd]||{};var Wd;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Wd||(Wd={}));var L1=Object.defineProperty,Ud=Object.getOwnPropertySymbols,z1=Object.prototype.hasOwnProperty,V1=Object.prototype.propertyIsEnumerable,Hd=(e,t,n)=>t in e?L1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,W1=(e,t)=>{for(var n in t||(t={}))z1.call(t,n)&&Hd(e,n,t[n]);if(Ud)for(var n of Ud(t))V1.call(t,n)&&Hd(e,n,t[n]);return e};W1({linear:M1},{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.29
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
4
4
|
* @license MIT
|
5
|
-
**/const js=()=>{},I1=Object.prototype.hasOwnProperty,Vd=(e,t)=>I1.call(e,t),M1=Array.isArray,Lo=e=>typeof e=="function",$1=e=>typeof e=="string",Is=e=>e!==null&&typeof e=="object";var L1=typeof global=="object"&&global&&global.Object===Object&&global,z1=typeof self=="object"&&self&&self.Object===Object&&self,Ms=L1||z1||Function("return this")(),Sn=Ms.Symbol,Wd=Object.prototype,V1=Wd.hasOwnProperty,W1=Wd.toString,zo=Sn?Sn.toStringTag:void 0;function U1(e){var t=V1.call(e,zo),n=e[zo];try{e[zo]=void 0;var r=!0}catch{}var o=W1.call(e);return r&&(t?e[zo]=n:delete e[zo]),o}var H1=Object.prototype,K1=H1.toString;function q1(e){return K1.call(e)}var Y1="[object Null]",Q1="[object Undefined]",Ud=Sn?Sn.toStringTag:void 0;function $s(e){return e==null?e===void 0?Q1:Y1:Ud&&Ud in Object(e)?U1(e):q1(e)}function Ls(e){return e!=null&&typeof e=="object"}var G1="[object Symbol]";function zs(e){return typeof e=="symbol"||Ls(e)&&$s(e)==G1}function X1(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 Vo=Array.isArray,Z1=1/0,Hd=Sn?Sn.prototype:void 0,Kd=Hd?Hd.toString:void 0;function qd(e){if(typeof e=="string")return e;if(Vo(e))return X1(e,qd)+"";if(zs(e))return Kd?Kd.call(e):"";var t=e+"";return t=="0"&&1/e==-Z1?"-0":t}function ca(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function J1(e){return e}var eD="[object AsyncFunction]",tD="[object Function]",nD="[object GeneratorFunction]",rD="[object Proxy]";function oD(e){if(!ca(e))return!1;var t=$s(e);return t==tD||t==nD||t==eD||t==rD}var Vs=Ms["__core-js_shared__"],Yd=function(){var e=/[^.]+$/.exec(Vs&&Vs.keys&&Vs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function uD(e){return!!Yd&&Yd in e}var aD=Function.prototype,iD=aD.toString;function sD(e){if(e!=null){try{return iD.call(e)}catch{}try{return e+""}catch{}}return""}var lD=/[\\^$.*+?()[\]{}|]/g,cD=/^\[object .+?Constructor\]$/,fD=Function.prototype,dD=Object.prototype,pD=fD.toString,vD=dD.hasOwnProperty,hD=RegExp("^"+pD.call(vD).replace(lD,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mD(e){if(!ca(e)||uD(e))return!1;var t=oD(e)?hD:cD;return t.test(sD(e))}function gD(e,t){return e==null?void 0:e[t]}function Ws(e,t){var n=gD(e,t);return mD(n)?n:void 0}function yD(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 DD=800,CD=16,wD=Date.now;function ED(e){var t=0,n=0;return function(){var r=wD(),o=CD-(r-n);if(n=r,o>0){if(++t>=DD)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function BD(e){return function(){return e}}var fa=function(){try{var e=Ws(Object,"defineProperty");return e({},"",{}),e}catch{}}(),bD=fa?function(e,t){return fa(e,"toString",{configurable:!0,enumerable:!1,value:BD(t),writable:!0})}:J1,AD=ED(bD),xD=9007199254740991,FD=/^(?:0|[1-9]\d*)$/;function Qd(e,t){var n=typeof e;return t=t??xD,!!t&&(n=="number"||n!="symbol"&&FD.test(e))&&e>-1&&e%1==0&&e<t}function SD(e,t,n){t=="__proto__"&&fa?fa(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Gd(e,t){return e===t||e!==e&&t!==t}var OD=Object.prototype,_D=OD.hasOwnProperty;function PD(e,t,n){var r=e[t];(!(_D.call(e,t)&&Gd(r,n))||n===void 0&&!(t in e))&&SD(e,t,n)}var Xd=Math.max;function kD(e,t,n){return t=Xd(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,u=Xd(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),yD(e,this,i)}}var TD=9007199254740991;function RD(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=TD}var ND="[object Arguments]";function Zd(e){return Ls(e)&&$s(e)==ND}var Jd=Object.prototype,jD=Jd.hasOwnProperty,ID=Jd.propertyIsEnumerable,ep=Zd(function(){return arguments}())?Zd:function(e){return Ls(e)&&jD.call(e,"callee")&&!ID.call(e,"callee")},MD=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$D=/^\w*$/;function LD(e,t){if(Vo(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||zs(e)?!0:$D.test(e)||!MD.test(e)||t!=null&&e in Object(t)}var Wo=Ws(Object,"create");function zD(){this.__data__=Wo?Wo(null):{},this.size=0}function VD(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var WD="__lodash_hash_undefined__",UD=Object.prototype,HD=UD.hasOwnProperty;function KD(e){var t=this.__data__;if(Wo){var n=t[e];return n===WD?void 0:n}return HD.call(t,e)?t[e]:void 0}var qD=Object.prototype,YD=qD.hasOwnProperty;function QD(e){var t=this.__data__;return Wo?t[e]!==void 0:YD.call(t,e)}var GD="__lodash_hash_undefined__";function XD(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Wo&&t===void 0?GD: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=zD,cr.prototype.delete=VD,cr.prototype.get=KD,cr.prototype.has=QD,cr.prototype.set=XD;function ZD(){this.__data__=[],this.size=0}function da(e,t){for(var n=e.length;n--;)if(Gd(e[n][0],t))return n;return-1}var JD=Array.prototype,eC=JD.splice;function tC(e){var t=this.__data__,n=da(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():eC.call(t,n,1),--this.size,!0}function nC(e){var t=this.__data__,n=da(t,e);return n<0?void 0:t[n][1]}function rC(e){return da(this.__data__,e)>-1}function oC(e,t){var n=this.__data__,r=da(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Vr(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])}}Vr.prototype.clear=ZD,Vr.prototype.delete=tC,Vr.prototype.get=nC,Vr.prototype.has=rC,Vr.prototype.set=oC;var uC=Ws(Ms,"Map");function aC(){this.size=0,this.__data__={hash:new cr,map:new(uC||Vr),string:new cr}}function iC(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function pa(e,t){var n=e.__data__;return iC(t)?n[typeof t=="string"?"string":"hash"]:n.map}function sC(e){var t=pa(this,e).delete(e);return this.size-=t?1:0,t}function lC(e){return pa(this,e).get(e)}function cC(e){return pa(this,e).has(e)}function fC(e,t){var n=pa(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=aC,fr.prototype.delete=sC,fr.prototype.get=lC,fr.prototype.has=cC,fr.prototype.set=fC;var dC="Expected a function";function Us(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(dC);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 pC=500;function vC(e){var t=Us(e,function(r){return n.size===pC&&n.clear(),r}),n=t.cache;return t}var hC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mC=/\\(\\)?/g,gC=vC(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(hC,function(n,r,o,u){t.push(o?u.replace(mC,"$1"):r||n)}),t});function yC(e){return e==null?"":qd(e)}function va(e,t){return Vo(e)?e:LD(e,t)?[e]:gC(yC(e))}var DC=1/0;function Hs(e){if(typeof e=="string"||zs(e))return e;var t=e+"";return t=="0"&&1/e==-DC?"-0":t}function CC(e,t){t=va(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 wC(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var tp=Sn?Sn.isConcatSpreadable:void 0;function EC(e){return Vo(e)||ep(e)||!!(tp&&e&&e[tp])}function BC(e,t,n,r,o){var u=-1,a=e.length;for(n||(n=EC),o||(o=[]);++u<a;){var i=e[u];n(i)?wC(o,i):o[o.length]=i}return o}function bC(e){var t=e==null?0:e.length;return t?BC(e):[]}function AC(e){return AD(kD(e,void 0,bC),e+"")}function xC(e,t){return e!=null&&t in Object(e)}function FC(e,t,n){t=va(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&&RD(o)&&Qd(a,o)&&(Vo(e)||ep(e)))}function SC(e,t){return e!=null&&FC(e,t,xC)}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 OC(e){return e===void 0}function _C(e,t,n,r){if(!ca(e))return e;t=va(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=ca(c)?c:Qd(t[o+1])?[]:{})}PD(i,s,l),i=i[s]}return e}function PC(e,t,n){for(var r=-1,o=t.length,u={};++r<o;){var a=t[r],i=CC(e,a);n(i,a)&&_C(u,va(a,e),i)}return u}function kC(e,t){return PC(e,t,function(n,r){return SC(e,r)})}var TC=AC(function(e,t){return e==null?{}:kC(e,t)});const np=e=>typeof e=="boolean",ha=e=>typeof e=="number",ma=e=>typeof Element>"u"?!1:e instanceof Element,rp=e=>Object.keys(e),op="__epPropKey",ge=e=>e,RC=e=>Is(e)&&!!e[op],ga=(e,t)=>{if(!Is(e)||RC(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),Vd(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,[op]:!0};return Vd(e,"default")&&(s.default=o),s},St=e=>Ks(Object.entries(e).map(([t,n])=>[t,ga(n,t)])),Ys=(e,t)=>(e.install=n=>{for(const r of[e,...Object.values({})])n.component(r.name,r)},e),ya={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"},NC=["","default","small","large"],jC=Symbol("localeContextKey"),Qs="el",IC="is-",dr=(e,t,n,r,o)=>{let u=`${e}-${t}`;return n&&(u+=`-${n}`),r&&(u+=`__${r}`),o&&(u+=`--${o}`),u},up=Symbol("namespaceContextKey"),Gs=e=>{const t=v.getCurrentInstance()?v.inject(up,v.ref(Qs)):v.ref(Qs);return v.computed(()=>v.unref(t)||Qs)},Uo=(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?`${IC}${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}`}},MC=ga({type:ge(Boolean),default:null}),$C=ga({type:ge(Function)}),ap=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],o={[e]:MC,[n]:$C};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(()=>Lo(m[n])),w=v.computed(()=>m[e]===null),h=b=>{a.value!==!0&&(a.value=!0,i&&(i.value=b),Lo(c)&&c(b))},g=b=>{a.value!==!1&&(a.value=!1,i&&(i.value=b),Lo(d)&&d(b))},C=b=>{if(m.disabled===!0||Lo(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=>{np(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}};ap("modelValue");var st="top",Ot="bottom",_t="right",lt="left",Xs="auto",Ho=[st,Ot,_t,lt],Wr="start",Ko="end",LC="clippingParents",ip="viewport",qo="popper",zC="reference",sp=Ho.reduce(function(e,t){return e.concat([t+"-"+Wr,t+"-"+Ko])},[]),Zs=[].concat(Ho,[Xs]).reduce(function(e,t){return e.concat([t,t+"-"+Wr,t+"-"+Ko])},[]),VC="beforeRead",WC="read",UC="afterRead",HC="beforeMain",KC="main",qC="afterMain",YC="beforeWrite",QC="write",GC="afterWrite",XC=[VC,WC,UC,HC,KC,qC,YC,QC,GC];function en(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 Ur(e){var t=Vt(e).Element;return e instanceof t||e instanceof Element}function Pt(e){var t=Vt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Js(e){if(typeof ShadowRoot>"u")return!1;var t=Vt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ZC(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];!Pt(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 JC(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},{});!Pt(o)||!en(o)||(Object.assign(o.style,i),Object.keys(u).forEach(function(s){o.removeAttribute(s)}))})}}var lp={name:"applyStyles",enabled:!0,phase:"write",fn:ZC,effect:JC,requires:["computeStyles"]};function tn(e){return e.split("-")[0]}var pr=Math.max,Da=Math.min,Hr=Math.round;function Kr(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(Pt(e)&&t){var u=e.offsetHeight,a=e.offsetWidth;a>0&&(r=Hr(n.width)/a||1),u>0&&(o=Hr(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=Kr(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 cp(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 pn(e){return Vt(e).getComputedStyle(e)}function ew(e){return["table","td","th"].indexOf(en(e))>=0}function On(e){return((Ur(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ca(e){return en(e)==="html"?e:e.assignedSlot||e.parentNode||(Js(e)?e.host:null)||On(e)}function fp(e){return!Pt(e)||pn(e).position==="fixed"?null:e.offsetParent}function tw(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Pt(e)){var r=pn(e);if(r.position==="fixed")return null}var o=Ca(e);for(Js(o)&&(o=o.host);Pt(o)&&["html","body"].indexOf(en(o))<0;){var u=pn(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 Yo(e){for(var t=Vt(e),n=fp(e);n&&ew(n)&&pn(n).position==="static";)n=fp(n);return n&&(en(n)==="html"||en(n)==="body"&&pn(n).position==="static")?t:n||tw(e)||t}function tl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Qo(e,t,n){return pr(e,Da(t,n))}function nw(e,t,n){var r=Qo(e,t,n);return r>n?n:r}function dp(){return{top:0,right:0,bottom:0,left:0}}function pp(e){return Object.assign({},dp(),e)}function vp(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var rw=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,pp(typeof e!="number"?e:vp(e,Ho))};function ow(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=rw(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=Yo(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=Qo(E,x,B),S=s;n.modifiersData[r]=(t={},t[S]=b,t.centerOffset=b-x,t)}}function uw(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)||!cp(t.elements.popper,o)||(t.elements.arrow=o))}var aw={name:"arrow",enabled:!0,phase:"main",fn:ow,effect:uw,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qr(e){return e.split("-")[1]}var iw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function sw(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:Hr(t*o)/o||0,y:Hr(n*o)/o||0}}function hp(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=Yo(n),b="clientHeight",S="clientWidth";if(x===Vt(n)&&(x=On(n),pn(x).position!=="static"&&i==="absolute"&&(b="scrollHeight",S="scrollWidth")),x=x,o===st||(o===lt||o===_t)&&u===Ko){E=Ot;var k=d&&x===B&&B.visualViewport?B.visualViewport.height:x[b];f-=k-r.height,f*=s?1:-1}if(o===lt||(o===st||o===Ot)&&u===Ko){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&&iw),P=c===!0?sw({x:y,y:f}):{x:y,y:f};if(y=P.x,f=P.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 lw(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:qr(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,hp(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,hp(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 mp={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:lw,data:{}},wa={passive:!0};function cw(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,wa)}),i&&s.addEventListener("resize",n.update,wa),function(){u&&l.forEach(function(c){c.removeEventListener("scroll",n.update,wa)}),i&&s.removeEventListener("resize",n.update,wa)}}var gp={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:cw,data:{}},fw={left:"right",right:"left",bottom:"top",top:"bottom"};function Ea(e){return e.replace(/left|right|bottom|top/g,function(t){return fw[t]})}var dw={start:"end",end:"start"};function yp(e){return e.replace(/start|end/g,function(t){return dw[t]})}function nl(e){var t=Vt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function rl(e){return Kr(On(e)).left+nl(e).scrollLeft}function pw(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+rl(e),y:i}}function vw(e){var t,n=On(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 pn(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=pn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Dp(e){return["html","body","#document"].indexOf(en(e))>=0?e.ownerDocument.body:Pt(e)&&ol(e)?e:Dp(Ca(e))}function Go(e,t){var n;t===void 0&&(t=[]);var r=Dp(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),u=Vt(r),a=o?[u].concat(u.visualViewport||[],ol(r)?r:[]):r,i=t.concat(a);return o?i:i.concat(Go(Ca(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 hw(e){var t=Kr(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 Cp(e,t){return t===ip?ul(pw(e)):Ur(t)?hw(t):ul(vw(On(e)))}function mw(e){var t=Go(Ca(e)),n=["absolute","fixed"].indexOf(pn(e).position)>=0,r=n&&Pt(e)?Yo(e):e;return Ur(r)?t.filter(function(o){return Ur(o)&&cp(o,r)&&en(o)!=="body"}):[]}function gw(e,t,n){var r=t==="clippingParents"?mw(e):[].concat(t),o=[].concat(r,[n]),u=o[0],a=o.reduce(function(i,s){var l=Cp(e,s);return i.top=pr(l.top,i.top),i.right=Da(l.right,i.right),i.bottom=Da(l.bottom,i.bottom),i.left=pr(l.left,i.left),i},Cp(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 wp(e){var t=e.reference,n=e.element,r=e.placement,o=r?tn(r):null,u=r?qr(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 Wr:s[l]=s[l]-(t[c]/2-n[c]/2);break;case Ko:s[l]=s[l]+(t[c]/2-n[c]/2);break}}return s}function Xo(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?LC:u,i=n.rootBoundary,s=i===void 0?ip:i,l=n.elementContext,c=l===void 0?qo:l,d=n.altBoundary,p=d===void 0?!1:d,y=n.padding,m=y===void 0?0:y,f=pp(typeof m!="number"?m:vp(m,Ho)),w=c===qo?zC:qo,h=e.rects.popper,g=e.elements[p?w:c],C=gw(Ur(g)?g:g.contextElement||On(e.elements.popper),a,s),E=Kr(e.elements.reference),B=wp({reference:E,element:h,strategy:"absolute",placement:o}),x=ul(Object.assign({},h,B)),b=c===qo?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},k=e.modifiersData.offset;if(c===qo&&k){var O=k[o];Object.keys(S).forEach(function(H){var P=[_t,Ot].indexOf(H)>=0?1:-1,W=[st,Ot].indexOf(H)>=0?"y":"x";S[H]+=O[W]*P})}return S}function yw(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=qr(r),d=c?i?sp:sp.filter(function(m){return qr(m)===c}):Ho,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]=Xo(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 Dw(e){if(tn(e)===Xs)return[];var t=Ea(e);return[yp(e),t,yp(t)]}function Cw(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?[Ea(w)]:Dw(w)),E=[w].concat(C).reduce(function(F,j){return F.concat(tn(j)===Xs?yw(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,k=E[0],O=0;O<E.length;O++){var H=E[O],P=tn(H),W=qr(H)===Wr,$=[st,Ot].indexOf(P)>=0,V=$?"width":"height",G=Xo(t,{placement:H,boundary:c,rootBoundary:d,altBoundary:p,padding:l}),R=$?W?_t:lt:W?Ot:st;B[V]>x[V]&&(R=Ea(R));var M=Ea(R),U=[];if(u&&U.push(G[P]<=0),i&&U.push(G[R]<=0,G[M]<=0),U.every(function(F){return F})){k=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 k=j,"break"},te=Q;te>0;te--){var ve=ne(te);if(ve==="break")break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}}var ww={name:"flip",enabled:!0,phase:"main",fn:Cw,requiresIfExists:["offset"],data:{_skip:!1}};function Ep(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 Bp(e){return[st,_t,Ot,lt].some(function(t){return e[t]>=0})}function Ew(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,u=t.modifiersData.preventOverflow,a=Xo(t,{elementContext:"reference"}),i=Xo(t,{altBoundary:!0}),s=Ep(a,r),l=Ep(i,o,u),c=Bp(s),d=Bp(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 Bw={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ew};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 Aw(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 xw={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Aw};function Fw(e){var t=e.state,n=e.name;t.modifiersData[n]=wp({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var bp={name:"popperOffsets",enabled:!0,phase:"read",fn:Fw,data:{}};function Sw(e){return e==="x"?"y":"x"}function Ow(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=Xo(t,{boundary:s,rootBoundary:l,padding:d,altBoundary:c}),h=tn(t.placement),g=qr(t.placement),C=!g,E=tl(h),B=Sw(E),x=t.modifiersData.popperOffsets,b=t.rects.reference,S=t.rects.popper,k=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,O=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={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===Wr?b[G]:S[G],te=g===Wr?-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:dp(),N=j[$],Y=j[V],oe=Qo(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&&Yo(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=Qo(y?Da(M,le):M,R,y?pr(U,Ie):U);x[E]=Re,P[E]=Re-R}if(i){var be,Ft=E==="x"?st:lt,zt=E==="x"?Ot:_t,_e=x[B],et=B==="y"?"height":"width",me=_e+w[Ft],Le=_e-w[zt],Pe=[st,lt].indexOf(h)!==-1,Ne=(be=H==null?void 0:H[B])!=null?be:0,mt=Pe?me:_e-b[et]-S[et]-Ne+O.altAxis,$r=Pe?_e+b[et]+S[et]-Ne-O.altAxis:Le,gt=y&&Pe?nw(mt,_e,$r):Qo(y?mt:me,_e,y?$r:Le);x[B]=gt,P[B]=gt-_e}t.modifiersData[r]=P}}var _w={name:"preventOverflow",enabled:!0,phase:"main",fn:Ow,requiresIfExists:["offset"]};function Pw(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function kw(e){return e===Vt(e)||!Pt(e)?nl(e):Pw(e)}function Tw(e){var t=e.getBoundingClientRect(),n=Hr(t.width)/e.offsetWidth||1,r=Hr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Rw(e,t,n){n===void 0&&(n=!1);var r=Pt(t),o=Pt(t)&&Tw(t),u=On(t),a=Kr(e,o),i={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&((en(t)!=="body"||ol(u))&&(i=kw(t)),Pt(t)?(s=Kr(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 Nw(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 jw(e){var t=Nw(e);return XC.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Iw(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Mw(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 Ap={placement:"bottom",modifiers:[],strategy:"absolute"};function xp(){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?Ap:o;return function(a,i,s){s===void 0&&(s=u);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ap,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:Ur(a)?Go(a):a.contextElement?Go(a.contextElement):[],popper:Go(i)};var h=jw(Mw([].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(xp(w,h)){l.rects={reference:Rw(w,Yo(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:Iw(function(){return new Promise(function(f){p.forceUpdate(),f(l)})}),destroy:function(){m(),d=!0}};if(!xp(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 $w=[gp,bp,mp,lp];al({defaultModifiers:$w});var Lw=[gp,bp,mp,lp,xw,ww,_w,aw,Bw],zw=al({defaultModifiers:Lw});const Vw=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:s})=>{const l=Ww(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=zw(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 Ww(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 Fp(){let e;const t=(r,o)=>{n(),e=window.setTimeout(r,o)},n=()=>window.clearTimeout(e);return Rd(()=>n()),{registerTimeout:t,cancelTimeout:n}}const Sp={prefix:Math.floor(Math.random()*1e4),current:0},Uw=Symbol("elIdInjection"),Op=()=>v.getCurrentInstance()?v.inject(Uw,Sp):Sp,Hw=e=>{const t=Op(),n=Gs();return v.computed(()=>v.unref(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Yr=[];const _p=e=>{const t=e;t.key===ya.esc&&Yr.forEach(n=>n(t))},Kw=e=>{v.onMounted(()=>{Yr.length===0&&document.addEventListener("keydown",_p),Jt&&Yr.push(e)}),v.onBeforeUnmount(()=>{Yr=Yr.filter(t=>t!==e),Yr.length===0&&Jt&&document.removeEventListener("keydown",_p)})};let Pp;const kp=()=>{const e=Gs(),t=Op(),n=v.computed(()=>`${e.value}-popper-container-${t.prefix}`),r=v.computed(()=>`#${n.value}`);return{id:n,selector:r}},qw=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},Yw=()=>{const{id:e,selector:t}=kp();return v.onBeforeMount(()=>{Jt&&!Pp&&!document.body.querySelector(t.value)&&(Pp=qw(e.value))}),{id:e,selector:t}},Qw=St({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Gw=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:o})=>{const{registerTimeout:u}=Fp(),{registerTimeout:a,cancelTimeout:i}=Fp();return{onOpen:c=>{u(()=>{r(c);const d=v.unref(n);ha(d)&&d>0&&a(()=>{o(c)},d)},v.unref(e))},onClose:c=>{i(),u(()=>{o(c)},v.unref(t))}}},Tp=Symbol("elForwardRef"),Xw=e=>{const t=n=>{e.value=n};v.provide(Tp,{setForwardRef:t})},Zw=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Rp={current:0},Np=v.ref(0),Jw=2e3,jp=Symbol("elZIndexContextKey"),Ip=Symbol("zIndexContextKey"),eE=e=>{const t=v.getCurrentInstance()?v.inject(jp,Rp):Rp,n=v.getCurrentInstance()?v.inject(Ip,void 0):void 0,r=v.computed(()=>{const a=v.unref(n);return ha(a)?a:Jw}),o=v.computed(()=>r.value+Np.value),u=()=>(t.current++,Np.value=t.current,o.value);return!Jt&&v.inject(jp),{initialZIndex:r,currentZIndex:o,nextZIndex:u}},il=Math.min,Qr=Math.max,Ba=Math.round,_n=e=>({x:e,y:e}),tE={left:"right",right:"left",bottom:"top",top:"bottom"},nE={start:"end",end:"start"};function Mp(e,t,n){return Qr(e,il(t,n))}function ba(e,t){return typeof e=="function"?e(t):e}function vr(e){return e.split("-")[0]}function Aa(e){return e.split("-")[1]}function $p(e){return e==="x"?"y":"x"}function Lp(e){return e==="y"?"height":"width"}function xa(e){return["top","bottom"].includes(vr(e))?"y":"x"}function zp(e){return $p(xa(e))}function rE(e,t,n){n===void 0&&(n=!1);const r=Aa(e),o=zp(e),u=Lp(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[u]>t.floating[u]&&(a=Fa(a)),[a,Fa(a)]}function oE(e){const t=Fa(e);return[sl(e),t,sl(t)]}function sl(e){return e.replace(/start|end/g,t=>nE[t])}function uE(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 aE(e,t,n,r){const o=Aa(e);let u=uE(vr(e),n==="start",r);return o&&(u=u.map(a=>a+"-"+o),t&&(u=u.concat(u.map(sl)))),u}function Fa(e){return e.replace(/left|right|bottom|top/g,t=>tE[t])}function iE(e){return{top:0,right:0,bottom:0,left:0,...e}}function sE(e){return typeof e!="number"?iE(e):{top:e,right:e,bottom:e,left:e}}function Sa(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Vp(e,t,n){let{reference:r,floating:o}=e;const u=xa(t),a=zp(t),i=Lp(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(Aa(t)){case"start":y[a]-=p*(n&&l?-1:1);break;case"end":y[a]+=p*(n&&l?-1:1);break}return y}const lE=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}=Vp(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}=Vp(l,p,s)),f=-1)}return{x:c,y:d,placement:p,strategy:o,middlewareData:y}};async function Wp(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=sE(y),w=i[p?d==="floating"?"reference":"floating":d],h=Sa(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"?{x:r,y:o,width:a.floating.width,height:a.floating.height}: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=Sa(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 cE=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?[Fa(i)]:oE(i));!p&&m!=="none"&&E.push(...aE(i,f,m,C));const B=[i,...E],x=await Wp(t,w),b=[];let S=((r=u.flip)==null?void 0:r.overflows)||[];if(c&&b.push(x[h]),d){const P=rE(o,a,C);b.push(x[P[0]],x[P[1]])}if(S=[...S,{placement:o,overflows:b}],!b.every(P=>P<=0)){var k,O;const P=(((k=u.flip)==null?void 0:k.index)||0)+1,W=B[P];if(W)return{data:{index:P,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 fE(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=Aa(n),s=xa(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 dE=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 fE(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}}}}},pE=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 Wp(t,s),d=xa(vr(o)),p=$p(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=Mp(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=Mp(g,m,C)}const f=i.fn({...t,[p]:y,[d]:m});return{...f,data:{x:f.x-n,y:f.y-r}}}}};function hr(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 nn(e){return e instanceof Element||e instanceof yt(e).Element}function rn(e){return e instanceof HTMLElement||e instanceof yt(e).HTMLElement}function Up(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof yt(e).ShadowRoot}function Zo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Wt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function vE(e){return["table","td","th"].includes(hr(e))}function cl(e){const t=fl(),n=Wt(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 hE(e){let t=kn(e);for(;rn(t)&&!Gr(t);){if(cl(t))return t;t=kn(t)}return null}function fl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Gr(e){return["html","body","#document"].includes(hr(e))}function Wt(e){return yt(e).getComputedStyle(e)}function Oa(e){return nn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function kn(e){if(hr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Up(e)&&e.host||Pn(e);return Up(t)?t.host:t}function Hp(e){const t=kn(e);return Gr(t)?e.ownerDocument?e.ownerDocument.body:e.body:rn(t)&&Zo(t)?t:Hp(t)}function dl(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Hp(e),u=o===((r=e.ownerDocument)==null?void 0:r.body),a=yt(o);return u?t.concat(a,a.visualViewport||[],Zo(o)?o:[],a.frameElement&&n?dl(a.frameElement):[]):t.concat(o,dl(o,[],n))}function Kp(e){const t=Wt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=rn(e),u=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=Ba(n)!==u||Ba(r)!==a;return i&&(n=u,r=a),{width:n,height:r,$:i}}function qp(e){return nn(e)?e:e.contextElement}function Xr(e){const t=qp(e);if(!rn(t))return _n(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:u}=Kp(t);let a=(u?Ba(n.width):n.width)/r,i=(u?Ba(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const mE=_n(0);function Yp(e){const t=yt(e);return!fl()||!t.visualViewport?mE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==yt(e)?!1:t}function Jo(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),u=qp(e);let a=_n(1);t&&(r?nn(r)&&(a=Xr(r)):a=Xr(e));const i=gE(u,n,r)?Yp(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&&nn(r)?yt(r):r;let m=p,f=m.frameElement;for(;f&&r&&y!==m;){const w=Xr(f),h=f.getBoundingClientRect(),g=Wt(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 Sa({width:c,height:d,x:s,y:l})}const yE=[":popover-open",":modal"];function pl(e){return yE.some(t=>{try{return e.matches(t)}catch{return!1}})}function DE(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const u=o==="fixed",a=Pn(r),i=t?pl(t.floating):!1;if(r===a||i&&u)return n;let s={scrollLeft:0,scrollTop:0},l=_n(1);const c=_n(0),d=rn(r);if((d||!d&&!u)&&((hr(r)!=="body"||Zo(a))&&(s=Oa(r)),rn(r))){const p=Jo(r);l=Xr(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 CE(e){return Array.from(e.getClientRects())}function Qp(e){return Jo(Pn(e)).left+Oa(e).scrollLeft}function wE(e){const t=Pn(e),n=Oa(e),r=e.ownerDocument.body,o=Qr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),u=Qr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Qp(e);const i=-n.scrollTop;return Wt(r).direction==="rtl"&&(a+=Qr(t.clientWidth,r.clientWidth)-o),{width:o,height:u,x:a,y:i}}function EE(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 BE(e,t){const n=Jo(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,u=rn(e)?Xr(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 Gp(e,t,n){let r;if(t==="viewport")r=EE(e,n);else if(t==="document")r=wE(Pn(e));else if(nn(t))r=BE(t,n);else{const o=Yp(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Sa(r)}function Xp(e,t){const n=kn(e);return n===t||!nn(n)||Gr(n)?!1:Wt(n).position==="fixed"||Xp(n,t)}function bE(e,t){const n=t.get(e);if(n)return n;let r=dl(e,[],!1).filter(i=>nn(i)&&hr(i)!=="body"),o=null;const u=Wt(e).position==="fixed";let a=u?kn(e):e;for(;nn(a)&&!Gr(a);){const i=Wt(a),s=cl(a);!s&&i.position==="fixed"&&(o=null),(u?!s&&!o:!s&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Zo(a)&&!s&&Xp(e,a))?r=r.filter(c=>c!==a):o=i,a=kn(a)}return t.set(e,r),r}function AE(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?pl(t)?[]:bE(t,this._c):[].concat(n),r],i=a[0],s=a.reduce((l,c)=>{const d=Gp(t,c,o);return l.top=Qr(d.top,l.top),l.right=il(d.right,l.right),l.bottom=il(d.bottom,l.bottom),l.left=Qr(d.left,l.left),l},Gp(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function xE(e){const{width:t,height:n}=Kp(e);return{width:t,height:n}}function FE(e,t,n){const r=rn(t),o=Pn(t),u=n==="fixed",a=Jo(e,!0,u,t);let i={scrollLeft:0,scrollTop:0};const s=_n(0);if(r||!r&&!u)if((hr(t)!=="body"||Zo(o))&&(i=Oa(t)),r){const d=Jo(t,!0,u,t);s.x=d.x+t.clientLeft,s.y=d.y+t.clientTop}else o&&(s.x=Qp(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 vl(e){return Wt(e).position==="static"}function Zp(e,t){return!rn(e)||Wt(e).position==="fixed"?null:t?t(e):e.offsetParent}function Jp(e,t){const n=yt(e);if(pl(e))return n;if(!rn(e)){let o=kn(e);for(;o&&!Gr(o);){if(nn(o)&&!vl(o))return o;o=kn(o)}return n}let r=Zp(e,t);for(;r&&vE(r)&&vl(r);)r=Zp(r,t);return r&&Gr(r)&&vl(r)&&!cl(r)?n:r||hE(e)||n}const SE=async function(e){const t=this.getOffsetParent||Jp,n=this.getDimensions,r=await n(e.floating);return{reference:FE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function OE(e){return Wt(e).direction==="rtl"}const _E={convertOffsetParentRelativeRectToViewportRelativeRect:DE,getDocumentElement:Pn,getClippingRect:AE,getOffsetParent:Jp,getElementRects:SE,getClientRects:CE,getDimensions:xE,getScale:Xr,isElement:nn,isRTL:OE},PE=dE,kE=pE,TE=cE,RE=(e,t,n)=>{const r=new Map,o={platform:_E,...n},u={...o.platform,_c:r};return lE(e,t,{...o,platform:u})},NE=ga({type:String,values:NC,required:!1}),jE=Symbol("size"),IE=St({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>Lo(e)?!e():!e}}),ME=St({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),ev=e=>TC(ME,e),tv=Symbol(),_a=v.ref();function $E(e,t=void 0){return v.getCurrentInstance()?v.inject(tv,_a):_a}const LE=(e,t,n=!1)=>{var r;const o=!!v.getCurrentInstance(),u=o?$E():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?zE(u.value,s):s});return a(tv,i),a(jC,v.computed(()=>i.value.locale)),a(up,v.computed(()=>i.value.namespace)),a(Ip,v.computed(()=>i.value.zIndex)),a(jE,{size:v.computed(()=>i.value.size||"")}),(n||!_a.value)&&(_a.value=i.value),i},zE=(e,t)=>{const n=[...new Set([...rp(e),...rp(t)])],r={};for(const o of n)r[o]=t[o]!==void 0?t[o]:e[o];return r},VE=St({a11y:{type:Boolean,default:!0},locale:{type:ge(Object)},size:NE,button:{type:ge(Object)},experimentalFeatures:{type:ge(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:ge(Object)},zIndex:Number,namespace:{type:String,default:"el"},...IE}),WE={},UE=v.defineComponent({name:"ElConfigProvider",props:VE,setup(e,{slots:t}){v.watch(()=>e.message,r=>{Object.assign(WE,r??{})},{immediate:!0,deep:!0});const n=LE(e);return()=>v.renderSlot(t,"default",{config:n==null?void 0:n.value})}}),HE=Ys(UE);var Tn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const nv=Symbol("formItemContextKey"),hl=Symbol("popper"),rv=Symbol("popperContent"),ov=St({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),KE=v.defineComponent({name:"ElPopper",inheritAttrs:!1}),qE=v.defineComponent({...KE,props:ov,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(hl,s),(l,c)=>v.renderSlot(l.$slots,"default")}});var YE=Tn(qE,[["__file","popper.vue"]]);const uv=St({arrowOffset:{type:Number,default:5}}),QE=v.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),GE=v.defineComponent({...QE,props:uv,setup(e,{expose:t}){const n=e,r=Uo("popper"),{arrowOffset:o,arrowRef:u,arrowStyle:a}=v.inject(rv,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 XE=Tn(GE,[["__file","arrow.vue"]]);const ZE=v.defineComponent({name:"ElOnlyChild",setup(e,{slots:t,attrs:n}){var r;const o=v.inject(Tp),u=Zw((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=av(i);return s?v.withDirectives(v.cloneVNode(s,n),[[u]]):null}}});function av(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 iv(n);case v.Fragment:return av(n.children);default:return n}return iv(n)}return null}function iv(e){const t=Uo("only-child");return v.createVNode("span",{class:t.e("content")},[e])}const sv=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}),JE=v.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),eB=v.defineComponent({...JE,props:sv,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=v.inject(hl,void 0);Xw(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,ma(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})),ma(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(ZE),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 tB=Tn(eB,[["__file","trigger.vue"]]);const ml="focus-trap.focus-after-trapped",gl="focus-trap.focus-after-released",nB="focus-trap.focusout-prevented",lv={cancelable:!0,bubbles:!1},rB={cancelable:!0,bubbles:!1},cv="focusAfterTrapped",fv="focusAfterReleased",oB=Symbol("elFocusTrap"),yl=v.ref(),Pa=v.ref(0),Dl=v.ref(0);let ka=0;const dv=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},pv=(e,t)=>{for(const n of e)if(!uB(n,t))return n},uB=(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},aB=e=>{const t=dv(e),n=pv(t,e),r=pv(t.reverse(),e);return[n,r]},iB=e=>e instanceof HTMLInputElement&&"select"in e,Rn=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),Dl.value=window.performance.now(),e!==n&&iB(e)&&t&&e.select()}};function vv(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const sB=()=>{let e=[];return{push:r=>{const o=e[0];o&&r!==o&&o.pause(),e=vv(e,r),e.unshift(r)},remove:r=>{var o,u;e=vv(e,r),(u=(o=e[0])==null?void 0:o.resume)==null||u.call(o)}}},lB=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(Rn(r,t),document.activeElement!==n)return},hv=sB(),cB=()=>Pa.value>Dl.value,Ta=()=>{yl.value="pointer",Pa.value=window.performance.now()},mv=()=>{yl.value="keyboard",Pa.value=window.performance.now()},fB=()=>(v.onMounted(()=>{ka===0&&(document.addEventListener("mousedown",Ta),document.addEventListener("touchstart",Ta),document.addEventListener("keydown",mv)),ka++}),v.onBeforeUnmount(()=>{ka--,ka<=0&&(document.removeEventListener("mousedown",Ta),document.removeEventListener("touchstart",Ta),document.removeEventListener("keydown",mv))}),{focusReason:yl,lastUserFocusTimestamp:Pa,lastAutomatedFocusTimestamp:Dl}),Ra=e=>new CustomEvent(nB,{...rB,detail:e}),dB=v.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[cv,fv,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=v.ref();let r,o;const{focusReason:u}=fB();Kw(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===ya.tab&&!w&&!h&&!g,b=document.activeElement;if(x&&b){const S=C,[k,O]=aB(S);if(k&&O){if(!E&&b===O){const P=Ra({focusReason:u.value});t("focusout-prevented",P),P.defaultPrevented||(m.preventDefault(),B&&Rn(k,!0))}else if(E&&[k,S].includes(b)){const P=Ra({focusReason:u.value});t("focusout-prevented",P),P.defaultPrevented||(m.preventDefault(),B&&Rn(O,!0))}}else if(b===S){const P=Ra({focusReason:u.value});t("focusout-prevented",P),P.defaultPrevented||m.preventDefault()}}};v.provide(oB,{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(cv,m)},l=m=>t(fv,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){hv.push(a);const f=m.contains(document.activeElement)?r:document.activeElement;if(r=f,!m.contains(f)){const h=new Event(ml,lv);m.addEventListener(ml,s),m.dispatchEvent(h),h.defaultPrevented||v.nextTick(()=>{let g=e.focusStartEl;$1(g)||(Rn(g),document.activeElement!==g&&(g="first")),g==="first"&&lB(dv(m),!0),(document.activeElement===f||g==="container")&&Rn(m)})}}}function y(){const m=v.unref(n);if(m){m.removeEventListener(ml,s);const f=new CustomEvent(gl,{...lv,detail:{focusReason:u.value}});m.addEventListener(gl,l),m.dispatchEvent(f),!f.defaultPrevented&&(u.value=="keyboard"||!cB()||m.contains(document.activeElement))&&Rn(r??document.body),m.removeEventListener(gl,l),hv.remove(a)}}return v.onMounted(()=>{e.trapped&&p(),v.watch(()=>e.trapped,m=>{m?p():y()})}),v.onBeforeUnmount(()=>{e.trapped&&y()}),{onKeydown:i}}});function pB(e,t,n,r,o,u){return v.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var vB=Tn(dB,[["render",pB],["__file","focus-trap.vue"]]);const hB=["fixed","absolute"],mB=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:hB,default:"absolute"}}),gv=St({...mB,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,...ev(["ariaLabel"])}),gB={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},yB=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,u={placement:n,strategy:r,...o,modifiers:[...CB(e),...t]};return wB(u,o==null?void 0:o.modifiers),u},DB=e=>{if(Jt)return lr(e)};function CB(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 wB(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const EB=0,BB=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:o}=v.inject(hl,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:EB;return{name:"arrow",enabled:!OC(g),options:{element:g,padding:C}}}),l=v.computed(()=>({onFirstUpdate:()=>{m()},...yB(e,[v.unref(s),v.unref(i)])})),c=v.computed(()=>DB(e.referenceEl)||v.unref(r)),{attributes:d,state:p,styles:y,update:m,forceUpdate:f,instanceRef:w}=Vw(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}},bB=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:o}=eE(),u=Uo("popper"),a=v.computed(()=>v.unref(t).popper),i=v.ref(ha(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=ha(e.zIndex)?e.zIndex:o()}}},AB=(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")}}},xB=v.defineComponent({name:"ElPopperContent"}),FB=v.defineComponent({...xB,props:gv,emits:gB,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:o,trapped:u,onFocusAfterReleased:a,onFocusAfterTrapped:i,onFocusInTrap:s,onFocusoutPrevented:l,onReleaseRequested:c}=AB(r,n),{attributes:d,arrowRef:p,contentRef:y,styles:m,instanceRef:f,role:w,update:h}=BB(r),{ariaModal:g,arrowStyle:C,contentAttrs:E,contentClass:B,contentStyle:x,updateZIndex:b}=bB(r,{styles:m,attributes:d,role:w}),S=v.inject(nv,void 0),k=v.ref();v.provide(rv,{arrowStyle:C,arrowRef:p,arrowOffset:k}),S&&(S.addInputId||S.removeInputId)&&v.provide(nv,{...S,addInputId:js,removeInputId:js});let O;const H=(W=!0)=>{h(),W&&b()},P=()=>{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);ma(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&&ma(G)&&["role","aria-label","aria-modal","id"].forEach(R=>{G.removeAttribute(R)})},{immediate:!0}),v.watch(()=>r.visible,P,{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(vB),{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 SB=Tn(FB,[["__file","content.vue"]]);const OB=Ys(YE),Cl=Symbol("elTooltip"),yv=St({...Qw,...gv,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,...ev(["ariaLabel"])}),Dv=St({...sv,disabled:Boolean,trigger:{type:ge([String,Array]),default:"hover"},triggerKeys:{type:ge(Array),default:()=>[ya.enter,ya.space]}}),{useModelToggleProps:_B,useModelToggleEmits:PB,useModelToggle:kB}=ap("visible"),TB=St({...ov,..._B,...yv,...Dv,...uv,showArrow:{type:Boolean,default:!0}}),RB=[...PB,"before-show","before-hide","show","hide","open","close"],NB=(e,t)=>M1(e)?e.includes(t):e===t,Zr=(e,t,n)=>r=>{NB(v.unref(e),t)&&n(r)},jB=v.defineComponent({name:"ElTooltipTrigger"}),IB=v.defineComponent({...jB,props:Dv,setup(e,{expose:t}){const n=e,r=Uo("tooltip"),{controlled:o,id:u,open:a,onOpen:i,onClose:s,onToggle:l}=v.inject(Cl,void 0),c=v.ref(null),d=()=>{if(v.unref(o)||n.disabled)return!0},p=v.toRef(n,"trigger"),y=dn(d,Zr(p,"hover",i)),m=dn(d,Zr(p,"hover",s)),f=dn(d,Zr(p,"click",E=>{E.button===0&&l(E)})),w=dn(d,Zr(p,"focus",i)),h=dn(d,Zr(p,"focus",s)),g=dn(d,Zr(p,"contextmenu",E=>{E.preventDefault(),l(E)})),C=dn(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(tB),{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 MB=Tn(IB,[["__file","trigger.vue"]]);const $B=v.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),LB=v.defineComponent({...$B,props:yv,setup(e,{expose:t}){const n=e,{selector:r}=kp(),o=Uo("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(Cl,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()},k=()=>{if(v.unref(i))return!0},O=dn(k,()=>{n.enterable&&v.unref(c)==="hover"&&p()}),H=dn(k,()=>{v.unref(c)==="hover"&&d()}),P=()=>{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:P,onAfterEnter:$,onBeforeLeave:W},{default:v.withCtx(()=>[v.unref(C)?v.withDirectives((v.openBlock(),v.createBlock(v.unref(SB),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 zB=Tn(LB,[["__file","content.vue"]]);const VB=["innerHTML"],WB={key:1},UB=v.defineComponent({name:"ElTooltip"}),HB=v.defineComponent({...UB,props:TB,emits:RB,setup(e,{expose:t,emit:n}){const r=e;Yw();const o=Hw(),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}=kB({indicator:s,toggleReason:l}),{onOpen:y,onClose:m}=Gw({showAfter:v.toRef(r,"showAfter"),hideAfter:v.toRef(r,"hideAfter"),autoClose:v.toRef(r,"autoClose"),open:c,close:d}),f=v.computed(()=>np(r.visible)&&!p.value);v.provide(Cl,{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(OB),{ref_key:"popperRef",ref:u,role:h.role},{default:v.withCtx(()=>[v.createVNode(MB,{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(zB,{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,VB)):(v.openBlock(),v.createElementBlock("span",WB,v.toDisplayString(h.content),1))]),h.showArrow?(v.openBlock(),v.createBlock(v.unref(XE),{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 KB=Tn(HB,[["__file","tooltip.vue"]]);const qB=Ys(KB);var Na=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function eu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const YB={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 GB(e,t){return v.openBlock(),v.createElementBlock("svg",YB,[...QB])}const XB={name:"iconoir-underline",render:GB},ZB={viewBox:"0 0 24 24",width:"1em",height:"1em"},JB=[v.createElementVNode("path",{fill:"currentColor",d:"M15 20H7v-2h2.927l2.116-12H9V4h8v2h-2.927l-2.116 12H15z"},null,-1)];function eb(e,t){return v.openBlock(),v.createElementBlock("svg",ZB,[...JB])}const tb={name:"ri-italic",render:eb},nb={viewBox:"0 0 20 20",width:"1em",height:"1em"},rb=[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 ob(e,t){return v.openBlock(),v.createElementBlock("svg",nb,[...rb])}const ub={name:"fluent-text-strikethrough20-filled",render:ob},ab={viewBox:"0 0 24 24",width:"1em",height:"1em"},ib=[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 sb(e,t){return v.openBlock(),v.createElementBlock("svg",ab,[...ib])}const lb={name:"iconoir-bold",render:sb};function cb(e){return e!=null&&typeof e=="object"&&"$el"in e}function Cv(e){if(cb(e)){const t=e.$el;return ll(t)&&hr(t)==="#comment"?null:t}return e}function wv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ev(e,t){const n=wv(e);return Math.round(t*n)/n}function fb(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(()=>Cv(e.value)),c=v.computed(()=>Cv(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=Ev(c.value,d.value),k=Ev(c.value,p.value);return s.value?{...b,transform:"translate("+S+"px, "+k+"px)",...wv(c.value)>=1.5&&{willChange:"transform"}}:{position:y.value,left:S+"px",top:k+"px"}});let g;function C(){l.value==null||c.value==null||RE(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 db(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 wl(){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 pb(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 tu(e){return typeof e=="function"?e():v.unref(e)}const vb=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const hb=e=>e!=null,mb=Object.prototype.toString,gb=e=>mb.call(e)==="[object Object]",yb=()=>{};function Db(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 Cb=e=>e();function wb(e,t,n={}){const{eventFilter:r=Cb,...o}=n,u=Db(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 Eb(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=wb(e,a,n),{ignoreUpdates:s}=i;return{...i,trigger:()=>{let c;return s(()=>{c=a(Bb(e),bb(e))}),c}}}function Bb(e){return v.isReactive(e)?e:Array.isArray(e)?e.map(t=>tu(t)):tu(e)}function bb(e){return Array.isArray(e)?e.map(()=>{}):void 0}function Ia(e){var t;const n=tu(e);return(t=n==null?void 0:n.$el)!=null?t:n}const nu=vb?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=nu):[t,n,r,o]=e,!t)return yb;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),tu(o)],([c,d])=>{if(a(),!c)return;const p=gb(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 Ab(e={}){var t;const{window:n=nu,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 xb(){const e=v.ref(!1),t=v.getCurrentInstance();return t&&v.onMounted(()=>{e.value=!0},t),e}function Fb(e){const t=xb();return v.computed(()=>(t.value,!!e()))}function Sb(e,t,n={}){const{window:r=nu,...o}=n;let u;const a=Fb(()=>r&&"MutationObserver"in r),i=()=>{u&&(u.disconnect(),u=void 0)},s=v.computed(()=>{const p=tu(e),y=(Array.isArray(p)?p:[p]).map(Ia).filter(hb);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=db(()=>null,()=>t.proxy.$el);return v.onUpdated(n.trigger),v.onMounted(n.trigger),n}function Ob(e,t={}){const{delayEnter:n=0,delayLeave:r=0,window:o=nu}=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 _b(e,t={}){const n=Ab(t),r=v.computed(()=>Ia(e));return{focused:v.computed(()=>r.value&&n.value?r.value.contains(n.value):!1)}}function Pb(e={}){const{touch:t=!0,drag:n=!0,capture:r=!1,initialValue:o=!1,window:u=nu}=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(),kb=wl(),Bv=wl();function za(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function Tb(){return String.fromCharCode(za(97,122))}function Rb(){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+=Tb():l==="u"?i+=Rb():l==="n"&&(i+=za(0,9))}return i}function Nb(){return bv(1,{uppercase:!0})+bv(17,{uppercase:!0,number:!0})}const jb=typeof window<"u";function Ib(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 Mb(e,t,n){return Ib(e,t,{...n,immediate:!0})}const Av=pb(()=>{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=wl();return Mb(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}});/*!
|
5
|
+
**/const Ms=()=>{},U1=Object.prototype.hasOwnProperty,Kd=(e,t)=>U1.call(e,t),H1=Array.isArray,Vo=e=>typeof e=="function",K1=e=>typeof e=="string",$s=e=>e!==null&&typeof e=="object";var q1=typeof global=="object"&&global&&global.Object===Object&&global,Y1=typeof self=="object"&&self&&self.Object===Object&&self,Ls=q1||Y1||Function("return this")(),Pn=Ls.Symbol,qd=Object.prototype,Q1=qd.hasOwnProperty,G1=qd.toString,Wo=Pn?Pn.toStringTag:void 0;function X1(e){var t=Q1.call(e,Wo),n=e[Wo];try{e[Wo]=void 0;var r=!0}catch{}var o=G1.call(e);return r&&(t?e[Wo]=n:delete e[Wo]),o}var Z1=Object.prototype,J1=Z1.toString;function eD(e){return J1.call(e)}var tD="[object Null]",nD="[object Undefined]",Yd=Pn?Pn.toStringTag:void 0;function zs(e){return e==null?e===void 0?nD:tD:Yd&&Yd in Object(e)?X1(e):eD(e)}function Vs(e){return e!=null&&typeof e=="object"}var rD="[object Symbol]";function Ws(e){return typeof e=="symbol"||Vs(e)&&zs(e)==rD}function oD(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 Uo=Array.isArray,uD=1/0,Qd=Pn?Pn.prototype:void 0,Gd=Qd?Qd.toString:void 0;function Xd(e){if(typeof e=="string")return e;if(Uo(e))return oD(e,Xd)+"";if(Ws(e))return Gd?Gd.call(e):"";var t=e+"";return t=="0"&&1/e==-uD?"-0":t}function da(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function aD(e){return e}var iD="[object AsyncFunction]",sD="[object Function]",lD="[object GeneratorFunction]",cD="[object Proxy]";function fD(e){if(!da(e))return!1;var t=zs(e);return t==sD||t==lD||t==iD||t==cD}var Us=Ls["__core-js_shared__"],Zd=function(){var e=/[^.]+$/.exec(Us&&Us.keys&&Us.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function dD(e){return!!Zd&&Zd in e}var pD=Function.prototype,vD=pD.toString;function hD(e){if(e!=null){try{return vD.call(e)}catch{}try{return e+""}catch{}}return""}var mD=/[\\^$.*+?()[\]{}|]/g,gD=/^\[object .+?Constructor\]$/,yD=Function.prototype,DD=Object.prototype,CD=yD.toString,wD=DD.hasOwnProperty,ED=RegExp("^"+CD.call(wD).replace(mD,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function BD(e){if(!da(e)||dD(e))return!1;var t=fD(e)?ED:gD;return t.test(hD(e))}function AD(e,t){return e==null?void 0:e[t]}function Hs(e,t){var n=AD(e,t);return BD(n)?n:void 0}function bD(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 xD=800,FD=16,SD=Date.now;function OD(e){var t=0,n=0;return function(){var r=SD(),o=FD-(r-n);if(n=r,o>0){if(++t>=xD)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function _D(e){return function(){return e}}var pa=function(){try{var e=Hs(Object,"defineProperty");return e({},"",{}),e}catch{}}(),PD=pa?function(e,t){return pa(e,"toString",{configurable:!0,enumerable:!1,value:_D(t),writable:!0})}:aD,kD=OD(PD),TD=9007199254740991,RD=/^(?:0|[1-9]\d*)$/;function Jd(e,t){var n=typeof e;return t=t??TD,!!t&&(n=="number"||n!="symbol"&&RD.test(e))&&e>-1&&e%1==0&&e<t}function ND(e,t,n){t=="__proto__"&&pa?pa(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ep(e,t){return e===t||e!==e&&t!==t}var jD=Object.prototype,ID=jD.hasOwnProperty;function MD(e,t,n){var r=e[t];(!(ID.call(e,t)&&ep(r,n))||n===void 0&&!(t in e))&&ND(e,t,n)}var tp=Math.max;function $D(e,t,n){return t=tp(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,u=tp(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),bD(e,this,i)}}var LD=9007199254740991;function zD(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=LD}var VD="[object Arguments]";function np(e){return Vs(e)&&zs(e)==VD}var rp=Object.prototype,WD=rp.hasOwnProperty,UD=rp.propertyIsEnumerable,op=np(function(){return arguments}())?np:function(e){return Vs(e)&&WD.call(e,"callee")&&!UD.call(e,"callee")},HD=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,KD=/^\w*$/;function qD(e,t){if(Uo(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Ws(e)?!0:KD.test(e)||!HD.test(e)||t!=null&&e in Object(t)}var Ho=Hs(Object,"create");function YD(){this.__data__=Ho?Ho(null):{},this.size=0}function QD(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var GD="__lodash_hash_undefined__",XD=Object.prototype,ZD=XD.hasOwnProperty;function JD(e){var t=this.__data__;if(Ho){var n=t[e];return n===GD?void 0:n}return ZD.call(t,e)?t[e]:void 0}var eC=Object.prototype,tC=eC.hasOwnProperty;function nC(e){var t=this.__data__;return Ho?t[e]!==void 0:tC.call(t,e)}var rC="__lodash_hash_undefined__";function oC(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ho&&t===void 0?rC:t,this}function pr(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])}}pr.prototype.clear=YD,pr.prototype.delete=QD,pr.prototype.get=JD,pr.prototype.has=nC,pr.prototype.set=oC;function uC(){this.__data__=[],this.size=0}function va(e,t){for(var n=e.length;n--;)if(ep(e[n][0],t))return n;return-1}var aC=Array.prototype,iC=aC.splice;function sC(e){var t=this.__data__,n=va(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():iC.call(t,n,1),--this.size,!0}function lC(e){var t=this.__data__,n=va(t,e);return n<0?void 0:t[n][1]}function cC(e){return va(this.__data__,e)>-1}function fC(e,t){var n=this.__data__,r=va(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ur(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])}}Ur.prototype.clear=uC,Ur.prototype.delete=sC,Ur.prototype.get=lC,Ur.prototype.has=cC,Ur.prototype.set=fC;var dC=Hs(Ls,"Map");function pC(){this.size=0,this.__data__={hash:new pr,map:new(dC||Ur),string:new pr}}function vC(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ha(e,t){var n=e.__data__;return vC(t)?n[typeof t=="string"?"string":"hash"]:n.map}function hC(e){var t=ha(this,e).delete(e);return this.size-=t?1:0,t}function mC(e){return ha(this,e).get(e)}function gC(e){return ha(this,e).has(e)}function yC(e,t){var n=ha(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function vr(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])}}vr.prototype.clear=pC,vr.prototype.delete=hC,vr.prototype.get=mC,vr.prototype.has=gC,vr.prototype.set=yC;var DC="Expected a function";function Ks(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(DC);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(Ks.Cache||vr),n}Ks.Cache=vr;var CC=500;function wC(e){var t=Ks(e,function(r){return n.size===CC&&n.clear(),r}),n=t.cache;return t}var EC=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,BC=/\\(\\)?/g,AC=wC(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(EC,function(n,r,o,u){t.push(o?u.replace(BC,"$1"):r||n)}),t});function bC(e){return e==null?"":Xd(e)}function ma(e,t){return Uo(e)?e:qD(e,t)?[e]:AC(bC(e))}var xC=1/0;function qs(e){if(typeof e=="string"||Ws(e))return e;var t=e+"";return t=="0"&&1/e==-xC?"-0":t}function FC(e,t){t=ma(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[qs(t[n++])];return n&&n==r?e:void 0}function SC(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var up=Pn?Pn.isConcatSpreadable:void 0;function OC(e){return Uo(e)||op(e)||!!(up&&e&&e[up])}function _C(e,t,n,r,o){var u=-1,a=e.length;for(n||(n=OC),o||(o=[]);++u<a;){var i=e[u];n(i)?SC(o,i):o[o.length]=i}return o}function PC(e){var t=e==null?0:e.length;return t?_C(e):[]}function kC(e){return kD($D(e,void 0,PC),e+"")}function TC(e,t){return e!=null&&t in Object(e)}function RC(e,t,n){t=ma(t,e);for(var r=-1,o=t.length,u=!1;++r<o;){var a=qs(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&&zD(o)&&Jd(a,o)&&(Uo(e)||op(e)))}function NC(e,t){return e!=null&&RC(e,t,TC)}function Ys(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 jC(e){return e===void 0}function IC(e,t,n,r){if(!da(e))return e;t=ma(t,e);for(var o=-1,u=t.length,a=u-1,i=e;i!=null&&++o<u;){var s=qs(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=da(c)?c:Jd(t[o+1])?[]:{})}MD(i,s,l),i=i[s]}return e}function MC(e,t,n){for(var r=-1,o=t.length,u={};++r<o;){var a=t[r],i=FC(e,a);n(i,a)&&IC(u,ma(a,e),i)}return u}function $C(e,t){return MC(e,t,function(n,r){return NC(e,r)})}var LC=kC(function(e,t){return e==null?{}:$C(e,t)});const ap=e=>typeof e=="boolean",ga=e=>typeof e=="number",ya=e=>typeof Element>"u"?!1:e instanceof Element,ip=e=>Object.keys(e),sp="__epPropKey",De=e=>e,zC=e=>$s(e)&&!!e[sp],Da=(e,t)=>{if(!$s(e)||zC(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),Kd(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,[sp]:!0};return Kd(e,"default")&&(s.default=o),s},Ot=e=>Ys(Object.entries(e).map(([t,n])=>[t,Da(n,t)])),Gs=(e,t)=>(e.install=n=>{for(const r of[e,...Object.values({})])n.component(r.name,r)},e),Ca={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"},VC=["","default","small","large"],WC=Symbol("localeContextKey"),Xs="el",UC="is-",hr=(e,t,n,r,o)=>{let u=`${e}-${t}`;return n&&(u+=`-${n}`),r&&(u+=`__${r}`),o&&(u+=`--${o}`),u},lp=Symbol("namespaceContextKey"),Zs=e=>{const t=v.getCurrentInstance()?v.inject(lp,v.ref(Xs)):v.ref(Xs);return v.computed(()=>v.unref(t)||Xs)},Ko=(e,t)=>{const n=Zs();return{namespace:n,b:(f="")=>hr(n.value,e,f,"",""),e:f=>f?hr(n.value,e,"",f,""):"",m:f=>f?hr(n.value,e,"","",f):"",be:(f,w)=>f&&w?hr(n.value,e,f,w,""):"",em:(f,w)=>f&&w?hr(n.value,e,"",f,w):"",bm:(f,w)=>f&&w?hr(n.value,e,f,"",w):"",bem:(f,w,h)=>f&&w&&h?hr(n.value,e,f,w,h):"",is:(f,...w)=>{const h=w.length>=1?w[0]:!0;return f&&h?`${UC}${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}`}},HC=Da({type:De(Boolean),default:null}),KC=Da({type:De(Function)}),cp=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],o={[e]:HC,[n]:KC};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(()=>Vo(m[n])),w=v.computed(()=>m[e]===null),h=A=>{a.value!==!0&&(a.value=!0,i&&(i.value=A),Vo(c)&&c(A))},g=A=>{a.value!==!1&&(a.value=!1,i&&(i.value=A),Vo(d)&&d(A))},C=A=>{if(m.disabled===!0||Vo(l)&&!l())return;const S=f.value&&Jt;S&&y(t,!0),(w.value||!S)&&h(A)},E=A=>{if(m.disabled===!0||!Jt)return;const S=f.value&&Jt;S&&y(t,!1),(w.value||!S)&&g(A)},B=A=>{ap(A)&&(m.disabled&&A?f.value&&y(t,!1):a.value!==A&&(A?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}};cp("modelValue");var ct="top",_t="bottom",Pt="right",ft="left",Js="auto",qo=[ct,_t,Pt,ft],Hr="start",Yo="end",qC="clippingParents",fp="viewport",Qo="popper",YC="reference",dp=qo.reduce(function(e,t){return e.concat([t+"-"+Hr,t+"-"+Yo])},[]),el=[].concat(qo,[Js]).reduce(function(e,t){return e.concat([t,t+"-"+Hr,t+"-"+Yo])},[]),QC="beforeRead",GC="read",XC="afterRead",ZC="beforeMain",JC="main",ew="afterMain",tw="beforeWrite",nw="write",rw="afterWrite",ow=[QC,GC,XC,ZC,JC,ew,tw,nw,rw];function en(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 Kr(e){var t=Vt(e).Element;return e instanceof t||e instanceof Element}function kt(e){var t=Vt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function tl(e){if(typeof ShadowRoot>"u")return!1;var t=Vt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function uw(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 aw(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 pp={name:"applyStyles",enabled:!0,phase:"write",fn:uw,effect:aw,requires:["computeStyles"]};function tn(e){return e.split("-")[0]}var mr=Math.max,wa=Math.min,qr=Math.round;function Yr(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=qr(n.width)/a||1),u>0&&(o=qr(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 nl(e){var t=Yr(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 vp(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&tl(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function hn(e){return Vt(e).getComputedStyle(e)}function iw(e){return["table","td","th"].indexOf(en(e))>=0}function kn(e){return((Kr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ea(e){return en(e)==="html"?e:e.assignedSlot||e.parentNode||(tl(e)?e.host:null)||kn(e)}function hp(e){return!kt(e)||hn(e).position==="fixed"?null:e.offsetParent}function sw(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&kt(e)){var r=hn(e);if(r.position==="fixed")return null}var o=Ea(e);for(tl(o)&&(o=o.host);kt(o)&&["html","body"].indexOf(en(o))<0;){var u=hn(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 Go(e){for(var t=Vt(e),n=hp(e);n&&iw(n)&&hn(n).position==="static";)n=hp(n);return n&&(en(n)==="html"||en(n)==="body"&&hn(n).position==="static")?t:n||sw(e)||t}function rl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Xo(e,t,n){return mr(e,wa(t,n))}function lw(e,t,n){var r=Xo(e,t,n);return r>n?n:r}function mp(){return{top:0,right:0,bottom:0,left:0}}function gp(e){return Object.assign({},mp(),e)}function yp(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var cw=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,gp(typeof e!="number"?e:yp(e,qo))};function fw(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=rl(i),l=[ft,Pt].indexOf(i)>=0,c=l?"height":"width";if(!(!u||!a)){var d=cw(o.padding,n),p=nl(u),y=s==="y"?ct:ft,m=s==="y"?_t:Pt,f=n.rects.reference[c]+n.rects.reference[s]-a[s]-n.rects.popper[c],w=a[s]-n.rects.reference[s],h=Go(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,A=Xo(E,x,B),S=s;n.modifiersData[r]=(t={},t[S]=A,t.centerOffset=A-x,t)}}function dw(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)||!vp(t.elements.popper,o)||(t.elements.arrow=o))}var pw={name:"arrow",enabled:!0,phase:"main",fn:fw,effect:dw,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qr(e){return e.split("-")[1]}var vw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hw(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:qr(t*o)/o||0,y:qr(n*o)/o||0}}function Dp(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=ft,E=ct,B=window;if(l){var x=Go(n),A="clientHeight",S="clientWidth";if(x===Vt(n)&&(x=kn(n),hn(x).position!=="static"&&i==="absolute"&&(A="scrollHeight",S="scrollWidth")),x=x,o===ct||(o===ft||o===Pt)&&u===Yo){E=_t;var N=d&&x===B&&B.visualViewport?B.visualViewport.height:x[A];f-=N-r.height,f*=s?1:-1}if(o===ft||(o===ct||o===_t)&&u===Yo){C=Pt;var O=d&&x===B&&B.visualViewport?B.visualViewport.width:x[S];y-=O-r.width,y*=s?1:-1}}var V=Object.assign({position:i},l&&vw),P=c===!0?hw({x:y,y:f}):{x:y,y:f};if(y=P.x,f=P.y,s){var L;return Object.assign({},V,(L={},L[E]=g?"0":"",L[C]=h?"0":"",L.transform=(B.devicePixelRatio||1)<=1?"translate("+y+"px, "+f+"px)":"translate3d("+y+"px, "+f+"px, 0)",L))}return Object.assign({},V,(t={},t[E]=g?f+"px":"",t[C]=h?y+"px":"",t.transform="",t))}function mw(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:Qr(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,Dp(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,Dp(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 Cp={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mw,data:{}},Ba={passive:!0};function gw(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,Ba)}),i&&s.addEventListener("resize",n.update,Ba),function(){u&&l.forEach(function(c){c.removeEventListener("scroll",n.update,Ba)}),i&&s.removeEventListener("resize",n.update,Ba)}}var wp={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gw,data:{}},yw={left:"right",right:"left",bottom:"top",top:"bottom"};function Aa(e){return e.replace(/left|right|bottom|top/g,function(t){return yw[t]})}var Dw={start:"end",end:"start"};function Ep(e){return e.replace(/start|end/g,function(t){return Dw[t]})}function ol(e){var t=Vt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ul(e){return Yr(kn(e)).left+ol(e).scrollLeft}function Cw(e){var t=Vt(e),n=kn(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+ul(e),y:i}}function ww(e){var t,n=kn(e),r=ol(e),o=(t=e.ownerDocument)==null?void 0:t.body,u=mr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=mr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),i=-r.scrollLeft+ul(e),s=-r.scrollTop;return hn(o||n).direction==="rtl"&&(i+=mr(n.clientWidth,o?o.clientWidth:0)-u),{width:u,height:a,x:i,y:s}}function al(e){var t=hn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Bp(e){return["html","body","#document"].indexOf(en(e))>=0?e.ownerDocument.body:kt(e)&&al(e)?e:Bp(Ea(e))}function Zo(e,t){var n;t===void 0&&(t=[]);var r=Bp(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),u=Vt(r),a=o?[u].concat(u.visualViewport||[],al(r)?r:[]):r,i=t.concat(a);return o?i:i.concat(Zo(Ea(a)))}function il(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ew(e){var t=Yr(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 Ap(e,t){return t===fp?il(Cw(e)):Kr(t)?Ew(t):il(ww(kn(e)))}function Bw(e){var t=Zo(Ea(e)),n=["absolute","fixed"].indexOf(hn(e).position)>=0,r=n&&kt(e)?Go(e):e;return Kr(r)?t.filter(function(o){return Kr(o)&&vp(o,r)&&en(o)!=="body"}):[]}function Aw(e,t,n){var r=t==="clippingParents"?Bw(e):[].concat(t),o=[].concat(r,[n]),u=o[0],a=o.reduce(function(i,s){var l=Ap(e,s);return i.top=mr(l.top,i.top),i.right=wa(l.right,i.right),i.bottom=wa(l.bottom,i.bottom),i.left=mr(l.left,i.left),i},Ap(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 bp(e){var t=e.reference,n=e.element,r=e.placement,o=r?tn(r):null,u=r?Qr(r):null,a=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,s;switch(o){case ct:s={x:a,y:t.y-n.height};break;case _t:s={x:a,y:t.y+t.height};break;case Pt:s={x:t.x+t.width,y:i};break;case ft:s={x:t.x-n.width,y:i};break;default:s={x:t.x,y:t.y}}var l=o?rl(o):null;if(l!=null){var c=l==="y"?"height":"width";switch(u){case Hr:s[l]=s[l]-(t[c]/2-n[c]/2);break;case Yo:s[l]=s[l]+(t[c]/2-n[c]/2);break}}return s}function Jo(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?qC:u,i=n.rootBoundary,s=i===void 0?fp:i,l=n.elementContext,c=l===void 0?Qo:l,d=n.altBoundary,p=d===void 0?!1:d,y=n.padding,m=y===void 0?0:y,f=gp(typeof m!="number"?m:yp(m,qo)),w=c===Qo?YC:Qo,h=e.rects.popper,g=e.elements[p?w:c],C=Aw(Kr(g)?g:g.contextElement||kn(e.elements.popper),a,s),E=Yr(e.elements.reference),B=bp({reference:E,element:h,strategy:"absolute",placement:o}),x=il(Object.assign({},h,B)),A=c===Qo?x: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},N=e.modifiersData.offset;if(c===Qo&&N){var O=N[o];Object.keys(S).forEach(function(V){var P=[Pt,_t].indexOf(V)>=0?1:-1,L=[ct,_t].indexOf(V)>=0?"y":"x";S[V]+=O[L]*P})}return S}function bw(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?el:s,c=Qr(r),d=c?i?dp:dp.filter(function(m){return Qr(m)===c}):qo,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]=Jo(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 xw(e){if(tn(e)===Js)return[];var t=Aa(e);return[Ep(e),t,Ep(t)]}function Fw(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?[Aa(w)]:xw(w)),E=[w].concat(C).reduce(function(fe,F){return fe.concat(tn(F)===Js?bw(t,{placement:F,boundary:c,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:f}):F)},[]),B=t.rects.reference,x=t.rects.popper,A=new Map,S=!0,N=E[0],O=0;O<E.length;O++){var V=E[O],P=tn(V),L=Qr(V)===Hr,j=[ct,_t].indexOf(P)>=0,z=j?"width":"height",G=Jo(t,{placement:V,boundary:c,rootBoundary:d,altBoundary:p,padding:l}),T=j?L?Pt:ft:L?_t:ct;B[z]>x[z]&&(T=Aa(T));var I=Aa(T),K=[];if(u&&K.push(G[P]<=0),i&&K.push(G[T]<=0,G[I]<=0),K.every(function(fe){return fe})){N=V,S=!1;break}A.set(V,K)}if(S)for(var Q=m?3:1,ne=function(fe){var F=E.find(function(W){var U=A.get(W);if(U)return U.slice(0,fe).every(function(Y){return Y})});if(F)return N=F,"break"},te=Q;te>0;te--){var ye=ne(te);if(ye==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}var Sw={name:"flip",enabled:!0,phase:"main",fn:Fw,requiresIfExists:["offset"],data:{_skip:!1}};function xp(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 Fp(e){return[ct,Pt,_t,ft].some(function(t){return e[t]>=0})}function Ow(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,u=t.modifiersData.preventOverflow,a=Jo(t,{elementContext:"reference"}),i=Jo(t,{altBoundary:!0}),s=xp(a,r),l=xp(i,o,u),c=Fp(s),d=Fp(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 _w={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ow};function Pw(e,t,n){var r=tn(e),o=[ft,ct].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,[ft,Pt].indexOf(r)>=0?{x:i,y:a}:{x:a,y:i}}function kw(e){var t=e.state,n=e.options,r=e.name,o=n.offset,u=o===void 0?[0,0]:o,a=el.reduce(function(c,d){return c[d]=Pw(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 Tw={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kw};function Rw(e){var t=e.state,n=e.name;t.modifiersData[n]=bp({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Sp={name:"popperOffsets",enabled:!0,phase:"read",fn:Rw,data:{}};function Nw(e){return e==="x"?"y":"x"}function jw(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=Jo(t,{boundary:s,rootBoundary:l,padding:d,altBoundary:c}),h=tn(t.placement),g=Qr(t.placement),C=!g,E=rl(h),B=Nw(E),x=t.modifiersData.popperOffsets,A=t.rects.reference,S=t.rects.popper,N=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,O=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(x){if(u){var L,j=E==="y"?ct:ft,z=E==="y"?_t:Pt,G=E==="y"?"height":"width",T=x[E],I=T+w[j],K=T-w[z],Q=y?-S[G]/2:0,ne=g===Hr?A[G]:S[G],te=g===Hr?-S[G]:-A[G],ye=t.elements.arrow,fe=y&&ye?nl(ye):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:mp(),W=F[j],U=F[z],Y=Xo(0,A[G],fe[G]),ie=C?A[G]/2-Q-Y-W-O.mainAxis:ne-Y-W-O.mainAxis,ee=C?-A[G]/2+Q+Y+U+O.mainAxis:te+Y+U+O.mainAxis,he=t.elements.arrow&&Go(t.elements.arrow),pe=he?E==="y"?he.clientTop||0:he.clientLeft||0:0,se=(L=V==null?void 0:V[E])!=null?L:0,ae=T+ie-se-pe,me=T+ee-se,Pe=Xo(y?wa(I,ae):I,T,y?mr(K,me):K);x[E]=Pe,P[E]=Pe-T}if(i){var ve,Qe=E==="x"?ct:ft,yt=E==="x"?_t:Pt,je=x[B],We=B==="y"?"height":"width",we=je+w[Qe],nt=je-w[yt],Te=[ct,ft].indexOf(h)!==-1,de=(ve=V==null?void 0:V[B])!=null?ve:0,Dt=Te?we:je-A[We]-S[We]-de+O.altAxis,dn=Te?je+A[We]+S[We]-de-O.altAxis:nt,Ge=y&&Te?lw(Dt,je,dn):Xo(y?Dt:we,je,y?dn:nt);x[B]=Ge,P[B]=Ge-je}t.modifiersData[r]=P}}var Iw={name:"preventOverflow",enabled:!0,phase:"main",fn:jw,requiresIfExists:["offset"]};function Mw(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function $w(e){return e===Vt(e)||!kt(e)?ol(e):Mw(e)}function Lw(e){var t=e.getBoundingClientRect(),n=qr(t.width)/e.offsetWidth||1,r=qr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function zw(e,t,n){n===void 0&&(n=!1);var r=kt(t),o=kt(t)&&Lw(t),u=kn(t),a=Yr(e,o),i={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&((en(t)!=="body"||al(u))&&(i=$w(t)),kt(t)?(s=Yr(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):u&&(s.x=ul(u))),{x:a.left+i.scrollLeft-s.x,y:a.top+i.scrollTop-s.y,width:a.width,height:a.height}}function Vw(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 Ww(e){var t=Vw(e);return ow.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Uw(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Hw(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 Op={placement:"bottom",modifiers:[],strategy:"absolute"};function _p(){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 sl(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,u=o===void 0?Op:o;return function(a,i,s){s===void 0&&(s=u);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Op,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:Kr(a)?Zo(a):a.contextElement?Zo(a.contextElement):[],popper:Zo(i)};var h=Ww(Hw([].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(_p(w,h)){l.rects={reference:zw(w,Go(h),l.options.strategy==="fixed"),popper:nl(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,A=C.name;typeof E=="function"&&(l=E({state:l,options:x,name:A,instance:p})||l)}}}},update:Uw(function(){return new Promise(function(f){p.forceUpdate(),f(l)})}),destroy:function(){m(),d=!0}};if(!_p(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}}sl();var Kw=[wp,Sp,Cp,pp];sl({defaultModifiers:Kw});var qw=[wp,Sp,Cp,pp,Tw,Sw,Iw,pw,_w],Yw=sl({defaultModifiers:qw});const Qw=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:s})=>{const l=Gw(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=Yw(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 Gw(e){const t=Object.keys(e.elements),n=Ys(t.map(o=>[o,e.styles[o]||{}])),r=Ys(t.map(o=>[o,e.attributes[o]]));return{styles:n,attributes:r}}function Pp(){let e;const t=(r,o)=>{n(),e=window.setTimeout(r,o)},n=()=>window.clearTimeout(e);return Md(()=>n()),{registerTimeout:t,cancelTimeout:n}}const kp={prefix:Math.floor(Math.random()*1e4),current:0},Xw=Symbol("elIdInjection"),Tp=()=>v.getCurrentInstance()?v.inject(Xw,kp):kp,Zw=e=>{const t=Tp(),n=Zs();return v.computed(()=>v.unref(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Gr=[];const Rp=e=>{const t=e;t.key===Ca.esc&&Gr.forEach(n=>n(t))},Jw=e=>{v.onMounted(()=>{Gr.length===0&&document.addEventListener("keydown",Rp),Jt&&Gr.push(e)}),v.onBeforeUnmount(()=>{Gr=Gr.filter(t=>t!==e),Gr.length===0&&Jt&&document.removeEventListener("keydown",Rp)})};let Np;const jp=()=>{const e=Zs(),t=Tp(),n=v.computed(()=>`${e.value}-popper-container-${t.prefix}`),r=v.computed(()=>`#${n.value}`);return{id:n,selector:r}},eE=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},tE=()=>{const{id:e,selector:t}=jp();return v.onBeforeMount(()=>{Jt&&!Np&&!document.body.querySelector(t.value)&&(Np=eE(e.value))}),{id:e,selector:t}},nE=Ot({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),rE=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:o})=>{const{registerTimeout:u}=Pp(),{registerTimeout:a,cancelTimeout:i}=Pp();return{onOpen:c=>{u(()=>{r(c);const d=v.unref(n);ga(d)&&d>0&&a(()=>{o(c)},d)},v.unref(e))},onClose:c=>{i(),u(()=>{o(c)},v.unref(t))}}},Ip=Symbol("elForwardRef"),oE=e=>{const t=n=>{e.value=n};v.provide(Ip,{setForwardRef:t})},uE=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Mp={current:0},$p=v.ref(0),aE=2e3,Lp=Symbol("elZIndexContextKey"),zp=Symbol("zIndexContextKey"),iE=e=>{const t=v.getCurrentInstance()?v.inject(Lp,Mp):Mp,n=v.getCurrentInstance()?v.inject(zp,void 0):void 0,r=v.computed(()=>{const a=v.unref(n);return ga(a)?a:aE}),o=v.computed(()=>r.value+$p.value),u=()=>(t.current++,$p.value=t.current,o.value);return!Jt&&v.inject(Lp),{initialZIndex:r,currentZIndex:o,nextZIndex:u}},ll=Math.min,Xr=Math.max,ba=Math.round,Tn=e=>({x:e,y:e}),sE={left:"right",right:"left",bottom:"top",top:"bottom"},lE={start:"end",end:"start"};function Vp(e,t,n){return Xr(e,ll(t,n))}function xa(e,t){return typeof e=="function"?e(t):e}function gr(e){return e.split("-")[0]}function Fa(e){return e.split("-")[1]}function Wp(e){return e==="x"?"y":"x"}function Up(e){return e==="y"?"height":"width"}function Sa(e){return["top","bottom"].includes(gr(e))?"y":"x"}function Hp(e){return Wp(Sa(e))}function cE(e,t,n){n===void 0&&(n=!1);const r=Fa(e),o=Hp(e),u=Up(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[u]>t.floating[u]&&(a=Oa(a)),[a,Oa(a)]}function fE(e){const t=Oa(e);return[cl(e),t,cl(t)]}function cl(e){return e.replace(/start|end/g,t=>lE[t])}function dE(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 pE(e,t,n,r){const o=Fa(e);let u=dE(gr(e),n==="start",r);return o&&(u=u.map(a=>a+"-"+o),t&&(u=u.concat(u.map(cl)))),u}function Oa(e){return e.replace(/left|right|bottom|top/g,t=>sE[t])}function vE(e){return{top:0,right:0,bottom:0,left:0,...e}}function hE(e){return typeof e!="number"?vE(e):{top:e,right:e,bottom:e,left:e}}function _a(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Kp(e,t,n){let{reference:r,floating:o}=e;const u=Sa(t),a=Hp(t),i=Up(a),s=gr(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(Fa(t)){case"start":y[a]-=p*(n&&l?-1:1);break;case"end":y[a]+=p*(n&&l?-1:1);break}return y}const mE=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}=Kp(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}=Kp(l,p,s)),f=-1)}return{x:c,y:d,placement:p,strategy:o,middlewareData:y}};async function qp(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}=xa(t,e),m=hE(y),w=i[p?d==="floating"?"reference":"floating":d],h=_a(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"?{x:r,y:o,width:a.floating.width,height:a.floating.height}: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=_a(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 gE=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}=xa(e,t);if((n=u.arrow)!=null&&n.alignmentOffset)return{};const h=gr(o),g=gr(i)===i,C=await(s.isRTL==null?void 0:s.isRTL(l.floating)),E=p||(g||!f?[Oa(i)]:fE(i));!p&&m!=="none"&&E.push(...pE(i,f,m,C));const B=[i,...E],x=await qp(t,w),A=[];let S=((r=u.flip)==null?void 0:r.overflows)||[];if(c&&A.push(x[h]),d){const P=cE(o,a,C);A.push(x[P[0]],x[P[1]])}if(S=[...S,{placement:o,overflows:A}],!A.every(P=>P<=0)){var N,O;const P=(((N=u.flip)==null?void 0:N.index)||0)+1,L=B[P];if(L)return{data:{index:P,overflows:S},reset:{placement:L}};let j=(O=S.filter(z=>z.overflows[0]<=0).sort((z,G)=>z.overflows[1]-G.overflows[1])[0])==null?void 0:O.placement;if(!j)switch(y){case"bestFit":{var V;const z=(V=S.map(G=>[G.placement,G.overflows.filter(T=>T>0).reduce((T,I)=>T+I,0)]).sort((G,T)=>G[1]-T[1])[0])==null?void 0:V[0];z&&(j=z);break}case"initialPlacement":j=i;break}if(o!==j)return{reset:{placement:j}}}return{}}}};async function yE(e,t){const{placement:n,platform:r,elements:o}=e,u=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=gr(n),i=Fa(n),s=Sa(n)==="y",l=["left","top"].includes(a)?-1:1,c=u&&s?-1:1,d=xa(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 DE=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 yE(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}}}}},CE=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}=xa(e,t),l={x:n,y:r},c=await qp(t,s),d=Sa(gr(o)),p=Wp(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=Vp(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=Vp(g,m,C)}const f=i.fn({...t,[p]:y,[d]:m});return{...f,data:{x:f.x-n,y:f.y-r}}}}};function yr(e){return fl(e)?(e.nodeName||"").toLowerCase():"#document"}function Ct(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Rn(e){var t;return(t=(fl(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function fl(e){return e instanceof Node||e instanceof Ct(e).Node}function nn(e){return e instanceof Element||e instanceof Ct(e).Element}function rn(e){return e instanceof HTMLElement||e instanceof Ct(e).HTMLElement}function Yp(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ct(e).ShadowRoot}function eu(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Wt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function wE(e){return["table","td","th"].includes(yr(e))}function dl(e){const t=pl(),n=Wt(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 EE(e){let t=Nn(e);for(;rn(t)&&!Zr(t);){if(dl(t))return t;t=Nn(t)}return null}function pl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Zr(e){return["html","body","#document"].includes(yr(e))}function Wt(e){return Ct(e).getComputedStyle(e)}function Pa(e){return nn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Nn(e){if(yr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Yp(e)&&e.host||Rn(e);return Yp(t)?t.host:t}function Qp(e){const t=Nn(e);return Zr(t)?e.ownerDocument?e.ownerDocument.body:e.body:rn(t)&&eu(t)?t:Qp(t)}function vl(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Qp(e),u=o===((r=e.ownerDocument)==null?void 0:r.body),a=Ct(o);return u?t.concat(a,a.visualViewport||[],eu(o)?o:[],a.frameElement&&n?vl(a.frameElement):[]):t.concat(o,vl(o,[],n))}function Gp(e){const t=Wt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=rn(e),u=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=ba(n)!==u||ba(r)!==a;return i&&(n=u,r=a),{width:n,height:r,$:i}}function Xp(e){return nn(e)?e:e.contextElement}function Jr(e){const t=Xp(e);if(!rn(t))return Tn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:u}=Gp(t);let a=(u?ba(n.width):n.width)/r,i=(u?ba(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const BE=Tn(0);function Zp(e){const t=Ct(e);return!pl()||!t.visualViewport?BE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function AE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ct(e)?!1:t}function tu(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),u=Xp(e);let a=Tn(1);t&&(r?nn(r)&&(a=Jr(r)):a=Jr(e));const i=AE(u,n,r)?Zp(u):Tn(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=Ct(u),y=r&&nn(r)?Ct(r):r;let m=p,f=m.frameElement;for(;f&&r&&y!==m;){const w=Jr(f),h=f.getBoundingClientRect(),g=Wt(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=Ct(f),f=m.frameElement}}return _a({width:c,height:d,x:s,y:l})}const bE=[":popover-open",":modal"];function hl(e){return bE.some(t=>{try{return e.matches(t)}catch{return!1}})}function xE(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const u=o==="fixed",a=Rn(r),i=t?hl(t.floating):!1;if(r===a||i&&u)return n;let s={scrollLeft:0,scrollTop:0},l=Tn(1);const c=Tn(0),d=rn(r);if((d||!d&&!u)&&((yr(r)!=="body"||eu(a))&&(s=Pa(r)),rn(r))){const p=tu(r);l=Jr(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 FE(e){return Array.from(e.getClientRects())}function Jp(e){return tu(Rn(e)).left+Pa(e).scrollLeft}function SE(e){const t=Rn(e),n=Pa(e),r=e.ownerDocument.body,o=Xr(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),u=Xr(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Jp(e);const i=-n.scrollTop;return Wt(r).direction==="rtl"&&(a+=Xr(t.clientWidth,r.clientWidth)-o),{width:o,height:u,x:a,y:i}}function OE(e,t){const n=Ct(e),r=Rn(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=pl();(!l||l&&t==="fixed")&&(i=o.offsetLeft,s=o.offsetTop)}return{width:u,height:a,x:i,y:s}}function _E(e,t){const n=tu(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,u=rn(e)?Jr(e):Tn(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 ev(e,t,n){let r;if(t==="viewport")r=OE(e,n);else if(t==="document")r=SE(Rn(e));else if(nn(t))r=_E(t,n);else{const o=Zp(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return _a(r)}function tv(e,t){const n=Nn(e);return n===t||!nn(n)||Zr(n)?!1:Wt(n).position==="fixed"||tv(n,t)}function PE(e,t){const n=t.get(e);if(n)return n;let r=vl(e,[],!1).filter(i=>nn(i)&&yr(i)!=="body"),o=null;const u=Wt(e).position==="fixed";let a=u?Nn(e):e;for(;nn(a)&&!Zr(a);){const i=Wt(a),s=dl(a);!s&&i.position==="fixed"&&(o=null),(u?!s&&!o:!s&&i.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||eu(a)&&!s&&tv(e,a))?r=r.filter(c=>c!==a):o=i,a=Nn(a)}return t.set(e,r),r}function kE(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?hl(t)?[]:PE(t,this._c):[].concat(n),r],i=a[0],s=a.reduce((l,c)=>{const d=ev(t,c,o);return l.top=Xr(d.top,l.top),l.right=ll(d.right,l.right),l.bottom=ll(d.bottom,l.bottom),l.left=Xr(d.left,l.left),l},ev(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function TE(e){const{width:t,height:n}=Gp(e);return{width:t,height:n}}function RE(e,t,n){const r=rn(t),o=Rn(t),u=n==="fixed",a=tu(e,!0,u,t);let i={scrollLeft:0,scrollTop:0};const s=Tn(0);if(r||!r&&!u)if((yr(t)!=="body"||eu(o))&&(i=Pa(t)),r){const d=tu(t,!0,u,t);s.x=d.x+t.clientLeft,s.y=d.y+t.clientTop}else o&&(s.x=Jp(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 ml(e){return Wt(e).position==="static"}function nv(e,t){return!rn(e)||Wt(e).position==="fixed"?null:t?t(e):e.offsetParent}function rv(e,t){const n=Ct(e);if(hl(e))return n;if(!rn(e)){let o=Nn(e);for(;o&&!Zr(o);){if(nn(o)&&!ml(o))return o;o=Nn(o)}return n}let r=nv(e,t);for(;r&&wE(r)&&ml(r);)r=nv(r,t);return r&&Zr(r)&&ml(r)&&!dl(r)?n:r||EE(e)||n}const NE=async function(e){const t=this.getOffsetParent||rv,n=this.getDimensions,r=await n(e.floating);return{reference:RE(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function jE(e){return Wt(e).direction==="rtl"}const IE={convertOffsetParentRelativeRectToViewportRelativeRect:xE,getDocumentElement:Rn,getClippingRect:kE,getOffsetParent:rv,getElementRects:NE,getClientRects:FE,getDimensions:TE,getScale:Jr,isElement:nn,isRTL:jE},ME=DE,$E=CE,LE=gE,zE=(e,t,n)=>{const r=new Map,o={platform:IE,...n},u={...o.platform,_c:r};return mE(e,t,{...o,platform:u})},VE=Da({type:String,values:VC,required:!1}),WE=Symbol("size"),UE=Ot({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>Vo(e)?!e():!e}}),HE=Ot({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),ov=e=>LC(HE,e),uv=Symbol(),ka=v.ref();function KE(e,t=void 0){return v.getCurrentInstance()?v.inject(uv,ka):ka}const qE=(e,t,n=!1)=>{var r;const o=!!v.getCurrentInstance(),u=o?KE():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?YE(u.value,s):s});return a(uv,i),a(WC,v.computed(()=>i.value.locale)),a(lp,v.computed(()=>i.value.namespace)),a(zp,v.computed(()=>i.value.zIndex)),a(WE,{size:v.computed(()=>i.value.size||"")}),(n||!ka.value)&&(ka.value=i.value),i},YE=(e,t)=>{const n=[...new Set([...ip(e),...ip(t)])],r={};for(const o of n)r[o]=t[o]!==void 0?t[o]:e[o];return r},QE=Ot({a11y:{type:Boolean,default:!0},locale:{type:De(Object)},size:VE,button:{type:De(Object)},experimentalFeatures:{type:De(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:De(Object)},zIndex:Number,namespace:{type:String,default:"el"},...UE}),GE={},XE=v.defineComponent({name:"ElConfigProvider",props:QE,setup(e,{slots:t}){v.watch(()=>e.message,r=>{Object.assign(GE,r??{})},{immediate:!0,deep:!0});const n=qE(e);return()=>v.renderSlot(t,"default",{config:n==null?void 0:n.value})}}),ZE=Gs(XE);var jn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n};const av=Symbol("formItemContextKey"),gl=Symbol("popper"),iv=Symbol("popperContent"),sv=Ot({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),JE=v.defineComponent({name:"ElPopper",inheritAttrs:!1}),eB=v.defineComponent({...JE,props:sv,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(gl,s),(l,c)=>v.renderSlot(l.$slots,"default")}});var tB=jn(eB,[["__file","popper.vue"]]);const lv=Ot({arrowOffset:{type:Number,default:5}}),nB=v.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),rB=v.defineComponent({...nB,props:lv,setup(e,{expose:t}){const n=e,r=Ko("popper"),{arrowOffset:o,arrowRef:u,arrowStyle:a}=v.inject(iv,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 oB=jn(rB,[["__file","arrow.vue"]]);const uB=v.defineComponent({name:"ElOnlyChild",setup(e,{slots:t,attrs:n}){var r;const o=v.inject(Ip),u=uE((r=o==null?void 0:o.setForwardRef)!=null?r:Ms);return()=>{var a;const i=(a=t.default)==null?void 0:a.call(t,n);if(!i||i.length>1)return null;const s=cv(i);return s?v.withDirectives(v.cloneVNode(s,n),[[u]]):null}}});function cv(e){if(!e)return null;const t=e;for(const n of t){if($s(n))switch(n.type){case v.Comment:continue;case v.Text:case"svg":return fv(n);case v.Fragment:return cv(n.children);default:return n}return fv(n)}return null}function fv(e){const t=Ko("only-child");return v.createVNode("span",{class:t.e("content")},[e])}const dv=Ot({virtualRef:{type:De(Object)},virtualTriggering:Boolean,onMouseenter:{type:De(Function)},onMouseleave:{type:De(Function)},onClick:{type:De(Function)},onKeydown:{type:De(Function)},onFocus:{type:De(Function)},onBlur:{type:De(Function)},onContextmenu:{type:De(Function)},id:String,open:Boolean}),aB=v.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),iB=v.defineComponent({...aB,props:dv,setup(e,{expose:t}){const n=e,{role:r,triggerRef:o}=v.inject(gl,void 0);oE(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=dr(c))},{immediate:!0}),v.watch(o,(c,d)=>{l==null||l(),l=void 0,ya(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})),ya(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(uB),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 sB=jn(iB,[["__file","trigger.vue"]]);const yl="focus-trap.focus-after-trapped",Dl="focus-trap.focus-after-released",lB="focus-trap.focusout-prevented",pv={cancelable:!0,bubbles:!1},cB={cancelable:!0,bubbles:!1},vv="focusAfterTrapped",hv="focusAfterReleased",fB=Symbol("elFocusTrap"),Cl=v.ref(),Ta=v.ref(0),wl=v.ref(0);let Ra=0;const mv=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},gv=(e,t)=>{for(const n of e)if(!dB(n,t))return n},dB=(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},pB=e=>{const t=mv(e),n=gv(t,e),r=gv(t.reverse(),e);return[n,r]},vB=e=>e instanceof HTMLInputElement&&"select"in e,In=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),wl.value=window.performance.now(),e!==n&&vB(e)&&t&&e.select()}};function yv(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const hB=()=>{let e=[];return{push:r=>{const o=e[0];o&&r!==o&&o.pause(),e=yv(e,r),e.unshift(r)},remove:r=>{var o,u;e=yv(e,r),(u=(o=e[0])==null?void 0:o.resume)==null||u.call(o)}}},mB=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(In(r,t),document.activeElement!==n)return},Dv=hB(),gB=()=>Ta.value>wl.value,Na=()=>{Cl.value="pointer",Ta.value=window.performance.now()},Cv=()=>{Cl.value="keyboard",Ta.value=window.performance.now()},yB=()=>(v.onMounted(()=>{Ra===0&&(document.addEventListener("mousedown",Na),document.addEventListener("touchstart",Na),document.addEventListener("keydown",Cv)),Ra++}),v.onBeforeUnmount(()=>{Ra--,Ra<=0&&(document.removeEventListener("mousedown",Na),document.removeEventListener("touchstart",Na),document.removeEventListener("keydown",Cv))}),{focusReason:Cl,lastUserFocusTimestamp:Ta,lastAutomatedFocusTimestamp:wl}),ja=e=>new CustomEvent(lB,{...cB,detail:e}),DB=v.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[vv,hv,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=v.ref();let r,o;const{focusReason:u}=yB();Jw(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===Ca.tab&&!w&&!h&&!g,A=document.activeElement;if(x&&A){const S=C,[N,O]=pB(S);if(N&&O){if(!E&&A===O){const P=ja({focusReason:u.value});t("focusout-prevented",P),P.defaultPrevented||(m.preventDefault(),B&&In(N,!0))}else if(E&&[N,S].includes(A)){const P=ja({focusReason:u.value});t("focusout-prevented",P),P.defaultPrevented||(m.preventDefault(),B&&In(O,!0))}}else if(A===S){const P=ja({focusReason:u.value});t("focusout-prevented",P),P.defaultPrevented||m.preventDefault()}}};v.provide(fB,{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(vv,m)},l=m=>t(hv,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:In(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=ja({focusReason:u.value});t("focusout-prevented",h),h.defaultPrevented||In(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){Dv.push(a);const f=m.contains(document.activeElement)?r:document.activeElement;if(r=f,!m.contains(f)){const h=new Event(yl,pv);m.addEventListener(yl,s),m.dispatchEvent(h),h.defaultPrevented||v.nextTick(()=>{let g=e.focusStartEl;K1(g)||(In(g),document.activeElement!==g&&(g="first")),g==="first"&&mB(mv(m),!0),(document.activeElement===f||g==="container")&&In(m)})}}}function y(){const m=v.unref(n);if(m){m.removeEventListener(yl,s);const f=new CustomEvent(Dl,{...pv,detail:{focusReason:u.value}});m.addEventListener(Dl,l),m.dispatchEvent(f),!f.defaultPrevented&&(u.value=="keyboard"||!gB()||m.contains(document.activeElement))&&In(r??document.body),m.removeEventListener(Dl,l),Dv.remove(a)}}return v.onMounted(()=>{e.trapped&&p(),v.watch(()=>e.trapped,m=>{m?p():y()})}),v.onBeforeUnmount(()=>{e.trapped&&y()}),{onKeydown:i}}});function CB(e,t,n,r,o,u){return v.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var wB=jn(DB,[["render",CB],["__file","focus-trap.vue"]]);const EB=["fixed","absolute"],BB=Ot({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:De(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:el,default:"bottom"},popperOptions:{type:De(Object),default:()=>({})},strategy:{type:String,values:EB,default:"absolute"}}),wv=Ot({...BB,id:String,style:{type:De([String,Array,Object])},className:{type:De([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:De([String,Array,Object])},popperStyle:{type:De([String,Array,Object])},referenceEl:{type:De(Object)},triggerTargetEl:{type:De(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...ov(["ariaLabel"])}),AB={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},bB=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:o}=e,u={placement:n,strategy:r,...o,modifiers:[...FB(e),...t]};return SB(u,o==null?void 0:o.modifiers),u},xB=e=>{if(Jt)return dr(e)};function FB(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 SB(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const OB=0,_B=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:o}=v.inject(gl,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:OB;return{name:"arrow",enabled:!jC(g),options:{element:g,padding:C}}}),l=v.computed(()=>({onFirstUpdate:()=>{m()},...bB(e,[v.unref(s),v.unref(i)])})),c=v.computed(()=>xB(e.referenceEl)||v.unref(r)),{attributes:d,state:p,styles:y,update:m,forceUpdate:f,instanceRef:w}=Qw(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}},PB=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:o}=iE(),u=Ko("popper"),a=v.computed(()=>v.unref(t).popper),i=v.ref(ga(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=ga(e.zIndex)?e.zIndex:o()}}},kB=(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")}}},TB=v.defineComponent({name:"ElPopperContent"}),RB=v.defineComponent({...TB,props:wv,emits:AB,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:o,trapped:u,onFocusAfterReleased:a,onFocusAfterTrapped:i,onFocusInTrap:s,onFocusoutPrevented:l,onReleaseRequested:c}=kB(r,n),{attributes:d,arrowRef:p,contentRef:y,styles:m,instanceRef:f,role:w,update:h}=_B(r),{ariaModal:g,arrowStyle:C,contentAttrs:E,contentClass:B,contentStyle:x,updateZIndex:A}=PB(r,{styles:m,attributes:d,role:w}),S=v.inject(av,void 0),N=v.ref();v.provide(iv,{arrowStyle:C,arrowRef:p,arrowOffset:N}),S&&v.provide(av,{...S,addInputId:Ms,removeInputId:Ms});let O;const V=(L=!0)=>{h(),L&&A()},P=()=>{V(!1),r.visible&&r.focusOnShow?u.value=!0:r.visible===!1&&(u.value=!1)};return v.onMounted(()=>{v.watch(()=>r.triggerTargetEl,(L,j)=>{O==null||O(),O=void 0;const z=v.unref(L||y.value),G=v.unref(j||y.value);ya(z)&&(O=v.watch([w,()=>r.ariaLabel,g,()=>r.id],T=>{["role","aria-label","aria-modal","id"].forEach((I,K)=>{Qs(T[K])?z.removeAttribute(I):z.setAttribute(I,T[K])})},{immediate:!0})),G!==z&&ya(G)&&["role","aria-label","aria-modal","id"].forEach(T=>{G.removeAttribute(T)})},{immediate:!0}),v.watch(()=>r.visible,P,{immediate:!0})}),v.onBeforeUnmount(()=>{O==null||O(),O=void 0}),t({popperContentRef:y,popperInstanceRef:f,updatePopper:V,contentStyle:x}),(L,j)=>(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:j[0]||(j[0]=z=>L.$emit("mouseenter",z)),onMouseleave:j[1]||(j[1]=z=>L.$emit("mouseleave",z))}),[v.createVNode(v.unref(wB),{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(L.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var NB=jn(RB,[["__file","content.vue"]]);const jB=Gs(tB),El=Symbol("elTooltip"),Ev=Ot({...nE,...wv,appendTo:{type:De([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,visible:{type:De(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...ov(["ariaLabel"])}),Bv=Ot({...dv,disabled:Boolean,trigger:{type:De([String,Array]),default:"hover"},triggerKeys:{type:De(Array),default:()=>[Ca.enter,Ca.space]}}),{useModelToggleProps:IB,useModelToggleEmits:MB,useModelToggle:$B}=cp("visible"),LB=Ot({...sv,...IB,...Ev,...Bv,...lv,showArrow:{type:Boolean,default:!0}}),zB=[...MB,"before-show","before-hide","show","hide","open","close"],VB=(e,t)=>H1(e)?e.includes(t):e===t,eo=(e,t,n)=>r=>{VB(v.unref(e),t)&&n(r)},WB=v.defineComponent({name:"ElTooltipTrigger"}),UB=v.defineComponent({...WB,props:Bv,setup(e,{expose:t}){const n=e,r=Ko("tooltip"),{controlled:o,id:u,open:a,onOpen:i,onClose:s,onToggle:l}=v.inject(El,void 0),c=v.ref(null),d=()=>{if(v.unref(o)||n.disabled)return!0},p=v.toRef(n,"trigger"),y=vn(d,eo(p,"hover",i)),m=vn(d,eo(p,"hover",s)),f=vn(d,eo(p,"click",E=>{E.button===0&&l(E)})),w=vn(d,eo(p,"focus",i)),h=vn(d,eo(p,"focus",s)),g=vn(d,eo(p,"contextmenu",E=>{E.preventDefault(),l(E)})),C=vn(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(sB),{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 HB=jn(UB,[["__file","trigger.vue"]]);const KB=v.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),qB=v.defineComponent({...KB,props:Ev,setup(e,{expose:t}){const n=e,{selector:r}=jp(),o=Ko("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(El,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 T;return(T=n.style)!=null?T:{}}),A=v.computed(()=>!v.unref(l)),S=()=>{m()},N=()=>{if(v.unref(i))return!0},O=vn(N,()=>{n.enterable&&v.unref(c)==="hover"&&p()}),V=vn(N,()=>{v.unref(c)==="hover"&&d()}),P=()=>{var T,I;(I=(T=u.value)==null?void 0:T.updatePopper)==null||I.call(T),f==null||f()},L=()=>{w==null||w()},j=()=>{y(),G=$1(v.computed(()=>{var T;return(T=u.value)==null?void 0:T.popperContentRef}),()=>{if(v.unref(i))return;v.unref(c)!=="hover"&&d()})},z=()=>{n.virtualTriggering||d()};let G;return v.watch(()=>v.unref(l),T=>{T||G==null||G()},{flush:"post"}),v.watch(()=>n.content,()=>{var T,I;(I=(T=u.value)==null?void 0:T.updatePopper)==null||I.call(T)}),t({contentRef:u}),(T,I)=>(v.openBlock(),v.createBlock(v.Teleport,{disabled:!T.teleported,to:v.unref(B)},[v.createVNode(v.Transition,{name:v.unref(h),onAfterLeave:S,onBeforeEnter:P,onAfterEnter:j,onBeforeLeave:L},{default:v.withCtx(()=>[v.unref(C)?v.withDirectives((v.openBlock(),v.createBlock(v.unref(NB),v.mergeProps({key:0,id:v.unref(s),ref_key:"contentRef",ref:u},T.$attrs,{"aria-label":T.ariaLabel,"aria-hidden":v.unref(A),"boundaries-padding":T.boundariesPadding,"fallback-placements":T.fallbackPlacements,"gpu-acceleration":T.gpuAcceleration,offset:T.offset,placement:T.placement,"popper-options":T.popperOptions,strategy:T.strategy,effect:T.effect,enterable:T.enterable,pure:T.pure,"popper-class":T.popperClass,"popper-style":[T.popperStyle,v.unref(x)],"reference-el":T.referenceEl,"trigger-target-el":T.triggerTargetEl,visible:v.unref(E),"z-index":T.zIndex,onMouseenter:v.unref(O),onMouseleave:v.unref(V),onBlur:z,onClose:v.unref(d)}),{default:v.withCtx(()=>[a.value?v.createCommentVNode("v-if",!0):v.renderSlot(T.$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 YB=jn(qB,[["__file","content.vue"]]);const QB=["innerHTML"],GB={key:1},XB=v.defineComponent({name:"ElTooltip"}),ZB=v.defineComponent({...XB,props:LB,emits:zB,setup(e,{expose:t,emit:n}){const r=e;tE();const o=Zw(),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}=rE({showAfter:v.toRef(r,"showAfter"),hideAfter:v.toRef(r,"hideAfter"),autoClose:v.toRef(r,"autoClose"),open:c,close:d}),f=v.computed(()=>ap(r.visible)&&!p.value);v.provide(El,{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(jB),{ref_key:"popperRef",ref:u,role:h.role},{default:v.withCtx(()=>[v.createVNode(HB,{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(YB,{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,QB)):(v.openBlock(),v.createElementBlock("span",GB,v.toDisplayString(h.content),1))]),h.showArrow?(v.openBlock(),v.createBlock(v.unref(oB),{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 JB=jn(ZB,[["__file","tooltip.vue"]]);const eA=Gs(JB);var Ia=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const tA={viewBox:"0 0 24 24",width:"1em",height:"1em"},nA=[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 rA(e,t){return v.openBlock(),v.createElementBlock("svg",tA,[...nA])}const oA={name:"iconoir-underline",render:rA},uA={viewBox:"0 0 24 24",width:"1em",height:"1em"},aA=[v.createElementVNode("path",{fill:"currentColor",d:"M15 20H7v-2h2.927l2.116-12H9V4h8v2h-2.927l-2.116 12H15z"},null,-1)];function iA(e,t){return v.openBlock(),v.createElementBlock("svg",uA,[...aA])}const sA={name:"ri-italic",render:iA},lA={viewBox:"0 0 20 20",width:"1em",height:"1em"},cA=[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 fA(e,t){return v.openBlock(),v.createElementBlock("svg",lA,[...cA])}const dA={name:"fluent-text-strikethrough20-filled",render:fA},pA={viewBox:"0 0 24 24",width:"1em",height:"1em"},vA=[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 hA(e,t){return v.openBlock(),v.createElementBlock("svg",pA,[...vA])}const mA={name:"iconoir-bold",render:hA};function gA(e){return e!=null&&typeof e=="object"&&"$el"in e}function Av(e){if(gA(e)){const t=e.$el;return fl(t)&&yr(t)==="#comment"?null:t}return e}function bv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xv(e,t){const n=bv(e);return Math.round(t*n)/n}function yA(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(()=>Av(e.value)),c=v.computed(()=>Av(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=xv(c.value,d.value),N=xv(c.value,p.value);return s.value?{...A,transform:"translate("+S+"px, "+N+"px)",...bv(c.value)>=1.5&&{willChange:"transform"}}:{position:y.value,left:S+"px",top:N+"px"}});let g;function C(){l.value==null||c.value==null||zE(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 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 DA(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 Ma(e){return v.getCurrentScope()?(v.onScopeDispose(e),!0):!1}function Bl(){const e=new Set,t=o=>{e.delete(o)};return{on:o=>{e.add(o);const u=()=>t(o);return Ma(u),{off:u}},off:t,trigger:(...o)=>Promise.all(Array.from(e).map(u=>u(...o)))}}function CA(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))),Ma(o),n)}function ru(e){return typeof e=="function"?e():v.unref(e)}const wA=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const EA=e=>e!=null,BA=Object.prototype.toString,AA=e=>BA.call(e)==="[object Object]",bA=()=>{};function xA(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 FA=e=>e();function SA(e,t,n={}){const{eventFilter:r=FA,...o}=n,u=xA(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 OA(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=SA(e,a,n),{ignoreUpdates:s}=i;return{...i,trigger:()=>{let c;return s(()=>{c=a(_A(e),PA(e))}),c}}}function _A(e){return v.isReactive(e)?e:Array.isArray(e)?e.map(t=>ru(t)):ru(e)}function PA(e){return Array.isArray(e)?e.map(()=>{}):void 0}function $a(e){var t;const n=ru(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ou=wA?window:void 0;function Xe(...e){let t,n,r,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,o]=e,t=ou):[t,n,r,o]=e,!t)return bA;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(()=>[$a(t),ru(o)],([c,d])=>{if(a(),!c)return;const p=AA(d)?{...d}:d;u.push(...n.flatMap(y=>r.map(m=>i(c,y,m,p))))},{immediate:!0,flush:"post"}),l=()=>{s(),a()};return Ma(l),l}function kA(){const e=v.ref(!1),t=v.getCurrentInstance();return t&&v.onMounted(()=>{e.value=!0},t),e}function TA(e){const t=kA();return v.computed(()=>(t.value,!!e()))}function Fv(e,t,n={}){const{window:r=ou,...o}=n;let u;const a=TA(()=>r&&"MutationObserver"in r),i=()=>{u&&(u.disconnect(),u=void 0)},s=v.computed(()=>{const p=ru(e),y=(Array.isArray(p)?p:[p]).map($a).filter(EA);return new Set(y)}),l=v.watch(()=>s.value,p=>{i(),a.value&&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 Ma(d),{isSupported:a,stop:d,takeRecords:c}}function RA(e={}){var t;const{window:n=ou,deep:r=!0,triggerOnRemoval:o=!1}=e,u=(t=e.document)!=null?t:n==null?void 0:n.document,a=()=>{var l;let c=u==null?void 0:u.activeElement;if(r)for(;c!=null&&c.shadowRoot;)c=(l=c==null?void 0:c.shadowRoot)==null?void 0:l.activeElement;return c},i=v.ref(),s=()=>{i.value=a()};return n&&(Xe(n,"blur",l=>{l.relatedTarget===null&&s()},!0),Xe(n,"focus",s,!0)),o&&Fv(u,l=>{l.filter(c=>c.removedNodes.length).map(c=>Array.from(c.removedNodes)).flat().forEach(c=>{c===i.value&&s()})},{childList:!0,subtree:!0}),s(),i}function La(e){const t=v.getCurrentInstance(),n=DA(()=>null,()=>t.proxy.$el);return v.onUpdated(n.trigger),v.onMounted(n.trigger),n}function NA(e,t={}){const{delayEnter:n=0,delayLeave:r=0,window:o=ou}=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&&(Xe(e,"mouseenter",()=>i(!0),{passive:!0}),Xe(e,"mouseleave",()=>i(!1),{passive:!0})),u}function jA(e,t={}){const n=RA(t),r=v.computed(()=>$a(e));return{focused:v.computed(()=>r.value&&n.value?r.value.contains(n.value):!1)}}function IA(e={}){const{touch:t=!0,drag:n=!0,capture:r=!1,initialValue:o=!1,window:u=ou}=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(()=>$a(e.target)||u);return Xe(c,"mousedown",s("mouse"),{passive:!0,capture:r}),Xe(u,"mouseleave",l,{passive:!0,capture:r}),Xe(u,"mouseup",l,{passive:!0,capture:r}),n&&(Xe(c,"dragstart",s("mouse"),{passive:!0,capture:r}),Xe(u,"drop",l,{passive:!0,capture:r}),Xe(u,"dragend",l,{passive:!0,capture:r})),t&&(Xe(c,"touchstart",s("touch"),{passive:!0,capture:r}),Xe(u,"touchend",l,{passive:!0,capture:r}),Xe(u,"touchcancel",l,{passive:!0,capture:r})),{pressed:a,sourceType:i}}const za=v.ref(),Va=v.ref(),MA=Bl(),Sv=Bl();function Wa(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function $A(){return String.fromCharCode(Wa(97,122))}function LA(){return String.fromCharCode(Wa(65,90))}function Ov(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?Wa(0,a-1):0,l=u[s];l==="l"?i+=$A():l==="u"?i+=LA():l==="n"&&(i+=Wa(0,9))}return i}function zA(){return Ov(1,{uppercase:!0})+Ov(17,{uppercase:!0,number:!0})}const VA=typeof window<"u";function WA(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 UA(e,t,n){return WA(e,t,{...n,immediate:!0})}const _v=CA(()=>{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=Bl();return UA(Va,()=>{Xe(window.document,"selectionchange",()=>{e.value=null,e.value=Va.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 xv(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ue(e){var t,n;return xv(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(xv(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}var Fv=Symbol.for("immer-nothing"),Sv=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 Jr=Object.getPrototypeOf;function mr(e){return!!e&&!!e[Dt]}function gr(e){var t;return e?Ov(e)||Array.isArray(e)||!!e[Sv]||!!((t=e.constructor)!=null&&t[Sv])||Ua(e)||Ha(e):!1}var $b=Object.prototype.constructor.toString();function Ov(e){if(!e||typeof e!="object")return!1;const t=Jr(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)===$b}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 El(e,t){return Wa(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function _v(e,t,n){const r=Wa(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function Lb(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 yr(e){return e.copy_||e.base_}function Bl(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);const n=Ov(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Dt];let o=Reflect.ownKeys(r);for(let u=0;u<o.length;u++){const a=o[u],i=r[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Jr(e),r)}else{const r=Jr(e);if(r!==null&&n)return{...e};const o=Object.create(r);return Object.assign(o,e)}}function bl(e,t=!1){return Ka(e)||mr(e)||!gr(e)||(Wa(e)>1&&(e.set=e.add=e.clear=e.delete=zb),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>bl(r,!0))),e}function zb(){Ut(2)}function Ka(e){return Object.isFrozen(e)}var Vb={};function Dr(e){const t=Vb[e];return t||Ut(0,e),t}var ru;function Pv(){return ru}function Wb(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function kv(e,t){t&&(Dr("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Al(e){xl(e),e.drafts_.forEach(Ub),e.drafts_=null}function xl(e){e===ru&&(ru=e.parent_)}function Tv(e){return ru=Wb(ru,e)}function Ub(e){const t=e[Dt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Rv(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Dt].modified_&&(Al(t),Ut(4)),gr(e)&&(e=qa(t,e),t.parent_||Ya(t,e)),t.patches_&&Dr("Patches").generateReplacementPatches_(n[Dt].base_,e,t.patches_,t.inversePatches_)):e=qa(t,n,[]),Al(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Fv?e:void 0}function qa(e,t,n){if(Ka(t))return t;const r=t[Dt];if(!r)return Va(t,(o,u)=>Nv(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)=>Nv(e,r,o,i,s,n,a)),Ya(e,o,!1),n&&e.patches_&&Dr("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Nv(e,t,n,r,o,u,a){if(mr(o)){const i=u&&t&&t.type_!==3&&!El(t.assigned_,r)?u.concat(r):void 0,s=qa(e,o,i);if(_v(n,r,s),mr(s))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(gr(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_&&bl(t,n)}function Hb(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Pv(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,u=Fl;n&&(o=[r],u=ou);const{revoke:a,proxy:i}=Proxy.revocable(o,u);return r.draft_=i,r.revoke_=a,i}var Fl={get(e,t){if(t===Dt)return e;const n=yr(e);if(!El(n,t))return Kb(e,n,t);const r=n[t];return e.finalized_||!gr(r)?r:r===Sl(e.base_,t)?(_l(e),e.copy_[t]=Pl(r,e)):r},has(e,t){return t in yr(e)},ownKeys(e){return Reflect.ownKeys(yr(e))},set(e,t,n){const r=jv(yr(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=Sl(yr(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(Lb(n,o)&&(n!==void 0||El(e.base_,t)))return!0;_l(e),Ol(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 Sl(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,_l(e),Ol(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=yr(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 Jr(e.base_)},setPrototypeOf(){Ut(12)}},ou={};Va(Fl,(e,t)=>{ou[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),ou.deleteProperty=function(e,t){return ou.set.call(this,e,t,void 0)},ou.set=function(e,t,n){return Fl.set.call(this,e[0],t,n,e[0])};function Sl(e,t){const n=e[Dt];return(n?yr(n):e)[t]}function Kb(e,t,n){var o;const r=jv(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function jv(e,t){if(!(t in e))return;let n=Jr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Jr(n)}}function Ol(e){e.modified_||(e.modified_=!0,e.parent_&&Ol(e.parent_))}function _l(e){e.copy_||(e.copy_=Bl(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var qb=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(gr(t)){const u=Tv(this),a=Pl(t,void 0);let i=!0;try{o=n(a),i=!1}finally{i?Al(u):xl(u)}return kv(u,r),Rv(o,u)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===Fv&&(o=void 0),this.autoFreeze_&&bl(o,!0),r){const u=[],a=[];Dr("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){gr(e)||Ut(8),mr(e)&&(e=Yb(e));const t=Tv(this),n=Pl(e,void 0);return n[Dt].isManual_=!0,xl(t),n}finishDraft(e,t){const n=e&&e[Dt];(!n||!n.isManual_)&&Ut(9);const{scope_:r}=n;return kv(r,t),Rv(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=Dr("Patches").applyPatches_;return mr(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Pl(e,t){const n=Ua(e)?Dr("MapSet").proxyMap_(e,t):Ha(e)?Dr("MapSet").proxySet_(e,t):Hb(e,t);return(t?t.scope_:Pv()).drafts_.push(n),n}function Yb(e){return mr(e)||Ut(10,e),Iv(e)}function Iv(e){if(!gr(e)||Ka(e))return e;const t=e[Dt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Bl(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Bl(e,!0);return Va(n,(r,o)=>{_v(n,r,Iv(o))}),t&&(t.finalized_=!1),n}var Ct=new qb,kl=Ct.produce;Ct.produceWithPatches.bind(Ct),Ct.setAutoFreeze.bind(Ct),Ct.setUseStrictShallowCopy.bind(Ct),Ct.applyPatches.bind(Ct);var Mv=Ct.createDraft.bind(Ct),$v=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()}}},Gb={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()}}},Xb={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,uu=new WeakMap,Lv=new WeakMap,zv=new WeakMap,Vv=new WeakMap,Wv=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 au(e){"@babel/helpers - typeof";return au=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},au(e)}function Zb(e,t){if(au(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(au(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jb(e){var t=Zb(e,"string");return au(t)==="symbol"?t:String(t)}function tt(e,t,n){return t=Jb(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uv(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 iu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var eA=(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:k,newPath:O}=n;if(A.isAncestor(k,O))throw new Error("Cannot move a path [".concat(k,"] to new path [").concat(O,"] because the destination is inside itself."));var H=q.get(e,k),P=q.parent(e,k),W=k[k.length-1];P.children.splice(W,1);var $=A.transform(k,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:zt,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 Pe in zt)_e.hasOwnProperty(Pe)||delete et[Pe];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=iu({},Ne)}for(var mt in Ne){var $r=Ne[mt];if($r==null){if(mt==="anchor"||mt==="focus")throw new Error('Cannot remove the "'.concat(mt,'" selection property'));delete t[mt]}else t[mt]=$r}}break}case"split_node":{var{path:gt,position:Lr,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 zr=q.get(e,gt),sk=q.parent(e,gt),lk=gt[gt.length-1],_d;if(Z.isText(zr)){var ck=zr.text.slice(0,Lr),fk=zr.text.slice(Lr);zr.text=ck,_d=iu(iu({},Rs),{},{text:fk})}else{var dk=zr.children.slice(0,Lr),pk=zr.children.slice(Lr);zr.children=dk,_d=iu(iu({},Rs),{},{children:pk})}if(sk.children.splice(lk+1,0,_d),t)for(var[vk,hk]of _.points(t))t[hk]=ae.transform(vk,n);break}}return t},tA={transform(e,t){e.children=Mv(e.children);var n=e.selection&&Mv(e.selection);try{n=eA(e,n,t)}finally{e.children=$v(e.children),n?e.selection=mr(n)?$v(n):n:e.selection=null}}},nA={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)}},rA={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)}},Hv=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Ue(r)&&Ue(o)){if(!Hv(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 oA(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 vn(e,t){if(e==null)return{};var n=oA(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 uA=["anchor","focus"];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 aA(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 _={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=vn(e,uA),[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:aA({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 kl(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})}},qv=e=>Ue(e)&&q.isNodeList(e.children)&&!D.isEditor(e),X={isAncestor(e){return Ue(e)&&q.isNodeList(e.children)},isElement:qv,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 qv(t)&&t[r]===n},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},iA=["children"],sA=["text"],Yv=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=vn(e,iA);return t}else{var t=vn(e,sA);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=kl({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=Yv.get(e);if(t!==void 0)return t;var n=e.every(r=>q.isNode(r));return Yv.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 Qv(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?Qv(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qv(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)})}}},Gv=new WeakMap,lA=e=>{var t=Gv.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 Gv.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 lA(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)},cA={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(A.isPath)}};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 Zv(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 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 kl(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,Zv(Zv({},n),{},{affinity:"forward"})))}else r.path=A.transform(u,t,n);break}}})}},Jv=void 0,ze={setScrubber(e){Jv=e},stringify(e){return JSON.stringify(e,Jv)}},fA=["text"],dA=["anchor","focus"];function eh(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 hn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eh(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eh(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=vn(u,fA);return a}return Hv(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=[hn({},e)];for(var r of t){var o=vn(r,dA),[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=hn(hn({},m),{},{text:m.text.slice(h)}),m=hn(hn({},m),{},{text:m.text.slice(0,h)})}if(l>y){var g=l-y;f=hn(hn({},m),{},{text:m.text.slice(0,g)}),m=hn(hn({},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}},Tl=e=>e.selection?e.selection:e.children.length>0?D.end(e,[]):[0],eo=(e,t)=>{var[n]=D.node(e,t);return r=>r===n},Rl=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=!n,o=n?yA(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=_A(c,d);if([u,a]=r?[a,p]:[p,u],to(u,ue.ZWJ)&&to(a,ue.ExtPict)&&(r?s=th(t.substring(0,i)):s=th(t.substring(0,t.length-i)),!s)||to(u,ue.RI)&&to(a,ue.RI)&&(l!==null?l=!l:r?l=!0:l=NA(t.substring(0,t.length-i)),!l)||u!==ue.None&&a!==ue.None&&kA(u,a))break;i+=c.length}return i||1},pA=/\s/,vA=/[\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]/,hA=/['\u2018\u2019]/,mA=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=0,o=!1;t.length>0;){var u=Rl(t,n),[a,i]=Nl(t,u,n);if(gA(a,i,n))o=!0,r+=u;else if(!o)r+=u;else break;t=i}return r},Nl=(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)]},gA=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(pA.test(t))return!1;if(hA.test(t)){var o=Rl(n,r),[u,a]=Nl(n,o,r);if(e(u,a,r))return!0}return!vA.test(t)},yA=function*(t){for(var n=t.length-1,r=0;r<t.length;r++){var o=t.charAt(n-r);if(CA(o.charCodeAt(0))){var u=t.charAt(n-r-1);if(DA(u.charCodeAt(0))){yield u+o,r++;continue}}yield o}},DA=e=>e>=55296&&e<=56319,CA=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 wA=/^(?:[\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])$/,EA=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,BA=/^(?:[\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])$/,bA=/^[\u1100-\u115F\uA960-\uA97C]$/,AA=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,xA=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,FA=/^[\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]$/,SA=/^[\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]$/,OA=/^(?:[\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])$/,_A=(e,t)=>{var n=ue.Any;return e.search(wA)!==-1&&(n|=ue.Extend),t===8205&&(n|=ue.ZWJ),t>=127462&&t<=127487&&(n|=ue.RI),e.search(EA)!==-1&&(n|=ue.Prepend),e.search(BA)!==-1&&(n|=ue.SpacingMark),e.search(bA)!==-1&&(n|=ue.L),e.search(AA)!==-1&&(n|=ue.V),e.search(xA)!==-1&&(n|=ue.T),e.search(FA)!==-1&&(n|=ue.LV),e.search(SA)!==-1&&(n|=ue.LVT),e.search(OA)!==-1&&(n|=ue.ExtPict),n};function to(e,t){return(e&t)!==0}var PA=[[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 kA(e,t){return PA.findIndex(n=>to(e,n[0])&&to(t,n[1]))===-1}var TA=/(?:[\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$/,th=e=>e.search(TA)!==-1,RA=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,NA=e=>{var t=e.match(RA);if(t===null)return!1;var n=t[0].length/2;return n%2===1},jA={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=Tl(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 nh(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?nh(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var I=Xa(Xa(Xa(Xa({},tA),nA),rA),jA),Za=new WeakMap,IA=e=>Za.get(e)||!1,MA=(e,t,n)=>{var r=Za.get(e)||!1;Za.set(e,!0);try{t(),n()}finally{Za.set(e,r)}};function rh(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 $A=(e,t)=>{for(var n of D.pathRefs(e))Qb.transform(n,t);for(var r of D.pointRefs(e))Gb.transform(r,t);for(var o of D.rangeRefs(e))Xb.transform(o,t);if(!IA(e)){var u=A.operationCanTransformPath(t)?a=>A.transform(a,t):void 0;rh(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),uu.get(e)||(uu.set(e,!0),Promise.resolve().then(()=>{uu.set(e,!1),e.onChange({operation:t}),e.operations=[]}))},LA=(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),k=A.next(b);return[...S,k]}default:return[]}},zA=e=>{var{selection:t}=e;return t?q.fragment(e,t):[]},VA=(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--))}}}}},WA=(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},UA=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 oh(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 uh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oh(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var HA=(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=uh(uh({},D.marks(e)||{}),{},{[t]:n});e.marks=c,uu.get(e)||e.onChange()}}};function ah(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 ih(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ah(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ah(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var KA=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,ih(ih({},r),{},{at:a}))){if(s>i)break;s!==0&&(l=c),s++}return l};function sh(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 lh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sh(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var qA=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,lh(lh({},r),{},{at:a,reverse:!0}))){if(s>i)break;s!==0&&(l=c),s++}return l},YA=(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})},GA=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"})},XA=(e,t)=>[D.start(e,t),D.end(e,t)];function ch(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 fh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ch(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ch(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ZA=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return D.above(t,fh(fh({},n),{},{match:r=>X.isElement(r)&&D.isElementReadOnly(t,r)}))},JA=(e,t)=>D.point(e,t,{edge:"end"}),e2=(e,t)=>{var n=D.path(e,t,{edge:"start"});return D.node(e,n)},t2=(e,t)=>{var n=D.range(e,t);return q.fragment(e,n)};function dh(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 ph(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dh(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var n2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return D.above(t,ph(ph({},n),{},{match:r=>X.isElement(r)&&D.isVoid(t,r)}))},r2=(e,t)=>t.children.some(n=>X.isElement(n)&&D.isBlock(e,n)),o2=(e,t)=>t.children.some(n=>Z.isText(n)||D.isInline(e,n)),u2=(e,t)=>q.has(e,t),a2=(e,t)=>t.children.every(n=>Z.isText(n)),i2=e=>{I.splitNodes(e,{always:!0})},s2=(e,t,n)=>{I.insertNodes(e,t,n)},l2=e=>{I.splitNodes(e,{always:!0})};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 c2(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 f2=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=c2({text:n},u);I.insertNodes(t,a,{at:r.at,voids:r.voids})}else I.insertText(t,n,r);t.marks=null}},d2=(e,t)=>!e.isInline(t),p2=(e,t,n)=>D.isStart(e,t,n)||D.isEnd(e,t,n),v2=(e,t)=>{var{children:n}=t,[r]=n;return n.length===0||n.length===1&&Z.isText(r)&&r.text===""&&!e.isVoid(t)},h2=(e,t,n)=>{var r=D.end(e,n);return ae.equals(t,r)},m2=e=>{var t=Lv.get(e);return t===void 0?!0:t},g2=(e,t,n)=>{if(t.offset!==0)return!1;var r=D.start(e,n);return ae.equals(t,r)},y2=(e,t)=>{var n=D.path(e,t,{edge:"end"});return D.node(e,n)},D2=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 C2(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 w2=["text"],E2=["text"],B2=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=vn(l,w2);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=vn(p,E2);return C},b2=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}}},A2=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 x2(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(cA.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 F2=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)}})}},S2=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},O2=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},_2=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]:{},{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},k2=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},T2=e=>{var t=Vv.get(e);return t||(t=new Set,Vv.set(e,t)),t},R2=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 N2(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=Nl(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"?Rl(x,S):b==="word"?mA(x,S):b==="line"||b==="block"?x.length:1}}()}var j2=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}}},I2=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},M2=e=>{var t=Wv.get(e);return t||(t=new Set,Wv.set(e,t)),t},$2=(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 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 L2(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=(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=L2({},D.marks(e)||{});delete l[t],e.marks=l,uu.get(e)||e.onChange()}}},V2=(e,t)=>{Lv.set(e,t)},W2=(e,t)=>D.point(e,t,{edge:"start"}),U2=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},H2=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}},K2=(e,t)=>{var n=D.isNormalizing(e);D.setNormalizing(e,!1);try{t()}finally{D.setNormalizing(e,n)}D.normalize(e)},q2=(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},Y2=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"}),k=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(k){var H=D.after(t,C);H&&B&&A.isAncestor(B[1],H.path)&&(C=H)}var P=[],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))&&(P.push($),W=G)}var R=Array.from(P,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})),!k){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=Tl(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 k of q.nodes({children:n},{pass:S}))S(k)&&b.push(k);var O=[],H=[],P=[],W=!0,$=!1;for(var[V]of b)X.isElement(V)&&!t.isInline(V)?(W=!1,$=!0,H.push(V)):W?O.push(V):P.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&&!P.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||P.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&&!P.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,P,{at:ne.current,match:j=>Z.isText(j)||D.isInline(t,j),mode:"highest",voids:u,batchDirty:i}),!r.at){var ve;if(P.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()}}})},G2=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},X2=e=>{var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},Z2=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)}},J2=(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 mh(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 gh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mh(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ex=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"]:gh(gh({},s),n)})}},tx=(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})}},nx=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=Tl(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);MA(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()},()=>{rh(t,x,O=>{var H=O;for(var P of B)if(A.operationCanTransformPath(P)&&(H=A.transform(H,P),!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 k=D.end(t,s);k&&I.select(t,k)}}}})},rx=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)?eo(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})}}}})},ox=["text"],ux=["children"],yh=(e,t)=>{if(X.isElement(t)){var n=t;return D.isVoid(e,t)?!0:n.children.length===1?yh(e,n.children[0]):!1}else return!D.isEditor(t)},ax=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)&&yh(t,O)}),x=B&&D.pathRef(t,B[1]),b,S;if(Z.isText(y)&&Z.isText(f)){var k=vn(y,ox);S=f.text.length,b=k}else if(X.isElement(y)&&X.isElement(f)){var k=vn(y,ux);S=f.children.length,b=k}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()}}}})},ix=(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)?eo(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()}})},sx=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)?eo(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})}}}})},lx=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)?eo(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,k)=>S!==k);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})}}}})},cx=(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()},fx=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=cx(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,k=a.path.slice(0,b),O=i===0?a.offset:a.path[b]+w;for(var[H,P]of D.levels(t,{at:k,reverse:!0,voids:o})){var W=!1;if(P.length<S.length||P.length===0||!o&&X.isElement(H)&&D.isVoid(t,H))break;var $=p.current,V=D.isEnd(t,$,P);if(s||!p||!D.isEdge(t,$,P)){W=!0;var G=q.extractProps(H);t.apply({type:"split_node",path:P,position:O,properties:G})}O=P[P.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()}}})},dx=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)},px=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)?eo(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 Dh(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?Dh(Object(n),!0).forEach(function(r){tt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var vx=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=eo(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),k=D.node(t,b),[O]=k,H=b.length+1,P=A.next(x.slice(0,H)),W=Ch(Ch({},n),{},{children:[]});I.insertNodes(t,W,{at:P,voids:a}),I.moveNodes(t,{at:S,match:$=>X.isAncestor(O)&&O.children.includes($),to:P.concat(0),voids:a})}},m;for(var[,f]of p)m=y()}})},hx=()=>{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 $A(e,...r)},addMark:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return HA(e,...r)},deleteBackward:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return YA(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 GA(e,...r)},getFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return zA(e,...r)},insertBreak:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return i2(e,...r)},insertSoftBreak:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return l2(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 s2(e,...r)},insertText:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return f2(e,...r)},normalizeNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return VA(e,...r)},removeMark:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return z2(e,...r)},getDirtyPaths:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return LA(e,...r)},shouldNormalize:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return WA(e,...r)},above:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return UA(e,...r)},after:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return KA(e,...r)},before:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return qA(e,...r)},collapse:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return G2(e,...r)},delete:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Y2(e,...r)},deselect:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return X2(e,...r)},edges:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return XA(e,...r)},elementReadOnly:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ZA(e,...r)},end:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return JA(e,...r)},first:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e2(e,...r)},fragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t2(e,...r)},getMarks:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return B2(e,...r)},hasBlocks:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return r2(e,...r)},hasInlines:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return o2(e,...r)},hasPath:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return u2(e,...r)},hasTexts:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return a2(e,...r)},insertNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return nx(e,...r)},isBlock:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return d2(e,...r)},isEdge:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return p2(e,...r)},isEmpty:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return v2(e,...r)},isEnd:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return h2(e,...r)},isNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return m2(e,...r)},isStart:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return g2(e,...r)},last:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return y2(e,...r)},leaf:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return D2(e,...r)},levels:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return C2(e,...r)},liftNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return rx(e,...r)},mergeNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ax(e,...r)},move:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Z2(e,...r)},moveNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ix(e,...r)},next:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return b2(e,...r)},node:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return A2(e,...r)},nodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return x2(e,...r)},normalize:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return F2(e,...r)},parent:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return S2(e,...r)},path:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return P2(e,...r)},pathRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return O2(e,...r)},pathRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return _2(e,...r)},point:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return R2(e,...r)},pointRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return k2(e,...r)},pointRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return T2(e,...r)},positions:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return N2(e,...r)},previous:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return j2(e,...r)},range:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return $2(e,...r)},rangeRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return I2(e,...r)},rangeRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return M2(e,...r)},removeNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return sx(e,...r)},select:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return J2(e,...r)},setNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return lx(e,...r)},setNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return V2(e,...r)},setPoint:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ex(e,...r)},setSelection:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return tx(e,...r)},splitNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return fx(e,...r)},start:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return W2(e,...r)},string:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return U2(e,...r)},unhangRange:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return H2(e,...r)},unsetNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return dx(e,...r)},unwrapNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return px(e,...r)},void:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return n2(e,...r)},withoutNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return K2(e,...r)},wrapNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return vx(e,...r)},shouldMergeNodesRemovePrevNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return q2(e,...r)}};return e};function su(e){const t=D.marks($a.value);return t?t[e]===!0:!1}function mx(e){su(e)?D.removeMark($a.value,e):D.addMark($a.value,e,!0)}const gx=v.defineComponent({__name:"Menu",setup(e){const t=v.ref(),n=Pb().pressed,r=Ob(t),o=_b(t).focused,{range:u,isValidSelection:a,onValidSelectionUpdate:i}=Av(),{floatingStyles:s}=fb(u,t,{placement:"top",middleware:[PE(6),kE(),TE()]}),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}=Eb(c,()=>{d.value=su("bold"),p.value=su("del"),y.value=su("italic"),m.value=su("underline")});function w(h){mx(h),f()}return Qe(La,"keydown",h=>{h.key==="Escape"&&c.value&&(l.value=!1)}),i(()=>{l.value=!0}),(h,g)=>{const C=lb,E=qB,B=ub,x=tb,b=XB;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)}}}),yx=":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}",Dx='[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}',lu=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Cx=lu(gx,[["styles",[yx,Dx]],["__scopeId","data-v-f99fe62b"]]);var wh={exports:{}},se={};/**
|
10
|
+
*/function Pv(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ue(e){var t,n;return Pv(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(Pv(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}var kv=Symbol.for("immer-nothing"),Tv=Symbol.for("immer-draftable"),wt=Symbol.for("immer-state");function Ut(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var to=Object.getPrototypeOf;function Dr(e){return!!e&&!!e[wt]}function Cr(e){var t;return e?Rv(e)||Array.isArray(e)||!!e[Tv]||!!((t=e.constructor)!=null&&t[Tv])||Ka(e)||qa(e):!1}var HA=Object.prototype.constructor.toString();function Rv(e){if(!e||typeof e!="object")return!1;const t=to(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)===HA}function Ua(e,t){Ha(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Ha(e){const t=e[wt];return t?t.type_:Array.isArray(e)?1:Ka(e)?2:qa(e)?3:0}function Al(e,t){return Ha(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Nv(e,t,n){const r=Ha(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function KA(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Ka(e){return e instanceof Map}function qa(e){return e instanceof Set}function wr(e){return e.copy_||e.base_}function bl(e,t){if(Ka(e))return new Map(e);if(qa(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Rv(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[wt];let o=Reflect.ownKeys(r);for(let u=0;u<o.length;u++){const a=o[u],i=r[a];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(r[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(to(e),r)}else{const r=to(e);if(r!==null&&n)return{...e};const o=Object.create(r);return Object.assign(o,e)}}function xl(e,t=!1){return Ya(e)||Dr(e)||!Cr(e)||(Ha(e)>1&&(e.set=e.add=e.clear=e.delete=qA),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>xl(r,!0))),e}function qA(){Ut(2)}function Ya(e){return Object.isFrozen(e)}var YA={};function Er(e){const t=YA[e];return t||Ut(0,e),t}var uu;function jv(){return uu}function QA(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Iv(e,t){t&&(Er("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Fl(e){Sl(e),e.drafts_.forEach(GA),e.drafts_=null}function Sl(e){e===uu&&(uu=e.parent_)}function Mv(e){return uu=QA(uu,e)}function GA(e){const t=e[wt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function $v(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[wt].modified_&&(Fl(t),Ut(4)),Cr(e)&&(e=Qa(t,e),t.parent_||Ga(t,e)),t.patches_&&Er("Patches").generateReplacementPatches_(n[wt].base_,e,t.patches_,t.inversePatches_)):e=Qa(t,n,[]),Fl(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==kv?e:void 0}function Qa(e,t,n){if(Ya(t))return t;const r=t[wt];if(!r)return Ua(t,(o,u)=>Lv(e,r,t,o,u,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Ga(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),Ua(u,(i,s)=>Lv(e,r,o,i,s,n,a)),Ga(e,o,!1),n&&e.patches_&&Er("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Lv(e,t,n,r,o,u,a){if(Dr(o)){const i=u&&t&&t.type_!==3&&!Al(t.assigned_,r)?u.concat(r):void 0,s=Qa(e,o,i);if(Nv(n,r,s),Dr(s))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(Cr(o)&&!Ya(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)&&Ga(e,o)}}function Ga(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&xl(t,n)}function XA(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:jv(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,u=Ol;n&&(o=[r],u=au);const{revoke:a,proxy:i}=Proxy.revocable(o,u);return r.draft_=i,r.revoke_=a,i}var Ol={get(e,t){if(t===wt)return e;const n=wr(e);if(!Al(n,t))return ZA(e,n,t);const r=n[t];return e.finalized_||!Cr(r)?r:r===_l(e.base_,t)?(kl(e),e.copy_[t]=Tl(r,e)):r},has(e,t){return t in wr(e)},ownKeys(e){return Reflect.ownKeys(wr(e))},set(e,t,n){const r=zv(wr(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=_l(wr(e),t),u=o==null?void 0:o[wt];if(u&&u.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(KA(n,o)&&(n!==void 0||Al(e.base_,t)))return!0;kl(e),Pl(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 _l(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,kl(e),Pl(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=wr(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 to(e.base_)},setPrototypeOf(){Ut(12)}},au={};Ua(Ol,(e,t)=>{au[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),au.deleteProperty=function(e,t){return au.set.call(this,e,t,void 0)},au.set=function(e,t,n){return Ol.set.call(this,e[0],t,n,e[0])};function _l(e,t){const n=e[wt];return(n?wr(n):e)[t]}function ZA(e,t,n){var o;const r=zv(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function zv(e,t){if(!(t in e))return;let n=to(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=to(n)}}function Pl(e){e.modified_||(e.modified_=!0,e.parent_&&Pl(e.parent_))}function kl(e){e.copy_||(e.copy_=bl(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var JA=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(Cr(t)){const u=Mv(this),a=Tl(t,void 0);let i=!0;try{o=n(a),i=!1}finally{i?Fl(u):Sl(u)}return Iv(u,r),$v(o,u)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===kv&&(o=void 0),this.autoFreeze_&&xl(o,!0),r){const u=[],a=[];Er("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){Cr(e)||Ut(8),Dr(e)&&(e=eb(e));const t=Mv(this),n=Tl(e,void 0);return n[wt].isManual_=!0,Sl(t),n}finishDraft(e,t){const n=e&&e[wt];(!n||!n.isManual_)&&Ut(9);const{scope_:r}=n;return Iv(r,t),$v(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=Er("Patches").applyPatches_;return Dr(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Tl(e,t){const n=Ka(e)?Er("MapSet").proxyMap_(e,t):qa(e)?Er("MapSet").proxySet_(e,t):XA(e,t);return(t?t.scope_:jv()).drafts_.push(n),n}function eb(e){return Dr(e)||Ut(10,e),Vv(e)}function Vv(e){if(!Cr(e)||Ya(e))return e;const t=e[wt];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=bl(e,t.scope_.immer_.useStrictShallowCopy_)}else n=bl(e,!0);return Ua(n,(r,o)=>{Nv(n,r,Vv(o))}),t&&(t.finalized_=!1),n}var Et=new JA,Rl=Et.produce;Et.produceWithPatches.bind(Et),Et.setAutoFreeze.bind(Et),Et.setUseStrictShallowCopy.bind(Et),Et.applyPatches.bind(Et);var Wv=Et.createDraft.bind(Et),Uv=Et.finishDraft.bind(Et),tb={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()}}},nb={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var o=ue.transform(n,t,{affinity:r});e.current=o,o==null&&e.unref()}}},rb={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()}}},Xa=new WeakMap,Za=new WeakMap,iu=new WeakMap,Hv=new WeakMap,Kv=new WeakMap,qv=new WeakMap,Yv=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 su(e){"@babel/helpers - typeof";return su=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},su(e)}function ob(e,t){if(su(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(su(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ub(e){var t=ob(e,"string");return su(t)==="symbol"?t:String(t)}function rt(e,t,n){return t=ub(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qv(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 lu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Qv(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ab=(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]=ue.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]=ue.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),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(Le.stringify(g)," ").concat(Le.stringify(E)));if(B.children.splice(x,1),t)for(var[A,S]of _.points(t))t[S]=ue.transform(A,n);break}case"move_node":{var{path:N,newPath:O}=n;if(b.isAncestor(N,O))throw new Error("Cannot move a path [".concat(N,"] to new path [").concat(O,"] because the destination is inside itself."));var V=q.get(e,N),P=q.parent(e,N),L=N[N.length-1];P.children.splice(L,1);var j=b.transform(N,n),z=q.get(e,b.parent(j)),G=j[j.length-1];if(z.children.splice(G,0,V),t)for(var[T,I]of _.points(t))t[I]=ue.transform(T,n);break}case"remove_node":{var{path:K}=n,Q=K[K.length-1],ne=q.parent(e,K);if(ne.children.splice(Q,1),t)for(var[te,ye]of _.points(t)){var fe=ue.transform(te,n);if(t!=null&&fe!=null)t[ye]=fe;else{var F=void 0,W=void 0;for(var[U,Y]of q.texts(e))if(b.compare(Y,K)===-1)F=[U,Y];else{W=[U,Y];break}var ie=!1;F&&W&&(b.equals(W[1],K)?ie=!b.hasPrevious(W[1]):ie=b.common(F[1],K).length<b.common(W[1],K).length),F&&!ie?(te.path=F[1],te.offset=F[0].text.length):W?(te.path=W[1],te.offset=0):t=null}}break}case"remove_text":{var{path:ee,offset:he,text:pe}=n;if(pe.length===0)break;var se=q.leaf(e,ee),ae=se.text.slice(0,he),me=se.text.slice(he+pe.length);if(se.text=ae+me,t)for(var[Pe,ve]of _.points(t))t[ve]=ue.transform(Pe,n);break}case"set_node":{var{path:Qe,properties:yt,newProperties:je}=n;if(Qe.length===0)throw new Error("Cannot set properties on the root node!");var We=q.get(e,Qe);for(var we in je){if(we==="children"||we==="text")throw new Error('Cannot set the "'.concat(we,'" property of nodes!'));var nt=je[we];nt==null?delete We[we]:We[we]=nt}for(var Te in yt)je.hasOwnProperty(Te)||delete We[Te];break}case"set_selection":{var{newProperties:de}=n;if(de==null)t=de;else{if(t==null){if(!_.isRange(de))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(Le.stringify(de)," when there is no current selection."));t=lu({},de)}for(var Dt in de){var dn=de[Dt];if(dn==null){if(Dt==="anchor"||Dt==="focus")throw new Error('Cannot remove the "'.concat(Dt,'" selection property'));delete t[Dt]}else t[Dt]=dn}}break}case"split_node":{var{path:Ge,position:pn,properties:Wr}=n;if(Ge.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Ge,"] because the root node cannot be split."));var _n=q.get(e,Ge),fa=q.parent(e,Ge),js=Ge[Ge.length-1],Rd;if(Z.isText(_n)){var vk=_n.text.slice(0,pn),hk=_n.text.slice(pn);_n.text=vk,Rd=lu(lu({},Wr),{},{text:hk})}else{var mk=_n.children.slice(0,pn),gk=_n.children.slice(pn);_n.children=mk,Rd=lu(lu({},Wr),{},{children:gk})}if(fa.children.splice(js+1,0,Rd),t)for(var[yk,Dk]of _.points(t))t[Dk]=ue.transform(yk,n);break}}return t},ib={transform(e,t){e.children=Wv(e.children);var n=e.selection&&Wv(e.selection);try{n=ab(e,n,t)}finally{e.children=Uv(e.children),n?e.selection=Dr(n)?Uv(n):n:e.selection=null}}},sb={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)}},lb={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)}},Gv=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Ue(r)&&Ue(o)){if(!Gv(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 cb(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 mn(e,t){if(e==null)return{};var n=cb(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 fb=["anchor","focus"];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 db(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){rt(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 _={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 ue.equals(e.anchor,t.anchor)&&ue.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 ue.isBefore(n,o)&&ue.isAfter(r,u)}var[a,i]=_.edges(e),s=!1,l=!1;return ue.isPoint(t)?(s=ue.compare(t,a)>=0,l=ue.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=mn(e,fb),[r,o]=_.edges(e),[u,a]=_.edges(t),i=ue.isBefore(r,u)?u:r,s=ue.isBefore(o,a)?o:a;return ue.isBefore(s,i)?null:db({anchor:i,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return ue.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return ue.equals(t,n)},isExpanded(e){return!_.isCollapsed(e)},isForward(e){return!_.isBackward(e)},isRange(e){return Ue(e)&&ue.isPoint(e.anchor)&&ue.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 Rl(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=ue.transform(r.anchor,t,{affinity:u}),l=ue.transform(r.focus,t,{affinity:a});if(!s||!l)return null;r.anchor=s,r.focus=l})}},Zv=e=>Ue(e)&&q.isNodeList(e.children)&&!D.isEditor(e),X={isAncestor(e){return Ue(e)&&q.isNodeList(e.children)},isElement:Zv,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 Zv(t)&&t[r]===n},matches(e,t){for(var n in t)if(n!=="children"&&e[n]!==t[n])return!1;return!0}},pb=["children"],vb=["text"],Jv=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(Le.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(Z.isText(e))throw new Error("Cannot get the child of a text node: ".concat(Le.stringify(e)));var n=e.children[t];if(n==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(Le.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(Le.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=mn(e,pb);return t}else{var t=mn(e,vb);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(Le.stringify(e)));var n=Rl({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(Z.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(Le.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=Jv.get(e);if(t!==void 0)return t;var n=e.every(r=>q.isNode(r));return Jv.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(Le.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)||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?b.isBefore(i,u):b.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;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(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 eh(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 Ae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eh(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Mn={isNodeOperation(e){return Mn.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=>Mn.isOperation(t))},isSelectionOperation(e){return Mn.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return Mn.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return Ae(Ae({},e),{},{type:"remove_node"});case"insert_text":return Ae(Ae({},e),{},{type:"remove_text"});case"merge_node":return Ae(Ae({},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 Ae(Ae({},e),{},{path:t,newPath:n});var r=b.transform(n,e),o=b.transform(b.next(n),e);return Ae(Ae({},e),{},{path:r,newPath:o})}case"remove_node":return Ae(Ae({},e),{},{type:"insert_node"});case"remove_text":return Ae(Ae({},e),{},{type:"insert_text"});case"set_node":{var{properties:u,newProperties:a}=e;return Ae(Ae({},e),{},{properties:a,newProperties:u})}case"set_selection":{var{properties:i,newProperties:s}=e;return i==null?Ae(Ae({},e),{},{properties:s,newProperties:null}):s==null?Ae(Ae({},e),{},{properties:null,newProperties:i}):Ae(Ae({},e),{},{properties:s,newProperties:i})}case"split_node":return Ae(Ae({},e),{},{type:"merge_node",path:b.next(e.path)})}}},th=new WeakMap,hb=e=>{var t=th.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)&&Mn.isOperationList(e.operations);return th.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 hb(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)},mb={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(b.isPath)}};function nh(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 rh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nh(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ue={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 ue.compare(e,t)===1},isBefore(e,t){return ue.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 Rl(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,rh(rh({},n),{},{affinity:"forward"})))}else r.path=b.transform(u,t,n);break}}})}},oh=void 0,Le={setScrubber(e){oh=e},stringify(e){return JSON.stringify(e,oh)}},gb=["text"],yb=["anchor","focus"];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 gn(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){rt(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 Z={equals(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:r=!1}=n;function o(u){var a=mn(u,gb);return a}return Gv(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=[gn({},e)];for(var r of t){var o=mn(r,yb),[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=gn(gn({},m),{},{text:m.text.slice(h)}),m=gn(gn({},m),{},{text:m.text.slice(0,h)})}if(l>y){var g=l-y;f=gn(gn({},m),{},{text:m.text.slice(0,g)}),m=gn(gn({},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}},Nl=e=>e.selection?e.selection:e.children.length>0?D.end(e,[]):[0],no=(e,t)=>{var[n]=D.node(e,t);return r=>r===n},jl=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=!n,o=n?Ab(t):t,u=oe.None,a=oe.None,i=0,s=null,l=null;for(var c of o){var d=c.codePointAt(0);if(!d)break;var p=jb(c,d);if([u,a]=r?[a,p]:[p,u],ro(u,oe.ZWJ)&&ro(a,oe.ExtPict)&&(r?s=ah(t.substring(0,i)):s=ah(t.substring(0,t.length-i)),!s)||ro(u,oe.RI)&&ro(a,oe.RI)&&(l!==null?l=!l:r?l=!0:l=zb(t.substring(0,t.length-i)),!l)||u!==oe.None&&a!==oe.None&&Mb(u,a))break;i+=c.length}return i||1},Db=/\s/,Cb=/[\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]/,wb=/['\u2018\u2019]/,Eb=function(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=0,o=!1;t.length>0;){var u=jl(t,n),[a,i]=Il(t,u,n);if(Bb(a,i,n))o=!0,r+=u;else if(!o)r+=u;else break;t=i}return r},Il=(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)]},Bb=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(Db.test(t))return!1;if(wb.test(t)){var o=jl(n,r),[u,a]=Il(n,o,r);if(e(u,a,r))return!0}return!Cb.test(t)},Ab=function*(t){for(var n=t.length-1,r=0;r<t.length;r++){var o=t.charAt(n-r);if(xb(o.charCodeAt(0))){var u=t.charAt(n-r-1);if(bb(u.charCodeAt(0))){yield u+o,r++;continue}}yield o}},bb=e=>e>=55296&&e<=56319,xb=e=>e>=56320&&e<=57343,oe;(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"})(oe||(oe={}));var Fb=/^(?:[\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])$/,Sb=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Ob=/^(?:[\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])$/,_b=/^[\u1100-\u115F\uA960-\uA97C]$/,Pb=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,kb=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Tb=/^[\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]$/,Rb=/^[\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]$/,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])$/,jb=(e,t)=>{var n=oe.Any;return e.search(Fb)!==-1&&(n|=oe.Extend),t===8205&&(n|=oe.ZWJ),t>=127462&&t<=127487&&(n|=oe.RI),e.search(Sb)!==-1&&(n|=oe.Prepend),e.search(Ob)!==-1&&(n|=oe.SpacingMark),e.search(_b)!==-1&&(n|=oe.L),e.search(Pb)!==-1&&(n|=oe.V),e.search(kb)!==-1&&(n|=oe.T),e.search(Tb)!==-1&&(n|=oe.LV),e.search(Rb)!==-1&&(n|=oe.LVT),e.search(Nb)!==-1&&(n|=oe.ExtPict),n};function ro(e,t){return(e&t)!==0}var Ib=[[oe.L,oe.L|oe.V|oe.LV|oe.LVT],[oe.LV|oe.V,oe.V|oe.T],[oe.LVT|oe.T,oe.T],[oe.Any,oe.Extend|oe.ZWJ],[oe.Any,oe.SpacingMark],[oe.Prepend,oe.Any],[oe.ZWJ,oe.ExtPict],[oe.RI,oe.RI]];function Mb(e,t){return Ib.findIndex(n=>ro(e,n[0])&&ro(t,n[1]))===-1}var $b=/(?:[\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$/,ah=e=>e.search($b)!==-1,Lb=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,zb=e=>{var t=e.match(Lb);if(t===null)return!1;var n=t[0].length/2;return n%2===1},Vb={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=Nl(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);R.delete(e,{at:o,voids:r});var l=i.unref(),c=s.unref();o=l||c,R.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 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 Ja(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){rt(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 R=Ja(Ja(Ja(Ja({},ib),sb),lb),Vb),ei=new WeakMap,Wb=e=>ei.get(e)||!1,Ub=(e,t,n)=>{var r=ei.get(e)||!1;ei.set(e,!0);try{t(),n()}finally{ei.set(e,r)}};function sh(e,t,n){var r=Xa.get(e)||[],o=Za.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);Xa.set(e,u),Za.set(e,a)}var Hb=(e,t)=>{for(var n of D.pathRefs(e))tb.transform(n,t);for(var r of D.pointRefs(e))nb.transform(r,t);for(var o of D.rangeRefs(e))rb.transform(o,t);if(!Wb(e)){var u=b.operationCanTransformPath(t)?a=>b.transform(a,t):void 0;sh(e,e.getDirtyPaths(t),u)}R.transform(e,t),e.operations.push(t),D.normalize(e,{operation:t}),t.type==="set_selection"&&(e.marks=null),iu.get(e)||(iu.set(e,!0),Promise.resolve().then(()=>{iu.set(e,!1),e.onChange({operation:t}),e.operations=[]}))},Kb=(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=Z.isText(r)?[]:Array.from(q.nodes(r),O=>{var[,V]=O;return o.concat(V)});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,x=b.ancestors(B);return[...x]}case"split_node":{var{path:A}=t,S=b.levels(A),N=b.next(A);return[...S,N]}default:return[]}},qb=e=>{var{selection:t}=e;return t?q.fragment(e,t):[]},Yb=(e,t)=>{var[n,r]=t;if(!Z.isText(n)){if(X.isElement(n)&&n.children.length===0){var o={text:""};R.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)R.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:""};R.insertNodes(e,y,{at:r.concat(a),voids:!0}),a++}else if(d){var m={text:""};R.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})?(R.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):c.text===""?(R.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):l.text===""&&(R.removeNodes(e,{at:r.concat(a),voids:!0}),a--))}}}}},Qb=(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},Gb=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(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 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){rt(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 Xb=(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)R.setNodes(e,{[t]:n},{match:o,split:!0,voids:!0});else{var c=ch(ch({},D.marks(e)||{}),{},{[t]:n});e.marks=c,iu.get(e)||e.onChange()}}};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){rt(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 Zb=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,dh(dh({},r),{},{at:a}))){if(s>i)break;s!==0&&(l=c),s++}return l};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 vh(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){rt(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 Jb=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,vh(vh({},r),{},{at:a,reverse:!0}))){if(s>i)break;s!==0&&(l=c),s++}return l},e2=(e,t)=>{var{selection:n}=e;n&&_.isCollapsed(n)&&R.delete(e,{unit:t,reverse:!0})},t2=(e,t)=>{var{selection:n}=e;n&&_.isCollapsed(n)&&R.delete(e,{unit:t})},n2=function(t){var{direction:n="forward"}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=t;r&&_.isExpanded(r)&&R.delete(t,{reverse:n==="backward"})},r2=(e,t)=>[D.start(e,t),D.end(e,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){rt(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 o2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return D.above(t,mh(mh({},n),{},{match:r=>X.isElement(r)&&D.isElementReadOnly(t,r)}))},u2=(e,t)=>D.point(e,t,{edge:"end"}),a2=(e,t)=>{var n=D.path(e,t,{edge:"start"});return D.node(e,n)},i2=(e,t)=>{var n=D.range(e,t);return q.fragment(e,n)};function gh(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 yh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gh(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var s2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return D.above(t,yh(yh({},n),{},{match:r=>X.isElement(r)&&D.isVoid(t,r)}))},l2=(e,t)=>t.children.some(n=>X.isElement(n)&&D.isBlock(e,n)),c2=(e,t)=>t.children.some(n=>Z.isText(n)||D.isInline(e,n)),f2=(e,t)=>q.has(e,t),d2=(e,t)=>t.children.every(n=>Z.isText(n)),p2=e=>{R.splitNodes(e,{always:!0})},v2=(e,t,n)=>{R.insertNodes(e,t,n)},h2=e=>{R.splitNodes(e,{always:!0})};function Dh(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?Dh(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var g2=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=m2({text:n},u);R.insertNodes(t,a,{at:r.at,voids:r.voids})}else R.insertText(t,n,r);t.marks=null}},y2=(e,t)=>!e.isInline(t),D2=(e,t,n)=>D.isStart(e,t,n)||D.isEnd(e,t,n),C2=(e,t)=>{var{children:n}=t,[r]=n;return n.length===0||n.length===1&&Z.isText(r)&&r.text===""&&!e.isVoid(t)},w2=(e,t,n)=>{var r=D.end(e,n);return ue.equals(t,r)},E2=e=>{var t=Hv.get(e);return t===void 0?!0:t},B2=(e,t,n)=>{if(t.offset!==0)return!1;var r=D.start(e,n);return ue.equals(t,r)},A2=(e,t)=>{var n=D.path(e,t,{edge:"end"});return D.node(e,n)},b2=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 x2(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 F2=["text"],S2=["text"],O2=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=mn(l,F2);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;b.isAncestor(g,h)&&(p=w)}}}var C=mn(p,S2);return C},_2=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}}},P2=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 k2(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(mb.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&&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 T2=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:r=!1,operation:o}=n,u=c=>Xa.get(c)||[],a=c=>Za.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(",")));Xa.set(t,s),Za.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)}})}},R2=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},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.pathRefs(t);return s.delete(u),u.current=null,i}},a=D.pathRefs(t);return a.add(u),u},j2=e=>{var t=Kv.get(e);return t||(t=new Set,Kv.set(e,t)),t},I2=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)),ue.isPoint(n)&&(n=n.path),o!=null&&(n=n.slice(0,o)),n},M2=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},$2=e=>{var t=qv.get(e);return t||(t=new Set,qv.set(e,t)),t},L2=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(!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 z2(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(Z.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=Il(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,A,S){return A==="character"?jl(x,S):A==="word"?Eb(x,S):A==="line"||A==="block"?x.length:1}}()}var V2=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}}},W2=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},U2=e=>{var t=Yv.get(e);return t||(t=new Set,Yv.set(e,t)),t},H2=(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 Ch(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 K2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ch(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ch(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var q2=(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)R.unsetNodes(e,t,{match:r,split:!0,voids:!0});else{var l=K2({},D.marks(e)||{});delete l[t],e.marks=l,iu.get(e)||e.onChange()}}},Y2=(e,t)=>{Hv.set(e,t)},Q2=(e,t)=>D.point(e,t,{edge:"start"}),G2=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;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},X2=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:Z.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}},Z2=(e,t)=>{var n=D.isNormalizing(e);D.setNormalizing(e,!1);try{t()}finally{D.setNormalizing(e,n)}D.normalize(e)},J2=(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},ex=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),ue.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)){R.removeNodes(t,{at:l,voids:s});return}if(!_.isCollapsed(l)){if(!c){var[,w]=_.edges(l),h=D.end(t,[]);ue.equals(w,h)||(l=D.unhangRange(t,l,{voids:s}))}var[g,C]=_.edges(l),E=D.above(t,{match:ae=>X.isElement(ae)&&D.isBlock(t,ae),at:g,voids:s}),B=D.above(t,{match:ae=>X.isElement(ae)&&D.isBlock(t,ae),at:C,voids:s}),x=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"}),N=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(N){var V=D.after(t,C);V&&B&&b.isAncestor(B[1],V.path)&&(C=V)}var P=[],L;for(var j of D.nodes(t,{at:l,voids:s})){var[z,G]=j;L&&b.compare(G,L)===0||(!s&&X.isElement(z)&&(D.isVoid(t,z)||D.isElementReadOnly(t,z))||!b.isCommon(G,g.path)&&!b.isCommon(G,C.path))&&(P.push(j),L=G)}var T=Array.from(P,ae=>{var[,me]=ae;return D.pathRef(t,me)}),I=D.pointRef(t,g),K=D.pointRef(t,C),Q="";if(!A&&!S){var ne=I.current,[te]=D.leaf(t,ne),{path:ye}=ne,{offset:fe}=g,F=te.text.slice(fe);F.length>0&&(t.apply({type:"remove_text",path:ye,offset:fe,text:F}),Q=F)}if(T.reverse().map(ae=>ae.unref()).filter(ae=>ae!==null).forEach(ae=>R.removeNodes(t,{at:ae,voids:s})),!N){var W=K.current,[U]=D.leaf(t,W),{path:Y}=W,ie=A?g.offset:0,ee=U.text.slice(ie,C.offset);ee.length>0&&(t.apply({type:"remove_text",path:Y,offset:ie,text:ee}),Q=ee)}!A&&x&&K.current&&I.current&&R.mergeNodes(t,{at:K.current,hanging:!0,voids:s}),d&&u&&a==="character"&&Q.length>1&&Q.match(/[\u0E00-\u0E7F]+/)&&R.insertText(t,Q.slice(0,Q.length-i));var he=I.unref(),pe=K.unref(),se=u?he||pe:pe||he;n.at==null&&se&&R.select(t,se)}}})},tx=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=Nl(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);R.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:F=>X.isElement(F)&&D.isInline(t,F),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:F=>X.isElement(F)&&D.isBlock(t,F),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},[]),A=[],S=F=>{var[W,U]=F,Y=U.length===0;return Y?!1:g?!0:!(C&&b.isAncestor(U,B)&&X.isElement(W)&&!t.isVoid(W)&&!t.isInline(W)||E&&b.isAncestor(U,x)&&X.isElement(W)&&!t.isVoid(W)&&!t.isInline(W))};for(var N of q.nodes({children:n},{pass:S}))S(N)&&A.push(N);var O=[],V=[],P=[],L=!0,j=!1;for(var[z]of A)X.isElement(z)&&!t.isInline(z)?(L=!1,j=!0,V.push(z)):L?O.push(z):P.push(z);var[G]=D.nodes(t,{at:a,match:F=>Z.isText(F)||D.isInline(t,F),mode:"highest",voids:u}),[,T]=G,I=D.isStart(t,a,T),K=D.isEnd(t,a,T),Q=D.pathRef(t,h&&!P.length?b.next(f):f),ne=D.pathRef(t,K?b.next(T):T);R.splitNodes(t,{at:a,match:F=>j?X.isElement(F)&&D.isBlock(t,F):Z.isText(F)||D.isInline(t,F),mode:j?"lowest":"highest",always:j&&(!w||O.length>0)&&(!h||P.length>0),voids:u});var te=D.pathRef(t,!I||I&&K?b.next(T):T);if(R.insertNodes(t,O,{at:te.current,match:F=>Z.isText(F)||D.isInline(t,F),mode:"highest",voids:u,batchDirty:i}),g&&!O.length&&V.length&&!P.length&&R.delete(t,{at:f,voids:u}),R.insertNodes(t,V,{at:Q.current,match:F=>X.isElement(F)&&D.isBlock(t,F),mode:"lowest",voids:u,batchDirty:i}),R.insertNodes(t,P,{at:ne.current,match:F=>Z.isText(F)||D.isInline(t,F),mode:"highest",voids:u,batchDirty:i}),!r.at){var ye;if(P.length>0&&ne.current?ye=b.previous(ne.current):V.length>0&&Q.current?ye=b.previous(Q.current):te.current&&(ye=b.previous(te.current)),ye){var fe=D.end(t,ye);R.select(t,fe)}}te.unref(),Q.unref(),ne.unref()}}})},nx=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")R.select(t,o.anchor);else if(r==="focus")R.select(t,o.focus);else if(r==="start"){var[u]=_.edges(o);R.select(t,u)}else if(r==="end"){var[,a]=_.edges(o);R.select(t,a)}}else return},rx=e=>{var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},ox=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)}R.setSelection(t,d)}},ux=(e,t)=>{var{selection:n}=e;if(t=D.range(e,t),n){R.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(Le.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})};function wh(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 Eh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wh(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wh(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var ax=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;R.setSelection(t,{[u==="anchor"?"anchor":"focus"]:Eh(Eh({},s),n)})}},ix=(e,t)=>{var{selection:n}=e,r={},o={};if(n){for(var u in t)(u==="anchor"&&t.anchor!=null&&!ue.equals(t.anchor,n.anchor)||u==="focus"&&t.focus!=null&&!ue.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})}},sx=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=Nl(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);R.delete(t,{at:s}),s=y.unref()}if(ue.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);R.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=[],x=b.levels(C);Ub(t,()=>{var O=function(){var L=C.concat(E);E++;var j={type:"insert_node",path:L,node:V};t.apply(j),s=b.next(s),B.push(j),Z.isText?x.push(...Array.from(q.nodes(V),z=>{var[,G]=z;return L.concat(G)})):x.push(L)};for(var V of n)O()},()=>{sh(t,x,O=>{var V=O;for(var P of B)if(b.operationCanTransformPath(P)&&(V=b.transform(V,P),!V))return null;return V})})}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 N=D.end(t,s);N&&R.select(t,N)}}}})},lx=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)?no(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);R.moveNodes(t,{at:c,to:w,voids:u}),R.removeNodes(t,{at:y,voids:u})}else if(m===0)R.moveNodes(t,{at:c,to:y,voids:u});else if(m===f-1){var h=b.next(y);R.moveNodes(t,{at:c,to:h,voids:u})}else{var g=b.next(c),C=b.next(y);R.splitNodes(t,{at:g,voids:u}),R.moveNodes(t,{at:c,to:C,voids:u})}}}})},cx=["text"],fx=["children"],Bh=(e,t)=>{if(X.isElement(t)){var n=t;return D.isVoid(e,t)?!0:n.children.length===1?Bh(e,n.children[0]):!1}else return!D.isEditor(t)},dx=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);R.delete(t,{at:o}),o=c.unref(),n.at==null&&R.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[V]=O;return V}).slice(g.length).slice(0,-1),B=D.above(t,{at:m,mode:"highest",match:O=>E.includes(O)&&Bh(t,O)}),x=B&&D.pathRef(t,B[1]),A,S;if(Z.isText(y)&&Z.isText(f)){var N=mn(y,cx);S=f.text.length,A=N}else if(X.isElement(y)&&X.isElement(f)){var N=mn(y,fx);S=f.children.length,A=N}else throw new Error("Cannot merge the node at path [".concat(m,"] with the previous sibling because it is not the same kind: ").concat(Le.stringify(y)," ").concat(Le.stringify(f)));C||R.moveNodes(t,{at:m,to:h,voids:a}),x&&R.removeNodes(t,{at:x.current,voids:a}),D.shouldMergeNodesRemovePrevNode(t,p,d)?R.removeNodes(t,{at:w,voids:a}):t.apply({type:"merge_node",path:h,position:S,properties:A}),x&&x.unref()}}}})},px=(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)?no(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()}})},vx=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)?no(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})}}}})},hx=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)?no(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);R.splitNodes(t,{at:m,match:o,mode:f,voids:d,always:!w});var h=D.isStart(t,y,y.path);R.splitNodes(t,{at:y,match:o,mode:f,voids:d,always:!h}),u=p.unref(),r.at==null&&R.select(t,u)}a||(a=(S,N)=>S!==N);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 A in n)A==="children"||A==="text"||a(n[A],g[A])&&(x=!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]));x&&t.apply({type:"set_node",path:C,properties:E,newProperties:B})}}}})},mx=(e,t)=>{if(_.isCollapsed(t))return t.anchor;var[,n]=_.edges(t),r=D.pointRef(e,n);return R.delete(e,{at:t}),r.unref()},gx=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=K=>X.isElement(K)&&D.isBlock(t,K)),_.isRange(a)&&(a=mx(t,a)),b.isPath(a)){var l=a,c=D.point(t,l),[d]=D.parent(t,l);u=K=>K===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);R.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 A=a.path.length-i,[,S]=m,N=a.path.slice(0,A),O=i===0?a.offset:a.path[A]+w;for(var[V,P]of D.levels(t,{at:N,reverse:!0,voids:o})){var L=!1;if(P.length<S.length||P.length===0||!o&&X.isElement(V)&&D.isVoid(t,V))break;var j=p.current,z=D.isEnd(t,j,P);if(s||!p||!D.isEdge(t,j,P)){L=!0;var G=q.extractProps(V);t.apply({type:"split_node",path:P,position:O,properties:G})}O=P[P.length-1]+(L||z?1:0)}if(n.at==null){var T=y.current||D.end(t,[]);R.select(t,T)}}finally{var I;p.unref(),(I=y)===null||I===void 0||I.unref()}}})},yx=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;R.setNodes(t,o,r)},Dx=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)?no(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)),R.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 Ah(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 bh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ah(Object(n),!0).forEach(function(r){rt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ah(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Cx=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=no(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"});R.splitNodes(t,{at:c,match:i,voids:a}),R.splitNodes(t,{at:l,match:i,voids:a}),s=d.unref(),r.at==null&&R.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 A=b.equals(B,x)?b.parent(B):b.common(B,x),S=D.range(t,B,x),N=D.node(t,A),[O]=N,V=A.length+1,P=b.next(x.slice(0,V)),L=bh(bh({},n),{},{children:[]});R.insertNodes(t,L,{at:P,voids:a}),R.moveNodes(t,{at:S,match:j=>X.isAncestor(O)&&O.children.includes(j),to:P.concat(0),voids:a})}},m;for(var[,f]of p)m=y()}})},wx=()=>{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 Hb(e,...r)},addMark:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Xb(e,...r)},deleteBackward:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e2(e,...r)},deleteForward:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t2(e,...r)},deleteFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return n2(e,...r)},getFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return qb(e,...r)},insertBreak:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return p2(e,...r)},insertSoftBreak:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return h2(e,...r)},insertFragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return tx(e,...r)},insertNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return v2(e,...r)},insertText:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return g2(e,...r)},normalizeNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Yb(e,...r)},removeMark:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return q2(e,...r)},getDirtyPaths:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Kb(e,...r)},shouldNormalize:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Qb(e,...r)},above:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Gb(e,...r)},after:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Zb(e,...r)},before:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Jb(e,...r)},collapse:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return nx(e,...r)},delete:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ex(e,...r)},deselect:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return rx(e,...r)},edges:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return r2(e,...r)},elementReadOnly:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return o2(e,...r)},end:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return u2(e,...r)},first:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return a2(e,...r)},fragment:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return i2(e,...r)},getMarks:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return O2(e,...r)},hasBlocks:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return l2(e,...r)},hasInlines:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return c2(e,...r)},hasPath:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return f2(e,...r)},hasTexts:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return d2(e,...r)},insertNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return sx(e,...r)},isBlock:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return y2(e,...r)},isEdge:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return D2(e,...r)},isEmpty:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return C2(e,...r)},isEnd:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return w2(e,...r)},isNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return E2(e,...r)},isStart:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return B2(e,...r)},last:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return A2(e,...r)},leaf:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return b2(e,...r)},levels:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return x2(e,...r)},liftNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return lx(e,...r)},mergeNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return dx(e,...r)},move:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ox(e,...r)},moveNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return px(e,...r)},next:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return _2(e,...r)},node:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return P2(e,...r)},nodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return k2(e,...r)},normalize:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return T2(e,...r)},parent:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return R2(e,...r)},path:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return I2(e,...r)},pathRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return N2(e,...r)},pathRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return j2(e,...r)},point:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return L2(e,...r)},pointRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return M2(e,...r)},pointRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return $2(e,...r)},positions:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return z2(e,...r)},previous:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return V2(e,...r)},range:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return H2(e,...r)},rangeRef:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return W2(e,...r)},rangeRefs:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return U2(e,...r)},removeNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return vx(e,...r)},select:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ux(e,...r)},setNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return hx(e,...r)},setNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Y2(e,...r)},setPoint:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ax(e,...r)},setSelection:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return ix(e,...r)},splitNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return gx(e,...r)},start:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Q2(e,...r)},string:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return G2(e,...r)},unhangRange:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return X2(e,...r)},unsetNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return yx(e,...r)},unwrapNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Dx(e,...r)},void:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return s2(e,...r)},withoutNormalizing:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Z2(e,...r)},wrapNodes:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return Cx(e,...r)},shouldMergeNodesRemovePrevNode:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return J2(e,...r)}};return e};function cu(e){const t=D.marks(za.value);return t?t[e]===!0:!1}function Ex(e){cu(e)?D.removeMark(za.value,e):D.addMark(za.value,e,!0)}const Bx=v.defineComponent({__name:"Menu",setup(e){const t=v.ref(),n=IA().pressed,r=NA(t),o=jA(t).focused,{range:u,isValidSelection:a,onValidSelectionUpdate:i}=_v(),{floatingStyles:s}=yA(u,t,{placement:"top",middleware:[ME(6),$E(),LE()]}),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}=OA(c,()=>{d.value=cu("bold"),p.value=cu("del"),y.value=cu("italic"),m.value=cu("underline")});function w(h){Ex(h),f()}return Xe(Va,"keydown",h=>{h.key==="Escape"&&c.value&&(l.value=!1)}),i(()=>{l.value=!0}),(h,g)=>{const C=mA,E=eA,B=dA,x=sA,A=oA;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(A,{class:"size-6 relative top-.1"})],2)]),_:1})],36)):v.createCommentVNode("v-if",!0)}}}),Ax=":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}",bx='[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}',fu=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},xx=fu(Bx,[["styles",[Ax,bx]],["__scopeId","data-v-f99fe62b"]]);var xh={exports:{}},le={};/**
|
11
11
|
* @license React
|
12
12
|
* react.production.min.js
|
13
13
|
*
|
@@ -15,7 +15,7 @@ var S1;(function(v){"use strict";const dn=(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
|
18
|
+
*/var du=Symbol.for("react.element"),Fx=Symbol.for("react.portal"),Sx=Symbol.for("react.fragment"),Ox=Symbol.for("react.strict_mode"),_x=Symbol.for("react.profiler"),Px=Symbol.for("react.provider"),kx=Symbol.for("react.context"),Tx=Symbol.for("react.forward_ref"),Rx=Symbol.for("react.suspense"),Nx=Symbol.for("react.memo"),jx=Symbol.for("react.lazy"),Fh=Symbol.iterator;function Ix(e){return e===null||typeof e!="object"?null:(e=Fh&&e[Fh]||e["@@iterator"],typeof e=="function"?e:null)}var Sh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Oh=Object.assign,_h={};function oo(e,t,n){this.props=e,this.context=t,this.refs=_h,this.updater=n||Sh}oo.prototype.isReactComponent={},oo.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")},oo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ph(){}Ph.prototype=oo.prototype;function Ml(e,t,n){this.props=e,this.context=t,this.refs=_h,this.updater=n||Sh}var $l=Ml.prototype=new Ph;$l.constructor=Ml,Oh($l,oo.prototype),$l.isPureReactComponent=!0;var kh=Array.isArray,Th=Object.prototype.hasOwnProperty,Ll={current:null},Rh={key:!0,ref:!0,__self:!0,__source:!0};function Nh(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)Th.call(t,r)&&!Rh.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:du,type:e,key:u,ref:a,props:o,_owner:Ll.current}}function Mx(e,t){return{$$typeof:du,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function zl(e){return typeof e=="object"&&e!==null&&e.$$typeof===du}function $x(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var jh=/\/+/g;function Vl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?$x(""+e.key):t.toString(36)}function ti(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 du:case Fx:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+Vl(a,0):r,kh(o)?(n="",e!=null&&(n=e.replace(jh,"$&/")+"/"),ti(o,t,n,"",function(l){return l})):o!=null&&(zl(o)&&(o=Mx(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(jh,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",kh(e))for(var i=0;i<e.length;i++){u=e[i];var s=r+Vl(u,i);a+=ti(u,t,n,s,o)}else if(s=Ix(e),typeof s=="function")for(e=s.call(e),i=0;!(u=e.next()).done;)u=u.value,s=r+Vl(u,i++),a+=ti(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 ni(e,t,n){if(e==null)return e;var r=[],o=0;return ti(e,r,"","",function(u){return t.call(n,u,o++)}),r}function Lx(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 ot={current:null},ri={transition:null},zx={ReactCurrentDispatcher:ot,ReactCurrentBatchConfig:ri,ReactCurrentOwner:Ll};function Ih(){throw Error("act(...) is not supported in production builds of React.")}le.Children={map:ni,forEach:function(e,t,n){ni(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ni(e,function(){t++}),t},toArray:function(e){return ni(e,function(t){return t})||[]},only:function(e){if(!zl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},le.Component=oo,le.Fragment=Sx,le.Profiler=_x,le.PureComponent=Ml,le.StrictMode=Ox,le.Suspense=Rx,le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zx,le.act=Ih,le.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=Oh({},e.props),o=e.key,u=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(u=t.ref,a=Ll.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(s in t)Th.call(t,s)&&!Rh.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:du,type:e.type,key:o,ref:u,props:r,_owner:a}},le.createContext=function(e){return e={$$typeof:kx,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Px,_context:e},e.Consumer=e},le.createElement=Nh,le.createFactory=function(e){var t=Nh.bind(null,e);return t.type=e,t},le.createRef=function(){return{current:null}},le.forwardRef=function(e){return{$$typeof:Tx,render:e}},le.isValidElement=zl,le.lazy=function(e){return{$$typeof:jx,_payload:{_status:-1,_result:e},_init:Lx}},le.memo=function(e,t){return{$$typeof:Nx,type:e,compare:t===void 0?null:t}},le.startTransition=function(e){var t=ri.transition;ri.transition={};try{e()}finally{ri.transition=t}},le.unstable_act=Ih,le.useCallback=function(e,t){return ot.current.useCallback(e,t)},le.useContext=function(e){return ot.current.useContext(e)},le.useDebugValue=function(){},le.useDeferredValue=function(e){return ot.current.useDeferredValue(e)},le.useEffect=function(e,t){return ot.current.useEffect(e,t)},le.useId=function(){return ot.current.useId()},le.useImperativeHandle=function(e,t,n){return ot.current.useImperativeHandle(e,t,n)},le.useInsertionEffect=function(e,t){return ot.current.useInsertionEffect(e,t)},le.useLayoutEffect=function(e,t){return ot.current.useLayoutEffect(e,t)},le.useMemo=function(e,t){return ot.current.useMemo(e,t)},le.useReducer=function(e,t,n){return ot.current.useReducer(e,t,n)},le.useRef=function(e){return ot.current.useRef(e)},le.useState=function(e){return ot.current.useState(e)},le.useSyncExternalStore=function(e,t,n){return ot.current.useSyncExternalStore(e,t,n)},le.useTransition=function(){return ot.current.useTransition()},le.version="18.3.1",xh.exports=le;var M=xh.exports;const re=nu(M);var Mh={exports:{}},Bt={},$h={exports:{}},Lh={};/**
|
19
19
|
* @license React
|
20
20
|
* scheduler.production.min.js
|
21
21
|
*
|
@@ -23,7 +23,7 @@ var S1;(function(v){"use strict";const dn=(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(
|
26
|
+
*/(function(e){function t(I,K){var Q=I.length;I.push(K);e:for(;0<Q;){var ne=Q-1>>>1,te=I[ne];if(0<o(te,K))I[ne]=K,I[Q]=te,Q=ne;else break e}}function n(I){return I.length===0?null:I[0]}function r(I){if(I.length===0)return null;var K=I[0],Q=I.pop();if(Q!==K){I[0]=Q;e:for(var ne=0,te=I.length,ye=te>>>1;ne<ye;){var fe=2*(ne+1)-1,F=I[fe],W=fe+1,U=I[W];if(0>o(F,Q))W<te&&0>o(U,F)?(I[ne]=U,I[W]=Q,ne=W):(I[ne]=F,I[fe]=Q,ne=fe);else if(W<te&&0>o(U,Q))I[ne]=U,I[W]=Q,ne=W;else break e}}return K}function o(I,K){var Q=I.sortIndex-K.sortIndex;return Q!==0?Q:I.id-K.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(I){for(var K=n(l);K!==null;){if(K.callback===null)r(l);else if(K.startTime<=I)r(l),K.sortIndex=K.expirationTime,t(s,K);else break;K=n(l)}}function E(I){if(f=!1,C(I),!m)if(n(s)!==null)m=!0,G(B);else{var K=n(l);K!==null&&T(E,K.startTime-I)}}function B(I,K){m=!1,f&&(f=!1,h(S),S=-1),y=!0;var Q=p;try{for(C(K),d=n(s);d!==null&&(!(d.expirationTime>K)||I&&!V());){var ne=d.callback;if(typeof ne=="function"){d.callback=null,p=d.priorityLevel;var te=ne(d.expirationTime<=K);K=e.unstable_now(),typeof te=="function"?d.callback=te:d===n(s)&&r(s),C(K)}else r(s);d=n(s)}if(d!==null)var ye=!0;else{var fe=n(l);fe!==null&&T(E,fe.startTime-K),ye=!1}return ye}finally{d=null,p=Q,y=!1}}var x=!1,A=null,S=-1,N=5,O=-1;function V(){return!(e.unstable_now()-O<N)}function P(){if(A!==null){var I=e.unstable_now();O=I;var K=!0;try{K=A(!0,I)}finally{K?L():(x=!1,A=null)}}else x=!1}var L;if(typeof g=="function")L=function(){g(P)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,z=j.port2;j.port1.onmessage=P,L=function(){z.postMessage(null)}}else L=function(){w(P,0)};function G(I){A=I,x||(x=!0,L())}function T(I,K){S=w(function(){I(e.unstable_now())},K)}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(I){I.callback=null},e.unstable_continueExecution=function(){m||y||(m=!0,G(B))},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(I){switch(p){case 1:case 2:case 3:var K=3;break;default:K=p}var Q=p;p=K;try{return I()}finally{p=Q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(I,K){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var Q=p;p=I;try{return K()}finally{p=Q}},e.unstable_scheduleCallback=function(I,K,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,I){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,I={id:c++,callback:K,priorityLevel:I,startTime:Q,expirationTime:te,sortIndex:-1},Q>ne?(I.sortIndex=Q,t(l,I),n(s)===null&&I===n(l)&&(f?(h(S),S=-1):f=!0,T(E,Q-ne))):(I.sortIndex=te,t(s,I),m||y||(m=!0,G(B))),I},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(I){var K=p;return function(){var Q=p;p=K;try{return I.apply(this,arguments)}finally{p=Q}}}})(Lh),$h.exports=Lh;var Vx=$h.exports;/**
|
27
27
|
* @license React
|
28
28
|
* react-dom.production.min.js
|
29
29
|
*
|
@@ -31,16 +31,16 @@ var S1;(function(v){"use strict";const dn=(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
|
35
|
-
`+
|
34
|
+
*/var Wx=M,At=Vx;function H(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 zh=new Set,pu={};function Br(e,t){uo(e,t),uo(e+"Capture",t)}function uo(e,t){for(pu[e]=t,e=0;e<t.length;e++)zh.add(t[e])}var yn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wl=Object.prototype.hasOwnProperty,Ux=/^[: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]*$/,Vh={},Wh={};function Hx(e){return Wl.call(Wh,e)?!0:Wl.call(Vh,e)?!1:Ux.test(e)?Wh[e]=!0:(Vh[e]=!0,!1)}function Kx(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 qx(e,t,n,r){if(t===null||typeof t>"u"||Kx(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 ut(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 ut(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 ut(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){He[e]=new ut(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){He[e]=new ut(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 ut(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){He[e]=new ut(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){He[e]=new ut(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){He[e]=new ut(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){He[e]=new ut(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ul=/[\-:]([a-z])/g;function Hl(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(Ul,Hl);He[t]=new ut(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(Ul,Hl);He[t]=new ut(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(Ul,Hl);He[t]=new ut(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){He[e]=new ut(e,1,!1,e.toLowerCase(),null,!1,!1)}),He.xlinkHref=new ut("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){He[e]=new ut(e,1,!1,e.toLowerCase(),null,!0,!0)});function Kl(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")&&(qx(t,n,o,r)&&(n=null),r||o===null?Hx(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 Dn=Wx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,oi=Symbol.for("react.element"),ao=Symbol.for("react.portal"),io=Symbol.for("react.fragment"),ql=Symbol.for("react.strict_mode"),Yl=Symbol.for("react.profiler"),Uh=Symbol.for("react.provider"),Hh=Symbol.for("react.context"),Ql=Symbol.for("react.forward_ref"),Gl=Symbol.for("react.suspense"),Xl=Symbol.for("react.suspense_list"),Zl=Symbol.for("react.memo"),$n=Symbol.for("react.lazy"),Kh=Symbol.for("react.offscreen"),qh=Symbol.iterator;function vu(e){return e===null||typeof e!="object"?null:(e=qh&&e[qh]||e["@@iterator"],typeof e=="function"?e:null)}var Fe=Object.assign,Jl;function hu(e){if(Jl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Jl=t&&t[1]||""}return`
|
35
|
+
`+Jl+e}var ec=!1;function tc(e,t){if(!e||ec)return"";ec=!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{Zl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?pu(e):""}function Vx(e){switch(e.tag){case 5:return pu(e.type);case 16:return pu("Lazy");case 13:return pu("Suspense");case 19:return pu("SuspenseList");case 0:case 2:case 15:return e=Jl(e.type,!1),e;case 11:return e=Jl(e.type.render,!1),e;case 1:return e=Jl(e.type,!0),e;default:return""}}function ec(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 uo:return"Fragment";case oo:return"Portal";case Kl:return"Profiler";case Hl:return"StrictMode";case Yl:return"Suspense";case Ql:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Lh:return(e.displayName||"Context")+".Consumer";case $h:return(e._context.displayName||"Context")+".Provider";case ql:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Gl:return t=e.displayName||null,t!==null?t:ec(e.type)||"Memo";case jn:t=e._payload,e=e._init;try{return ec(e(t))}catch{}}return null}function Wx(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 ec(t);case 8:return t===Hl?"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 Wh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ux(e){var t=Wh(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=Ux(e))}function Uh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Wh(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 tc(e,t){var n=t.checked;return Ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Hh(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 Kh(e,t){t=t.checked,t!=null&&Ul(e,"checked",t,!1)}function nc(e,t){Kh(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")?rc(e,t.type,n):t.hasOwnProperty("defaultValue")&&rc(e,t.type,In(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qh(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 rc(e,t,n){(t!=="number"||oi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var vu=Array.isArray;function ao(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 oc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(K(91));return Ae({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Yh(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(vu(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 Qh(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 Gh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Xh(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 uc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Xh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ui,Zh=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 hu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var mu={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},Hx=["Webkit","ms","Moz","O"];Object.keys(mu).forEach(function(e){Hx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),mu[t]=mu[e]})});function Jh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||mu.hasOwnProperty(e)&&mu[e]?(""+t).trim():t+"px"}function em(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Jh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Kx=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 ac(e,t){if(t){if(Kx[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 ic(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 sc=null;function lc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cc=null,io=null,so=null;function tm(e){if(e=Mu(e)){if(typeof cc!="function")throw Error(K(280));var t=e.stateNode;t&&(t=Si(t),cc(e.stateNode,e.type,t))}}function nm(e){io?so?so.push(e):so=[e]:io=e}function rm(){if(io){var e=io,t=so;if(so=io=null,tm(e),t)for(e=0;e<t.length;e++)tm(t[e])}}function om(e,t){return e(t)}function um(){}var fc=!1;function am(e,t,n){if(fc)return e(t,n);fc=!0;try{return om(e,t,n)}finally{fc=!1,(io!==null||so!==null)&&(um(),rm())}}function gu(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 dc=!1;if(mn)try{var yu={};Object.defineProperty(yu,"passive",{get:function(){dc=!0}}),window.addEventListener("test",yu,yu),window.removeEventListener("test",yu,yu)}catch{dc=!1}function qx(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,ai=null,ii=!1,pc=null,Yx={onError:function(e){Du=!0,ai=e}};function Qx(e,t,n,r,o,u,a,i,s){Du=!1,ai=null,qx.apply(Yx,arguments)}function Gx(e,t,n,r,o,u,a,i,s){if(Qx.apply(this,arguments),Du){if(Du){var l=ai;Du=!1,ai=null}else throw Error(K(198));ii||(ii=!0,pc=l)}}function wr(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 im(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 sm(e){if(wr(e)!==e)throw Error(K(188))}function Xx(e){var t=e.alternate;if(!t){if(t=wr(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 sm(o),e;if(u===r)return sm(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 lm(e){return e=Xx(e),e!==null?cm(e):null}function cm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=cm(e);if(t!==null)return t;e=e.sibling}return null}var fm=Et.unstable_scheduleCallback,dm=Et.unstable_cancelCallback,Zx=Et.unstable_shouldYield,Jx=Et.unstable_requestPaint,ke=Et.unstable_now,eF=Et.unstable_getCurrentPriorityLevel,vc=Et.unstable_ImmediatePriority,pm=Et.unstable_UserBlockingPriority,si=Et.unstable_NormalPriority,tF=Et.unstable_LowPriority,vm=Et.unstable_IdlePriority,li=null,on=null;function nF(e){if(on&&typeof on.onCommitFiberRoot=="function")try{on.onCommitFiberRoot(li,e,void 0,(e.current.flags&128)===128)}catch{}}var Ht=Math.clz32?Math.clz32:uF,rF=Math.log,oF=Math.LN2;function uF(e){return e>>>=0,e===0?32:31-(rF(e)/oF|0)|0}var ci=64,fi=4194304;function Cu(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=Cu(i):(u&=a,u!==0&&(r=Cu(u)))}else a=n&~o,a!==0?r=Cu(a):u!==0&&(r=Cu(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 aF(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 iF(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]=aF(i,t)):s<=t&&(e.expiredLanes|=i),u&=~i}}function hc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function hm(){var e=ci;return ci<<=1,!(ci&4194240)&&(ci=64),e}function mc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function wu(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 sF(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 gc(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 mm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var gm,yc,ym,Dm,Cm,Dc=!1,pi=[],Mn=null,$n=null,Ln=null,Eu=new Map,Bu=new Map,zn=[],lF="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 wm(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":Eu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bu.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=Mu(t),t!==null&&yc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function cF(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 Eu.set(u,bu(Eu.get(u)||null,e,t,n,r,o)),!0;case"gotpointercapture":return u=o.pointerId,Bu.set(u,bu(Bu.get(u)||null,e,t,n,r,o)),!0}return!1}function Em(e){var t=Er(e.target);if(t!==null){var n=wr(t);if(n!==null){if(t=n.tag,t===13){if(t=im(n),t!==null){e.blockedOn=t,Cm(e.priority,function(){ym(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=wc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);sc=r,n.target.dispatchEvent(r),sc=null}else return t=Mu(n),t!==null&&yc(t),e.blockedOn=n,!1;t.shift()}return!0}function Bm(e,t,n){vi(e)&&n.delete(t)}function fF(){Dc=!1,Mn!==null&&vi(Mn)&&(Mn=null),$n!==null&&vi($n)&&($n=null),Ln!==null&&vi(Ln)&&(Ln=null),Eu.forEach(Bm),Bu.forEach(Bm)}function Au(e,t){e.blockedOn===t&&(e.blockedOn=null,Dc||(Dc=!0,Et.unstable_scheduleCallback(Et.unstable_NormalPriority,fF)))}function xu(e){function t(o){return Au(o,e)}if(0<pi.length){Au(pi[0],e);for(var n=1;n<pi.length;n++){var r=pi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Mn!==null&&Au(Mn,e),$n!==null&&Au($n,e),Ln!==null&&Au(Ln,e),Eu.forEach(t),Bu.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);)Em(n),n.blockedOn===null&&zn.shift()}var lo=gn.ReactCurrentBatchConfig,hi=!0;function dF(e,t,n,r){var o=pe,u=lo.transition;lo.transition=null;try{pe=1,Cc(e,t,n,r)}finally{pe=o,lo.transition=u}}function pF(e,t,n,r){var o=pe,u=lo.transition;lo.transition=null;try{pe=4,Cc(e,t,n,r)}finally{pe=o,lo.transition=u}}function Cc(e,t,n,r){if(hi){var o=wc(e,t,n,r);if(o===null)Mc(e,t,r,mi,n),wm(e,r);else if(cF(o,e,t,n,r))r.stopPropagation();else if(wm(e,r),t&4&&-1<lF.indexOf(e)){for(;o!==null;){var u=Mu(o);if(u!==null&&gm(u),u=wc(e,t,n,r),u===null&&Mc(e,t,r,mi,n),u===o)break;o=u}o!==null&&r.stopPropagation()}else Mc(e,t,r,null,n)}}var mi=null;function wc(e,t,n,r){if(mi=null,e=lc(r),e=Er(e),e!==null)if(t=wr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=im(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(eF()){case vc:return 1;case pm:return 4;case si:case tF:return 16;case vm:return 536870912;default:return 16}default:return 16}}var Vn=null,Ec=null,gi=null;function Am(){if(gi)return gi;var e,t=Ec,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 xm(){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:xm,this.isPropagationStopped=xm,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 co={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bc=Bt(co),Fu=Ae({},co,{view:0,detail:0}),vF=Bt(Fu),bc,Ac,Su,Ci=Ae({},Fu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fc,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!==Su&&(Su&&e.type==="mousemove"?(bc=e.screenX-Su.screenX,Ac=e.screenY-Su.screenY):Ac=bc=0,Su=e),bc)},movementY:function(e){return"movementY"in e?e.movementY:Ac}}),Fm=Bt(Ci),hF=Ae({},Ci,{dataTransfer:0}),mF=Bt(hF),gF=Ae({},Fu,{relatedTarget:0}),xc=Bt(gF),yF=Ae({},co,{animationName:0,elapsedTime:0,pseudoElement:0}),DF=Bt(yF),CF=Ae({},co,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wF=Bt(CF),EF=Ae({},co,{data:0}),Sm=Bt(EF),BF={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bF={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"},AF={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xF(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=AF[e])?!!t[e]:!1}function Fc(){return xF}var FF=Ae({},Fu,{key:function(e){if(e.key){var t=BF[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"?bF[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fc,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}}),SF=Bt(FF),OF=Ae({},Ci,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Om=Bt(OF),_F=Ae({},Fu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fc}),PF=Bt(_F),kF=Ae({},co,{propertyName:0,elapsedTime:0,pseudoElement:0}),TF=Bt(kF),RF=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}),NF=Bt(RF),jF=[9,13,27,32],Sc=mn&&"CompositionEvent"in window,Ou=null;mn&&"documentMode"in document&&(Ou=document.documentMode);var IF=mn&&"TextEvent"in window&&!Ou,_m=mn&&(!Sc||Ou&&8<Ou&&11>=Ou),Pm=" ",km=!1;function Tm(e,t){switch(e){case"keyup":return jF.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var fo=!1;function MF(e,t){switch(e){case"compositionend":return Rm(t);case"keypress":return t.which!==32?null:(km=!0,Pm);case"textInput":return e=t.data,e===Pm&&km?null:e;default:return null}}function $F(e,t){if(fo)return e==="compositionend"||!Sc&&Tm(e,t)?(e=Am(),gi=Ec=Vn=null,fo=!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 _m&&t.locale!=="ko"?null:t.data;default:return null}}var LF={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 Nm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!LF[e.type]:t==="textarea"}function jm(e,t,n,r){nm(r),t=Ai(t,"onChange"),0<t.length&&(n=new Bc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var _u=null,Pu=null;function zF(e){eg(e,0)}function wi(e){var t=go(e);if(Uh(t))return e}function VF(e,t){if(e==="change")return t}var Im=!1;if(mn){var Oc;if(mn){var _c="oninput"in document;if(!_c){var Mm=document.createElement("div");Mm.setAttribute("oninput","return;"),_c=typeof Mm.oninput=="function"}Oc=_c}else Oc=!1;Im=Oc&&(!document.documentMode||9<document.documentMode)}function $m(){_u&&(_u.detachEvent("onpropertychange",Lm),Pu=_u=null)}function Lm(e){if(e.propertyName==="value"&&wi(Pu)){var t=[];jm(t,Pu,e,lc(e)),am(zF,t)}}function WF(e,t,n){e==="focusin"?($m(),_u=t,Pu=n,_u.attachEvent("onpropertychange",Lm)):e==="focusout"&&$m()}function UF(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return wi(Pu)}function HF(e,t){if(e==="click")return wi(t)}function KF(e,t){if(e==="input"||e==="change")return wi(t)}function qF(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kt=typeof Object.is=="function"?Object.is:qF;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(!zl.call(t,o)||!Kt(e[o],t[o]))return!1}return!0}function zm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Vm(e,t){var n=zm(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=zm(n)}}function Wm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Wm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Um(){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 Pc(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 YF(e){var t=Um(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Wm(n.ownerDocument.documentElement,n)){if(r!==null&&Pc(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=Vm(n,u);var a=Vm(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=mn&&"documentMode"in document&&11>=document.documentMode,po=null,kc=null,Tu=null,Tc=!1;function Hm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Tc||po==null||po!==oi(r)||(r=po,"selectionStart"in r&&Pc(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}),Tu&&ku(Tu,r)||(Tu=r,r=Ai(kc,"onSelect"),0<r.length&&(t=new Bc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=po)))}function Ei(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var vo={animationend:Ei("Animation","AnimationEnd"),animationiteration:Ei("Animation","AnimationIteration"),animationstart:Ei("Animation","AnimationStart"),transitionend:Ei("Transition","TransitionEnd")},Rc={},Km={};mn&&(Km=document.createElement("div").style,"AnimationEvent"in window||(delete vo.animationend.animation,delete vo.animationiteration.animation,delete vo.animationstart.animation),"TransitionEvent"in window||delete vo.transitionend.transition);function Bi(e){if(Rc[e])return Rc[e];if(!vo[e])return e;var t=vo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Km)return Rc[e]=t[n];return e}var qm=Bi("animationend"),Ym=Bi("animationiteration"),Qm=Bi("animationstart"),Gm=Bi("transitionend"),Xm=new Map,Zm="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){Xm.set(e,t),Cr(t,[e])}for(var Nc=0;Nc<Zm.length;Nc++){var jc=Zm[Nc],GF=jc.toLowerCase(),XF=jc[0].toUpperCase()+jc.slice(1);Wn(GF,"on"+XF)}Wn(qm,"onAnimationEnd"),Wn(Ym,"onAnimationIteration"),Wn(Qm,"onAnimationStart"),Wn("dblclick","onDoubleClick"),Wn("focusin","onFocus"),Wn("focusout","onBlur"),Wn(Gm,"onTransitionEnd"),ro("onMouseEnter",["mouseout","mouseover"]),ro("onMouseLeave",["mouseout","mouseover"]),ro("onPointerEnter",["pointerout","pointerover"]),ro("onPointerLeave",["pointerout","pointerover"]),Cr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Cr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Cr("onBeforeInput",["compositionend","keypress","textInput","paste"]),Cr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Cr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Cr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ru="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(" "),ZF=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ru));function Jm(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Gx(r,t,void 0,e),e.currentTarget=null}function eg(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;Jm(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;Jm(o,i,l),u=s}}}if(ii)throw e=pc,ii=!1,pc=null,e}function De(e,t){var n=t[Uc];n===void 0&&(n=t[Uc]=new Set);var r=e+"__bubble";n.has(r)||(tg(t,e,2,!1),n.add(r))}function Ic(e,t,n){var r=0;t&&(r|=4),tg(n,e,r,t)}var bi="_reactListening"+Math.random().toString(36).slice(2);function Nu(e){if(!e[bi]){e[bi]=!0,jh.forEach(function(n){n!=="selectionchange"&&(ZF.has(n)||Ic(n,!1,e),Ic(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[bi]||(t[bi]=!0,Ic("selectionchange",!1,t))}}function tg(e,t,n,r){switch(bm(t)){case 1:var o=dF;break;case 4:o=pF;break;default:o=Cc}n=o.bind(null,t,n,e),o=void 0,!dc||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=Er(i),a===null)return;if(s=a.tag,s===5||s===6){r=u=a;continue e}i=i.parentNode}}r=r.return}am(function(){var l=u,c=lc(n),d=[];e:{var p=Xm.get(e);if(p!==void 0){var y=Bc,m=e;switch(e){case"keypress":if(yi(n)===0)break e;case"keydown":case"keyup":y=SF;break;case"focusin":m="focus",y=xc;break;case"focusout":m="blur",y=xc;break;case"beforeblur":case"afterblur":y=xc;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=Fm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=mF;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=PF;break;case qm:case Ym:case Qm:y=DF;break;case Gm:y=TF;break;case"scroll":y=vF;break;case"wheel":y=NF;break;case"copy":case"cut":case"paste":y=wF;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Om}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=gu(g,h),E!=null&&f.push(ju(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!==sc&&(m=n.relatedTarget||n.fromElement)&&(Er(m)||m[yn]))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?Er(m):null,m!==null&&(w=wr(m),m!==w||m.tag!==5&&m.tag!==6)&&(m=null)):(y=null,m=l),y!==m)){if(f=Fm,E="onMouseLeave",h="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(f=Om,E="onPointerLeave",h="onPointerEnter",g="pointer"),w=y==null?p:go(y),C=m==null?p:go(m),p=new f(E,g+"leave",y,n,c),p.target=w,p.relatedTarget=C,E=null,Er(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=ho(C))g++;for(C=0,E=h;E;E=ho(E))C++;for(;0<g-C;)f=ho(f),g--;for(;0<C-g;)h=ho(h),C--;for(;g--;){if(f===h||h!==null&&f===h.alternate)break t;f=ho(f),h=ho(h)}f=null}else f=null;y!==null&&ng(d,p,y,f,!1),m!==null&&w!==null&&ng(d,w,m,f,!0)}}e:{if(p=l?go(l):window,y=p.nodeName&&p.nodeName.toLowerCase(),y==="select"||y==="input"&&p.type==="file")var B=VF;else if(Nm(p))if(Im)B=KF;else{B=UF;var x=WF}else(y=p.nodeName)&&y.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(B=HF);if(B&&(B=B(e,l))){jm(d,B,n,c);break e}x&&x(e,p,l),e==="focusout"&&(x=p._wrapperState)&&x.controlled&&p.type==="number"&&rc(p,"number",p.value)}switch(x=l?go(l):window,e){case"focusin":(Nm(x)||x.contentEditable==="true")&&(po=x,kc=l,Tu=null);break;case"focusout":Tu=kc=po=null;break;case"mousedown":Tc=!0;break;case"contextmenu":case"mouseup":case"dragend":Tc=!1,Hm(d,n,c);break;case"selectionchange":if(QF)break;case"keydown":case"keyup":Hm(d,n,c)}var b;if(Sc)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 fo?Tm(e,n)&&(S="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(S="onCompositionStart");S&&(_m&&n.locale!=="ko"&&(fo||S!=="onCompositionStart"?S==="onCompositionEnd"&&fo&&(b=Am()):(Vn=c,Ec="value"in Vn?Vn.value:Vn.textContent,fo=!0)),x=Ai(l,S),0<x.length&&(S=new Sm(S,e,null,n,c),d.push({event:S,listeners:x}),b?S.data=b:(b=Rm(n),b!==null&&(S.data=b)))),(b=IF?MF(e,n):$F(e,n))&&(l=Ai(l,"onBeforeInput"),0<l.length&&(c=new Sm("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:l}),c.data=b))}eg(d,t)})}function ju(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=gu(e,n),u!=null&&r.unshift(ju(e,u,o)),u=gu(e,t),u!=null&&r.push(ju(e,u,o))),e=e.return}return r}function ho(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ng(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=gu(n,u),s!=null&&a.unshift(ju(n,s,i))):o||(s=gu(n,u),s!=null&&a.push(ju(n,s,i)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var JF=/\r\n?/g,eS=/\u0000|\uFFFD/g;function rg(e){return(typeof e=="string"?e:""+e).replace(JF,`
|
39
|
-
`).replace(eS,"")}function xi(e,t,n){if(t=rg(t),rg(e)!==t&&n)throw Error(K(425))}function Fi(){}var $c=null,Lc=null;function zc(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 Vc=typeof setTimeout=="function"?setTimeout:void 0,tS=typeof clearTimeout=="function"?clearTimeout:void 0,og=typeof Promise=="function"?Promise:void 0,nS=typeof queueMicrotask=="function"?queueMicrotask:typeof og<"u"?function(e){return og.resolve(null).then(e).catch(rS)}:Vc;function rS(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),xu(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);xu(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 ug(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 mo=Math.random().toString(36).slice(2),un="__reactFiber$"+mo,Iu="__reactProps$"+mo,yn="__reactContainer$"+mo,Uc="__reactEvents$"+mo,oS="__reactListeners$"+mo,uS="__reactHandles$"+mo;function Er(e){var t=e[un];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yn]||n[un]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ug(e);e!==null;){if(n=e[un])return n;e=ug(e)}return t}e=n,n=e.parentNode}return null}function Mu(e){return e=e[un]||e[yn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function go(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(K(33))}function Si(e){return e[Iu]||null}var Hc=[],yo=-1;function Hn(e){return{current:e}}function Ce(e){0>yo||(e.current=Hc[yo],Hc[yo]=null,yo--)}function ye(e,t){yo++,Hc[yo]=e.current,e.current=t}var Kn={},Ge=Hn(Kn),ct=Hn(!1),Br=Kn;function Do(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 ag(e,t,n){if(Ge.current!==Kn)throw Error(K(168));ye(Ge,t),ye(ct,n)}function ig(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,Wx(e)||"Unknown",o));return Ae({},n,r)}function _i(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Kn,Br=Ge.current,ye(Ge,e),ye(ct,ct.current),!0}function sg(e,t,n){var r=e.stateNode;if(!r)throw Error(K(169));n?(e=ig(e,t,Br),r.__reactInternalMemoizedMergedChildContext=e,Ce(ct),Ce(Ge),ye(Ge,e)):Ce(ct),ye(ct,n)}var Dn=null,Pi=!1,Kc=!1;function lg(e){Dn===null?Dn=[e]:Dn.push(e)}function aS(e){Pi=!0,lg(e)}function qn(){if(!Kc&&Dn!==null){Kc=!0;var e=0,t=pe;try{var n=Dn;for(pe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Dn=null,Pi=!1}catch(o){throw Dn!==null&&(Dn=Dn.slice(e+1)),fm(vc,qn),o}finally{pe=t,Kc=!1}}return null}var Co=[],wo=0,ki=null,Ti=0,kt=[],Tt=0,br=null,Cn=1,wn="";function Ar(e,t){Co[wo++]=Ti,Co[wo++]=ki,ki=e,Ti=t}function cg(e,t,n){kt[Tt++]=Cn,kt[Tt++]=wn,kt[Tt++]=br,br=e;var r=Cn;e=wn;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,Cn=1<<32-Ht(t)+o|n<<o|r,wn=u+e}else Cn=1<<u|n<<o|r,wn=e}function qc(e){e.return!==null&&(Ar(e,1),cg(e,1,0))}function Yc(e){for(;e===ki;)ki=Co[--wo],Co[wo]=null,Ti=Co[--wo],Co[wo]=null;for(;e===br;)br=kt[--Tt],kt[Tt]=null,wn=kt[--Tt],kt[Tt]=null,Cn=kt[--Tt],kt[Tt]=null}var bt=null,At=null,Ee=!1,qt=null;function fg(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 dg(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:Cn,overflow:wn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=It(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 Gc(e){if(Ee){var t=At;if(t){var n=t;if(!dg(e,t)){if(Qc(e))throw Error(K(418));t=Un(n.nextSibling);var r=bt;t&&dg(e,t)?fg(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 pg(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 pg(e),Ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!zc(e.type,e.memoizedProps)),t&&(t=At)){if(Qc(e))throw vg(),Error(K(418));for(;t;)fg(e,t),t=Un(t.nextSibling)}if(pg(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 vg(){for(var e=At;e;)e=Un(e.nextSibling)}function Eo(){At=bt=null,Ee=!1}function Xc(e){qt===null?qt=[e]:qt.push(e)}var iS=gn.ReactCurrentBatchConfig;function $u(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 hg(e){var t=e._init;return t(e._payload)}function mg(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=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===uo?c(h,g,C.props.children,E,C.key):g!==null&&(g.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===jn&&hg(B)===g.type)?(E=o(g,C.props),E.ref=$u(h,g,C),E.return=h,E):(E=us(C.type,C.key,C.props,null,h.mode,E),E.ref=$u(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=Uf(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=Tr(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 ni:return C=us(g.type,g.key,g.props,null,h.mode,C),C.ref=$u(h,null,g),C.return=h,C;case oo:return g=Uf(g,h.mode,C),g.return=h,g;case jn:var E=g._init;return d(h,E(g._payload),C)}if(vu(g)||du(g))return g=Tr(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 oo:return C.key===B?l(h,g,C,E):null;case jn:return B=C._init,p(h,g,B(C._payload),E)}if(vu(C)||du(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 oo: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(vu(E)||du(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,k=null;b!==null&&S<C.length;S++){b.index>S?(k=b,b=null):k=b.sibling;var O=p(h,b,C[S],E);if(O===null){b===null&&(b=k);break}e&&b&&O.alternate===null&&t(h,b),g=u(O,g,S),x===null?B=O:x.sibling=O,x=O,b=k}if(S===C.length)return n(h,b),Ee&&Ar(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&&Ar(h,S),B}for(b=r(h,b);S<C.length;S++)k=y(b,h,S,C[S],E),k!==null&&(e&&k.alternate!==null&&b.delete(k.key===null?S:k.key),g=u(k,g,S),x===null?B=k:x.sibling=k,x=k);return e&&b.forEach(function(H){return t(h,H)}),Ee&&Ar(h,S),B}function f(h,g,C,E){var B=du(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,k=null,O=C.next();b!==null&&!O.done;S++,O=C.next()){b.index>S?(k=b,b=null):k=b.sibling;var H=p(h,b,O.value,E);if(H===null){b===null&&(b=k);break}e&&b&&H.alternate===null&&t(h,b),g=u(H,g,S),x===null?B=H:x.sibling=H,x=H,b=k}if(O.done)return n(h,b),Ee&&Ar(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&&Ar(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(P){return t(h,P)}),Ee&&Ar(h,S),B}function w(h,g,C,E){if(typeof C=="object"&&C!==null&&C.type===uo&&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===uo){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&&hg(B)===x.type){n(h,x.sibling),g=o(x,C.props),g.ref=$u(h,x,C),g.return=h,h=g;break e}n(h,x);break}else t(h,x);x=x.sibling}C.type===uo?(g=Tr(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=$u(h,g,C),E.return=h,h=E)}return a(h);case oo: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=Uf(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(vu(C))return m(h,g,C,E);if(du(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=Wf(C,h.mode,E),g.return=h,h=g),a(h)):n(h,g)}return w}var Bo=mg(!0),gg=mg(!1),ji=Hn(null),Ii=null,bo=null,Zc=null;function Jc(){Zc=bo=Ii=null}function ef(e){var t=ji.current;Ce(ji),e._currentValue=t}function tf(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 Ao(e,t){Ii=e,Zc=bo=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(Zc!==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 xr=null;function nf(e){xr===null?xr=[e]:xr.push(e)}function yg(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,nf(t)):(n.next=o.next,o.next=n),t.interleaved=n,En(e,r)}function En(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 rf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Dg(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,En(e,n)}return o=r.interleaved,o===null?(t.next=t,nf(r)):(t.next=o.next,o.next=t),r.interleaved=t,En(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,gc(e,n)}}function Cg(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);Or|=a,e.lanes=a,e.memoizedState=d}}function wg(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 Lu={},an=Hn(Lu),zu=Hn(Lu),Vu=Hn(Lu);function Fr(e){if(e===Lu)throw Error(K(174));return e}function of(e,t){switch(ye(Vu,t),ye(zu,e),ye(an,Lu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:uc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=uc(t,e)}Ce(an),ye(an,t)}function xo(){Ce(an),Ce(zu),Ce(Vu)}function Eg(e){Fr(Vu.current);var t=Fr(an.current),n=uc(t,e.type);t!==n&&(ye(zu,e),ye(an,n))}function uf(e){zu.current===e&&(Ce(an),Ce(zu))}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 af=[];function sf(){for(var e=0;e<af.length;e++)af[e]._workInProgressVersionPrimary=null;af.length=0}var zi=gn.ReactCurrentDispatcher,lf=gn.ReactCurrentBatchConfig,Sr=0,Fe=null,Me=null,Ve=null,Vi=!1,Wu=!1,Uu=0,sS=0;function Xe(){throw Error(K(321))}function cf(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 ff(e,t,n,r,o,u){if(Sr=u,Fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,zi.current=e===null||e.memoizedState===null?dS:pS,e=n(r,o),Wu){u=0;do{if(Wu=!1,Uu=0,25<=u)throw Error(K(301));u+=1,Ve=Me=null,t.updateQueue=null,zi.current=vS,e=n(r,o)}while(Wu)}if(zi.current=Hi,t=Me!==null&&Me.next!==null,Sr=0,Ve=Me=Fe=null,Vi=!1,t)throw Error(K(300));return e}function df(){var e=Uu!==0;return Uu=0,e}function sn(){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 Nt(){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 Hu(e,t){return typeof t=="function"?t(e):t}function pf(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((Sr&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,Or|=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,Or|=u,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function vf(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);Kt(u,t.memoizedState)||(dt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,r]}function Bg(){}function bg(e,t){var n=Fe,r=Nt(),o=t(),u=!Kt(r.memoizedState,o);if(u&&(r.memoizedState=o,dt=!0),r=r.queue,hf(Fg.bind(null,n,r,e),[e]),r.getSnapshot!==t||u||Ve!==null&&Ve.memoizedState.tag&1){if(n.flags|=2048,Ku(9,xg.bind(null,n,r,o,t),void 0,null),We===null)throw Error(K(349));Sr&30||Ag(n,t,o)}return o}function Ag(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 xg(e,t,n,r){t.value=n,t.getSnapshot=r,Sg(t)&&Og(e)}function Fg(e,t,n){return n(function(){Sg(t)&&Og(e)})}function Sg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Kt(e,n)}catch{return!0}}function Og(e){var t=En(e,1);t!==null&&Xt(t,e,1,-1)}function _g(e){var t=sn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Hu,lastRenderedState:e},t.queue=e,e=e.dispatch=fS.bind(null,Fe,e),[t.memoizedState,e]}function Ku(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 Pg(){return Nt().memoizedState}function Wi(e,t,n,r){var o=sn();Fe.flags|=e,o.memoizedState=Ku(1|t,n,void 0,r===void 0?null:r)}function Ui(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&&cf(r,a.deps)){o.memoizedState=Ku(t,n,u,r);return}}Fe.flags|=e,o.memoizedState=Ku(1|t,n,u,r)}function kg(e,t){return Wi(8390656,8,e,t)}function hf(e,t){return Ui(2048,8,e,t)}function Tg(e,t){return Ui(4,2,e,t)}function Rg(e,t){return Ui(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 jg(e,t,n){return n=n!=null?n.concat([e]):null,Ui(4,4,Ng.bind(null,t,e),n)}function mf(){}function Ig(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&cf(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Mg(e,t){var n=Nt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&cf(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function $g(e,t,n){return Sr&21?(Kt(n,t)||(n=hm(),Fe.lanes|=n,Or|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,dt=!0),e.memoizedState=n)}function lS(e,t){var n=pe;pe=n!==0&&4>n?n:4,e(!0);var r=lf.transition;lf.transition={};try{e(!1),t()}finally{pe=n,lf.transition=r}}function Lg(){return Nt().memoizedState}function cS(e,t,n){var r=Jn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},zg(e))Vg(t,n);else if(n=yg(e,t,n,r),n!==null){var o=ut();Xt(n,e,r,o),Wg(n,t,r)}}function fS(e,t,n){var r=Jn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(zg(e))Vg(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,nf(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=yg(e,t,o,r),n!==null&&(o=ut(),Xt(n,e,r,o),Wg(n,t,r))}}function zg(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function Vg(e,t){Wu=Vi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Wg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gc(e,n)}}var Hi={readContext:Rt,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},dS={readContext:Rt,useCallback:function(e,t){return sn().memoizedState=[e,t===void 0?null:t],e},useContext:Rt,useEffect:kg,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Wi(4194308,4,Ng.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=sn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sn();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=cS.bind(null,Fe,e),[r.memoizedState,e]},useRef:function(e){var t=sn();return e={current:e},t.memoizedState=e},useState:_g,useDebugValue:mf,useDeferredValue:function(e){return sn().memoizedState=e},useTransition:function(){var e=_g(!1),t=e[0];return e=lS.bind(null,e[1]),sn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Fe,o=sn();if(Ee){if(n===void 0)throw Error(K(407));n=n()}else{if(n=t(),We===null)throw Error(K(349));Sr&30||Ag(r,t,n)}o.memoizedState=n;var u={value:n,getSnapshot:t};return o.queue=u,kg(Fg.bind(null,r,u,e),[e]),r.flags|=2048,Ku(9,xg.bind(null,r,u,n,t),void 0,null),n},useId:function(){var e=sn(),t=We.identifierPrefix;if(Ee){var n=wn,r=Cn;n=(r&~(1<<32-Ht(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Uu++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=sS++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},pS={readContext:Rt,useCallback:Ig,useContext:Rt,useEffect:hf,useImperativeHandle:jg,useInsertionEffect:Tg,useLayoutEffect:Rg,useMemo:Mg,useReducer:pf,useRef:Pg,useState:function(){return pf(Hu)},useDebugValue:mf,useDeferredValue:function(e){var t=Nt();return $g(t,Me.memoizedState,e)},useTransition:function(){var e=pf(Hu)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:Bg,useSyncExternalStore:bg,useId:Lg,unstable_isNewReconciler:!1},vS={readContext:Rt,useCallback:Ig,useContext:Rt,useEffect:hf,useImperativeHandle:jg,useInsertionEffect:Tg,useLayoutEffect:Rg,useMemo:Mg,useReducer:vf,useRef:Pg,useState:function(){return vf(Hu)},useDebugValue:mf,useDeferredValue:function(e){var t=Nt();return Me===null?t.memoizedState=e:$g(t,Me.memoizedState,e)},useTransition:function(){var e=vf(Hu)[0],t=Nt().memoizedState;return[e,t]},useMutableSource:Bg,useSyncExternalStore:bg,useId:Lg,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 gf(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)?wr(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 Ug(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 Hg(e,t,n){var r=!1,o=Kn,u=t.contextType;return typeof u=="object"&&u!==null?u=Rt(u):(o=ft(t)?Br:Ge.current,r=t.contextTypes,u=(r=r!=null)?Do(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 Kg(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 yf(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},rf(e);var u=t.contextType;typeof u=="object"&&u!==null?o.context=Rt(u):(u=ft(t)?Br:Ge.current,o.context=Do(e,u)),o.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(gf(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 Fo(e,t){try{var n="",r=t;do n+=Vx(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{ec=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?hu(e):""}function Yx(e){switch(e.tag){case 5:return hu(e.type);case 16:return hu("Lazy");case 13:return hu("Suspense");case 19:return hu("SuspenseList");case 0:case 2:case 15:return e=tc(e.type,!1),e;case 11:return e=tc(e.type.render,!1),e;case 1:return e=tc(e.type,!0),e;default:return""}}function nc(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 io:return"Fragment";case ao:return"Portal";case Yl:return"Profiler";case ql:return"StrictMode";case Gl:return"Suspense";case Xl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hh:return(e.displayName||"Context")+".Consumer";case Uh:return(e._context.displayName||"Context")+".Provider";case Ql:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Zl:return t=e.displayName||null,t!==null?t:nc(e.type)||"Memo";case $n:t=e._payload,e=e._init;try{return nc(e(t))}catch{}}return null}function Qx(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 nc(t);case 8:return t===ql?"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 Ln(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Yh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gx(e){var t=Yh(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 ui(e){e._valueTracker||(e._valueTracker=Gx(e))}function Qh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Yh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ai(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 rc(e,t){var n=t.checked;return Fe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Gh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ln(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 Xh(e,t){t=t.checked,t!=null&&Kl(e,"checked",t,!1)}function oc(e,t){Xh(e,t);var n=Ln(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")?uc(e,t.type,n):t.hasOwnProperty("defaultValue")&&uc(e,t.type,Ln(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Zh(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 uc(e,t,n){(t!=="number"||ai(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var mu=Array.isArray;function so(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=""+Ln(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 ac(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(H(91));return Fe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Jh(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(H(92));if(mu(n)){if(1<n.length)throw Error(H(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ln(n)}}function em(e,t){var n=Ln(t.value),r=Ln(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 tm(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function nm(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 ic(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?nm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ii,rm=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(ii=ii||document.createElement("div"),ii.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ii.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function gu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var yu={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},Xx=["Webkit","ms","Moz","O"];Object.keys(yu).forEach(function(e){Xx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),yu[t]=yu[e]})});function om(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||yu.hasOwnProperty(e)&&yu[e]?(""+t).trim():t+"px"}function um(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=om(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Zx=Fe({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 sc(e,t){if(t){if(Zx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(H(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(H(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(H(61))}if(t.style!=null&&typeof t.style!="object")throw Error(H(62))}}function lc(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 cc=null;function fc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dc=null,lo=null,co=null;function am(e){if(e=Lu(e)){if(typeof dc!="function")throw Error(H(280));var t=e.stateNode;t&&(t=_i(t),dc(e.stateNode,e.type,t))}}function im(e){lo?co?co.push(e):co=[e]:lo=e}function sm(){if(lo){var e=lo,t=co;if(co=lo=null,am(e),t)for(e=0;e<t.length;e++)am(t[e])}}function lm(e,t){return e(t)}function cm(){}var pc=!1;function fm(e,t,n){if(pc)return e(t,n);pc=!0;try{return lm(e,t,n)}finally{pc=!1,(lo!==null||co!==null)&&(cm(),sm())}}function Du(e,t){var n=e.stateNode;if(n===null)return null;var r=_i(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(H(231,t,typeof n));return n}var vc=!1;if(yn)try{var Cu={};Object.defineProperty(Cu,"passive",{get:function(){vc=!0}}),window.addEventListener("test",Cu,Cu),window.removeEventListener("test",Cu,Cu)}catch{vc=!1}function Jx(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 wu=!1,si=null,li=!1,hc=null,eF={onError:function(e){wu=!0,si=e}};function tF(e,t,n,r,o,u,a,i,s){wu=!1,si=null,Jx.apply(eF,arguments)}function nF(e,t,n,r,o,u,a,i,s){if(tF.apply(this,arguments),wu){if(wu){var l=si;wu=!1,si=null}else throw Error(H(198));li||(li=!0,hc=l)}}function Ar(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 dm(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 pm(e){if(Ar(e)!==e)throw Error(H(188))}function rF(e){var t=e.alternate;if(!t){if(t=Ar(e),t===null)throw Error(H(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 pm(o),e;if(u===r)return pm(o),t;u=u.sibling}throw Error(H(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(H(189))}}if(n.alternate!==r)throw Error(H(190))}if(n.tag!==3)throw Error(H(188));return n.stateNode.current===n?e:t}function vm(e){return e=rF(e),e!==null?hm(e):null}function hm(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=hm(e);if(t!==null)return t;e=e.sibling}return null}var mm=At.unstable_scheduleCallback,gm=At.unstable_cancelCallback,oF=At.unstable_shouldYield,uF=At.unstable_requestPaint,Re=At.unstable_now,aF=At.unstable_getCurrentPriorityLevel,mc=At.unstable_ImmediatePriority,ym=At.unstable_UserBlockingPriority,ci=At.unstable_NormalPriority,iF=At.unstable_LowPriority,Dm=At.unstable_IdlePriority,fi=null,on=null;function sF(e){if(on&&typeof on.onCommitFiberRoot=="function")try{on.onCommitFiberRoot(fi,e,void 0,(e.current.flags&128)===128)}catch{}}var Ht=Math.clz32?Math.clz32:fF,lF=Math.log,cF=Math.LN2;function fF(e){return e>>>=0,e===0?32:31-(lF(e)/cF|0)|0}var di=64,pi=4194304;function Eu(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 vi(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=Eu(i):(u&=a,u!==0&&(r=Eu(u)))}else a=n&~o,a!==0?r=Eu(a):u!==0&&(r=Eu(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 dF(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 pF(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]=dF(i,t)):s<=t&&(e.expiredLanes|=i),u&=~i}}function gc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Cm(){var e=di;return di<<=1,!(di&4194240)&&(di=64),e}function yc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Bu(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 vF(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 Dc(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 ge=0;function wm(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Em,Cc,Bm,Am,bm,wc=!1,hi=[],zn=null,Vn=null,Wn=null,Au=new Map,bu=new Map,Un=[],hF="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 xm(e,t){switch(e){case"focusin":case"focusout":zn=null;break;case"dragenter":case"dragleave":Vn=null;break;case"mouseover":case"mouseout":Wn=null;break;case"pointerover":case"pointerout":Au.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":bu.delete(t.pointerId)}}function xu(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=Lu(t),t!==null&&Cc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function mF(e,t,n,r,o){switch(t){case"focusin":return zn=xu(zn,e,t,n,r,o),!0;case"dragenter":return Vn=xu(Vn,e,t,n,r,o),!0;case"mouseover":return Wn=xu(Wn,e,t,n,r,o),!0;case"pointerover":var u=o.pointerId;return Au.set(u,xu(Au.get(u)||null,e,t,n,r,o)),!0;case"gotpointercapture":return u=o.pointerId,bu.set(u,xu(bu.get(u)||null,e,t,n,r,o)),!0}return!1}function Fm(e){var t=br(e.target);if(t!==null){var n=Ar(t);if(n!==null){if(t=n.tag,t===13){if(t=dm(n),t!==null){e.blockedOn=t,bm(e.priority,function(){Bm(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 mi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Bc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);cc=r,n.target.dispatchEvent(r),cc=null}else return t=Lu(n),t!==null&&Cc(t),e.blockedOn=n,!1;t.shift()}return!0}function Sm(e,t,n){mi(e)&&n.delete(t)}function gF(){wc=!1,zn!==null&&mi(zn)&&(zn=null),Vn!==null&&mi(Vn)&&(Vn=null),Wn!==null&&mi(Wn)&&(Wn=null),Au.forEach(Sm),bu.forEach(Sm)}function Fu(e,t){e.blockedOn===t&&(e.blockedOn=null,wc||(wc=!0,At.unstable_scheduleCallback(At.unstable_NormalPriority,gF)))}function Su(e){function t(o){return Fu(o,e)}if(0<hi.length){Fu(hi[0],e);for(var n=1;n<hi.length;n++){var r=hi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(zn!==null&&Fu(zn,e),Vn!==null&&Fu(Vn,e),Wn!==null&&Fu(Wn,e),Au.forEach(t),bu.forEach(t),n=0;n<Un.length;n++)r=Un[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Un.length&&(n=Un[0],n.blockedOn===null);)Fm(n),n.blockedOn===null&&Un.shift()}var fo=Dn.ReactCurrentBatchConfig,gi=!0;function yF(e,t,n,r){var o=ge,u=fo.transition;fo.transition=null;try{ge=1,Ec(e,t,n,r)}finally{ge=o,fo.transition=u}}function DF(e,t,n,r){var o=ge,u=fo.transition;fo.transition=null;try{ge=4,Ec(e,t,n,r)}finally{ge=o,fo.transition=u}}function Ec(e,t,n,r){if(gi){var o=Bc(e,t,n,r);if(o===null)Lc(e,t,r,yi,n),xm(e,r);else if(mF(o,e,t,n,r))r.stopPropagation();else if(xm(e,r),t&4&&-1<hF.indexOf(e)){for(;o!==null;){var u=Lu(o);if(u!==null&&Em(u),u=Bc(e,t,n,r),u===null&&Lc(e,t,r,yi,n),u===o)break;o=u}o!==null&&r.stopPropagation()}else Lc(e,t,r,null,n)}}var yi=null;function Bc(e,t,n,r){if(yi=null,e=fc(r),e=br(e),e!==null)if(t=Ar(e),t===null)e=null;else if(n=t.tag,n===13){if(e=dm(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 yi=e,null}function Om(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(aF()){case mc:return 1;case ym:return 4;case ci:case iF:return 16;case Dm:return 536870912;default:return 16}default:return 16}}var Hn=null,Ac=null,Di=null;function _m(){if(Di)return Di;var e,t=Ac,n=t.length,r,o="value"in Hn?Hn.value:Hn.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 Di=o.slice(e,1<r?1-r:void 0)}function Ci(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 wi(){return!0}function Pm(){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)?wi:Pm,this.isPropagationStopped=Pm,this}return Fe(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=wi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=wi)},persist:function(){},isPersistent:wi}),t}var po={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bc=bt(po),Ou=Fe({},po,{view:0,detail:0}),CF=bt(Ou),xc,Fc,_u,Ei=Fe({},Ou,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Oc,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!==_u&&(_u&&e.type==="mousemove"?(xc=e.screenX-_u.screenX,Fc=e.screenY-_u.screenY):Fc=xc=0,_u=e),xc)},movementY:function(e){return"movementY"in e?e.movementY:Fc}}),km=bt(Ei),wF=Fe({},Ei,{dataTransfer:0}),EF=bt(wF),BF=Fe({},Ou,{relatedTarget:0}),Sc=bt(BF),AF=Fe({},po,{animationName:0,elapsedTime:0,pseudoElement:0}),bF=bt(AF),xF=Fe({},po,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),FF=bt(xF),SF=Fe({},po,{data:0}),Tm=bt(SF),OF={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_F={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"},PF={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kF(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=PF[e])?!!t[e]:!1}function Oc(){return kF}var TF=Fe({},Ou,{key:function(e){if(e.key){var t=OF[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ci(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_F[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Oc,charCode:function(e){return e.type==="keypress"?Ci(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ci(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),RF=bt(TF),NF=Fe({},Ei,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Rm=bt(NF),jF=Fe({},Ou,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Oc}),IF=bt(jF),MF=Fe({},po,{propertyName:0,elapsedTime:0,pseudoElement:0}),$F=bt(MF),LF=Fe({},Ei,{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}),zF=bt(LF),VF=[9,13,27,32],_c=yn&&"CompositionEvent"in window,Pu=null;yn&&"documentMode"in document&&(Pu=document.documentMode);var WF=yn&&"TextEvent"in window&&!Pu,Nm=yn&&(!_c||Pu&&8<Pu&&11>=Pu),jm=" ",Im=!1;function Mm(e,t){switch(e){case"keyup":return VF.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $m(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vo=!1;function UF(e,t){switch(e){case"compositionend":return $m(t);case"keypress":return t.which!==32?null:(Im=!0,jm);case"textInput":return e=t.data,e===jm&&Im?null:e;default:return null}}function HF(e,t){if(vo)return e==="compositionend"||!_c&&Mm(e,t)?(e=_m(),Di=Ac=Hn=null,vo=!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 Nm&&t.locale!=="ko"?null:t.data;default:return null}}var KF={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 Lm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!KF[e.type]:t==="textarea"}function zm(e,t,n,r){im(r),t=Fi(t,"onChange"),0<t.length&&(n=new bc("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ku=null,Tu=null;function qF(e){ug(e,0)}function Bi(e){var t=Do(e);if(Qh(t))return e}function YF(e,t){if(e==="change")return t}var Vm=!1;if(yn){var Pc;if(yn){var kc="oninput"in document;if(!kc){var Wm=document.createElement("div");Wm.setAttribute("oninput","return;"),kc=typeof Wm.oninput=="function"}Pc=kc}else Pc=!1;Vm=Pc&&(!document.documentMode||9<document.documentMode)}function Um(){ku&&(ku.detachEvent("onpropertychange",Hm),Tu=ku=null)}function Hm(e){if(e.propertyName==="value"&&Bi(Tu)){var t=[];zm(t,Tu,e,fc(e)),fm(qF,t)}}function QF(e,t,n){e==="focusin"?(Um(),ku=t,Tu=n,ku.attachEvent("onpropertychange",Hm)):e==="focusout"&&Um()}function GF(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Bi(Tu)}function XF(e,t){if(e==="click")return Bi(t)}function ZF(e,t){if(e==="input"||e==="change")return Bi(t)}function JF(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Kt=typeof Object.is=="function"?Object.is:JF;function Ru(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(!Wl.call(t,o)||!Kt(e[o],t[o]))return!1}return!0}function Km(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qm(e,t){var n=Km(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=Km(n)}}function Ym(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ym(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qm(){for(var e=window,t=ai();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ai(e.document)}return t}function Tc(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 eS(e){var t=Qm(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ym(n.ownerDocument.documentElement,n)){if(r!==null&&Tc(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=qm(n,u);var a=qm(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 tS=yn&&"documentMode"in document&&11>=document.documentMode,ho=null,Rc=null,Nu=null,Nc=!1;function Gm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nc||ho==null||ho!==ai(r)||(r=ho,"selectionStart"in r&&Tc(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}),Nu&&Ru(Nu,r)||(Nu=r,r=Fi(Rc,"onSelect"),0<r.length&&(t=new bc("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ho)))}function Ai(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var mo={animationend:Ai("Animation","AnimationEnd"),animationiteration:Ai("Animation","AnimationIteration"),animationstart:Ai("Animation","AnimationStart"),transitionend:Ai("Transition","TransitionEnd")},jc={},Xm={};yn&&(Xm=document.createElement("div").style,"AnimationEvent"in window||(delete mo.animationend.animation,delete mo.animationiteration.animation,delete mo.animationstart.animation),"TransitionEvent"in window||delete mo.transitionend.transition);function bi(e){if(jc[e])return jc[e];if(!mo[e])return e;var t=mo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Xm)return jc[e]=t[n];return e}var Zm=bi("animationend"),Jm=bi("animationiteration"),eg=bi("animationstart"),tg=bi("transitionend"),ng=new Map,rg="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 Kn(e,t){ng.set(e,t),Br(t,[e])}for(var Ic=0;Ic<rg.length;Ic++){var Mc=rg[Ic],nS=Mc.toLowerCase(),rS=Mc[0].toUpperCase()+Mc.slice(1);Kn(nS,"on"+rS)}Kn(Zm,"onAnimationEnd"),Kn(Jm,"onAnimationIteration"),Kn(eg,"onAnimationStart"),Kn("dblclick","onDoubleClick"),Kn("focusin","onFocus"),Kn("focusout","onBlur"),Kn(tg,"onTransitionEnd"),uo("onMouseEnter",["mouseout","mouseover"]),uo("onMouseLeave",["mouseout","mouseover"]),uo("onPointerEnter",["pointerout","pointerover"]),uo("onPointerLeave",["pointerout","pointerover"]),Br("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Br("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Br("onBeforeInput",["compositionend","keypress","textInput","paste"]),Br("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Br("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Br("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ju="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(" "),oS=new Set("cancel close invalid load scroll toggle".split(" ").concat(ju));function og(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,nF(r,t,void 0,e),e.currentTarget=null}function ug(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;og(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;og(o,i,l),u=s}}}if(li)throw e=hc,li=!1,hc=null,e}function Ee(e,t){var n=t[Kc];n===void 0&&(n=t[Kc]=new Set);var r=e+"__bubble";n.has(r)||(ag(t,e,2,!1),n.add(r))}function $c(e,t,n){var r=0;t&&(r|=4),ag(n,e,r,t)}var xi="_reactListening"+Math.random().toString(36).slice(2);function Iu(e){if(!e[xi]){e[xi]=!0,zh.forEach(function(n){n!=="selectionchange"&&(oS.has(n)||$c(n,!1,e),$c(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xi]||(t[xi]=!0,$c("selectionchange",!1,t))}}function ag(e,t,n,r){switch(Om(t)){case 1:var o=yF;break;case 4:o=DF;break;default:o=Ec}n=o.bind(null,t,n,e),o=void 0,!vc||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 Lc(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=br(i),a===null)return;if(s=a.tag,s===5||s===6){r=u=a;continue e}i=i.parentNode}}r=r.return}fm(function(){var l=u,c=fc(n),d=[];e:{var p=ng.get(e);if(p!==void 0){var y=bc,m=e;switch(e){case"keypress":if(Ci(n)===0)break e;case"keydown":case"keyup":y=RF;break;case"focusin":m="focus",y=Sc;break;case"focusout":m="blur",y=Sc;break;case"beforeblur":case"afterblur":y=Sc;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=km;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=EF;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=IF;break;case Zm:case Jm:case eg:y=bF;break;case tg:y=$F;break;case"scroll":y=CF;break;case"wheel":y=zF;break;case"copy":case"cut":case"paste":y=FF;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Rm}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=Du(g,h),E!=null&&f.push(Mu(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!==cc&&(m=n.relatedTarget||n.fromElement)&&(br(m)||m[Cn]))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?br(m):null,m!==null&&(w=Ar(m),m!==w||m.tag!==5&&m.tag!==6)&&(m=null)):(y=null,m=l),y!==m)){if(f=km,E="onMouseLeave",h="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(f=Rm,E="onPointerLeave",h="onPointerEnter",g="pointer"),w=y==null?p:Do(y),C=m==null?p:Do(m),p=new f(E,g+"leave",y,n,c),p.target=w,p.relatedTarget=C,E=null,br(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=go(C))g++;for(C=0,E=h;E;E=go(E))C++;for(;0<g-C;)f=go(f),g--;for(;0<C-g;)h=go(h),C--;for(;g--;){if(f===h||h!==null&&f===h.alternate)break t;f=go(f),h=go(h)}f=null}else f=null;y!==null&&ig(d,p,y,f,!1),m!==null&&w!==null&&ig(d,w,m,f,!0)}}e:{if(p=l?Do(l):window,y=p.nodeName&&p.nodeName.toLowerCase(),y==="select"||y==="input"&&p.type==="file")var B=YF;else if(Lm(p))if(Vm)B=ZF;else{B=GF;var x=QF}else(y=p.nodeName)&&y.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(B=XF);if(B&&(B=B(e,l))){zm(d,B,n,c);break e}x&&x(e,p,l),e==="focusout"&&(x=p._wrapperState)&&x.controlled&&p.type==="number"&&uc(p,"number",p.value)}switch(x=l?Do(l):window,e){case"focusin":(Lm(x)||x.contentEditable==="true")&&(ho=x,Rc=l,Nu=null);break;case"focusout":Nu=Rc=ho=null;break;case"mousedown":Nc=!0;break;case"contextmenu":case"mouseup":case"dragend":Nc=!1,Gm(d,n,c);break;case"selectionchange":if(tS)break;case"keydown":case"keyup":Gm(d,n,c)}var A;if(_c)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 vo?Mm(e,n)&&(S="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(S="onCompositionStart");S&&(Nm&&n.locale!=="ko"&&(vo||S!=="onCompositionStart"?S==="onCompositionEnd"&&vo&&(A=_m()):(Hn=c,Ac="value"in Hn?Hn.value:Hn.textContent,vo=!0)),x=Fi(l,S),0<x.length&&(S=new Tm(S,e,null,n,c),d.push({event:S,listeners:x}),A?S.data=A:(A=$m(n),A!==null&&(S.data=A)))),(A=WF?UF(e,n):HF(e,n))&&(l=Fi(l,"onBeforeInput"),0<l.length&&(c=new Tm("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:l}),c.data=A))}ug(d,t)})}function Mu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fi(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,u=o.stateNode;o.tag===5&&u!==null&&(o=u,u=Du(e,n),u!=null&&r.unshift(Mu(e,u,o)),u=Du(e,t),u!=null&&r.push(Mu(e,u,o))),e=e.return}return r}function go(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ig(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=Du(n,u),s!=null&&a.unshift(Mu(n,s,i))):o||(s=Du(n,u),s!=null&&a.push(Mu(n,s,i)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var uS=/\r\n?/g,aS=/\u0000|\uFFFD/g;function sg(e){return(typeof e=="string"?e:""+e).replace(uS,`
|
39
|
+
`).replace(aS,"")}function Si(e,t,n){if(t=sg(t),sg(e)!==t&&n)throw Error(H(425))}function Oi(){}var zc=null,Vc=null;function Wc(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 Uc=typeof setTimeout=="function"?setTimeout:void 0,iS=typeof clearTimeout=="function"?clearTimeout:void 0,lg=typeof Promise=="function"?Promise:void 0,sS=typeof queueMicrotask=="function"?queueMicrotask:typeof lg<"u"?function(e){return lg.resolve(null).then(e).catch(lS)}:Uc;function lS(e){setTimeout(function(){throw e})}function Hc(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),Su(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Su(t)}function qn(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 cg(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 yo=Math.random().toString(36).slice(2),un="__reactFiber$"+yo,$u="__reactProps$"+yo,Cn="__reactContainer$"+yo,Kc="__reactEvents$"+yo,cS="__reactListeners$"+yo,fS="__reactHandles$"+yo;function br(e){var t=e[un];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Cn]||n[un]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=cg(e);e!==null;){if(n=e[un])return n;e=cg(e)}return t}e=n,n=e.parentNode}return null}function Lu(e){return e=e[un]||e[Cn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Do(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(H(33))}function _i(e){return e[$u]||null}var qc=[],Co=-1;function Yn(e){return{current:e}}function Be(e){0>Co||(e.current=qc[Co],qc[Co]=null,Co--)}function Ce(e,t){Co++,qc[Co]=e.current,e.current=t}var Qn={},Ze=Yn(Qn),dt=Yn(!1),xr=Qn;function wo(e,t){var n=e.type.contextTypes;if(!n)return Qn;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 pt(e){return e=e.childContextTypes,e!=null}function Pi(){Be(dt),Be(Ze)}function fg(e,t,n){if(Ze.current!==Qn)throw Error(H(168));Ce(Ze,t),Ce(dt,n)}function dg(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(H(108,Qx(e)||"Unknown",o));return Fe({},n,r)}function ki(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qn,xr=Ze.current,Ce(Ze,e),Ce(dt,dt.current),!0}function pg(e,t,n){var r=e.stateNode;if(!r)throw Error(H(169));n?(e=dg(e,t,xr),r.__reactInternalMemoizedMergedChildContext=e,Be(dt),Be(Ze),Ce(Ze,e)):Be(dt),Ce(dt,n)}var wn=null,Ti=!1,Yc=!1;function vg(e){wn===null?wn=[e]:wn.push(e)}function dS(e){Ti=!0,vg(e)}function Gn(){if(!Yc&&wn!==null){Yc=!0;var e=0,t=ge;try{var n=wn;for(ge=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}wn=null,Ti=!1}catch(o){throw wn!==null&&(wn=wn.slice(e+1)),mm(mc,Gn),o}finally{ge=t,Yc=!1}}return null}var Eo=[],Bo=0,Ri=null,Ni=0,Tt=[],Rt=0,Fr=null,En=1,Bn="";function Sr(e,t){Eo[Bo++]=Ni,Eo[Bo++]=Ri,Ri=e,Ni=t}function hg(e,t,n){Tt[Rt++]=En,Tt[Rt++]=Bn,Tt[Rt++]=Fr,Fr=e;var r=En;e=Bn;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,En=1<<32-Ht(t)+o|n<<o|r,Bn=u+e}else En=1<<u|n<<o|r,Bn=e}function Qc(e){e.return!==null&&(Sr(e,1),hg(e,1,0))}function Gc(e){for(;e===Ri;)Ri=Eo[--Bo],Eo[Bo]=null,Ni=Eo[--Bo],Eo[Bo]=null;for(;e===Fr;)Fr=Tt[--Rt],Tt[Rt]=null,Bn=Tt[--Rt],Tt[Rt]=null,En=Tt[--Rt],Tt[Rt]=null}var xt=null,Ft=null,be=!1,qt=null;function mg(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 gg(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,xt=e,Ft=qn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,xt=e,Ft=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Fr!==null?{id:En,overflow:Bn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Mt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,xt=e,Ft=null,!0):!1;default:return!1}}function Xc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Zc(e){if(be){var t=Ft;if(t){var n=t;if(!gg(e,t)){if(Xc(e))throw Error(H(418));t=qn(n.nextSibling);var r=xt;t&&gg(e,t)?mg(r,n):(e.flags=e.flags&-4097|2,be=!1,xt=e)}}else{if(Xc(e))throw Error(H(418));e.flags=e.flags&-4097|2,be=!1,xt=e}}}function yg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;xt=e}function ji(e){if(e!==xt)return!1;if(!be)return yg(e),be=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Wc(e.type,e.memoizedProps)),t&&(t=Ft)){if(Xc(e))throw Dg(),Error(H(418));for(;t;)mg(e,t),t=qn(t.nextSibling)}if(yg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ft=qn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ft=null}}else Ft=xt?qn(e.stateNode.nextSibling):null;return!0}function Dg(){for(var e=Ft;e;)e=qn(e.nextSibling)}function Ao(){Ft=xt=null,be=!1}function Jc(e){qt===null?qt=[e]:qt.push(e)}var pS=Dn.ReactCurrentBatchConfig;function zu(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(H(309));var r=n.stateNode}if(!r)throw Error(H(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(H(284));if(!n._owner)throw Error(H(290,e))}return e}function Ii(e,t){throw e=Object.prototype.toString.call(t),Error(H(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Cg(e){var t=e._init;return t(e._payload)}function wg(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=or(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=Hf(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===io?c(h,g,C.props.children,E,C.key):g!==null&&(g.elementType===B||typeof B=="object"&&B!==null&&B.$$typeof===$n&&Cg(B)===g.type)?(E=o(g,C.props),E.ref=zu(h,g,C),E.return=h,E):(E=is(C.type,C.key,C.props,null,h.mode,E),E.ref=zu(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=Kf(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=jr(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=Hf(""+g,h.mode,C),g.return=h,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case oi:return C=is(g.type,g.key,g.props,null,h.mode,C),C.ref=zu(h,null,g),C.return=h,C;case ao:return g=Kf(g,h.mode,C),g.return=h,g;case $n:var E=g._init;return d(h,E(g._payload),C)}if(mu(g)||vu(g))return g=jr(g,h.mode,C,null),g.return=h,g;Ii(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 oi:return C.key===B?s(h,g,C,E):null;case ao:return C.key===B?l(h,g,C,E):null;case $n:return B=C._init,p(h,g,B(C._payload),E)}if(mu(C)||vu(C))return B!==null?null:c(h,g,C,E,null);Ii(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 oi:return h=h.get(E.key===null?C:E.key)||null,s(g,h,E,B);case ao:return h=h.get(E.key===null?C:E.key)||null,l(g,h,E,B);case $n:var x=E._init;return y(h,g,C,x(E._payload),B)}if(mu(E)||vu(E))return h=h.get(C)||null,c(g,h,E,B,null);Ii(g,E)}return null}function m(h,g,C,E){for(var B=null,x=null,A=g,S=g=0,N=null;A!==null&&S<C.length;S++){A.index>S?(N=A,A=null):N=A.sibling;var O=p(h,A,C[S],E);if(O===null){A===null&&(A=N);break}e&&A&&O.alternate===null&&t(h,A),g=u(O,g,S),x===null?B=O:x.sibling=O,x=O,A=N}if(S===C.length)return n(h,A),be&&Sr(h,S),B;if(A===null){for(;S<C.length;S++)A=d(h,C[S],E),A!==null&&(g=u(A,g,S),x===null?B=A:x.sibling=A,x=A);return be&&Sr(h,S),B}for(A=r(h,A);S<C.length;S++)N=y(A,h,S,C[S],E),N!==null&&(e&&N.alternate!==null&&A.delete(N.key===null?S:N.key),g=u(N,g,S),x===null?B=N:x.sibling=N,x=N);return e&&A.forEach(function(V){return t(h,V)}),be&&Sr(h,S),B}function f(h,g,C,E){var B=vu(C);if(typeof B!="function")throw Error(H(150));if(C=B.call(C),C==null)throw Error(H(151));for(var x=B=null,A=g,S=g=0,N=null,O=C.next();A!==null&&!O.done;S++,O=C.next()){A.index>S?(N=A,A=null):N=A.sibling;var V=p(h,A,O.value,E);if(V===null){A===null&&(A=N);break}e&&A&&V.alternate===null&&t(h,A),g=u(V,g,S),x===null?B=V:x.sibling=V,x=V,A=N}if(O.done)return n(h,A),be&&Sr(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),x===null?B=O:x.sibling=O,x=O);return be&&Sr(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),x===null?B=O:x.sibling=O,x=O);return e&&A.forEach(function(P){return t(h,P)}),be&&Sr(h,S),B}function w(h,g,C,E){if(typeof C=="object"&&C!==null&&C.type===io&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case oi:e:{for(var B=C.key,x=g;x!==null;){if(x.key===B){if(B=C.type,B===io){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===$n&&Cg(B)===x.type){n(h,x.sibling),g=o(x,C.props),g.ref=zu(h,x,C),g.return=h,h=g;break e}n(h,x);break}else t(h,x);x=x.sibling}C.type===io?(g=jr(C.props.children,h.mode,E,C.key),g.return=h,h=g):(E=is(C.type,C.key,C.props,null,h.mode,E),E.ref=zu(h,g,C),E.return=h,h=E)}return a(h);case ao: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=Kf(C,h.mode,E),g.return=h,h=g}return a(h);case $n:return x=C._init,w(h,g,x(C._payload),E)}if(mu(C))return m(h,g,C,E);if(vu(C))return f(h,g,C,E);Ii(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=Hf(C,h.mode,E),g.return=h,h=g),a(h)):n(h,g)}return w}var bo=wg(!0),Eg=wg(!1),Mi=Yn(null),$i=null,xo=null,ef=null;function tf(){ef=xo=$i=null}function nf(e){var t=Mi.current;Be(Mi),e._currentValue=t}function rf(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 Fo(e,t){$i=e,ef=xo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(vt=!0),e.firstContext=null)}function Nt(e){var t=e._currentValue;if(ef!==e)if(e={context:e,memoizedValue:t,next:null},xo===null){if($i===null)throw Error(H(308));xo=e,$i.dependencies={lanes:0,firstContext:e}}else xo=xo.next=e;return t}var Or=null;function of(e){Or===null?Or=[e]:Or.push(e)}function Bg(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,of(t)):(n.next=o.next,o.next=n),t.interleaved=n,An(e,r)}function An(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 Xn=!1;function uf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ag(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 Zn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ce&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,An(e,n)}return o=r.interleaved,o===null?(t.next=t,of(r)):(t.next=o.next,o.next=t),r.interleaved=t,An(e,n)}function Li(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,Dc(e,n)}}function bg(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 zi(e,t,n,r){var o=e.updateQueue;Xn=!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=Fe({},d,p);break e;case 2:Xn=!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);kr|=a,e.lanes=a,e.memoizedState=d}}function xg(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(H(191,o));o.call(r)}}}var Vu={},an=Yn(Vu),Wu=Yn(Vu),Uu=Yn(Vu);function _r(e){if(e===Vu)throw Error(H(174));return e}function af(e,t){switch(Ce(Uu,t),Ce(Wu,e),Ce(an,Vu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ic(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ic(t,e)}Be(an),Ce(an,t)}function So(){Be(an),Be(Wu),Be(Uu)}function Fg(e){_r(Uu.current);var t=_r(an.current),n=ic(t,e.type);t!==n&&(Ce(Wu,e),Ce(an,n))}function sf(e){Wu.current===e&&(Be(an),Be(Wu))}var Se=Yn(0);function Vi(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 lf=[];function cf(){for(var e=0;e<lf.length;e++)lf[e]._workInProgressVersionPrimary=null;lf.length=0}var Wi=Dn.ReactCurrentDispatcher,ff=Dn.ReactCurrentBatchConfig,Pr=0,Oe=null,Me=null,ze=null,Ui=!1,Hu=!1,Ku=0,vS=0;function Je(){throw Error(H(321))}function df(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 pf(e,t,n,r,o,u){if(Pr=u,Oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Wi.current=e===null||e.memoizedState===null?yS:DS,e=n(r,o),Hu){u=0;do{if(Hu=!1,Ku=0,25<=u)throw Error(H(301));u+=1,ze=Me=null,t.updateQueue=null,Wi.current=CS,e=n(r,o)}while(Hu)}if(Wi.current=qi,t=Me!==null&&Me.next!==null,Pr=0,ze=Me=Oe=null,Ui=!1,t)throw Error(H(300));return e}function vf(){var e=Ku!==0;return Ku=0,e}function sn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ze===null?Oe.memoizedState=ze=e:ze=ze.next=e,ze}function jt(){if(Me===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=Me.next;var t=ze===null?Oe.memoizedState:ze.next;if(t!==null)ze=t,Me=e;else{if(e===null)throw Error(H(310));Me=e,e={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},ze===null?Oe.memoizedState=ze=e:ze=ze.next=e}return ze}function qu(e,t){return typeof t=="function"?t(e):t}function hf(e){var t=jt(),n=t.queue;if(n===null)throw Error(H(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((Pr&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,Oe.lanes|=c,kr|=c}l=l.next}while(l!==null&&l!==u);s===null?a=r:s.next=i,Kt(r,t.memoizedState)||(vt=!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,Oe.lanes|=u,kr|=u,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function mf(e){var t=jt(),n=t.queue;if(n===null)throw Error(H(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)||(vt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,r]}function Sg(){}function Og(e,t){var n=Oe,r=jt(),o=t(),u=!Kt(r.memoizedState,o);if(u&&(r.memoizedState=o,vt=!0),r=r.queue,gf(kg.bind(null,n,r,e),[e]),r.getSnapshot!==t||u||ze!==null&&ze.memoizedState.tag&1){if(n.flags|=2048,Yu(9,Pg.bind(null,n,r,o,t),void 0,null),Ve===null)throw Error(H(349));Pr&30||_g(n,t,o)}return o}function _g(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Oe.updateQueue,t===null?(t={lastEffect:null,stores:null},Oe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Pg(e,t,n,r){t.value=n,t.getSnapshot=r,Tg(t)&&Rg(e)}function kg(e,t,n){return n(function(){Tg(t)&&Rg(e)})}function Tg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Kt(e,n)}catch{return!0}}function Rg(e){var t=An(e,1);t!==null&&Xt(t,e,1,-1)}function Ng(e){var t=sn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:qu,lastRenderedState:e},t.queue=e,e=e.dispatch=gS.bind(null,Oe,e),[t.memoizedState,e]}function Yu(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Oe.updateQueue,t===null?(t={lastEffect:null,stores:null},Oe.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 jg(){return jt().memoizedState}function Hi(e,t,n,r){var o=sn();Oe.flags|=e,o.memoizedState=Yu(1|t,n,void 0,r===void 0?null:r)}function Ki(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&&df(r,a.deps)){o.memoizedState=Yu(t,n,u,r);return}}Oe.flags|=e,o.memoizedState=Yu(1|t,n,u,r)}function Ig(e,t){return Hi(8390656,8,e,t)}function gf(e,t){return Ki(2048,8,e,t)}function Mg(e,t){return Ki(4,2,e,t)}function $g(e,t){return Ki(4,4,e,t)}function Lg(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 zg(e,t,n){return n=n!=null?n.concat([e]):null,Ki(4,4,Lg.bind(null,t,e),n)}function yf(){}function Vg(e,t){var n=jt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&df(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wg(e,t){var n=jt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&df(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ug(e,t,n){return Pr&21?(Kt(n,t)||(n=Cm(),Oe.lanes|=n,kr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,vt=!0),e.memoizedState=n)}function hS(e,t){var n=ge;ge=n!==0&&4>n?n:4,e(!0);var r=ff.transition;ff.transition={};try{e(!1),t()}finally{ge=n,ff.transition=r}}function Hg(){return jt().memoizedState}function mS(e,t,n){var r=nr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Kg(e))qg(t,n);else if(n=Bg(e,t,n,r),n!==null){var o=it();Xt(n,e,r,o),Yg(n,t,r)}}function gS(e,t,n){var r=nr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Kg(e))qg(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,of(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=Bg(e,t,o,r),n!==null&&(o=it(),Xt(n,e,r,o),Yg(n,t,r))}}function Kg(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function qg(e,t){Hu=Ui=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Yg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Dc(e,n)}}var qi={readContext:Nt,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useInsertionEffect:Je,useLayoutEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useMutableSource:Je,useSyncExternalStore:Je,useId:Je,unstable_isNewReconciler:!1},yS={readContext:Nt,useCallback:function(e,t){return sn().memoizedState=[e,t===void 0?null:t],e},useContext:Nt,useEffect:Ig,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Hi(4194308,4,Lg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Hi(4,2,e,t)},useMemo:function(e,t){var n=sn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sn();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=mS.bind(null,Oe,e),[r.memoizedState,e]},useRef:function(e){var t=sn();return e={current:e},t.memoizedState=e},useState:Ng,useDebugValue:yf,useDeferredValue:function(e){return sn().memoizedState=e},useTransition:function(){var e=Ng(!1),t=e[0];return e=hS.bind(null,e[1]),sn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Oe,o=sn();if(be){if(n===void 0)throw Error(H(407));n=n()}else{if(n=t(),Ve===null)throw Error(H(349));Pr&30||_g(r,t,n)}o.memoizedState=n;var u={value:n,getSnapshot:t};return o.queue=u,Ig(kg.bind(null,r,u,e),[e]),r.flags|=2048,Yu(9,Pg.bind(null,r,u,n,t),void 0,null),n},useId:function(){var e=sn(),t=Ve.identifierPrefix;if(be){var n=Bn,r=En;n=(r&~(1<<32-Ht(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ku++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=vS++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},DS={readContext:Nt,useCallback:Vg,useContext:Nt,useEffect:gf,useImperativeHandle:zg,useInsertionEffect:Mg,useLayoutEffect:$g,useMemo:Wg,useReducer:hf,useRef:jg,useState:function(){return hf(qu)},useDebugValue:yf,useDeferredValue:function(e){var t=jt();return Ug(t,Me.memoizedState,e)},useTransition:function(){var e=hf(qu)[0],t=jt().memoizedState;return[e,t]},useMutableSource:Sg,useSyncExternalStore:Og,useId:Hg,unstable_isNewReconciler:!1},CS={readContext:Nt,useCallback:Vg,useContext:Nt,useEffect:gf,useImperativeHandle:zg,useInsertionEffect:Mg,useLayoutEffect:$g,useMemo:Wg,useReducer:mf,useRef:jg,useState:function(){return mf(qu)},useDebugValue:yf,useDeferredValue:function(e){var t=jt();return Me===null?t.memoizedState=e:Ug(t,Me.memoizedState,e)},useTransition:function(){var e=mf(qu)[0],t=jt().memoizedState;return[e,t]},useMutableSource:Sg,useSyncExternalStore:Og,useId:Hg,unstable_isNewReconciler:!1};function Yt(e,t){if(e&&e.defaultProps){t=Fe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Df(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Fe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Yi={isMounted:function(e){return(e=e._reactInternals)?Ar(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=it(),o=nr(e),u=bn(r,o);u.payload=t,n!=null&&(u.callback=n),t=Zn(e,u,o),t!==null&&(Xt(t,e,o,r),Li(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=it(),o=nr(e),u=bn(r,o);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=Zn(e,u,o),t!==null&&(Xt(t,e,o,r),Li(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=it(),r=nr(e),o=bn(n,r);o.tag=2,t!=null&&(o.callback=t),t=Zn(e,o,r),t!==null&&(Xt(t,e,r,n),Li(t,e,r))}};function Qg(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?!Ru(n,r)||!Ru(o,u):!0}function Gg(e,t,n){var r=!1,o=Qn,u=t.contextType;return typeof u=="object"&&u!==null?u=Nt(u):(o=pt(t)?xr:Ze.current,r=t.contextTypes,u=(r=r!=null)?wo(e,o):Qn),t=new t(n,u),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Yi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=u),t}function Xg(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&&Yi.enqueueReplaceState(t,t.state,null)}function Cf(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},uf(e);var u=t.contextType;typeof u=="object"&&u!==null?o.context=Nt(u):(u=pt(t)?xr:Ze.current,o.context=wo(e,u)),o.state=e.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(Df(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&&Yi.enqueueReplaceState(o,o.state,null),zi(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Oo(e,t){try{var n="",r=t;do n+=Yx(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 Df(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Cf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var hS=typeof WeakMap=="function"?WeakMap:Map;function qg(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,Nf=r),Cf(e,t)},n}function Yg(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(){Cf(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Cf(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 Qg(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new hS;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=OS.bind(null,e,t,n),t.then(e,e))}function Gg(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 Xg(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 mS=gn.ReactCurrentOwner,dt=!1;function ot(e,t,n,r){t.child=e===null?gg(t,null,n,r):Bo(t,e.child,n,r)}function Zg(e,t,n,r,o){n=n.render;var u=t.ref;return Ao(t,o),r=ff(e,t,n,r,u,o),n=df(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,bn(e,t,o)):(Ee&&n&&qc(t),t.flags|=1,ot(e,t,r,o),t.child)}function Jg(e,t,n,r,o){if(e===null){var u=n.type;return typeof u=="function"&&!Vf(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,e0(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 bn(e,t,o)}return t.flags|=1,e=tr(u,r),e.ref=t.ref,e.return=t,t.child=e}function e0(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,bn(e,t,o)}return wf(e,t,n,r,o)}function t0(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(Oo,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(Oo,xt),xt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,ye(Oo,xt),xt|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,ye(Oo,xt),xt|=r;return ot(e,t,o,n),t.child}function n0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function wf(e,t,n,r,o){var u=ft(n)?Br:Ge.current;return u=Do(t,u),Ao(t,o),n=ff(e,t,n,r,u,o),r=df(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,bn(e,t,o)):(Ee&&r&&qc(t),t.flags|=1,ot(e,t,n,o),t.child)}function r0(e,t,n,r,o){if(ft(n)){var u=!0;_i(t)}else u=!1;if(Ao(t,o),t.stateNode===null)Yi(e,t),Hg(t,n,r),yf(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)?Br:Ge.current,l=Do(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)&&Kg(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"&&(gf(t,n,c,r),s=t.memoizedState),(i=Yn||Ug(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,Dg(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=Rt(s):(s=ft(n)?Br:Ge.current,s=Do(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)&&Kg(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"&&(gf(t,n,y,r),m=t.memoizedState),(l=Yn||Ug(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 Ef(e,t,n,r,u,o)}function Ef(e,t,n,r,o,u){n0(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&sg(t,n,!1),bn(e,t,u);r=t.stateNode,mS.current=t;var i=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Bo(t,e.child,null,u),t.child=Bo(t,null,i,u)):ot(e,t,i,u),t.memoizedState=r.state,o&&sg(t,n,!0),t.child}function o0(e){var t=e.stateNode;t.pendingContext?ag(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ag(e,t.context,!1),of(e,t.containerInfo)}function u0(e,t,n,r,o){return Eo(),Xc(o),t.flags|=256,ot(e,t,n,r),t.child}var Bf={dehydrated:null,treeContext:null,retryLane:0};function bf(e){return{baseLanes:e,cachePool:null,transitions:null}}function a0(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 Gc(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=Tr(e,r,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=bf(n),t.memoizedState=Bf,e):Af(t,a));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return gS(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=Tr(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?bf(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},u.memoizedState=a,u.childLanes=e.childLanes&~n,t.memoizedState=Bf,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 Af(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&&Xc(r),Bo(t,e.child,null,n),e=Af(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function gS(e,t,n,r,o,u,a){if(n)return t.flags&256?(t.flags&=-257,r=Df(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=Tr(u,o,a,null),u.flags|=2,r.return=t,u.return=t,r.sibling=u,t.child=r,t.mode&1&&Bo(t,e.child,null,a),t.child.memoizedState=bf(a),t.memoizedState=Bf,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=Df(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,En(e,o),Xt(r,e,o,-1))}return zf(),r=Df(Error(K(421))),qi(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=_S.bind(null,e),o._reactRetry=t,null):(e=u.treeContext,At=Un(o.nextSibling),bt=t,Ee=!0,qt=null,e!==null&&(kt[Tt++]=Cn,kt[Tt++]=wn,kt[Tt++]=br,Cn=e.id,wn=e.overflow,br=t),t=Af(t,r.children),t.flags|=4096,t)}function i0(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),tf(e.return,t,n)}function xf(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 s0(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&&i0(e,n,t);else if(e.tag===19)i0(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),xf(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}xf(t,!0,n,null,u);break;case"together":xf(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 bn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Or|=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 yS(e,t,n){switch(t.tag){case 3:o0(t),Eo();break;case 5:Eg(t);break;case 1:ft(t.type)&&_i(t);break;case 4:of(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?a0(e,t,n):(ye(xe,xe.current&1),e=bn(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 s0(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,t0(e,t,n)}return bn(e,t,n)}var l0,Ff,c0,f0;l0=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}},Ff=function(){},c0=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Fr(an.current);var u=null;switch(n){case"input":o=tc(e,o),r=tc(e,r),u=[];break;case"select":o=Ae({},o,{value:void 0}),r=Ae({},r,{value:void 0}),u=[];break;case"textarea":o=oc(e,o),r=oc(e,r),u=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Fi)}ac(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"&&(fu.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"&&(fu.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)}},f0=function(e,t,n,r){n!==r&&(t.flags|=4)};function qu(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 DS(e,t,n){var r=t.pendingProps;switch(Yc(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,xo(),Ce(ct),Ce(Ge),sf(),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&&(Mf(qt),qt=null))),Ff(e,t),Ze(t),null;case 5:uf(t);var o=Fr(Vu.current);if(n=t.type,e!==null&&t.stateNode!=null)c0(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=Fr(an.current),Ri(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[un]=t,r[Iu]=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<Ru.length;o++)De(Ru[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":Hh(r,u),De("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},De("invalid",r);break;case"textarea":Yh(r,u),De("invalid",r)}ac(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]):fu.hasOwnProperty(a)&&i!=null&&a==="onScroll"&&De("scroll",r)}switch(n){case"input":ri(r),qh(r,u,!0);break;case"textarea":ri(r),Gh(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=Xh(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[un]=t,e[Iu]=r,l0(e,t,!1,!1),t.stateNode=e;e:{switch(a=ic(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<Ru.length;o++)De(Ru[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":Hh(e,r),o=tc(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":Yh(e,r),o=oc(e,r),De("invalid",e);break;default:o=r}ac(n,o),i=o;for(u in i)if(i.hasOwnProperty(u)){var s=i[u];u==="style"?em(e,s):u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&Zh(e,s)):u==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&hu(e,s):typeof s=="number"&&hu(e,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(fu.hasOwnProperty(u)?s!=null&&u==="onScroll"&&De("scroll",e):s!=null&&Ul(e,u,s,a))}switch(n){case"input":ri(e),qh(e,r,!1);break;case"textarea":ri(e),Gh(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?ao(e,!!r.multiple,u,!1):r.defaultValue!=null&&ao(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)f0(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(K(166));if(n=Fr(Vu.current),Fr(an.current),Ri(t)){if(r=t.stateNode,n=t.memoizedProps,r[un]=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[un]=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))vg(),Eo(),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[un]=t}else Eo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ze(t),u=!1}else qt!==null&&(Mf(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):zf())),t.updateQueue!==null&&(t.flags|=4),Ze(t),null);case 4:return xo(),Ff(e,t),e===null&&Nu(t.stateNode.containerInfo),Ze(t),null;case 10:return ef(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)qu(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,qu(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&&ke()>_o&&(t.flags|=128,r=!0,qu(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),qu(u,!0),u.tail===null&&u.tailMode==="hidden"&&!a.alternate&&!Ee)return Ze(t),null}else 2*ke()-u.renderingStartTime>_o&&n!==1073741824&&(t.flags|=128,r=!0,qu(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=ke(),t.sibling=null,n=xe.current,ye(xe,r?n&1|2:n&1),t):(Ze(t),null);case 22:case 23:return Lf(),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 CS(e,t){switch(Yc(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 xo(),Ce(ct),Ce(Ge),sf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return uf(t),null;case 13:if(Ce(xe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(K(340));Eo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ce(xe),null;case 4:return xo(),null;case 10:return ef(t.type._context),null;case 22:case 23:return Lf(),null;case 24:return null;default:return null}}var Qi=!1,Je=!1,wS=typeof WeakSet=="function"?WeakSet:Set,J=null;function So(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 Sf(e,t,n){try{n()}catch(r){Oe(e,t,r)}}var d0=!1;function ES(e,t){if($c=hi,e=Um(),Pc(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(Lc={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=d0,d0=!1,m}function Yu(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&&Sf(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 Of(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 p0(e){var t=e.alternate;t!==null&&(e.alternate=null,p0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[un],delete t[Iu],delete t[Uc],delete t[oS],delete t[uS])),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 v0(e){return e.tag===5||e.tag===3||e.tag===4}function h0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||v0(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 _f(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(_f(e,t,n),e=e.sibling;e!==null;)_f(e,t,n),e=e.sibling}function Pf(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(Pf(e,t,n),e=e.sibling;e!==null;)Pf(e,t,n),e=e.sibling}var Ke=null,Qt=!1;function Gn(e,t,n){for(n=n.child;n!==null;)m0(e,t,n),n=n.sibling}function m0(e,t,n){if(on&&typeof on.onCommitFiberUnmount=="function")try{on.onCommitFiberUnmount(li,n)}catch{}switch(n.tag){case 5:Je||So(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?Wc(e.parentNode,n):e.nodeType===1&&Wc(e,n),xu(e)):Wc(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)&&Sf(n,t,a),o=o.next}while(o!==r)}Gn(e,t,n);break;case 1:if(!Je&&(So(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 g0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wS),t.forEach(function(r){var o=PS.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));m0(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;)y0(t,e),t=t.sibling}function y0(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Gt(t,e),ln(e),r&4){try{Yu(3,e,e.return),Gi(3,e)}catch(f){Oe(e,e.return,f)}try{Yu(5,e,e.return)}catch(f){Oe(e,e.return,f)}}break;case 1:Gt(t,e),ln(e),r&512&&n!==null&&So(n,n.return);break;case 5:if(Gt(t,e),ln(e),r&512&&n!==null&&So(n,n.return),e.flags&32){var o=e.stateNode;try{hu(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&&Kh(o,u),ic(i,a);var l=ic(i,u);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];c==="style"?em(o,d):c==="dangerouslySetInnerHTML"?Zh(o,d):c==="children"?hu(o,d):Ul(o,c,d,l)}switch(i){case"input":nc(o,u);break;case"textarea":Qh(o,u);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!u.multiple;var y=u.value;y!=null?ao(o,!!u.multiple,y,!1):p!==!!u.multiple&&(u.defaultValue!=null?ao(o,!!u.multiple,u.defaultValue,!0):ao(o,!!u.multiple,u.multiple?[]:"",!1))}o[Iu]=u}catch(f){Oe(e,e.return,f)}}break;case 6:if(Gt(t,e),ln(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),ln(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{xu(t.containerInfo)}catch(f){Oe(e,e.return,f)}break;case 4:Gt(t,e),ln(e);break;case 13:Gt(t,e),ln(e),o=e.child,o.flags&8192&&(u=o.memoizedState!==null,o.stateNode.isHidden=u,!u||o.alternate!==null&&o.alternate.memoizedState!==null||(Rf=ke())),r&4&&g0(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),ln(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:Yu(4,p,p.return);break;case 1:So(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:So(p,p.return);break;case 22:if(p.memoizedState!==null){w0(d);continue}}y!==null?(y.return=p,J=y):w0(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=Jh("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),ln(e),r&4&&g0(e);break;case 21:break;default:Gt(t,e),ln(e)}}function ln(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(v0(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&&(hu(o,""),r.flags&=-33);var u=h0(e);Pf(e,u,o);break;case 3:case 4:var a=r.stateNode.containerInfo,i=h0(e);_f(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 BS(e,t,n){J=e,D0(e)}function D0(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?E0(o):s!==null?(s.return=a,J=s):E0(o);for(;u!==null;)J=u,D0(u),u=u.sibling;J=o,Qi=i,Je=l}C0(e)}else o.subtreeFlags&8772&&u!==null?(u.return=o,J=u):C0(e)}}function C0(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&&wg(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}wg(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&&xu(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(K(163))}Je||t.flags&512&&Of(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 w0(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 E0(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{Of(t)}catch(s){Oe(t,u,s)}break;case 5:var a=t.return;try{Of(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 bS=Math.ceil,Xi=gn.ReactCurrentDispatcher,kf=gn.ReactCurrentOwner,jt=gn.ReactCurrentBatchConfig,fe=0,We=null,je=null,qe=0,xt=0,Oo=Hn(0),$e=0,Qu=null,Or=0,Zi=0,Tf=0,Gu=null,pt=null,Rf=0,_o=1/0,An=null,Ji=!1,Nf=null,Xn=null,es=!1,Zn=null,ts=0,Xu=0,jf=null,ns=-1,rs=0;function ut(){return fe&6?ke():ns!==-1?ns:ns=ke()}function Jn(e){return e.mode&1?fe&2&&qe!==0?qe&-qe:iS.transition!==null?(rs===0&&(rs=hm()),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<Xu)throw Xu=0,jf=null,Error(K(185));wu(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)&&(_o=ke()+500,Pi&&qn()))}function vt(e,t){var n=e.callbackNode;iF(e,t);var r=di(e,e===We?qe:0);if(r===0)n!==null&&dm(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&dm(n),t===1)e.tag===0?aS(b0.bind(null,e)):lg(b0.bind(null,e)),nS(function(){!(fe&6)&&qn()}),n=null;else{switch(mm(r)){case 1:n=vc;break;case 4:n=pm;break;case 16:n=si;break;case 536870912:n=vm;break;default:n=si}n=k0(n,B0.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function B0(e,t){if(ns=-1,rs=0,fe&6)throw Error(K(327));var n=e.callbackNode;if(Po()&&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=x0();(We!==e||qe!==t)&&(An=null,_o=ke()+500,Pr(e,t));do try{FS();break}catch(i){A0(e,i)}while(!0);Jc(),Xi.current=u,fe=o,je!==null?t=0:(We=null,qe=0,t=$e)}if(t!==0){if(t===2&&(o=hc(e),o!==0&&(r=o,t=If(e,o))),t===1)throw n=Qu,Pr(e,0),er(e,r),vt(e,ke()),n;if(t===6)er(e,r);else{if(o=e.current.alternate,!(r&30)&&!AS(o)&&(t=os(e,r),t===2&&(u=hc(e),u!==0&&(r=u,t=If(e,u))),t===1))throw n=Qu,Pr(e,0),er(e,r),vt(e,ke()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(K(345));case 2:kr(e,pt,An);break;case 3:if(er(e,r),(r&130023424)===r&&(t=Rf+500-ke(),10<t)){if(di(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){ut(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Vc(kr.bind(null,e,pt,An),t);break}kr(e,pt,An);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=ke()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*bS(r/1960))-r,10<r){e.timeoutHandle=Vc(kr.bind(null,e,pt,An),r);break}kr(e,pt,An);break;case 5:kr(e,pt,An);break;default:throw Error(K(329))}}}return vt(e,ke()),e.callbackNode===n?B0.bind(null,e):null}function If(e,t){var n=Gu;return e.current.memoizedState.isDehydrated&&(Pr(e,t).flags|=256),e=os(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 AS(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&=~Tf,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));Po();var t=di(e,0);if(!(t&1))return vt(e,ke()),null;var n=os(e,t);if(e.tag!==0&&n===2){var r=hc(e);r!==0&&(t=r,n=If(e,r))}if(n===1)throw n=Qu,Pr(e,0),er(e,t),vt(e,ke()),n;if(n===6)throw Error(K(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kr(e,pt,An),vt(e,ke()),null}function $f(e,t){var n=fe;fe|=1;try{return e(t)}finally{fe=n,fe===0&&(_o=ke()+500,Pi&&qn())}}function _r(e){Zn!==null&&Zn.tag===0&&!(fe&6)&&Po();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)&&qn()}}function Lf(){xt=Oo.current,Ce(Oo)}function Pr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,tS(n)),je!==null)for(n=je.return;n!==null;){var r=n;switch(Yc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Oi();break;case 3:xo(),Ce(ct),Ce(Ge),sf();break;case 5:uf(r);break;case 4:xo();break;case 13:Ce(xe);break;case 19:Ce(xe);break;case 10:ef(r.type._context);break;case 22:case 23:Lf()}n=n.return}if(We=e,je=e=tr(e.current,null),qe=xt=t,$e=0,Qu=null,Tf=Zi=Or=0,pt=Gu=null,xr!==null){for(t=0;t<xr.length;t++)if(n=xr[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}xr=null}return e}function A0(e,t){do{var n=je;try{if(Jc(),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(Sr=0,Ve=Me=Fe=null,Wu=!1,Uu=0,kf.current=null,n===null||n.return===null){$e=1,Qu=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=Gg(a);if(y!==null){y.flags&=-257,Xg(y,a,i,u,t),y.mode&1&&Qg(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)){Qg(u,l,t),zf();break e}s=Error(K(426))}}else if(Ee&&i.mode&1){var w=Gg(a);if(w!==null){!(w.flags&65536)&&(w.flags|=256),Xg(w,a,i,u,t),Xc(Fo(s,i));break e}}u=s=Fo(s,i),$e!==4&&($e=2),Gu===null?Gu=[u]:Gu.push(u),u=a;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var h=qg(u,s,t);Cg(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=Yg(u,i,t);Cg(u,E);break e}}u=u.return}while(u!==null)}S0(n)}catch(B){t=B,je===n&&n!==null&&(je=n=n.return);continue}break}while(!0)}function x0(){var e=Xi.current;return Xi.current=Hi,e===null?Hi:e}function zf(){($e===0||$e===3||$e===2)&&($e=4),We===null||!(Or&268435455)&&!(Zi&268435455)||er(We,qe)}function os(e,t){var n=fe;fe|=2;var r=x0();(We!==e||qe!==t)&&(An=null,Pr(e,t));do try{xS();break}catch(o){A0(e,o)}while(!0);if(Jc(),fe=n,Xi.current=r,je!==null)throw Error(K(261));return We=null,qe=0,$e}function xS(){for(;je!==null;)F0(je)}function FS(){for(;je!==null&&!Zx();)F0(je)}function F0(e){var t=P0(e.alternate,e,xt);e.memoizedProps=e.pendingProps,t===null?S0(e):je=t,kf.current=null}function S0(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=CS(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=DS(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=jt.transition;try{jt.transition=null,pe=1,SS(e,t,n,r)}finally{jt.transition=o,pe=r}return null}function SS(e,t,n,r){do Po();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(sF(e,u),e===We&&(je=We=null,qe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||es||(es=!0,k0(si,function(){return Po(),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,kf.current=null,ES(e,n),y0(n,e),YF(Lc),hi=!!$c,Lc=$c=null,e.current=n,BS(n),Jx(),fe=i,pe=a,jt.transition=u}else e.current=n;if(es&&(es=!1,Zn=e,ts=o),u=e.pendingLanes,u===0&&(Xn=null),nF(n.stateNode),vt(e,ke()),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=Nf,Nf=null,e;return ts&1&&e.tag!==0&&Po(),u=e.pendingLanes,u&1?e===jf?Xu++:(Xu=0,jf=e):Xu=0,qn(),null}function Po(){if(Zn!==null){var e=mm(ts),t=jt.transition,n=pe;try{if(jt.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:Yu(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(p0(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:Yu(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(),on&&typeof on.onPostCommitFiberRoot=="function")try{on.onPostCommitFiberRoot(li,e)}catch{}r=!0}return r}finally{pe=n,jt.transition=t}}return!1}function O0(e,t,n){t=Fo(n,t),t=qg(e,t,1),e=Qn(e,t,1),t=ut(),e!==null&&(wu(e,1,t),vt(e,t))}function Oe(e,t,n){if(e.tag===3)O0(e,e,n);else for(;t!==null;){if(t.tag===3){O0(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=Fo(n,e),e=Yg(t,e,1),t=Qn(t,e,1),e=ut(),t!==null&&(wu(t,1,e),vt(t,e));break}}t=t.return}}function OS(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>ke()-Rf?Pr(e,0):Tf|=n),vt(e,t)}function _0(e,t){t===0&&(e.mode&1?(t=fi,fi<<=1,!(fi&130023424)&&(fi=4194304)):t=1);var n=ut();e=En(e,t),e!==null&&(wu(e,t,n),vt(e,n))}function _S(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_0(e,n)}function PS(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),_0(e,n)}var P0;P0=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,yS(e,t,n);dt=!!(e.flags&131072)}else dt=!1,Ee&&t.flags&1048576&&cg(t,Ti,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Yi(e,t),e=t.pendingProps;var o=Do(t,Ge.current);Ao(t,n),o=ff(null,t,r,e,o,n);var u=df();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,rf(t),o.updater=Ki,t.stateNode=o,o._reactInternals=t,yf(t,r,e,n),t=Ef(null,t,r,!0,u,n)):(t.tag=0,Ee&&u&&qc(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=TS(r),e=Yt(r,e),o){case 0:t=wf(null,t,r,e,n);break e;case 1:t=r0(null,t,r,e,n);break e;case 11:t=Zg(null,t,r,e,n);break e;case 14:t=Jg(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),wf(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yt(r,o),r0(e,t,r,o,n);case 3:e:{if(o0(t),e===null)throw Error(K(387));r=t.pendingProps,u=t.memoizedState,o=u.element,Dg(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=Fo(Error(K(423)),t),t=u0(e,t,r,n,o);break e}else if(r!==o){o=Fo(Error(K(424)),t),t=u0(e,t,r,n,o);break e}else for(At=Un(t.stateNode.containerInfo.firstChild),bt=t,Ee=!0,qt=null,n=gg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Eo(),r===o){t=bn(e,t,n);break e}ot(e,t,r,n)}t=t.child}return t;case 5:return Eg(t),e===null&&Gc(t),r=t.type,o=t.pendingProps,u=e!==null?e.memoizedProps:null,a=o.children,zc(r,o)?a=null:u!==null&&zc(r,u)&&(t.flags|=32),n0(e,t),ot(e,t,a,n),t.child;case 6:return e===null&&Gc(t),null;case 13:return a0(e,t,n);case 4:return of(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Bo(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),Zg(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=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=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),tf(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),tf(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,Ao(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=Yt(r,t.pendingProps),o=Yt(r.type,o),Jg(e,t,r,o,n);case 15:return e0(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,Ao(t,n),Hg(t,r,o),yf(t,r,o,n),Ef(null,t,r,!0,e,n);case 19:return s0(e,t,n);case 22:return t0(e,t,n)}throw Error(K(156,t.tag))};function k0(e,t){return fm(e,t)}function kS(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 kS(e,t,n,r)}function Vf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function TS(e){if(typeof e=="function")return Vf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ql)return 11;if(e===Gl)return 14}return 2}function tr(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 us(e,t,n,r,o,u){var a=2;if(r=e,typeof e=="function")Vf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case uo:return Tr(n.children,o,u,t);case Hl:a=8,o|=8;break;case Kl:return e=It(12,n,t,o|2),e.elementType=Kl,e.lanes=u,e;case Yl:return e=It(13,n,t,o),e.elementType=Yl,e.lanes=u,e;case Ql:return e=It(19,n,t,o),e.elementType=Ql,e.lanes=u,e;case zh:return as(n,o,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $h:a=10;break e;case Lh:a=9;break e;case ql:a=11;break e;case Gl:a=14;break e;case jn: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 Tr(e,t,n,r){return e=It(7,e,r,t),e.lanes=n,e}function as(e,t,n,r){return e=It(22,e,r,t),e.elementType=zh,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 Uf(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 RS(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=mc(0),this.expirationTimes=mc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Hf(e,t,n,r,o,u,a,i,s){return e=new RS(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},rf(u),e}function NS(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:oo,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function T0(e){if(!e)return Kn;e=e._reactInternals;e:{if(wr(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 ig(e,n,t)}return t}function R0(e,t,n,r,o,u,a,i,s){return e=Hf(n,r,!0,e,o,u,a,i,s),e.context=T0(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,wu(e,o,r),vt(e,r),e}function is(e,t,n,r){var o=t.current,u=ut(),a=Jn(o);return n=T0(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 N0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Kf(e,t){N0(e,t),(e=e.alternate)&&N0(e,t)}function jS(){return null}var j0=typeof reportError=="function"?reportError:function(e){console.error(e)};function qf(e){this._internalRoot=e}ls.prototype.render=qf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(K(409));is(e,t,null,null)},ls.prototype.unmount=qf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_r(function(){is(null,e,null,null)}),t[yn]=null}};function ls(e){this._internalRoot=e}ls.prototype.unstable_scheduleHydration=function(e){if(e){var t=Dm();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&&Em(e)}};function Yf(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 I0(){}function IS(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=R0(t,r,e,0,null,!1,!1,"",I0);return e._reactRootContainer=a,e[yn]=a.current,Nu(e.nodeType===8?e.parentNode:e),_r(),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=Hf(e,0,!1,null,null,!1,!1,"",I0);return e._reactRootContainer=s,e[yn]=s.current,Nu(e.nodeType===8?e.parentNode:e),_r(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=IS(n,t,e,o,r);return ss(a)}gm=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Cu(t.pendingLanes);n!==0&&(gc(t,n|1),vt(t,ke()),!(fe&6)&&(_o=ke()+500,qn()))}break;case 13:_r(function(){var r=En(e,1);if(r!==null){var o=ut();Xt(r,e,1,o)}}),Kf(e,1)}},yc=function(e){if(e.tag===13){var t=En(e,134217728);if(t!==null){var n=ut();Xt(t,e,134217728,n)}Kf(e,134217728)}},ym=function(e){if(e.tag===13){var t=Jn(e),n=En(e,t);if(n!==null){var r=ut();Xt(n,e,t,r)}Kf(e,t)}},Dm=function(){return pe},Cm=function(e,t){var n=pe;try{return pe=e,t()}finally{pe=n}},cc=function(e,t,n){switch(t){case"input":if(nc(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));Uh(r),nc(r,o)}}}break;case"textarea":Qh(e,n);break;case"select":t=n.value,t!=null&&ao(e,!!n.multiple,t,!1)}},om=$f,um=_r;var MS={usingClientEntryPoint:!1,Events:[Mu,go,Si,nm,rm,$f]},Zu={findFiberByHostInstance:Er,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},$S={bundleType:Zu.bundleType,version:Zu.version,rendererPackageName:Zu.rendererPackageName,rendererConfig:Zu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:gn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=lm(e),e===null?null:e.stateNode},findFiberByHostInstance:Zu.findFiberByHostInstance||jS,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($S),on=ds}catch{}}wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=MS,wt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Yf(t))throw Error(K(200));return NS(e,t,null,n)},wt.createRoot=function(e,t){if(!Yf(e))throw Error(K(299));var n=!1,r="",o=j0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Hf(e,1,!1,null,null,n,!1,r,o),e[yn]=t.current,Nu(e.nodeType===8?e.parentNode:e),new qf(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=lm(t),e=e===null?null:e.stateNode,e},wt.flushSync=function(e){return _r(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(!Yf(e))throw Error(K(405));var r=n!=null&&n.hydratedSources||null,o=!1,u="",a=j0;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=R0(t,null,e,1,n??null,o,!1,u,a),e[yn]=t.current,Nu(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?(_r(function(){fs(null,null,e,!1,function(){e._reactRootContainer=null,e[yn]=null})}),!0):!1},wt.unstable_batchedUpdates=$f,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 M0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(M0)}catch(e){console.error(e)}}M0(),Th.exports=wt;var $0=Th.exports;const ko=eu($0);function L0(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?L0(Object(n),!0).forEach(function(r){To(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L0(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 Ju(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z0(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 ea(e,t,n){return t&&z0(e.prototype,t),n&&z0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function To(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rr(){return(Rr=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&&V0(e,t)}function Qf(e){return(Qf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function V0(e,t){return(V0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n})(e,t)}function LS(){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 zS(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=zS(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 VS(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=LS();return function(){var n,r=Qf(e);return VS(this,t?(n=Qf(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments))}}function W0(e,t){return US(e)||KS(e,t)||U0(e,t)||YS()}function ms(e){return WS(e)||HS(e)||U0(e)||qS()}function WS(e){if(Array.isArray(e))return Gf(e)}function US(e){if(Array.isArray(e))return e}function HS(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KS(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 U0(e,t){var n;if(e)return typeof e=="string"?Gf(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)?Gf(e,t):void 0}function Gf(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 qS(){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
|
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 H0(e){return e=QS(e,"string"),typeof e=="symbol"?e:String(e)}var K0={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 q0(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{react:{},vue:{}},n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:K0,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 Y0=["getElementById","getElementsByClassName","getElementsByTagName","getElementsByTagNameNS","querySelector","querySelectorAll"],ta={Document:{},Element:{}};function GS(e){Object.keys(ta).forEach(function(t){Y0.forEach(function(n){var r=window[t].prototype[n];ta[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:(ta.Element[n]||Element.prototype[n]).apply(e,u)}})})}function XS(){Object.keys(ta).forEach(function(e){Y0.forEach(function(t){window[e].prototype[t]=ta[e][t]})})}var ZS=["ref"],JS=["key"],eO=["hashList"],Q0=parseInt(L.version);function Bk(e){return e}var tO=function(){ps(t,L.Component);var e=hs(t);function t(n){return Ju(this,t),e.call(this,n)}return ea(t,[{key:"render",value:function(){var n=this.props.component,r=this.props.passedProps,r=(r.ref,Mt(r,ZS));return L.createElement(n,r,this.props.children)}}]),t}(),nO=function(e,t,n){var r=function(){ps(u,L.Component);var o=hs(u);function u(a){var i;return Ju(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 ea(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,JS),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=Mt(w,eO),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,Rr({},f,w))):L.createElement(tO,Rr({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 To(r,"displayName","applyReact_".concat(e.displayName||e.name||"Component")),r};function Xf(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=q0(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=nO(e,t,this),f=L.createElement(c,Rr({},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 $0.createPortal(f,w)},h.pushReactPortal(this.reactPortal)):17<Q0?(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),GS(this.$refs.react),this.reactPortal?(n=this.parentReactWrapperRef)!=null&&n.removeReactPortal(this.reactPortal):17<Q0?this.__veauryReactApp__.unmount():ko.unmountComponentAtNode(this.$refs.react),XS()},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 rO=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 oO(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 G0(e,t,n){var r={};return n.forEach(function(o){r[o]=!0}),e[(t==="modelValue"?"model":t)+"Modifiers"]=r}function X0(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&&G0(e,n,u[3])):u[2]instanceof Array&&G0(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 Zf(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",X0(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){X0(n,i[s],s,"v-models")}),delete r[o]}}),z(z({},r),n)}var gs=function(){function e(){Ju(this,e),To(this,"pool",new Set)}return ea(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 Z0(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 uO=Xf(Z0);function Jf(e){return v.h(uO,{node:function(){return e.node}})}Jf.originReactComponent=L.forwardRef(Z0);var aO=["component","node"],iO=["component","$slots","children","class","style"],sO=["className","classname"],nr="veaury-options",J0=new gs;function lO(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 ey(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 cO(e){var t;return(t=e.node)==null?void 0:t.call(e)}var ed=L.forwardRef(function(o,t){var n,a=o.component,r=o.node,o=Mt(o,aO);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||cO,i=q0(o[nr]||{},void 0,!0),s=i.useInjectPropsFromWrapper||a.__veauryInjectPropsFromWrapper__;return i.isSlots||typeof s=="function"&&(u=s(o)),L.createElement(fO,Rr({},z(z(z(z({component:a},r?{node:r}:{}),o),u),{},To({},nr,i)),{ref:t}))}),fO=function(){ps(t,L.Component);var e=hs(t);function t(n){var r;return Ju(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 ea(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){rO.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",Rr({},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=Mt(n,["component",nr,"v-slots","children"].map(H0)),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,ey(a))),Object.keys(this.__veauryVueInstance__.$data).forEach(function(c){c!=="$slots"&&delete l.__veauryVueInstance__.$data[c]}),this.__veauryVueInstance__&&Object.assign(this.__veauryVueInstance__.$data,Zf(n)),!0):void 0))}},{key:"componentWillUnmount",value:function(){this.vuePortal?this.parentVueWrapperRef.__veauryRemoveVuePortal__(this.vuePortal):(this.__veauryVueInstance__&&this.__veauryVueInstance__.$.appContext.app.unmount(),J0.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=Mt(s,["component",nr,"children","v-slots"].map(H0));function l(y){this.__veauryVueInstance__||(this.__veauryVueInstance__=y)}a&&(Ye(a)!=="object"||a instanceof Array||a.$$typeof?i.default=a:i=a),(i=ey(i))&&(s.$slots=i),l=l.bind(this);var c,d=z({},Zf(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(Jf,{node:m,key:(m==null||(m=m.data)==null?void 0:m.key)||f})}):v.h(Jf,{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,k=arguments.length,O=new Array(k),H=0;H<k;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 P;(P=x)!=null&&(P=P.component)!=null&&(P=P.ctx)!=null&&(P=P.__veauryReactInstance__)!=null&&P.setState({children:E.apply(w,O)})})):(x=S&&b?[S(b,w.reactInVueCall)]:y(Xf(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=Mt(C,iO),w=this.getScopedSlots(v.h,z({},h)),h=C.className,g=C.classname,C=Mt(C,sO),E={};return Object.keys(w).forEach(function(B){var x=w[B];E[B]=typeof x=="function"?x:function(){return x}}),v.h(lO(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=J0.getRandomId("__vue_wrapper_container_"),n.id=c,this.__veauryVueTargetId__=c,(a=u.wrapInstance)?(a=u.wrapInstance).reactWrapperRef=o:a=oO(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(ed,Rr({},r,{component:e,ref:o},To({},nr,t)))}));return n.originVueComponent=e,n}new gs;function dO(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=t.globalName,r=t.combinedOption,o=(t.transparentApi,Xf(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 ty(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,To({},ty(r[0]),r[1])),n},{}):Ye(e)==="object"?(t={},Object.keys(e).forEach(function(n){t[ty(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 pO=["ref"];function vO(e,t,n,r,o){var u=e.props||{},u=(u.ref,Mt(u,pO)),a={},i=(Object.keys(e.children||{}).forEach(function(c){var d=e.children[c],p=K0.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 ny(e){return e.type===v.Text}new gs;function ry(e,t){var n;return 0<((n=e.dirs)==null?void 0:n.length)?L.createElement(hO,{vnode:e},t):t}var hO=function(){ps(t,L.Component);var e=hs(t);function t(n){var r;return Ju(this,t),(r=e.call(this,n)).state={prevVnode:null,savedDirectives:[],ref:null,prevProps:n},r}return ea(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=W0(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=W0(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 mO(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 oy(e,t){var n,r,o,u;return typeof((o=e.type)==null?void 0:o.originReactComponent)!="function"||mO((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 td(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 gO=["style","class"];function uy(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=oy(e),l=(s=e.props||{}).style,i=s.class,s=z(z({},Mt(s,gO)),{},{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),ry(e,td(re.createElement(e.type,s,o.call(a,l,n,u)),e.scopeId))):n([e],null,r)}function yO(){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 ay(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 iy(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):ny(c)?void(c.children.trim()!==""&&l.push(c.children.trim())):void(c.type&&(td(m=ay(uy(c,n,i,o,u,s,a.__top__),a,d),c.scopeId),l.push(m)));var p,y,m=c.type.originReactComponent;td(p=ay(p=(t=t==="all"||t instanceof Array?t:[t])==="all"||-1<t.indexOf(m)?(c.__top__=a.__top__,p=vO(c,"_key_".concat(d),i,u,s),y=oy(c,a),c.children&&(c.children.__top__=a.__top__),ry(c,re.createElement(m,z(z(z({},yO(p,c,m)),c.__extraData||{}),y?{ref:y}:{})))):ny(c)?c.text:uy(c,n,i,o,u,s),a,d),c.scopeId),l.push(p)}}),l.length===1?l[0]:l):a}}var nd=iy({reactComponents:"all",domTags:"all"});function DO(e,t){return dO(e,{combinedOption:z({pureTransformer:!0,defaultSlotsFormatter:nd,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 nd(i.vueFunction.apply(this,l),r,o)},Object.defineProperty(u[a],"length",{get:function(){return i.vueFunction.length}})):i.vueSlot&&(u[a]=nd(i.vueSlot,r,o)))}),Object.assign(n,u)}},t)})}iy({reactComponents:"all",domTags:"all"});var CO=["ref","children","v-slots"];function wO(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,CO),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=Zf(a),slots:i}}function sy(e){var t=e.ref;if(t)return Ye(t)==="object"?function(n){e.ref.current=n}:typeof t=="function"?t:void 0}var EO=["style","class","children"];function ly(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=sy(e),l=(t=e.props||{}).style,s=t.class,i=t.children,t=Mt(t,EO),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 cy(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!==ed)return l.__v_isVNode||typeof l=="string"||typeof l=="number"?void s.push(l):void(l.type&&(d=ly(l,n,i,o,u,a.__top__),s.push(d)));var d=l.type.originVueComponent;if(l.type===ed){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=wO(l,"_key_".concat(c),i,u)).props,p=p.slots,sy(l),l.children&&(l.children.__top__=a.__top__),v.h(d,z({},c),p)):ly(l,n,i,o,u),s.push(d)}),(s=s.flat(1/0)).length===1?s[0]:s}}cy({vueComponents:"all",domTags:"all"}),cy({reactComponents:"all",domTags:"all"}),new gs;var fy={exports:{}},ws={};/**
|
41
|
+
`+u.stack}return{value:e,source:t,stack:o,digest:null}}function wf(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ef(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var wS=typeof WeakMap=="function"?WeakMap:Map;function Zg(e,t,n){n=bn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ts||(ts=!0,If=r),Ef(e,t)},n}function Jg(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(){Ef(e,t)}}var u=e.stateNode;return u!==null&&typeof u.componentDidCatch=="function"&&(n.callback=function(){Ef(e,t),typeof r!="function"&&(er===null?er=new Set([this]):er.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function e0(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new wS;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=NS.bind(null,e,t,n),t.then(e,e))}function t0(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 n0(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,Zn(n,t,1))),n.lanes|=1),e)}var ES=Dn.ReactCurrentOwner,vt=!1;function at(e,t,n,r){t.child=e===null?Eg(t,null,n,r):bo(t,e.child,n,r)}function r0(e,t,n,r,o){n=n.render;var u=t.ref;return Fo(t,o),r=pf(e,t,n,r,u,o),n=vf(),e!==null&&!vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,xn(e,t,o)):(be&&n&&Qc(t),t.flags|=1,at(e,t,r,o),t.child)}function o0(e,t,n,r,o){if(e===null){var u=n.type;return typeof u=="function"&&!Uf(u)&&u.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=u,u0(e,t,u,r,o)):(e=is(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:Ru,n(a,r)&&e.ref===t.ref)return xn(e,t,o)}return t.flags|=1,e=or(u,r),e.ref=t.ref,e.return=t,t.child=e}function u0(e,t,n,r,o){if(e!==null){var u=e.memoizedProps;if(Ru(u,r)&&e.ref===t.ref)if(vt=!1,t.pendingProps=r=u,(e.lanes&o)!==0)e.flags&131072&&(vt=!0);else return t.lanes=e.lanes,xn(e,t,o)}return Bf(e,t,n,r,o)}function a0(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},Ce(Po,St),St|=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,Ce(Po,St),St|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=u!==null?u.baseLanes:n,Ce(Po,St),St|=r}else u!==null?(r=u.baseLanes|n,t.memoizedState=null):r=n,Ce(Po,St),St|=r;return at(e,t,o,n),t.child}function i0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Bf(e,t,n,r,o){var u=pt(n)?xr:Ze.current;return u=wo(t,u),Fo(t,o),n=pf(e,t,n,r,u,o),r=vf(),e!==null&&!vt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,xn(e,t,o)):(be&&r&&Qc(t),t.flags|=1,at(e,t,n,o),t.child)}function s0(e,t,n,r,o){if(pt(n)){var u=!0;ki(t)}else u=!1;if(Fo(t,o),t.stateNode===null)Gi(e,t),Gg(t,n,r),Cf(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=pt(n)?xr:Ze.current,l=wo(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)&&Xg(t,a,r,l),Xn=!1;var p=t.memoizedState;a.state=p,zi(t,r,a,o),s=t.memoizedState,i!==r||p!==s||dt.current||Xn?(typeof c=="function"&&(Df(t,n,c,r),s=t.memoizedState),(i=Xn||Qg(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,Ag(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=pt(n)?xr:Ze.current,s=wo(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)&&Xg(t,a,r,s),Xn=!1,p=t.memoizedState,a.state=p,zi(t,r,a,o);var m=t.memoizedState;i!==d||p!==m||dt.current||Xn?(typeof y=="function"&&(Df(t,n,y,r),m=t.memoizedState),(l=Xn||Qg(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 Af(e,t,n,r,u,o)}function Af(e,t,n,r,o,u){i0(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&pg(t,n,!1),xn(e,t,u);r=t.stateNode,ES.current=t;var i=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=bo(t,e.child,null,u),t.child=bo(t,null,i,u)):at(e,t,i,u),t.memoizedState=r.state,o&&pg(t,n,!0),t.child}function l0(e){var t=e.stateNode;t.pendingContext?fg(e,t.pendingContext,t.pendingContext!==t.context):t.context&&fg(e,t.context,!1),af(e,t.containerInfo)}function c0(e,t,n,r,o){return Ao(),Jc(o),t.flags|=256,at(e,t,n,r),t.child}var bf={dehydrated:null,treeContext:null,retryLane:0};function xf(e){return{baseLanes:e,cachePool:null,transitions:null}}function f0(e,t,n){var r=t.pendingProps,o=Se.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),Ce(Se,o&1),e===null)return Zc(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=ss(a,r,0,null),e=jr(e,r,n,null),u.return=t,e.return=t,u.sibling=e,t.child=u,t.child.memoizedState=xf(n),t.memoizedState=bf,e):Ff(t,a));if(o=e.memoizedState,o!==null&&(i=o.dehydrated,i!==null))return BS(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=or(o,s),r.subtreeFlags=o.subtreeFlags&14680064),i!==null?u=or(i,u):(u=jr(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?xf(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},u.memoizedState=a,u.childLanes=e.childLanes&~n,t.memoizedState=bf,r}return u=e.child,e=u.sibling,r=or(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 Ff(e,t){return t=ss({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Qi(e,t,n,r){return r!==null&&Jc(r),bo(t,e.child,null,n),e=Ff(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function BS(e,t,n,r,o,u,a){if(n)return t.flags&256?(t.flags&=-257,r=wf(Error(H(422))),Qi(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(u=r.fallback,o=t.mode,r=ss({mode:"visible",children:r.children},o,0,null),u=jr(u,o,a,null),u.flags|=2,r.return=t,u.return=t,r.sibling=u,t.child=r,t.mode&1&&bo(t,e.child,null,a),t.child.memoizedState=xf(a),t.memoizedState=bf,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(H(419)),r=wf(u,r,void 0),Qi(e,t,a,r)}if(i=(a&e.childLanes)!==0,vt||i){if(r=Ve,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,An(e,o),Xt(r,e,o,-1))}return Wf(),r=wf(Error(H(421))),Qi(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=jS.bind(null,e),o._reactRetry=t,null):(e=u.treeContext,Ft=qn(o.nextSibling),xt=t,be=!0,qt=null,e!==null&&(Tt[Rt++]=En,Tt[Rt++]=Bn,Tt[Rt++]=Fr,En=e.id,Bn=e.overflow,Fr=t),t=Ff(t,r.children),t.flags|=4096,t)}function d0(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),rf(e.return,t,n)}function Sf(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 p0(e,t,n){var r=t.pendingProps,o=r.revealOrder,u=r.tail;if(at(e,t,r.children,n),r=Se.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&&d0(e,n,t);else if(e.tag===19)d0(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(Ce(Se,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&&Vi(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Sf(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&&Vi(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Sf(t,!0,n,null,u);break;case"together":Sf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Gi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function xn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),kr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(H(153));if(t.child!==null){for(e=t.child,n=or(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=or(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function AS(e,t,n){switch(t.tag){case 3:l0(t),Ao();break;case 5:Fg(t);break;case 1:pt(t.type)&&ki(t);break;case 4:af(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Ce(Mi,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ce(Se,Se.current&1),t.flags|=128,null):n&t.child.childLanes?f0(e,t,n):(Ce(Se,Se.current&1),e=xn(e,t,n),e!==null?e.sibling:null);Ce(Se,Se.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return p0(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Ce(Se,Se.current),r)break;return null;case 22:case 23:return t.lanes=0,a0(e,t,n)}return xn(e,t,n)}var v0,Of,h0,m0;v0=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(){},h0=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,_r(an.current);var u=null;switch(n){case"input":o=rc(e,o),r=rc(e,r),u=[];break;case"select":o=Fe({},o,{value:void 0}),r=Fe({},r,{value:void 0}),u=[];break;case"textarea":o=ac(e,o),r=ac(e,r),u=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Oi)}sc(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"&&(pu.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"&&(pu.hasOwnProperty(l)?(s!=null&&l==="onScroll"&&Ee("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)}},m0=function(e,t,n,r){n!==r&&(t.flags|=4)};function Qu(e,t){if(!be)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 et(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 bS(e,t,n){var r=t.pendingProps;switch(Gc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return pt(t.type)&&Pi(),et(t),null;case 3:return r=t.stateNode,So(),Be(dt),Be(Ze),cf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ji(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,qt!==null&&(Lf(qt),qt=null))),Of(e,t),et(t),null;case 5:sf(t);var o=_r(Uu.current);if(n=t.type,e!==null&&t.stateNode!=null)h0(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(H(166));return et(t),null}if(e=_r(an.current),ji(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[un]=t,r[$u]=u,e=(t.mode&1)!==0,n){case"dialog":Ee("cancel",r),Ee("close",r);break;case"iframe":case"object":case"embed":Ee("load",r);break;case"video":case"audio":for(o=0;o<ju.length;o++)Ee(ju[o],r);break;case"source":Ee("error",r);break;case"img":case"image":case"link":Ee("error",r),Ee("load",r);break;case"details":Ee("toggle",r);break;case"input":Gh(r,u),Ee("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},Ee("invalid",r);break;case"textarea":Jh(r,u),Ee("invalid",r)}sc(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&&Si(r.textContent,i,e),o=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(u.suppressHydrationWarning!==!0&&Si(r.textContent,i,e),o=["children",""+i]):pu.hasOwnProperty(a)&&i!=null&&a==="onScroll"&&Ee("scroll",r)}switch(n){case"input":ui(r),Zh(r,u,!0);break;case"textarea":ui(r),tm(r);break;case"select":case"option":break;default:typeof u.onClick=="function"&&(r.onclick=Oi)}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=nm(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[un]=t,e[$u]=r,v0(e,t,!1,!1),t.stateNode=e;e:{switch(a=lc(n,r),n){case"dialog":Ee("cancel",e),Ee("close",e),o=r;break;case"iframe":case"object":case"embed":Ee("load",e),o=r;break;case"video":case"audio":for(o=0;o<ju.length;o++)Ee(ju[o],e);o=r;break;case"source":Ee("error",e),o=r;break;case"img":case"image":case"link":Ee("error",e),Ee("load",e),o=r;break;case"details":Ee("toggle",e),o=r;break;case"input":Gh(e,r),o=rc(e,r),Ee("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Fe({},r,{value:void 0}),Ee("invalid",e);break;case"textarea":Jh(e,r),o=ac(e,r),Ee("invalid",e);break;default:o=r}sc(n,o),i=o;for(u in i)if(i.hasOwnProperty(u)){var s=i[u];u==="style"?um(e,s):u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&rm(e,s)):u==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&gu(e,s):typeof s=="number"&&gu(e,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(pu.hasOwnProperty(u)?s!=null&&u==="onScroll"&&Ee("scroll",e):s!=null&&Kl(e,u,s,a))}switch(n){case"input":ui(e),Zh(e,r,!1);break;case"textarea":ui(e),tm(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ln(r.value));break;case"select":e.multiple=!!r.multiple,u=r.value,u!=null?so(e,!!r.multiple,u,!1):r.defaultValue!=null&&so(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Oi)}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 et(t),null;case 6:if(e&&t.stateNode!=null)m0(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(H(166));if(n=_r(Uu.current),_r(an.current),ji(t)){if(r=t.stateNode,n=t.memoizedProps,r[un]=t,(u=r.nodeValue!==n)&&(e=xt,e!==null))switch(e.tag){case 3:Si(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Si(r.nodeValue,n,(e.mode&1)!==0)}u&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[un]=t,t.stateNode=r}return et(t),null;case 13:if(Be(Se),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(be&&Ft!==null&&t.mode&1&&!(t.flags&128))Dg(),Ao(),t.flags|=98560,u=!1;else if(u=ji(t),r!==null&&r.dehydrated!==null){if(e===null){if(!u)throw Error(H(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(H(317));u[un]=t}else Ao(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;et(t),u=!1}else qt!==null&&(Lf(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||Se.current&1?$e===0&&($e=3):Wf())),t.updateQueue!==null&&(t.flags|=4),et(t),null);case 4:return So(),Of(e,t),e===null&&Iu(t.stateNode.containerInfo),et(t),null;case 10:return nf(t.type._context),et(t),null;case 17:return pt(t.type)&&Pi(),et(t),null;case 19:if(Be(Se),u=t.memoizedState,u===null)return et(t),null;if(r=(t.flags&128)!==0,a=u.rendering,a===null)if(r)Qu(u,!1);else{if($e!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Vi(e),a!==null){for(t.flags|=128,Qu(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 Ce(Se,Se.current&1|2),t.child}e=e.sibling}u.tail!==null&&Re()>ko&&(t.flags|=128,r=!0,Qu(u,!1),t.lanes=4194304)}else{if(!r)if(e=Vi(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Qu(u,!0),u.tail===null&&u.tailMode==="hidden"&&!a.alternate&&!be)return et(t),null}else 2*Re()-u.renderingStartTime>ko&&n!==1073741824&&(t.flags|=128,r=!0,Qu(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=Re(),t.sibling=null,n=Se.current,Ce(Se,r?n&1|2:n&1),t):(et(t),null);case 22:case 23:return Vf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?St&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(H(156,t.tag))}function xS(e,t){switch(Gc(t),t.tag){case 1:return pt(t.type)&&Pi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return So(),Be(dt),Be(Ze),cf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return sf(t),null;case 13:if(Be(Se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));Ao()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Be(Se),null;case 4:return So(),null;case 10:return nf(t.type._context),null;case 22:case 23:return Vf(),null;case 24:return null;default:return null}}var Xi=!1,tt=!1,FS=typeof WeakSet=="function"?WeakSet:Set,J=null;function _o(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ke(e,t,r)}else n.current=null}function _f(e,t,n){try{n()}catch(r){ke(e,t,r)}}var g0=!1;function SS(e,t){if(zc=gi,e=Qm(),Tc(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(Vc={focusedElem:e,selectionRange:n},gi=!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(H(163))}}catch(E){ke(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return m=g0,g0=!1,m}function Gu(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&&_f(t,n,u)}o=o.next}while(o!==r)}}function Zi(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 Pf(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 y0(e){var t=e.alternate;t!==null&&(e.alternate=null,y0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[un],delete t[$u],delete t[Kc],delete t[cS],delete t[fS])),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 D0(e){return e.tag===5||e.tag===3||e.tag===4}function C0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||D0(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 kf(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=Oi));else if(r!==4&&(e=e.child,e!==null))for(kf(e,t,n),e=e.sibling;e!==null;)kf(e,t,n),e=e.sibling}function Tf(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(Tf(e,t,n),e=e.sibling;e!==null;)Tf(e,t,n),e=e.sibling}var Ke=null,Qt=!1;function Jn(e,t,n){for(n=n.child;n!==null;)w0(e,t,n),n=n.sibling}function w0(e,t,n){if(on&&typeof on.onCommitFiberUnmount=="function")try{on.onCommitFiberUnmount(fi,n)}catch{}switch(n.tag){case 5:tt||_o(n,t);case 6:var r=Ke,o=Qt;Ke=null,Jn(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?Hc(e.parentNode,n):e.nodeType===1&&Hc(e,n),Su(e)):Hc(Ke,n.stateNode));break;case 4:r=Ke,o=Qt,Ke=n.stateNode.containerInfo,Qt=!0,Jn(e,t,n),Ke=r,Qt=o;break;case 0:case 11:case 14:case 15:if(!tt&&(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)&&_f(n,t,a),o=o.next}while(o!==r)}Jn(e,t,n);break;case 1:if(!tt&&(_o(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){ke(n,t,i)}Jn(e,t,n);break;case 21:Jn(e,t,n);break;case 22:n.mode&1?(tt=(r=tt)||n.memoizedState!==null,Jn(e,t,n),tt=r):Jn(e,t,n);break;default:Jn(e,t,n)}}function E0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new FS),t.forEach(function(r){var o=IS.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(H(160));w0(u,a,o),Ke=null,Qt=!1;var s=o.alternate;s!==null&&(s.return=null),o.return=null}catch(l){ke(o,t,l)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)B0(t,e),t=t.sibling}function B0(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Gt(t,e),ln(e),r&4){try{Gu(3,e,e.return),Zi(3,e)}catch(f){ke(e,e.return,f)}try{Gu(5,e,e.return)}catch(f){ke(e,e.return,f)}}break;case 1:Gt(t,e),ln(e),r&512&&n!==null&&_o(n,n.return);break;case 5:if(Gt(t,e),ln(e),r&512&&n!==null&&_o(n,n.return),e.flags&32){var o=e.stateNode;try{gu(o,"")}catch(f){ke(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&&Xh(o,u),lc(i,a);var l=lc(i,u);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];c==="style"?um(o,d):c==="dangerouslySetInnerHTML"?rm(o,d):c==="children"?gu(o,d):Kl(o,c,d,l)}switch(i){case"input":oc(o,u);break;case"textarea":em(o,u);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!u.multiple;var y=u.value;y!=null?so(o,!!u.multiple,y,!1):p!==!!u.multiple&&(u.defaultValue!=null?so(o,!!u.multiple,u.defaultValue,!0):so(o,!!u.multiple,u.multiple?[]:"",!1))}o[$u]=u}catch(f){ke(e,e.return,f)}}break;case 6:if(Gt(t,e),ln(e),r&4){if(e.stateNode===null)throw Error(H(162));o=e.stateNode,u=e.memoizedProps;try{o.nodeValue=u}catch(f){ke(e,e.return,f)}}break;case 3:if(Gt(t,e),ln(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Su(t.containerInfo)}catch(f){ke(e,e.return,f)}break;case 4:Gt(t,e),ln(e);break;case 13:Gt(t,e),ln(e),o=e.child,o.flags&8192&&(u=o.memoizedState!==null,o.stateNode.isHidden=u,!u||o.alternate!==null&&o.alternate.memoizedState!==null||(jf=Re())),r&4&&E0(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(tt=(l=tt)||c,Gt(t,e),tt=l):Gt(t,e),ln(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:Gu(4,p,p.return);break;case 1:_o(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){ke(r,n,f)}}break;case 5:_o(p,p.return);break;case 22:if(p.memoizedState!==null){x0(d);continue}}y!==null?(y.return=p,J=y):x0(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=om("display",a))}catch(f){ke(e,e.return,f)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(f){ke(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),ln(e),r&4&&E0(e);break;case 21:break;default:Gt(t,e),ln(e)}}function ln(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(D0(n)){var r=n;break e}n=n.return}throw Error(H(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(gu(o,""),r.flags&=-33);var u=C0(e);Tf(e,u,o);break;case 3:case 4:var a=r.stateNode.containerInfo,i=C0(e);kf(e,i,a);break;default:throw Error(H(161))}}catch(s){ke(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function OS(e,t,n){J=e,A0(e)}function A0(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||Xi;if(!a){var i=o.alternate,s=i!==null&&i.memoizedState!==null||tt;i=Xi;var l=tt;if(Xi=a,(tt=s)&&!l)for(J=o;J!==null;)a=J,s=a.child,a.tag===22&&a.memoizedState!==null?F0(o):s!==null?(s.return=a,J=s):F0(o);for(;u!==null;)J=u,A0(u),u=u.sibling;J=o,Xi=i,tt=l}b0(e)}else o.subtreeFlags&8772&&u!==null?(u.return=o,J=u):b0(e)}}function b0(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:tt||Zi(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!tt)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&&xg(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}xg(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&&Su(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(H(163))}tt||t.flags&512&&Pf(t)}catch(p){ke(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 x0(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 F0(e){for(;J!==null;){var t=J;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Zi(4,t)}catch(s){ke(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(s){ke(t,o,s)}}var u=t.return;try{Pf(t)}catch(s){ke(t,u,s)}break;case 5:var a=t.return;try{Pf(t)}catch(s){ke(t,a,s)}}}catch(s){ke(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 _S=Math.ceil,Ji=Dn.ReactCurrentDispatcher,Rf=Dn.ReactCurrentOwner,It=Dn.ReactCurrentBatchConfig,ce=0,Ve=null,Ie=null,qe=0,St=0,Po=Yn(0),$e=0,Xu=null,kr=0,es=0,Nf=0,Zu=null,ht=null,jf=0,ko=1/0,Fn=null,ts=!1,If=null,er=null,ns=!1,tr=null,rs=0,Ju=0,Mf=null,os=-1,us=0;function it(){return ce&6?Re():os!==-1?os:os=Re()}function nr(e){return e.mode&1?ce&2&&qe!==0?qe&-qe:pS.transition!==null?(us===0&&(us=Cm()),us):(e=ge,e!==0||(e=window.event,e=e===void 0?16:Om(e.type)),e):1}function Xt(e,t,n,r){if(50<Ju)throw Ju=0,Mf=null,Error(H(185));Bu(e,n,r),(!(ce&2)||e!==Ve)&&(e===Ve&&(!(ce&2)&&(es|=n),$e===4&&rr(e,qe)),mt(e,r),n===1&&ce===0&&!(t.mode&1)&&(ko=Re()+500,Ti&&Gn()))}function mt(e,t){var n=e.callbackNode;pF(e,t);var r=vi(e,e===Ve?qe:0);if(r===0)n!==null&&gm(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&gm(n),t===1)e.tag===0?dS(O0.bind(null,e)):vg(O0.bind(null,e)),sS(function(){!(ce&6)&&Gn()}),n=null;else{switch(wm(r)){case 1:n=mc;break;case 4:n=ym;break;case 16:n=ci;break;case 536870912:n=Dm;break;default:n=ci}n=I0(n,S0.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function S0(e,t){if(os=-1,us=0,ce&6)throw Error(H(327));var n=e.callbackNode;if(To()&&e.callbackNode!==n)return null;var r=vi(e,e===Ve?qe:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=as(e,r);else{t=r;var o=ce;ce|=2;var u=P0();(Ve!==e||qe!==t)&&(Fn=null,ko=Re()+500,Rr(e,t));do try{TS();break}catch(i){_0(e,i)}while(!0);tf(),Ji.current=u,ce=o,Ie!==null?t=0:(Ve=null,qe=0,t=$e)}if(t!==0){if(t===2&&(o=gc(e),o!==0&&(r=o,t=$f(e,o))),t===1)throw n=Xu,Rr(e,0),rr(e,r),mt(e,Re()),n;if(t===6)rr(e,r);else{if(o=e.current.alternate,!(r&30)&&!PS(o)&&(t=as(e,r),t===2&&(u=gc(e),u!==0&&(r=u,t=$f(e,u))),t===1))throw n=Xu,Rr(e,0),rr(e,r),mt(e,Re()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(H(345));case 2:Nr(e,ht,Fn);break;case 3:if(rr(e,r),(r&130023424)===r&&(t=jf+500-Re(),10<t)){if(vi(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){it(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Uc(Nr.bind(null,e,ht,Fn),t);break}Nr(e,ht,Fn);break;case 4:if(rr(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=Re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_S(r/1960))-r,10<r){e.timeoutHandle=Uc(Nr.bind(null,e,ht,Fn),r);break}Nr(e,ht,Fn);break;case 5:Nr(e,ht,Fn);break;default:throw Error(H(329))}}}return mt(e,Re()),e.callbackNode===n?S0.bind(null,e):null}function $f(e,t){var n=Zu;return e.current.memoizedState.isDehydrated&&(Rr(e,t).flags|=256),e=as(e,t),e!==2&&(t=ht,ht=n,t!==null&&Lf(t)),e}function Lf(e){ht===null?ht=e:ht.push.apply(ht,e)}function PS(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 rr(e,t){for(t&=~Nf,t&=~es,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 O0(e){if(ce&6)throw Error(H(327));To();var t=vi(e,0);if(!(t&1))return mt(e,Re()),null;var n=as(e,t);if(e.tag!==0&&n===2){var r=gc(e);r!==0&&(t=r,n=$f(e,r))}if(n===1)throw n=Xu,Rr(e,0),rr(e,t),mt(e,Re()),n;if(n===6)throw Error(H(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Nr(e,ht,Fn),mt(e,Re()),null}function zf(e,t){var n=ce;ce|=1;try{return e(t)}finally{ce=n,ce===0&&(ko=Re()+500,Ti&&Gn())}}function Tr(e){tr!==null&&tr.tag===0&&!(ce&6)&&To();var t=ce;ce|=1;var n=It.transition,r=ge;try{if(It.transition=null,ge=1,e)return e()}finally{ge=r,It.transition=n,ce=t,!(ce&6)&&Gn()}}function Vf(){St=Po.current,Be(Po)}function Rr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,iS(n)),Ie!==null)for(n=Ie.return;n!==null;){var r=n;switch(Gc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Pi();break;case 3:So(),Be(dt),Be(Ze),cf();break;case 5:sf(r);break;case 4:So();break;case 13:Be(Se);break;case 19:Be(Se);break;case 10:nf(r.type._context);break;case 22:case 23:Vf()}n=n.return}if(Ve=e,Ie=e=or(e.current,null),qe=St=t,$e=0,Xu=null,Nf=es=kr=0,ht=Zu=null,Or!==null){for(t=0;t<Or.length;t++)if(n=Or[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}Or=null}return e}function _0(e,t){do{var n=Ie;try{if(tf(),Wi.current=qi,Ui){for(var r=Oe.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Ui=!1}if(Pr=0,ze=Me=Oe=null,Hu=!1,Ku=0,Rf.current=null,n===null||n.return===null){$e=1,Xu=t,Ie=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=t0(a);if(y!==null){y.flags&=-257,n0(y,a,i,u,t),y.mode&1&&e0(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)){e0(u,l,t),Wf();break e}s=Error(H(426))}}else if(be&&i.mode&1){var w=t0(a);if(w!==null){!(w.flags&65536)&&(w.flags|=256),n0(w,a,i,u,t),Jc(Oo(s,i));break e}}u=s=Oo(s,i),$e!==4&&($e=2),Zu===null?Zu=[u]:Zu.push(u),u=a;do{switch(u.tag){case 3:u.flags|=65536,t&=-t,u.lanes|=t;var h=Zg(u,s,t);bg(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"&&(er===null||!er.has(C)))){u.flags|=65536,t&=-t,u.lanes|=t;var E=Jg(u,i,t);bg(u,E);break e}}u=u.return}while(u!==null)}T0(n)}catch(B){t=B,Ie===n&&n!==null&&(Ie=n=n.return);continue}break}while(!0)}function P0(){var e=Ji.current;return Ji.current=qi,e===null?qi:e}function Wf(){($e===0||$e===3||$e===2)&&($e=4),Ve===null||!(kr&268435455)&&!(es&268435455)||rr(Ve,qe)}function as(e,t){var n=ce;ce|=2;var r=P0();(Ve!==e||qe!==t)&&(Fn=null,Rr(e,t));do try{kS();break}catch(o){_0(e,o)}while(!0);if(tf(),ce=n,Ji.current=r,Ie!==null)throw Error(H(261));return Ve=null,qe=0,$e}function kS(){for(;Ie!==null;)k0(Ie)}function TS(){for(;Ie!==null&&!oF();)k0(Ie)}function k0(e){var t=j0(e.alternate,e,St);e.memoizedProps=e.pendingProps,t===null?T0(e):Ie=t,Rf.current=null}function T0(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=xS(n,t),n!==null){n.flags&=32767,Ie=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{$e=6,Ie=null;return}}else if(n=bS(n,t,St),n!==null){Ie=n;return}if(t=t.sibling,t!==null){Ie=t;return}Ie=t=e}while(t!==null);$e===0&&($e=5)}function Nr(e,t,n){var r=ge,o=It.transition;try{It.transition=null,ge=1,RS(e,t,n,r)}finally{It.transition=o,ge=r}return null}function RS(e,t,n,r){do To();while(tr!==null);if(ce&6)throw Error(H(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(H(177));e.callbackNode=null,e.callbackPriority=0;var u=n.lanes|n.childLanes;if(vF(e,u),e===Ve&&(Ie=Ve=null,qe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ns||(ns=!0,I0(ci,function(){return To(),null})),u=(n.flags&15990)!==0,n.subtreeFlags&15990||u){u=It.transition,It.transition=null;var a=ge;ge=1;var i=ce;ce|=4,Rf.current=null,SS(e,n),B0(n,e),eS(Vc),gi=!!zc,Vc=zc=null,e.current=n,OS(n),uF(),ce=i,ge=a,It.transition=u}else e.current=n;if(ns&&(ns=!1,tr=e,rs=o),u=e.pendingLanes,u===0&&(er=null),sF(n.stateNode),mt(e,Re()),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(ts)throw ts=!1,e=If,If=null,e;return rs&1&&e.tag!==0&&To(),u=e.pendingLanes,u&1?e===Mf?Ju++:(Ju=0,Mf=e):Ju=0,Gn(),null}function To(){if(tr!==null){var e=wm(rs),t=It.transition,n=ge;try{if(It.transition=null,ge=16>e?16:e,tr===null)var r=!1;else{if(e=tr,tr=null,rs=0,ce&6)throw Error(H(331));var o=ce;for(ce|=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:Gu(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(y0(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:Gu(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:Zi(9,i)}}catch(B){ke(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(ce=o,Gn(),on&&typeof on.onPostCommitFiberRoot=="function")try{on.onPostCommitFiberRoot(fi,e)}catch{}r=!0}return r}finally{ge=n,It.transition=t}}return!1}function R0(e,t,n){t=Oo(n,t),t=Zg(e,t,1),e=Zn(e,t,1),t=it(),e!==null&&(Bu(e,1,t),mt(e,t))}function ke(e,t,n){if(e.tag===3)R0(e,e,n);else for(;t!==null;){if(t.tag===3){R0(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(er===null||!er.has(r))){e=Oo(n,e),e=Jg(t,e,1),t=Zn(t,e,1),e=it(),t!==null&&(Bu(t,1,e),mt(t,e));break}}t=t.return}}function NS(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=it(),e.pingedLanes|=e.suspendedLanes&n,Ve===e&&(qe&n)===n&&($e===4||$e===3&&(qe&130023424)===qe&&500>Re()-jf?Rr(e,0):Nf|=n),mt(e,t)}function N0(e,t){t===0&&(e.mode&1?(t=pi,pi<<=1,!(pi&130023424)&&(pi=4194304)):t=1);var n=it();e=An(e,t),e!==null&&(Bu(e,t,n),mt(e,n))}function jS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),N0(e,n)}function IS(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(H(314))}r!==null&&r.delete(t),N0(e,n)}var j0;j0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||dt.current)vt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return vt=!1,AS(e,t,n);vt=!!(e.flags&131072)}else vt=!1,be&&t.flags&1048576&&hg(t,Ni,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Gi(e,t),e=t.pendingProps;var o=wo(t,Ze.current);Fo(t,n),o=pf(null,t,r,e,o,n);var u=vf();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,pt(r)?(u=!0,ki(t)):u=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,uf(t),o.updater=Yi,t.stateNode=o,o._reactInternals=t,Cf(t,r,e,n),t=Af(null,t,r,!0,u,n)):(t.tag=0,be&&u&&Qc(t),at(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Gi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=$S(r),e=Yt(r,e),o){case 0:t=Bf(null,t,r,e,n);break e;case 1:t=s0(null,t,r,e,n);break e;case 11:t=r0(null,t,r,e,n);break e;case 14:t=o0(null,t,r,Yt(r.type,e),n);break e}throw Error(H(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yt(r,o),Bf(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yt(r,o),s0(e,t,r,o,n);case 3:e:{if(l0(t),e===null)throw Error(H(387));r=t.pendingProps,u=t.memoizedState,o=u.element,Ag(e,t),zi(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=Oo(Error(H(423)),t),t=c0(e,t,r,n,o);break e}else if(r!==o){o=Oo(Error(H(424)),t),t=c0(e,t,r,n,o);break e}else for(Ft=qn(t.stateNode.containerInfo.firstChild),xt=t,be=!0,qt=null,n=Eg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ao(),r===o){t=xn(e,t,n);break e}at(e,t,r,n)}t=t.child}return t;case 5:return Fg(t),e===null&&Zc(t),r=t.type,o=t.pendingProps,u=e!==null?e.memoizedProps:null,a=o.children,Wc(r,o)?a=null:u!==null&&Wc(r,u)&&(t.flags|=32),i0(e,t),at(e,t,a,n),t.child;case 6:return e===null&&Zc(t),null;case 13:return f0(e,t,n);case 4:return af(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=bo(t,null,r,n):at(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yt(r,o),r0(e,t,r,o,n);case 7:return at(e,t,t.pendingProps,n),t.child;case 8:return at(e,t,t.pendingProps.children,n),t.child;case 12:return at(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,Ce(Mi,r._currentValue),r._currentValue=a,u!==null)if(Kt(u.value,a)){if(u.children===o.children&&!dt.current){t=xn(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),rf(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(H(341));a.lanes|=n,i=a.alternate,i!==null&&(i.lanes|=n),rf(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}at(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Fo(t,n),o=Nt(o),r=r(o),t.flags|=1,at(e,t,r,n),t.child;case 14:return r=t.type,o=Yt(r,t.pendingProps),o=Yt(r.type,o),o0(e,t,r,o,n);case 15:return u0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Yt(r,o),Gi(e,t),t.tag=1,pt(r)?(e=!0,ki(t)):e=!1,Fo(t,n),Gg(t,r,o),Cf(t,r,o,n),Af(null,t,r,!0,e,n);case 19:return p0(e,t,n);case 22:return a0(e,t,n)}throw Error(H(156,t.tag))};function I0(e,t){return mm(e,t)}function MS(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 MS(e,t,n,r)}function Uf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $S(e){if(typeof e=="function")return Uf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ql)return 11;if(e===Zl)return 14}return 2}function or(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 is(e,t,n,r,o,u){var a=2;if(r=e,typeof e=="function")Uf(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case io:return jr(n.children,o,u,t);case ql:a=8,o|=8;break;case Yl:return e=Mt(12,n,t,o|2),e.elementType=Yl,e.lanes=u,e;case Gl:return e=Mt(13,n,t,o),e.elementType=Gl,e.lanes=u,e;case Xl:return e=Mt(19,n,t,o),e.elementType=Xl,e.lanes=u,e;case Kh:return ss(n,o,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Uh:a=10;break e;case Hh:a=9;break e;case Ql:a=11;break e;case Zl:a=14;break e;case $n:a=16,r=null;break e}throw Error(H(130,e==null?e:typeof e,""))}return t=Mt(a,n,t,o),t.elementType=e,t.type=r,t.lanes=u,t}function jr(e,t,n,r){return e=Mt(7,e,r,t),e.lanes=n,e}function ss(e,t,n,r){return e=Mt(22,e,r,t),e.elementType=Kh,e.lanes=n,e.stateNode={isHidden:!1},e}function Hf(e,t,n){return e=Mt(6,e,null,t),e.lanes=n,e}function Kf(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 LS(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=yc(0),this.expirationTimes=yc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yc(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function qf(e,t,n,r,o,u,a,i,s){return e=new LS(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},uf(u),e}function zS(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ao,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function M0(e){if(!e)return Qn;e=e._reactInternals;e:{if(Ar(e)!==e||e.tag!==1)throw Error(H(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(pt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(H(171))}if(e.tag===1){var n=e.type;if(pt(n))return dg(e,n,t)}return t}function $0(e,t,n,r,o,u,a,i,s){return e=qf(n,r,!0,e,o,u,a,i,s),e.context=M0(null),n=e.current,r=it(),o=nr(n),u=bn(r,o),u.callback=t??null,Zn(n,u,o),e.current.lanes=o,Bu(e,o,r),mt(e,r),e}function ls(e,t,n,r){var o=t.current,u=it(),a=nr(o);return n=M0(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=Zn(o,t,a),e!==null&&(Xt(e,o,a,u),Li(e,o,a)),a}function cs(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 L0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Yf(e,t){L0(e,t),(e=e.alternate)&&L0(e,t)}function VS(){return null}var z0=typeof reportError=="function"?reportError:function(e){console.error(e)};function Qf(e){this._internalRoot=e}fs.prototype.render=Qf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(H(409));ls(e,t,null,null)},fs.prototype.unmount=Qf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Tr(function(){ls(null,e,null,null)}),t[Cn]=null}};function fs(e){this._internalRoot=e}fs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Am();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Un.length&&t!==0&&t<Un[n].priority;n++);Un.splice(n,0,e),n===0&&Fm(e)}};function Gf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ds(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function V0(){}function WS(e,t,n,r,o){if(o){if(typeof r=="function"){var u=r;r=function(){var l=cs(a);u.call(l)}}var a=$0(t,r,e,0,null,!1,!1,"",V0);return e._reactRootContainer=a,e[Cn]=a.current,Iu(e.nodeType===8?e.parentNode:e),Tr(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var i=r;r=function(){var l=cs(s);i.call(l)}}var s=qf(e,0,!1,null,null,!1,!1,"",V0);return e._reactRootContainer=s,e[Cn]=s.current,Iu(e.nodeType===8?e.parentNode:e),Tr(function(){ls(t,s,n,r)}),s}function ps(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=cs(a);i.call(s)}}ls(t,a,e,o)}else a=WS(n,t,e,o,r);return cs(a)}Em=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Eu(t.pendingLanes);n!==0&&(Dc(t,n|1),mt(t,Re()),!(ce&6)&&(ko=Re()+500,Gn()))}break;case 13:Tr(function(){var r=An(e,1);if(r!==null){var o=it();Xt(r,e,1,o)}}),Yf(e,1)}},Cc=function(e){if(e.tag===13){var t=An(e,134217728);if(t!==null){var n=it();Xt(t,e,134217728,n)}Yf(e,134217728)}},Bm=function(e){if(e.tag===13){var t=nr(e),n=An(e,t);if(n!==null){var r=it();Xt(n,e,t,r)}Yf(e,t)}},Am=function(){return ge},bm=function(e,t){var n=ge;try{return ge=e,t()}finally{ge=n}},dc=function(e,t,n){switch(t){case"input":if(oc(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=_i(r);if(!o)throw Error(H(90));Qh(r),oc(r,o)}}}break;case"textarea":em(e,n);break;case"select":t=n.value,t!=null&&so(e,!!n.multiple,t,!1)}},lm=zf,cm=Tr;var US={usingClientEntryPoint:!1,Events:[Lu,Do,_i,im,sm,zf]},ea={findFiberByHostInstance:br,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},HS={bundleType:ea.bundleType,version:ea.version,rendererPackageName:ea.rendererPackageName,rendererConfig:ea.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Dn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=vm(e),e===null?null:e.stateNode},findFiberByHostInstance:ea.findFiberByHostInstance||VS,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 vs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vs.isDisabled&&vs.supportsFiber)try{fi=vs.inject(HS),on=vs}catch{}}Bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=US,Bt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Gf(t))throw Error(H(200));return zS(e,t,null,n)},Bt.createRoot=function(e,t){if(!Gf(e))throw Error(H(299));var n=!1,r="",o=z0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=qf(e,1,!1,null,null,n,!1,r,o),e[Cn]=t.current,Iu(e.nodeType===8?e.parentNode:e),new Qf(t)},Bt.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(H(188)):(e=Object.keys(e).join(","),Error(H(268,e)));return e=vm(t),e=e===null?null:e.stateNode,e},Bt.flushSync=function(e){return Tr(e)},Bt.hydrate=function(e,t,n){if(!ds(t))throw Error(H(200));return ps(null,e,t,!0,n)},Bt.hydrateRoot=function(e,t,n){if(!Gf(e))throw Error(H(405));var r=n!=null&&n.hydratedSources||null,o=!1,u="",a=z0;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=$0(t,null,e,1,n??null,o,!1,u,a),e[Cn]=t.current,Iu(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 fs(t)},Bt.render=function(e,t,n){if(!ds(t))throw Error(H(200));return ps(null,e,t,!1,n)},Bt.unmountComponentAtNode=function(e){if(!ds(e))throw Error(H(40));return e._reactRootContainer?(Tr(function(){ps(null,null,e,!1,function(){e._reactRootContainer=null,e[Cn]=null})}),!0):!1},Bt.unstable_batchedUpdates=zf,Bt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ds(n))throw Error(H(200));if(e==null||e._reactInternals===void 0)throw Error(H(38));return ps(e,t,n,!1,r)},Bt.version="18.3.1-next-f1338f8080-20240426";function W0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(W0)}catch(e){console.error(e)}}W0(),Mh.exports=Bt;var U0=Mh.exports;const Ro=nu(U0);function H0(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 $(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H0(Object(n),!0).forEach(function(r){No(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H0(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 ta(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K0(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 na(e,t,n){return t&&K0(e.prototype,t),n&&K0(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function No(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ir(){return(Ir=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 hs(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&&q0(e,t)}function Xf(e){return(Xf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}function q0(e,t){return(q0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n})(e,t)}function KS(){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 qS(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=qS(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 ms(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YS(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 ms(e)}function gs(e){var t=KS();return function(){var n,r=Xf(e);return YS(this,t?(n=Xf(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments))}}function Y0(e,t){return GS(e)||ZS(e,t)||Q0(e,t)||eO()}function ys(e){return QS(e)||XS(e)||Q0(e)||JS()}function QS(e){if(Array.isArray(e))return Zf(e)}function GS(e){if(Array.isArray(e))return e}function XS(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ZS(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 Q0(e,t){var n;if(e)return typeof e=="string"?Zf(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)?Zf(e,t):void 0}function Zf(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 JS(){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 eO(){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 tO(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 G0(e){return e=tO(e,"string"),typeof e=="symbol"?e:String(e)}var X0={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 M.createElement(M.Fragment,null,e,(t===void 0?[]:t).map(function(o){var r=o.Portal,o=o.key;return M.createElement(r,{key:o})}))}},componentWrapAttrs:{"data-use-vue-component-wrap":"",style:{all:"unset"}},slotWrapAttrs:{"data-use-vue-slot-wrap":"",style:{all:"unset"}}}};function Z0(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{react:{},vue:{}},n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:X0,t=2<arguments.length?arguments[2]:void 0,n=(e.vue||(e.vue={}),e.react||(e.react={}),[n,$($({},e),{},{react:$($($({},n.react),e.react),{},{componentWrapAttrs:$($({},n.react.componentWrapAttrs),e.react.componentWrapAttrs),slotWrapAttrs:$($({},n.react.slotWrapAttrs),e.react.slotWrapAttrs)}),vue:$($($({},n.vue),e.vue),{},{componentWrapAttrs:$($({},n.vue.componentWrapAttrs),e.vue.componentWrapAttrs),slotWrapAttrs:$($({},n.vue.slotWrapAttrs),e.vue.slotWrapAttrs)})})]);return t&&n.unshift({}),Object.assign.apply(this,n)}var J0=["getElementById","getElementsByClassName","getElementsByTagName","getElementsByTagNameNS","querySelector","querySelectorAll"],ra={Document:{},Element:{}};function nO(e){Object.keys(ra).forEach(function(t){J0.forEach(function(n){var r=window[t].prototype[n];ra[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:(ra.Element[n]||Element.prototype[n]).apply(e,u)}})})}function rO(){Object.keys(ra).forEach(function(e){J0.forEach(function(t){window[e].prototype[t]=ra[e][t]})})}var oO=["ref"],uO=["key"],aO=["hashList"],ey=parseInt(M.version);function Fk(e){return e}var iO=function(){hs(t,M.Component);var e=gs(t);function t(n){return ta(this,t),e.call(this,n)}return na(t,[{key:"render",value:function(){var n=this.props.component,r=this.props.passedProps,r=(r.ref,$t(r,oO));return M.createElement(n,r,this.props.children)}}]),t}(),sO=function(e,t,n){var r=function(){hs(u,M.Component);var o=gs(u);function u(a){var i;return ta(this,u),(i=o.call(this,a)).state=$($({},a),t.isSlots?{children:e}:{}),i.setRef=i.setRef.bind(ms(i)),i.vueInReactCall=i.vueInReactCall.bind(ms(i)),(i.__veauryVueWrapperRef__=n).__veauryVueInReactCall__=i.vueInReactCall,i}return na(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,uO),a[0].props=$($({},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 Cs(i.createSlot(l instanceof Function?l:[l]),$($($({},t),s),{},{isSlots:!0,wrapInstance:n})).render({key:(l==null?void 0:l.key)||void 0})}):Cs(this.createSlot(a),$($($({},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,aO),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]=ys(d[i]):-1<["string","number"].indexOf(Ye(d[i]))?d[i]=[d[i]]:Ye(d[i])==="object"&&(d[i]=$({},d[i]))):d[i]=$({},Cs(l.createSlot(d[i]),$($({},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=$($($({},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,M.createElement(e,Ir({},f,w))):M.createElement(iO,Ir({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 No(r,"displayName","applyReact_".concat(e.displayName||e.name||"Component")),r};function Jf(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=Z0(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,$({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=ys(l):Ye(l)==="object"&&(l=$({},l)),l):Cs(i(function(){return n.apply(c,p)}),$($({},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=$({},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=$($($({},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]}),$($($($({},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__=$($({},this.__veauryCache__||{}),$($($($({},i),this.$attrs.class?{className:this.$attrs.class}:{}),$({},s)),{},{hashList:l},this.$attrs.style?{style:this.$attrs.style}:{})),this.macroTaskUpdate||this.microTaskUpdate||C()}else{m.slot(),m.attrs();var c=sO(e,t,this),f=M.createElement(c,Ir({},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 U0.createPortal(f,w)},h.pushReactPortal(this.reactPortal)):17<ey?(Ro.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED!==void 0&&(Ro.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint=!0),this.__veauryReactApp__=Ro.createRoot(w),this.__veauryReactApp__.render(f)):Ro.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),nO(this.$refs.react),this.reactPortal?(n=this.parentReactWrapperRef)!=null&&n.removeReactPortal(this.reactPortal):17<ey?this.__veauryReactApp__.unmount():Ro.unmountComponentAtNode(this.$refs.react),rO()},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 lO=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 cO(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 ty(e,t,n){var r={};return n.forEach(function(o){r[o]=!0}),e[(t==="modelValue"?"model":t)+"Modifiers"]=r}function ny(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&&ty(e,n,u[3])):u[2]instanceof Array&&ty(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 ed(e){var t=this,n={},r=$({},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",ny(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){ny(n,i[s],s,"v-models")}),delete r[o]}}),$($({},r),n)}var Ds=function(){function e(){ta(this,e),No(this,"pool",new Set)}return na(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 ry(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 $($({},r),{},{ref:t})}var fO=Jf(ry);function td(e){return v.h(fO,{node:function(){return e.node}})}td.originReactComponent=M.forwardRef(ry);var dO=["component","node"],pO=["component","$slots","children","class","style"],vO=["className","classname"],ur="veaury-options",oy=new Ds;function hO(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 uy(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 mO(e){var t;return(t=e.node)==null?void 0:t.call(e)}var nd=M.forwardRef(function(o,t){var n,a=o.component,r=o.node,o=$t(o,dO);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||mO,i=Z0(o[ur]||{},void 0,!0),s=i.useInjectPropsFromWrapper||a.__veauryInjectPropsFromWrapper__;return i.isSlots||typeof s=="function"&&(u=s(o)),M.createElement(gO,Ir({},$($($($({component:a},r?{node:r}:{}),o),u),{},No({},ur,i)),{ref:t}))}),gO=function(){hs(t,M.Component);var e=gs(t);function t(n){var r;return ta(this,t),(r=e.call(this,n)).state={portals:[]},r.__veauryPortalKeyPool__=[],r.__veauryMaxPortalCount__=0,r.__veauryCurrentVueComponent__=n.component,r.__veauryCreateVueInstance__=r.__veauryCreateVueInstance__.bind(ms(r)),r.__veauryVueComponentContainer__=r.createVueComponentContainer(),r}return na(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[ur];return o.isSlots?(Object.keys(this.props).forEach(function(u){lO.has(u)&&typeof n.props[u]=="function"&&(r[u]=n.props[u])}),o.vue.slotWrapAttrs&&(r=$($({},r),o.vue.slotWrapAttrs))):o.vue.componentWrapAttrs&&(r=$($({},r),o.vue.componentWrapAttrs)),o.vue.componentWrapHOC(M.createElement("div",Ir({},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[ur],a=(a=n["v-slots"])===void 0?null:a,i=n.children,n=$t(n,["component",ur,"v-slots","children"].map(G0)),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,uy(a))),Object.keys(this.__veauryVueInstance__.$data).forEach(function(c){c!=="$slots"&&delete l.__veauryVueInstance__.$data[c]}),this.__veauryVueInstance__&&Object.assign(this.__veauryVueInstance__.$data,ed(n)),!0):void 0))}},{key:"componentWillUnmount",value:function(){this.vuePortal?this.parentVueWrapperRef.__veauryRemoveVuePortal__(this.vuePortal):(this.__veauryVueInstance__&&this.__veauryVueInstance__.$.appContext.app.unmount(),oy.pool.delete(this.__veauryVueTargetId__))}},{key:"__veauryCreateVueInstance__",value:function(n){var r=this,o=this,s=this.props,u=(s.component,s[ur]),a=s.children,i=s["v-slots"],i=i===void 0?{}:i,s=$t(s,["component",ur,"children","v-slots"].map(G0));function l(y){this.__veauryVueInstance__||(this.__veauryVueInstance__=y)}a&&(Ye(a)!=="object"||a instanceof Array||a.$$typeof?i.default=a:i=a),(i=uy(i))&&(s.$slots=i),l=l.bind(this);var c,d=$({},ed(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(td,{node:m,key:(m==null||(m=m.data)==null?void 0:m.key)||f})}):v.h(td,{node:y})},getScopedSlots:function(y,m){var f,w=this,h=(this.getScopedSlots.__scopeSlots||(this.getScopedSlots.__scopeSlots={}),$({},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,A,S,N=arguments.length,O=new Array(N),V=0;V<N;V++)O[V]=arguments[V];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__?(x=w.getScopedSlots.__scopeSlots[g],Promise.resolve().then(function(){var P;(P=x)!=null&&(P=P.component)!=null&&(P=P.ctx)!=null&&(P=P.__veauryReactInstance__)!=null&&P.setState({children:E.apply(w,O)})})):(x=S&&A?[S(A,w.reactInVueCall)]:y(Jf(function(){return E.apply(w,O)},$($({},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,pO),w=this.getScopedSlots(v.h,$({},h)),h=C.className,g=C.classname,C=$t(C,vO),E={};return Object.keys(w).forEach(function(B){var x=w[B];E[B]=typeof x=="function"?x:function(){return x}}),v.h(hO(o.__veauryCurrentVueComponent__,this),$($($($({},C),m||h||g?{class:m||h||g}:{}),f?{style:f}:{}),{},{ref:"use_vue_wrapper"}),$({},u.isSlots&&this.children?{default:typeof this.children=="function"?this.children:function(){return y.children}}:$({},E)))}};n&&(c=oy.getRandomId("__vue_wrapper_container_"),n.id=c,this.__veauryVueTargetId__=c,(a=u.wrapInstance)?(a=u.wrapInstance).reactWrapperRef=o:a=cO(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 M.createElement(this.__veauryVueComponentContainer__,{portals:this.state.portals})}}]),t}();function Cs(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),M.forwardRef(function(r,o){return M.createElement(nd,Ir({},r,{component:e,ref:o},No({},ur,t)))}));return n.originVueComponent=e,n}new Ds;function yO(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=t.globalName,r=t.combinedOption,o=(t.transparentApi,Jf(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 ay(e){return e.replace(/-(\w)/g,function(t,n){return n.toUpperCase()})}function ws(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,No({},ay(r[0]),r[1])),n},{}):Ye(e)==="object"?(t={},Object.keys(e).forEach(function(n){t[ay(n)]=e[n]}),t):{}:{}}function Es(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 DO=["ref"];function CO(e,t,n,r,o){var u=e.props||{},u=(u.ref,$t(u,DO)),a={},i=(Object.keys(e.children||{}).forEach(function(c){var d=e.children[c],p=X0.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=ws(u.style),l=Array.from(new Set(Es(u.class))).join(" ");return 0<Object.keys(s).length&&(i.style=s),l!==""&&(i.className=l),Object.assign(u,$($({},i),a)),delete u.class,u}function iy(e){return e.type===v.Text}new Ds;function sy(e,t){var n;return 0<((n=e.dirs)==null?void 0:n.length)?M.createElement(wO,{vnode:e},t):t}var wO=function(){hs(t,M.Component);var e=gs(t);function t(n){var r;return ta(this,t),(r=e.call(this,n)).state={prevVnode:null,savedDirectives:[],ref:null,prevProps:n},r}return na(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=Y0(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]=$($($({},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:$({},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=Y0(n.findDirectiveName(s),2))[0],p=p[1],l&&(c=(d=s.dir).beforeUnmount,d=d.unmounted,o[p]=$($({},l),s),p=[u,l,r,a],c!=null&&c.apply(null,p),d!=null&&d.apply(null,p)))}),this.setState({prevVnode:$({},r),savedDirectives:o}))}},{key:"render",value:function(){var n=this.props;return n.vnode,n.children}}]),t}();function EO(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 ly(e,t){var n,r,o,u;return typeof((o=e.type)==null?void 0:o.originReactComponent)!="function"||EO((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=$({},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=$({},e.ref.i.refs))[i]=s,e.ref.i.refs=l),s}})),n):null}function rd(e,t){return!t||t instanceof Array&&t.length===0||(typeof t=="string"&&(t=[t]),(e=$({},e)).props=$({},e.props),t.forEach(function(n){e.props[n]=""})),e}var BO=["style","class"];function cy(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=ly(e),l=(s=e.props||{}).style,i=s.class,s=$($({},$t(s,BO)),{},{style:ws(l),className:Array.from(new Set(Es(i))).join(" ")},t?{ref:t}:{}),(l=e.children||s.children)&&((l=-1<["string","number"].indexOf(Ye(l))?[l]:ys(l)).__top__=a),sy(e,rd(re.createElement(e.type,s,o.call(a,l,n,u)),e.scopeId))):n([e],null,r)}function AO(){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 fy(e,t,n){return!((e=e instanceof Array&&e.length===1?e[0]:e)instanceof Array)&&e.key==null&&1<t.length&&((e=$({},e)).key="_key_".concat(n)),e}function dy(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):iy(c)?void(c.children.trim()!==""&&l.push(c.children.trim())):void(c.type&&(rd(m=fy(cy(c,n,i,o,u,s,a.__top__),a,d),c.scopeId),l.push(m)));var p,y,m=c.type.originReactComponent;rd(p=fy(p=(t=t==="all"||t instanceof Array?t:[t])==="all"||-1<t.indexOf(m)?(c.__top__=a.__top__,p=CO(c,"_key_".concat(d),i,u,s),y=ly(c,a),c.children&&(c.children.__top__=a.__top__),sy(c,re.createElement(m,$($($({},AO(p,c,m)),c.__extraData||{}),y?{ref:y}:{})))):iy(c)?c.text:cy(c,n,i,o,u,s),a,d),c.scopeId),l.push(p)}}),l.length===1?l[0]:l):a}}var od=dy({reactComponents:"all",domTags:"all"});function bO(e,t){return yO(e,{combinedOption:$({pureTransformer:!0,defaultSlotsFormatter:od,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 od(i.vueFunction.apply(this,l),r,o)},Object.defineProperty(u[a],"length",{get:function(){return i.vueFunction.length}})):i.vueSlot&&(u[a]=od(i.vueSlot,r,o)))}),Object.assign(n,u)}},t)})}dy({reactComponents:"all",domTags:"all"});var xO=["ref","children","v-slots"];function FO(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,xO),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=ws(a.style),c=Array.from(new Set(Es(a.className))).join(" ");return 0<Object.keys(l).length&&(s.style=l),c!==""&&(s.class=c),Object.assign(a,$({},s)),delete a.className,{props:a=ed(a),slots:i}}function py(e){var t=e.ref;if(t)return Ye(t)==="object"?function(n){e.ref.current=n}:typeof t=="function"?t:void 0}var SO=["style","class","children"];function vy(e,t,n,r,o,u){var a,i,s,l;return t==="all"||t instanceof Array||(t=t?[t]:[]),e.type===M.Fragment?o((a=e.props)==null?void 0:a.children,n):typeof e.type=="string"&&(t==="all"||-1<t.indexOf(e.type))?(a=py(e),l=(t=e.props||{}).style,s=t.class,i=t.children,t=$t(t,SO),s=Array.from(new Set(Es(s))).join(" "),l=ws(l),t=$($($($({},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?ys(l):$({},l)).__top__=u),v.h(e.type,t,o(l,n))):n([e],null,r)}function hy(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!==nd)return l.__v_isVNode||typeof l=="string"||typeof l=="number"?void s.push(l):void(l.type&&(d=vy(l,n,i,o,u,a.__top__),s.push(d)));var d=l.type.originVueComponent;if(l.type===nd){if(!l.props.component)return void s.push(l.props.node);d=l.props.component,l=$({},l);var p=$({},l.props);delete p.component,l.props=p}d=(t=t==="all"||t instanceof Array?t:[t])==="all"||-1<t.indexOf(d)?((l=$({},l)).__top__=a.__top__,c=(p=FO(l,"_key_".concat(c),i,u)).props,p=p.slots,py(l),l.children&&(l.children.__top__=a.__top__),v.h(d,$({},c),p)):vy(l,n,i,o,u),s.push(d)}),(s=s.flat(1/0)).length===1?s[0]:s}}hy({vueComponents:"all",domTags:"all"}),hy({reactComponents:"all",domTags:"all"}),new Ds;var my={exports:{}},Bs={};/**
|
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 BO=L,bO=Symbol.for("react.element"),AO=Symbol.for("react.fragment"),xO=Object.prototype.hasOwnProperty,FO=BO.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,SO={key:!0,ref:!0,__self:!0,__source:!0};function dy(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)xO.call(t,r)&&!SO.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:bO,type:e,key:u,ref:a,props:o,_owner:FO.current}}ws.Fragment=AO,ws.jsx=dy,ws.jsxs=dy,fy.exports=ws;var Te=fy.exports,OO=kO,py="֑-߿יִ-﷽ﹰ-ﻼ",vy="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",_O=new RegExp("^[^"+vy+"]*["+py+"]"),PO=new RegExp("^[^"+py+"]*["+vy+"]");function kO(e){return e=String(e||""),_O.test(e)?"rtl":PO.test(e)?"ltr":"neutral"}const hy=eu(OO);function TO(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var rd=TO,RO=typeof Na=="object"&&Na&&Na.Object===Object&&Na,NO=RO,jO=NO,IO=typeof self=="object"&&self&&self.Object===Object&&self,MO=jO||IO||Function("return this")(),my=MO,$O=my,LO=function(){return $O.Date.now()},zO=LO,VO=/\s/;function WO(e){for(var t=e.length;t--&&VO.test(e.charAt(t)););return t}var UO=WO,HO=UO,KO=/^\s+/;function qO(e){return e&&e.slice(0,HO(e)+1).replace(KO,"")}var YO=qO,QO=my,GO=QO.Symbol,gy=GO,yy=gy,Dy=Object.prototype,XO=Dy.hasOwnProperty,ZO=Dy.toString,na=yy?yy.toStringTag:void 0;function JO(e){var t=XO.call(e,na),n=e[na];try{e[na]=void 0;var r=!0}catch{}var o=ZO.call(e);return r&&(t?e[na]=n:delete e[na]),o}var e_=JO,t_=Object.prototype,n_=t_.toString;function r_(e){return n_.call(e)}var o_=r_,Cy=gy,u_=e_,a_=o_,i_="[object Null]",s_="[object Undefined]",wy=Cy?Cy.toStringTag:void 0;function l_(e){return e==null?e===void 0?s_:i_:wy&&wy in Object(e)?u_(e):a_(e)}var c_=l_;function f_(e){return e!=null&&typeof e=="object"}var d_=f_,p_=c_,v_=d_,h_="[object Symbol]";function m_(e){return typeof e=="symbol"||v_(e)&&p_(e)==h_}var g_=m_,y_=YO,Ey=rd,D_=g_,By=NaN,C_=/^[-+]0x[0-9a-f]+$/i,w_=/^0b[01]+$/i,E_=/^0o[0-7]+$/i,B_=parseInt;function b_(e){if(typeof e=="number")return e;if(D_(e))return By;if(Ey(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ey(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=y_(e);var n=w_.test(e);return n||E_.test(e)?B_(e.slice(2),n?2:8):C_.test(e)?By:+e}var A_=b_,x_=rd,od=zO,by=A_,F_="Expected a function",S_=Math.max,O_=Math.min;function __(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(F_);t=by(t)||0,x_(n)&&(c=!!n.leading,d="maxWait"in n,u=d?S_(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,k=t-b;return d?O_(k,u-S):k}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=od();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(od())}function B(){var x=od(),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 Ay=__;const P_=eu(Ay);var k_=Ay,T_=rd,R_="Expected a function";function N_(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(R_);return T_(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),k_(e,t,{leading:r,maxWait:t,trailing:o})}var j_=N_;const I_=eu(j_),xy=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Fy=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",ud=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Fy(n.overflowY,t)||Fy(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,M_=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Sy=(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(!xy(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,y=[];let m=e;for(;xy(m)&&d(m);){if(m=M_(m),m===p){y.push(m);break}m!=null&&m===document.body&&ud(m)&&!ud(document.documentElement)||m!=null&&ud(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:k,right:O,bottom:H,left:P}=(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-k:i==="end"?b+H:B+C/2-k+H,$=s==="center"?S+E/2-P+O:s==="end"?x+O:S-P;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},$_=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function L_(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(Sy(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:u,left:a}of Sy(e,$_(t))){const i=u-n.top+n.bottom,s=a-n.left+n.right;o.scroll({top:i,left:s,behavior:r})}}var Nr=[],z_=function(){return Nr.some(function(e){return e.activeTargets.length>0})},V_=function(){return Nr.some(function(e){return e.skippedTargets.length>0})},Oy="ResizeObserver loop completed with undelivered notifications.",W_=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Oy}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Oy),window.dispatchEvent(e)},ra;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(ra||(ra={}));var jr=function(e){return Object.freeze(e)},U_=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,jr(this)}return e}(),_y=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,jr(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}(),ad=function(e){return e instanceof SVGElement&&"getBBox"in e},Py=function(e){if(ad(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)},H_=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},oa=typeof window<"u"?window:{},Bs=new WeakMap,Ty=/auto|scroll/,K_=/^tb|vertical/,q_=/msie|trident/i.test(oa.navigator&&oa.navigator.userAgent),cn=function(e){return parseFloat(e||"0")},Ro=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new U_((n?t:e)||0,(n?e:t)||0)},Ry=jr({devicePixelContentBoxSize:Ro(),borderBoxSize:Ro(),contentBoxSize:Ro(),contentRect:new _y(0,0,0,0)}),Ny=function(e,t){if(t===void 0&&(t=!1),Bs.has(e)&&!t)return Bs.get(e);if(Py(e))return Bs.set(e,Ry),Ry;var n=getComputedStyle(e),r=ad(e)&&e.ownerSVGElement&&e.getBBox(),o=!q_&&n.boxSizing==="border-box",u=K_.test(n.writingMode||""),a=!r&&Ty.test(n.overflowY||""),i=!r&&Ty.test(n.overflowX||""),s=r?0:cn(n.paddingTop),l=r?0:cn(n.paddingRight),c=r?0:cn(n.paddingBottom),d=r?0:cn(n.paddingLeft),p=r?0:cn(n.borderTopWidth),y=r?0:cn(n.borderRightWidth),m=r?0:cn(n.borderBottomWidth),f=r?0:cn(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:cn(n.width)-x-B,k=r?r.height:cn(n.height)-b-E,O=S+w+B+g,H=k+h+E+C,P=jr({devicePixelContentBoxSize:Ro(Math.round(S*devicePixelRatio),Math.round(k*devicePixelRatio),u),borderBoxSize:Ro(O,H,u),contentBoxSize:Ro(S,k,u),contentRect:new _y(d,s,S,k)});return Bs.set(e,P),P},jy=function(e,t,n){var r=Ny(e,n),o=r.borderBoxSize,u=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case ra.DEVICE_PIXEL_CONTENT_BOX:return a;case ra.BORDER_BOX:return o;default:return u}},Y_=function(){function e(t){var n=Ny(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=jr([n.borderBoxSize]),this.contentBoxSize=jr([n.contentBoxSize]),this.devicePixelContentBoxSize=jr([n.devicePixelContentBoxSize])}return e}(),Iy=function(e){if(Py(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=[];Nr.forEach(function(a){if(a.activeTargets.length!==0){var i=[];a.activeTargets.forEach(function(l){var c=new Y_(l.target),d=Iy(l.target);i.push(c),l.lastReportedSize=jy(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},My=function(e){Nr.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(Iy(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},G_=function(){var e=0;for(My(e);z_();)e=Q_(),My(e);return V_()&&W_(),e>0},id,$y=[],X_=function(){return $y.splice(0).forEach(function(e){return e()})},Z_=function(e){if(!id){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return X_()}).observe(n,r),id=function(){n.textContent="".concat(t?t--:t++)}}$y.push(e),id()},J_=function(e){Z_(function(){requestAnimationFrame(e)})},bs=0,e3=function(){return!!bs},t3=250,n3={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ly=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],zy=function(e){return e===void 0&&(e=0),Date.now()+e},sd=!1,r3=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=t3),!sd){sd=!0;var r=zy(t);J_(function(){var o=!1;try{o=G_()}finally{if(sd=!1,t=r-zy(),!e3())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,n3)};document.body?n():oa.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ly.forEach(function(n){return oa.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Ly.forEach(function(n){return oa.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),ld=new r3,Vy=function(e){!bs&&e>0&&ld.start(),bs+=e,!bs&&ld.stop()},o3=function(e){return!ad(e)&&!H_(e)&&getComputedStyle(e).display==="inline"},u3=function(){function e(t,n){this.target=t,this.observedBox=n||ra.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=jy(this.target,this.observedBox,!0);return o3(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),a3=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),As=new WeakMap,Wy=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 a3(t,n);As.set(t,r)},e.observe=function(t,n,r){var o=As.get(t),u=o.observationTargets.length===0;Wy(o.observationTargets,n)<0&&(u&&Nr.push(o),o.observationTargets.push(new u3(n,r&&r.box)),Vy(1),ld.schedule())},e.unobserve=function(t,n){var r=As.get(t),o=Wy(r.observationTargets,n),u=r.observationTargets.length===1;o>=0&&(u&&Nr.splice(Nr.indexOf(r),1),r.observationTargets.splice(o,1),Vy(-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}(),i3=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}(),xn={};Object.defineProperty(xn,"__esModule",{value:!0});for(var s3=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),cd={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Uy={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:s3?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},fd={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++)fd["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 Hy(a,t)}),o=function(i){return r.some(function(s){return Ky(s,i)})},u=n==null?o:o(n);return u}function l3(e,t){return Ss(e,t)}function c3(e,t){return Ss(e,{byKey:!0},t)}function Hy(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var o=e.split("+"),u=o.length;for(var a in cd)r[cd[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=dd(p),f=cd[m];if(p.length>1&&!f&&!Uy[p]&&!fd[m])throw new TypeError('Unknown modifier: "'+p+'"');(u===1||!f)&&(n?r.key=m:r.which=qy(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 Ky(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 qy(e){e=dd(e);var t=fd[e]||e.toUpperCase().charCodeAt(0);return t}function dd(e){return e=e.toLowerCase(),e=Uy[e]||e,e}xn.default=Ss;var pd=xn.isHotkey=Ss;xn.isCodeHotkey=l3,xn.isKeyHotkey=c3,xn.parseHotkey=Hy,xn.compareHotkey=Ky,xn.toKeyCode=qy,xn.toKeyName=dd;function f3(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 No(e,t){if(e==null)return{};var n=f3(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 ua(e){"@babel/helpers - typeof";return ua=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},ua(e)}function d3(e,t){if(ua(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ua(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function p3(e){var t=d3(e,"string");return ua(t)==="symbol"?t:String(t)}function $t(e,t,n){return t=p3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vd=L.createContext(null),rr=()=>{var e=L.useContext(vd);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},Yy=parseInt(re.version.split(".")[0],10),v3=typeof navigator<"u"&&typeof window<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Qy=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),at=typeof navigator<"u"&&/Android/.test(navigator.userAgent),jo=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),aa=typeof navigator<"u"&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),h3=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Gy=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),m3=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),g3=at&&typeof navigator<"u"&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),y3=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),D3=typeof navigator<"u"&&/.*UCBrowser/.test(navigator.userAgent),C3=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=(!m3||!g3)&&!h3&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",hd=new WeakMap,md=new WeakMap,Xy=new WeakMap,_s=new WeakMap,gd=new WeakMap,ia=new WeakMap,Ir=new WeakMap,Ps=new WeakMap,ks=new WeakMap,yd=new WeakMap,ur=new WeakMap,Mr=new WeakMap,sa=new WeakMap,Dd=new WeakMap,Cd=new WeakMap,Zt=new WeakMap,Fn=new WeakMap,ht=new WeakMap,ar=new WeakMap,ir=new WeakMap,Zy=new WeakMap,Io=Symbol("placeholder"),Jy=Symbol("mark-placeholder"),w3=globalThis.Text,wd=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,E3=e=>sr(e)&&e.nodeType===8,Lt=e=>sr(e)&&e.nodeType===1,sr=e=>{var t=wd(e);return!!t&&e instanceof t.Node},Ed=e=>{var t=e&&e.anchorNode&&wd(e.anchorNode);return!!t&&e instanceof t.Selection},e1=e=>sr(e)&&e.nodeType===3,B3=e=>e.clipboardData&&e.clipboardData.getData("text/plain")!==""&&e.clipboardData.types.length===1,b3=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]=t1(t,o,r?"backward":"forward"),r=o<n;Lt(t)&&t.childNodes.length;){var u=r?t.childNodes.length-1:0;t=x3(t,u,r?"backward":"forward")}n=r&&t.textContent!=null?t.textContent.length:0}return[t,n]},A3=e=>{for(var t=e&&e.parentNode;t;){if(t.toString()==="[object ShadowRoot]")return!0;t=t.parentNode}return!1},t1=(e,t,n)=>{for(var{childNodes:r}=e,o=r[t],u=t,a=!1,i=!1;(E3(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]},x3=(e,t,n)=>{var[r]=t1(e,t,n);return r},n1=e=>{var t="";if(e1(e)&&e.nodeValue)return e.nodeValue;if(Lt(e)){for(var n of Array.from(e.childNodes))t+=n1(n);var r=getComputedStyle(e).getPropertyValue("display");(r==="block"||r==="list"||e.tagName==="BR")&&(t+=`
|
52
|
-
`)}return t},
|
51
|
+
*/var OO=M,_O=Symbol.for("react.element"),PO=Symbol.for("react.fragment"),kO=Object.prototype.hasOwnProperty,TO=OO.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,RO={key:!0,ref:!0,__self:!0,__source:!0};function gy(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)kO.call(t,r)&&!RO.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:_O,type:e,key:u,ref:a,props:o,_owner:TO.current}}Bs.Fragment=PO,Bs.jsx=gy,Bs.jsxs=gy,my.exports=Bs;var Ne=my.exports,NO=MO,yy="֑-߿יִ-﷽ﹰ-ﻼ",Dy="A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--",jO=new RegExp("^[^"+Dy+"]*["+yy+"]"),IO=new RegExp("^[^"+yy+"]*["+Dy+"]");function MO(e){return e=String(e||""),jO.test(e)?"rtl":IO.test(e)?"ltr":"neutral"}const Cy=nu(NO);function $O(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ud=$O,LO=typeof Ia=="object"&&Ia&&Ia.Object===Object&&Ia,zO=LO,VO=zO,WO=typeof self=="object"&&self&&self.Object===Object&&self,UO=VO||WO||Function("return this")(),wy=UO,HO=wy,KO=function(){return HO.Date.now()},qO=KO,YO=/\s/;function QO(e){for(var t=e.length;t--&&YO.test(e.charAt(t)););return t}var GO=QO,XO=GO,ZO=/^\s+/;function JO(e){return e&&e.slice(0,XO(e)+1).replace(ZO,"")}var e_=JO,t_=wy,n_=t_.Symbol,Ey=n_,By=Ey,Ay=Object.prototype,r_=Ay.hasOwnProperty,o_=Ay.toString,oa=By?By.toStringTag:void 0;function u_(e){var t=r_.call(e,oa),n=e[oa];try{e[oa]=void 0;var r=!0}catch{}var o=o_.call(e);return r&&(t?e[oa]=n:delete e[oa]),o}var a_=u_,i_=Object.prototype,s_=i_.toString;function l_(e){return s_.call(e)}var c_=l_,by=Ey,f_=a_,d_=c_,p_="[object Null]",v_="[object Undefined]",xy=by?by.toStringTag:void 0;function h_(e){return e==null?e===void 0?v_:p_:xy&&xy in Object(e)?f_(e):d_(e)}var m_=h_;function g_(e){return e!=null&&typeof e=="object"}var y_=g_,D_=m_,C_=y_,w_="[object Symbol]";function E_(e){return typeof e=="symbol"||C_(e)&&D_(e)==w_}var B_=E_,A_=e_,Fy=ud,b_=B_,Sy=NaN,x_=/^[-+]0x[0-9a-f]+$/i,F_=/^0b[01]+$/i,S_=/^0o[0-7]+$/i,O_=parseInt;function __(e){if(typeof e=="number")return e;if(b_(e))return Sy;if(Fy(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Fy(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=A_(e);var n=F_.test(e);return n||S_.test(e)?O_(e.slice(2),n?2:8):x_.test(e)?Sy:+e}var P_=__,k_=ud,ad=qO,Oy=P_,T_="Expected a function",R_=Math.max,N_=Math.min;function j_(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(T_);t=Oy(t)||0,k_(n)&&(c=!!n.leading,d="maxWait"in n,u=d?R_(Oy(n.maxWait)||0,t):u,p="trailing"in n?!!n.trailing:p);function y(x){var A=r,S=o;return r=o=void 0,l=x,a=e.apply(S,A),a}function m(x){return l=x,i=setTimeout(h,t),c?y(x):a}function f(x){var A=x-s,S=x-l,N=t-A;return d?N_(N,u-S):N}function w(x){var A=x-s,S=x-l;return s===void 0||A>=t||A<0||d&&S>=u}function h(){var x=ad();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(ad())}function B(){var x=ad(),A=w(x);if(r=arguments,o=this,s=x,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 _y=j_;const I_=nu(_y);var M_=_y,$_=ud,L_="Expected a function";function z_(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(L_);return $_(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),M_(e,t,{leading:r,maxWait:t,trailing:o})}var V_=z_;const W_=nu(V_),Py=e=>typeof e=="object"&&e!=null&&e.nodeType===1,ky=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",id=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return ky(n.overflowY,t)||ky(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},As=(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,U_=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Ty=(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(!Py(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,y=[];let m=e;for(;Py(m)&&d(m);){if(m=U_(m),m===p){y.push(m);break}m!=null&&m===document.body&&id(m)&&!id(document.documentElement)||m!=null&&id(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:A,left:S}=e.getBoundingClientRect(),{top:N,right:O,bottom:V,left:P}=(G=>{const T=window.getComputedStyle(G);return{top:parseFloat(T.scrollMarginTop)||0,right:parseFloat(T.scrollMarginRight)||0,bottom:parseFloat(T.scrollMarginBottom)||0,left:parseFloat(T.scrollMarginLeft)||0}})(e);let L=i==="start"||i==="nearest"?B-N:i==="end"?A+V:B+C/2-N+V,j=s==="center"?S+E/2-P+O:s==="end"?x+O:S-P;const z=[];for(let G=0;G<y.length;G++){const T=y[G],{height:I,width:K,top:Q,right:ne,bottom:te,left:ye}=T.getBoundingClientRect();if(a==="if-needed"&&B>=0&&S>=0&&A<=w&&x<=f&&B>=Q&&A<=te&&S>=ye&&x<=ne)return z;const fe=getComputedStyle(T),F=parseInt(fe.borderLeftWidth,10),W=parseInt(fe.borderTopWidth,10),U=parseInt(fe.borderRightWidth,10),Y=parseInt(fe.borderBottomWidth,10);let ie=0,ee=0;const he="offsetWidth"in T?T.offsetWidth-T.clientWidth-F-U:0,pe="offsetHeight"in T?T.offsetHeight-T.clientHeight-W-Y:0,se="offsetWidth"in T?T.offsetWidth===0?0:K/T.offsetWidth:0,ae="offsetHeight"in T?T.offsetHeight===0?0:I/T.offsetHeight:0;if(p===T)ie=i==="start"?L:i==="end"?L-w:i==="nearest"?As(g,g+w,w,W,Y,g+L,g+L+C,C):L-w/2,ee=s==="start"?j:s==="center"?j-f/2:s==="end"?j-f:As(h,h+f,f,F,U,h+j,h+j+E,E),ie=Math.max(0,ie+g),ee=Math.max(0,ee+h);else{ie=i==="start"?L-Q-W:i==="end"?L-te+Y+pe:i==="nearest"?As(Q,te,I,W,Y+pe,L,L+C,C):L-(Q+I/2)+pe/2,ee=s==="start"?j-ye-F:s==="center"?j-(ye+K/2)+he/2:s==="end"?j-ne+U+he:As(ye,ne,K,F,U+he,j,j+E,E);const{scrollLeft:me,scrollTop:Pe}=T;ie=ae===0?0:Math.max(0,Math.min(Pe+ie/ae,T.scrollHeight-I/ae+pe)),ee=se===0?0:Math.max(0,Math.min(me+ee/se,T.scrollWidth-K/se+he)),L+=Pe-ie,j+=me-ee}z.push({el:T,top:ie,left:ee})}return z},H_=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function K_(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(Ty(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:u,left:a}of Ty(e,H_(t))){const i=u-n.top+n.bottom,s=a-n.left+n.right;o.scroll({top:i,left:s,behavior:r})}}var Mr=[],q_=function(){return Mr.some(function(e){return e.activeTargets.length>0})},Y_=function(){return Mr.some(function(e){return e.skippedTargets.length>0})},Ry="ResizeObserver loop completed with undelivered notifications.",Q_=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Ry}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Ry),window.dispatchEvent(e)},ua;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(ua||(ua={}));var $r=function(e){return Object.freeze(e)},G_=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,$r(this)}return e}(),Ny=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,$r(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}(),sd=function(e){return e instanceof SVGElement&&"getBBox"in e},jy=function(e){if(sd(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)},Iy=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)},X_=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},aa=typeof window<"u"?window:{},bs=new WeakMap,My=/auto|scroll/,Z_=/^tb|vertical/,J_=/msie|trident/i.test(aa.navigator&&aa.navigator.userAgent),cn=function(e){return parseFloat(e||"0")},jo=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new G_((n?t:e)||0,(n?e:t)||0)},$y=$r({devicePixelContentBoxSize:jo(),borderBoxSize:jo(),contentBoxSize:jo(),contentRect:new Ny(0,0,0,0)}),Ly=function(e,t){if(t===void 0&&(t=!1),bs.has(e)&&!t)return bs.get(e);if(jy(e))return bs.set(e,$y),$y;var n=getComputedStyle(e),r=sd(e)&&e.ownerSVGElement&&e.getBBox(),o=!J_&&n.boxSizing==="border-box",u=Z_.test(n.writingMode||""),a=!r&&My.test(n.overflowY||""),i=!r&&My.test(n.overflowX||""),s=r?0:cn(n.paddingTop),l=r?0:cn(n.paddingRight),c=r?0:cn(n.paddingBottom),d=r?0:cn(n.paddingLeft),p=r?0:cn(n.borderTopWidth),y=r?0:cn(n.borderRightWidth),m=r?0:cn(n.borderBottomWidth),f=r?0:cn(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,A=o?h+C:0,S=r?r.width:cn(n.width)-x-B,N=r?r.height:cn(n.height)-A-E,O=S+w+B+g,V=N+h+E+C,P=$r({devicePixelContentBoxSize:jo(Math.round(S*devicePixelRatio),Math.round(N*devicePixelRatio),u),borderBoxSize:jo(O,V,u),contentBoxSize:jo(S,N,u),contentRect:new Ny(d,s,S,N)});return bs.set(e,P),P},zy=function(e,t,n){var r=Ly(e,n),o=r.borderBoxSize,u=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case ua.DEVICE_PIXEL_CONTENT_BOX:return a;case ua.BORDER_BOX:return o;default:return u}},e3=function(){function e(t){var n=Ly(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=$r([n.borderBoxSize]),this.contentBoxSize=$r([n.contentBoxSize]),this.devicePixelContentBoxSize=$r([n.devicePixelContentBoxSize])}return e}(),Vy=function(e){if(jy(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},t3=function(){var e=1/0,t=[];Mr.forEach(function(a){if(a.activeTargets.length!==0){var i=[];a.activeTargets.forEach(function(l){var c=new e3(l.target),d=Vy(l.target);i.push(c),l.lastReportedSize=zy(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},Wy=function(e){Mr.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(Vy(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},n3=function(){var e=0;for(Wy(e);q_();)e=t3(),Wy(e);return Y_()&&Q_(),e>0},ld,Uy=[],r3=function(){return Uy.splice(0).forEach(function(e){return e()})},o3=function(e){if(!ld){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return r3()}).observe(n,r),ld=function(){n.textContent="".concat(t?t--:t++)}}Uy.push(e),ld()},u3=function(e){o3(function(){requestAnimationFrame(e)})},xs=0,a3=function(){return!!xs},i3=250,s3={attributes:!0,characterData:!0,childList:!0,subtree:!0},Hy=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ky=function(e){return e===void 0&&(e=0),Date.now()+e},cd=!1,l3=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=i3),!cd){cd=!0;var r=Ky(t);u3(function(){var o=!1;try{o=n3()}finally{if(cd=!1,t=r-Ky(),!a3())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,s3)};document.body?n():aa.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Hy.forEach(function(n){return aa.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Hy.forEach(function(n){return aa.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),fd=new l3,qy=function(e){!xs&&e>0&&fd.start(),xs+=e,!xs&&fd.stop()},c3=function(e){return!sd(e)&&!X_(e)&&getComputedStyle(e).display==="inline"},f3=function(){function e(t,n){this.target=t,this.observedBox=n||ua.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=zy(this.target,this.observedBox,!0);return c3(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),d3=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Fs=new WeakMap,Yy=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},Ss=function(){function e(){}return e.connect=function(t,n){var r=new d3(t,n);Fs.set(t,r)},e.observe=function(t,n,r){var o=Fs.get(t),u=o.observationTargets.length===0;Yy(o.observationTargets,n)<0&&(u&&Mr.push(o),o.observationTargets.push(new f3(n,r&&r.box)),qy(1),fd.schedule())},e.unobserve=function(t,n){var r=Fs.get(t),o=Yy(r.observationTargets,n),u=r.observationTargets.length===1;o>=0&&(u&&Mr.splice(Mr.indexOf(r),1),r.observationTargets.splice(o,1),qy(-1))},e.disconnect=function(t){var n=this,r=Fs.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),p3=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.");Ss.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(!Iy(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ss.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(!Iy(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ss.unobserve(this,t)},e.prototype.disconnect=function(){Ss.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),Sn={};Object.defineProperty(Sn,"__esModule",{value:!0});for(var v3=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),dd={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Qy={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:v3?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},pd={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},Os=1;Os<20;Os++)pd["f"+Os]=111+Os;function _s(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map(function(a){return Gy(a,t)}),o=function(i){return r.some(function(s){return Xy(s,i)})},u=n==null?o:o(n);return u}function h3(e,t){return _s(e,t)}function m3(e,t){return _s(e,{byKey:!0},t)}function Gy(e,t){var n=t&&t.byKey,r={};e=e.replace("++","+add");var o=e.split("+"),u=o.length;for(var a in dd)r[dd[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=vd(p),f=dd[m];if(p.length>1&&!f&&!Qy[p]&&!pd[m])throw new TypeError('Unknown modifier: "'+p+'"');(u===1||!f)&&(n?r.key=m:r.which=Zy(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 Xy(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 Zy(e){e=vd(e);var t=pd[e]||e.toUpperCase().charCodeAt(0);return t}function vd(e){return e=e.toLowerCase(),e=Qy[e]||e,e}Sn.default=_s;var hd=Sn.isHotkey=_s;Sn.isCodeHotkey=h3,Sn.isKeyHotkey=m3,Sn.parseHotkey=Gy,Sn.compareHotkey=Xy,Sn.toKeyCode=Zy,Sn.toKeyName=vd;function g3(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 Io(e,t){if(e==null)return{};var n=g3(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 ia(e){"@babel/helpers - typeof";return ia=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},ia(e)}function y3(e,t){if(ia(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ia(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function D3(e){var t=y3(e,"string");return ia(t)==="symbol"?t:String(t)}function Lt(e,t,n){return t=D3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var md=M.createContext(null),ar=()=>{var e=M.useContext(md);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},gd,yd,Jy=parseInt(re.version.split(".")[0],10),e1=typeof navigator<"u"&&typeof window<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,t1=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),st=typeof navigator<"u"&&/Android/.test(navigator.userAgent),Mo=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Lr=typeof navigator<"u"&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),C3=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),n1=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),w3=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),E3=st&&typeof navigator<"u"&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),B3=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),A3=typeof navigator<"u"&&/.*UCBrowser/.test(navigator.userAgent),b3=typeof navigator<"u"&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent),Ps=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",r1=typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&/Version\/(\d+)/.test(navigator.userAgent)&&((gd=navigator.userAgent.match(/Version\/(\d+)/))!==null&&gd!==void 0&&gd[1]?parseInt((yd=navigator.userAgent.match(/Version\/(\d+)/))===null||yd===void 0?void 0:yd[1],10)<17:!1),ir=(!w3||!E3)&&!C3&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",Dd=new WeakMap,Cd=new WeakMap,o1=new WeakMap,ks=new WeakMap,wd=new WeakMap,sa=new WeakMap,zr=new WeakMap,Ts=new WeakMap,Rs=new WeakMap,Ed=new WeakMap,sr=new WeakMap,Vr=new WeakMap,la=new WeakMap,Bd=new WeakMap,Ad=new WeakMap,Zt=new WeakMap,On=new WeakMap,gt=new WeakMap,lr=new WeakMap,cr=new WeakMap,u1=new WeakMap,$o=Symbol("placeholder"),a1=Symbol("mark-placeholder"),x3=globalThis.Text,bd=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,F3=e=>fr(e)&&e.nodeType===8,zt=e=>fr(e)&&e.nodeType===1,fr=e=>{var t=bd(e);return!!t&&e instanceof t.Node},xd=e=>{var t=e&&e.anchorNode&&bd(e.anchorNode);return!!t&&e instanceof t.Selection},i1=e=>fr(e)&&e.nodeType===3,S3=e=>e.clipboardData&&e.clipboardData.getData("text/plain")!==""&&e.clipboardData.types.length===1,O3=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]=s1(t,o,r?"backward":"forward"),r=o<n;zt(t)&&t.childNodes.length;){var u=r?t.childNodes.length-1:0;t=P3(t,u,r?"backward":"forward")}n=r&&t.textContent!=null?t.textContent.length:0}return[t,n]},_3=e=>{for(var t=e&&e.parentNode;t;){if(t.toString()==="[object ShadowRoot]")return!0;t=t.parentNode}return!1},s1=(e,t,n)=>{for(var{childNodes:r}=e,o=r[t],u=t,a=!1,i=!1;(F3(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]},P3=(e,t,n)=>{var[r]=s1(e,t,n);return r},l1=e=>{var t="";if(i1(e)&&e.nodeValue)return e.nodeValue;if(zt(e)){for(var n of Array.from(e.childNodes))t+=l1(n);var r=getComputedStyle(e).getPropertyValue("display");(r==="block"||r==="list"||e.tagName==="BR")&&(t+=`
|
52
|
+
`)}return t},k3=/data-slate-fragment="(.+?)"/m,T3=e=>{var t=e.getData("text/html"),[,n]=t.match(k3)||[];return n},Fd=(e,t,n)=>{var{target:r}=t;if(zt(r)&&r.matches('[contentEditable="false"]'))return!1;var{document:o}=k.getWindow(e);if(o.contains(r))return k.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:Fd(e,u,n)},R3=()=>{for(var e=document.activeElement;(t=e)!==null&&t!==void 0&&t.shadowRoot&&(n=e.shadowRoot)!==null&&n!==void 0&&n.activeElement;){var t,n,r;e=(r=e)===null||r===void 0||(r=r.shadowRoot)===null||r===void 0?void 0:r.activeElement}return e},N3=0;class j3{constructor(){Lt(this,"id",void 0),this.id="".concat(N3++)}}var k={androidPendingDiffs:e=>gt.get(e),androidScheduleFlush:e=>{var t;(t=Ad.get(e))===null||t===void 0||t()},blur:e=>{var t=k.toDOMNode(e,e),n=k.findDocumentOrShadowRoot(e);sr.set(e,!1),n.activeElement===t&&t.blur()},deselect:e=>{var{selection:t}=e,n=k.findDocumentOrShadowRoot(e),r=n.getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),t&&R.deselect(e)},findDocumentOrShadowRoot:e=>{var t=k.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=k.toSlateNode(e,t.target),a=k.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}=k.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=k.toSlateRange(e,p,{exactMatch:!1,suppressThrow:!1});return f},findKey:(e,t)=>{var n=Ts.get(t);return n||(n=new j3,Ts.set(t,n)),n},findPath:(e,t)=>{for(var n=[],r=t;;){var o=Cd.get(r);if(o==null){if(D.isEditor(r))return n;break}var u=Dd.get(r);if(u==null)break;n.unshift(u),r=o}throw new Error("Unable to find the path for Slate node: ".concat(Le.stringify(t)))},focus:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{retries:5};if(!sr.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(()=>{k.focus(t,{retries:n.retries-1})},10);return}var r=k.toDOMNode(t,t),o=k.findDocumentOrShadowRoot(t);if(o.activeElement!==r){if(t.selection&&o instanceof Document){var u=o.getSelection(),a=k.toDOMRange(t,t.selection);u==null||u.removeAllRanges(),u==null||u.addRange(a)}t.selection||(R.select(t,D.start(t,[])),t.onChange()),sr.set(t,!0),r.focus({preventScroll:!0})}}},getWindow:e=>{var t=o1.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=k.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)=>fr(t)&&k.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)=>k.hasEditableTarget(e,t)||k.isTargetInsideNonReadonlyVoid(e,t),hasTarget:(e,t)=>fr(t)&&k.hasDOMNode(e,t),insertData:(e,t)=>{e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),isComposing:e=>!!Vr.get(e),isFocused:e=>!!sr.get(e),isReadOnly:e=>!!Ed.get(e),isTargetInsideNonReadonlyVoid:(e,t)=>{if(Ed.get(e))return!1;var n=k.hasTarget(e,t)&&k.toSlateNode(e,t);return X.isElement(n)&&D.isVoid(e,n)},setFragmentData:(e,t,n)=>e.setFragmentData(t,n),toDOMNode:(e,t)=>{var n=Rs.get(e),r=D.isEditor(t)?ks.get(e):n==null?void 0:n.get(k.findKey(e,t));if(!r)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(Le.stringify(t)));return r},toDOMPoint:(e,t)=>{var[n]=D.node(e,t.path),r=k.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 x3?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(Le.stringify(t)));return o},toDOMRange:(e,t)=>{var{anchor:n,focus:r}=t,o=_.isBackward(t),u=k.toDOMPoint(e,n),a=_.isCollapsed(t)?u:k.toDOMPoint(e,r),i=k.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?sa.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:O3(t),i=u.parentNode,s=null,l=0;if(i){var c,d,p=k.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=k.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(j=>{if(st&&!r&&j.hasAttribute("data-slate-zero-width")&&j.textContent.length>0&&j.textContext!=="\uFEFF"){j.textContent.startsWith("\uFEFF")&&(j.textContent=j.textContent.slice(1));return}j.parentNode.removeChild(j)}),l=C.textContent.length,w=s}}else if(m){for(var B=m.querySelectorAll("[data-slate-leaf]"),x=0;x<B.length;x++){var A=B[x];if(k.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(j=>{l-=j.textContent.length})):l=1}w&&l===w.textContent.length&&st&&w.getAttribute("data-slate-zero-width")==="z"&&(c=w.textContent)!==null&&c!==void 0&&c.startsWith("\uFEFF")&&(i.hasAttribute("data-slate-zero-width")||Mo&&(d=w.textContent)!==null&&d!==void 0&&d.endsWith(`
|
53
53
|
|
54
|
-
`))&&l--}if(
|
54
|
+
`))&&l--}if(st&&!s&&!r){var S=i.hasAttribute("data-slate-node")?i:i.closest("[data-slate-node]");if(S&&k.hasDOMNode(e,S,{editable:!0})){var N=k.toSlateNode(e,S),{path:O,offset:V}=D.start(e,k.findPath(e,N));return S.querySelector("[data-slate-leaf]")||(V=a),{path:O,offset:V}}}if(!s){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var P=k.toSlateNode(e,s),L=k.findPath(e,P);return{path:L,offset:l}},toSlateRange:(e,t,n)=>{var r,{exactMatch:o,suppressThrow:u}=n,a=xd(t)?t.anchorNode:t.startContainer,i,s,l,c,d;if(a)if(xd(t)){if(Mo&&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(A){return A.childElementCount>0?x(A.children[0]):A};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;n1&&_3(i)||Mo?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(Mo&&(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=
|
57
|
-
`))return h(()=>{var
|
58
|
-
`);
|
59
|
-
`?re.createElement(
|
60
|
-
`:""),[u]=L.useState(o);return la(()=>{var a=o();r.current&&r.current.textContent!==a&&(r.current.textContent=a)}),re.createElement(tP,{ref:r},u)},tP=L.memo(L.forwardRef((e,t)=>re.createElement("span",{"data-slate-string":!0,ref:t},e.children))),xd=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",J3({},o),!at||!n?"\uFEFF":null,n?re.createElement("br",null):null)};function d1(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 p1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d1(Object(n),!0).forEach(function(r){$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var nP=at?300:0;function rP(e,t){e.current&&(e.current.disconnect(),t&&(e.current=null))}function v1(e){e.current&&(clearTimeout(e.current),e.current=null)}var oP=e=>{var{leaf:t,isLast:n,text:r,parent:o,renderPlaceholder:u,renderLeaf:a=g=>re.createElement(aP,p1({},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(rP(s,g==null),g==null){var C;gd.delete(i),(C=t.onPlaceholderResize)===null||C===void 0||C.call(t,null)}else{if(gd.set(i,g),!s.current){var E=window.ResizeObserver||i3;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(eP,{isLast:n,leaf:t,parent:o,text:r}),f=!!t[Io];if(L.useEffect(()=>(f?p.current||(p.current=setTimeout(()=>{d(!0),p.current=null},nP)):(v1(p),d(!1)),()=>v1(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:aa?"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})},uP=re.memo(oP,(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[Io]===e.leaf[Io]),aP=e=>{var{attributes:t,children:n}=e;return re.createElement("span",p1({},t),n)},iP=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(uP,{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=ks.get(i);f?(w==null||w.set(c,f),Ir.set(a,f),ia.set(f,a)):(w==null||w.delete(c),Ir.delete(a),s.current&&ia.delete(s.current)),s.current=f},[s,i,c,a]);return re.createElement("span",{"data-slate-node":"text",ref:m},d)},h1=re.memo(iP,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&Z3(t.decorations,e.decorations));function m1(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 Fd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m1(Object(n),!0).forEach(function(r){$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var sP=e=>{var{decorations:t,element:n,renderElement:r=g=>re.createElement(cP,Fd({},g)),renderPlaceholder:o,renderLeaf:u,selection:a}=e,i=rr(),s=pP(),l=i.isInline(n),c=T.findKey(i,n),d=L.useCallback(g=>{var C=ks.get(i);g?(C==null||C.set(c,g),Ir.set(n,g),ia.set(g,n)):(C==null||C.delete(c),Ir.delete(n))},[i,c,n]),p=y1({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=hy(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(h1,{renderPlaceholder:o,decorations:[],isLast:!1,parent:n,text:h})),hd.set(h,0),md.set(h,n)}return r({attributes:y,children:p,element:n})},lP=re.memo(sP,(e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&X3(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&_.equals(e.selection,t.selection))),cP=e=>{var{attributes:t,children:n,element:r}=e,o=rr(),u=o.isInline(r)?"span":"div";return re.createElement(u,Fd(Fd({},t),{},{style:{position:"relative"}}),n)},g1=L.createContext(()=>[]),fP=()=>L.useContext(g1),dP=L.createContext(!1),y1=e=>{for(var{decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:u,selection:a}=e,i=fP(),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(dP.Provider,{key:"provider-".concat(f.id),value:!!h},re.createElement(lP,{decorations:g,element:m,key:f.id,renderElement:r,renderPlaceholder:o,renderLeaf:u,selection:h}))):c.push(re.createElement(h1,{decorations:g,key:f.id,isLast:d&&p===n.children.length-1,parent:n,renderPlaceholder:o,renderLeaf:u,text:m})),hd.set(m,p),md.set(m,n)}return c},D1=L.createContext(!1),pP=()=>L.useContext(D1),C1=L.createContext(null),vP=()=>{var e=L.useContext(C1);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t};function hP(){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 mP=3,gP={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"},yP={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"},DP={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},Be=e=>{var t=gP[e],n=yP[e],r=DP[e],o=t&&pd(t),u=n&&pd(n),a=r&&pd(r);return i=>!!(o&&o(i)||Qy&&u&&u(i)||!Qy&&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")},CP=(e,t)=>{var n=[],r=()=>{n=[]},o=a=>{if(t.current){var i=a.filter(s=>Bd(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}},wP={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class w1 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,wP)}componentDidMount(){var{receivedUserInput:t}=this.props,n=this.context;this.manager=CP(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(w1,"contextType",vd);var EP=at?w1:e=>{var{children:t}=e;return re.createElement(re.Fragment,null,t)},BP=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],bP=["text"];function E1(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 fn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?E1(Object(n),!0).forEach(function(r){$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var AP=e=>re.createElement(re.Fragment,null,y1(e)),xP=e=>{var t=L.useCallback(F=>re.createElement(FP,fn({},F)),[]),{autoFocus:n,decorate:r=SP,onDOMBeforeInput:o,placeholder:u,readOnly:a=!1,renderElement:i,renderLeaf:s,renderPlaceholder:l=t,scrollSelectionIntoView:c=OP,style:d={},as:p="div",disableDefaultStyles:y=!1}=e,m=No(e,BP),f=vP(),[w,h]=L.useState(!1),g=L.useRef(null),C=L.useRef([]),[E,B]=L.useState(),{onUserInput:x,receivedUserInput:b}=hP(),[,S]=L.useReducer(F=>F+1,0);Zy.set(f,S),yd.set(f,a);var k=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(()=>I_(()=>{var F=O.current;if((at||!T.isComposing(f))&&(!k.isUpdatingSelection||F!=null&&F.isFlushing())&&!k.isDraggingInternally){var j=T.findDocumentOrShadowRoot(f),{activeElement:N}=j,Y=T.toDOMNode(f,f),oe=j.getSelection();if(N===Y?(k.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,k]),P=L.useMemo(()=>P_(H,0),[H]);O.current=q3({node:g,onDOMSelectionChange:H,scheduleOnDOMSelectionChange:P}),la(()=>{var F,j,N;g.current&&(N=wd(g.current))?(Xy.set(f,N),_s.set(f,g.current),Ir.set(f,g.current),ia.set(g.current,f)):Ir.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(jo&&ee.rangeCount>1){var Ft=ee.getRangeAt(0),zt=ee.getRangeAt(ee.rangeCount-1);Ft.startContainer===Re?be=zt.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(!k.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}k.isUpdatingSelection=!0;var Pe=Y&&T.toDOMRange(f,Y);return Pe?(T.isComposing(f)&&!at?ee.collapseToEnd():_.isBackward(Y)?ee.setBaseAndExtent(Pe.endContainer,Pe.endOffset,Pe.startContainer,Pe.startOffset):ee.setBaseAndExtent(Pe.startContainer,Pe.startOffset,Pe.endContainer,Pe.endOffset),c(f,Pe)):ee.removeAllRanges(),Pe}};ee.rangeCount<=1&&ie();var ce=((j=O.current)===null||j===void 0?void 0:j.isFlushing())==="action";if(!at||!ce){setTimeout(()=>{k.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),k.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(he),de&&clearTimeout(de)}}});var W=L.useCallback(F=>{if(x(),!a&&T.hasEditableTarget(f,F.target)&&!_P(F,o)){var j;if(O.current)return O.current.handleDOMBeforeInput(F);P.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,zt=be==null?void 0:be.document.createTreeWalker(Re,NodeFilter.SHOW_TEXT).lastChild();zt===le&&((Ft=zt.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&&sa.set(f,Le)}}}if(ee)return;if(ie||F.preventDefault(),N&&_.isExpanded(N)&&Y.startsWith("delete")){var Pe=Y.endsWith("Backward")?"backward":"forward";D.deleteFragment(f,{direction:Pe});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),Mr.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=sa.get(f))===null||j===void 0?void 0:j.unref();sa.delete(f),Ne&&(!f.selection||!_.equals(f.selection,Ne))&&I.select(f,Ne)}},[f,H,x,o,a,P]),$=L.useCallback(F=>{F==null?(H.cancel(),P.cancel(),_s.delete(f),Ir.delete(f),g.current&&or&&g.current.removeEventListener("beforeinput",W)):or&&F.addEventListener("beforeinput",W),g.current=F},[H,P,f,W]);la(()=>{var F=T.getWindow(f);return F.document.addEventListener("selectionchange",P),()=>{F.document.removeEventListener("selectionchange",P)}},[P]);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({[Io]:!0,placeholder:u,onPlaceholderResize:R,anchor:M,focus:M})}var{marks:U}=f;if(k.hasMarkPlaceholder=!1,f.selection&&_.isCollapsed(f.selection)&&U){var{anchor:Q}=f.selection,ne=q.leaf(f,Q.path),te=No(ne,bP);if(!Z.equals(ne,U,{loose:!0})){k.hasMarkPlaceholder=!0;var ve=Object.fromEntries(Object.keys(te).map(F=>[F,null]));V.push(fn(fn(fn({[Jy]:!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(D1.Provider,{value:a},re.createElement(g1.Provider,{value:r},re.createElement(EP,{node:g,receivedUserInput:b},re.createElement(p,fn(fn({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:fn(fn({},y?{}:fn({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||k.isUpdatingSelection||!T.hasSelectableTarget(f,F.target)||it(F,m.onBlur))){var j=T.findDocumentOrShadowRoot(f);if(k.latestElement!==j.activeElement){var{relatedTarget:N}=F,Y=T.toDOMNode(f,f);if(N!==Y&&!(Lt(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(aa){var ee=j.getSelection();ee==null||ee.removeAllRanges()}ur.delete(f)}}}},[a,k.isUpdatingSelection,k.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===mP&&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),Mr.set(f,!1)}),(j=O.current)===null||j===void 0||j.handleCompositionEnd(F),it(F,m.onCompositionEnd)||at)return;if(!aa&&!y3&&!v3&&!C3&&!D3&&F.data){var N=Zt.get(f);Zt.delete(f),N!==void 0&&(Fn.set(f,f.marks),f.marks=N),D.insertText(f,F.data);var Y=Fn.get(f);Fn.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),Mr.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)&&!B1(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)&&!B1(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)}k.isDraggingInternally=!0,T.setFragmentData(f,F.dataTransfer,"drag")}},[a,f,m.onDragStart,k]),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),k.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)}k.isDraggingInternally=!1},[a,f,m.onDrop,k]),onDragEnd:L.useCallback(F=>{!a&&k.isDraggingInternally&&m.onDragEnd&&T.hasTarget(f,F.target)&&m.onDragEnd(F),k.isDraggingInternally=!1},[a,k,m,f]),onFocus:L.useCallback(F=>{if(!a&&!k.isUpdatingSelection&&T.hasEditableTarget(f,F.target)&&!it(F,m.onFocus)){var j=T.toDOMNode(f,f),N=T.findDocumentOrShadowRoot(f);if(k.latestElement=N.activeElement,jo&&F.target!==j){j.focus();return}ur.set(f,!0)}},[a,k,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&&(Mr.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=hy(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((Gy||aa)&&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||B3(F.nativeEvent)||aa)&&(F.preventDefault(),T.insertData(f,F.clipboardData))},[a,f,m.onPaste])}),re.createElement(AP,{decorations:V,node:f,renderElement:i,renderPlaceholder:l,renderLeaf:s,selection:f.selection})))))},FP=e=>{var{attributes:t,children:n}=e;return re.createElement("span",fn({},t),n,at&&re.createElement("br",null))},SP=()=>[],OP=(e,t)=>{if(t.getBoundingClientRect&&(!e.selection||e.selection&&_.isCollapsed(e.selection))){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),L_(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},it=(e,t)=>{if(!t)return!1;var n=t(e);return n??(e.isDefaultPrevented()||e.isPropagationStopped())},B1=e=>sr(e.target)&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement),_P=(e,t)=>{if(!t)return!1;var n=t(e);return n??e.defaultPrevented},PP=L.createContext(!1),kP=L.createContext({});function TP(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 RP=["editor","children","onChange","onSelectionChange","onValueChange","initialValue"],NP=e=>{var{editor:t,children:n,onChange:r,onSelectionChange:o,onValueChange:u,initialValue:a}=e,i=No(e,RP),[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}=TP(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(()=>(Dd.set(t,p),()=>{Dd.set(t,()=>{})}),[t,p]);var[y,m]=L.useState(T.isFocused(t));return L.useEffect(()=>{m(T.isFocused(t))},[t]),la(()=>{var f=()=>m(T.isFocused(t));return Yy>=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(kP.Provider,{value:c},re.createElement(C1.Provider,{value:s},re.createElement(vd.Provider,{value:s.editor},re.createElement(PP.Provider,{value:y},n))))},b1=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},A1=(e,t,n)=>{var r=T.toDOMRange(e,t).getBoundingClientRect(),o=T.toDOMRange(e,n).getBoundingClientRect();return b1(r,o)&&b1(o,r)},jP=(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(A1(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;)A1(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 x1(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 F1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x1(Object(n),!0).forEach(function(r){$t(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var IP=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 ks.set(r,new WeakMap),r.addMark=(l,c)=>{var d,p;(d=Cd.get(r))===null||d===void 0||d(),!Zt.get(r)&&(p=ht.get(r))!==null&&p!==void 0&&p.length&&Zt.set(r,null),Fn.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),Fn.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=jP(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($=>j3($,l)).filter(Boolean);ht.set(r,y)}var m=ir.get(r);m&&ir.set(r,a1(r,m,l));var f=ar.get(r);if(f!=null&&f.at){var w=ae.isPoint(f==null?void 0:f.at)?Ad(r,f.at,l):a1(r,f.at,l);ar.set(r,w?F1(F1({},f),{},{at:w}):null)}switch(l.type){case"insert_text":case"remove_text":case"set_node":case"split_node":{c.push(...Mo(r,l.path));break}case"set_selection":{var h;(h=sa.get(r))===null||h===void 0||h.unref(),sa.delete(r);break}case"insert_node":case"remove_node":{c.push(...Mo(r,A.parent(l.path)));break}case"merge_node":{var g=A.previous(l.path);c.push(...Mo(r,g));break}case"move_node":{var C=A.common(A.parent(l.path),A.parent(l.newPath));c.push(...Mo(r,C));var E;A.isBefore(l.path,l.newPath)?(c.push(...Mo(r,A.parent(l.path))),E=l.newPath):(c.push(...Mo(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,k]of c){var[O]=D.node(r,S);Ps.set(O,k)}for(var[H,P]of d)if(H.current){var[W]=D.node(r,H.current);Ps.set(W,P)}},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
|
-
`:""}),e1(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 k=w.ownerDocument.createElement("div");return k.appendChild(w),k.setAttribute("hidden","true"),w.ownerDocument.body.appendChild(k),l.setData("text/html",k.innerHTML),l.setData("text/plain",n1(k)),w.ownerDocument.body.removeChild(k),l}}},r.insertData=l=>{r.insertFragmentData(l)||r.insertTextData(l)},r.insertFragmentData=l=>{var c=l.getData("application/".concat(n))||S3(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=Yy<18?ko.unstable_batchedUpdates:d=>d();c(()=>{var d=Dd.get(r);d&&d(l),u(l)})},r},Mo=(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},MP={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))}},Sd=new WeakMap,Od=new WeakMap,$o={isHistoryEditor(e){return MP.isHistory(e.history)&&D.isEditor(e)},isMerging(e){return Od.get(e)},isSaving(e){return Sd.get(e)},redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=$o.isMerging(e);Od.set(e,!1),t(),Od.set(e,n)},withoutSaving(e,t){var n=$o.isSaving(e);Sd.set(e,!1),t(),Sd.set(e,n)}},$P=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),$o.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];$o.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=$o.isSaving(t),c=$o.isMerging(t);if(l==null&&(l=zP(r)),l){if(c==null&&(i==null?c=!1:o.length!==0?c=!0:c=LP(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},LP=(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)),zP=(e,t)=>e.type!=="set_selection";function VP(e){const n=`docx-h${e.element.level}`;return Te.jsx(n,{...e.attributes,children:e.children})}function WP(e){return Te.jsx("docx-blockquote",{...e.attributes,children:e.children})}const{Provider:UP,Consumer:HP}=L.createContext(!1);function KP(e){const t=e.element,n=`docx-${t.ordered?"o":"u"}l`;return Te.jsx(UP,{value:!!t.ordered,children:Te.jsx(n,{...e.attributes,children:e.children})})}function qP(e){return Te.jsx(HP,{children:t=>Te.jsx("docx-li",{className:t?"ordered":"",children:e.children})})}const YP={"#":"heading","##":"heading","###":"heading","####":"heading","#####":"heading","######":"heading",">":"blockquote","*":"list-item","-":"list-item","+":"list-item"},QP=[[/\*\*(.+?)\*\*$/,"bold"],[/\*(.+?)\*$/,"italic"],[/\~\~(.+?)\~\~$/,"del"],[/\~(.+?)\~$/,"underline"]];function GP(e){return e.element.type==="heading"?Te.jsx(VP,{...e}):e.element.type==="blockquote"?Te.jsx(WP,{...e}):e.element.type==="list"?Te.jsx(KP,{...e}):e.element.type==="list-item"?Te.jsx(qP,{...e}):Te.jsx("p",{...e.attributes,children:e.children})}function XP({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 ZP(e){const{initialValue:t=[{type:"paragraph",children:[{text:""}]}],onBeforeInput:n,withOverride:r=c=>c}=e,o=L.useMemo(()=>r(IP($P(hx()))),[]),u=L.useCallback(c=>Te.jsx(GP,{...c}),[]),a=L.useCallback(c=>Te.jsx(XP,{...c}),[]),i=L.useCallback(n?c=>{queueMicrotask(()=>n(c))}:()=>{},[o]),s=L.useCallback(c=>kb.trigger(c),[o]),l=L.useCallback(c=>Bv.trigger(c),[o]);return $a.value=o,Te.jsx(NP,{editor:o,initialValue:t,onSelectionChange:s,onValueChange:l,children:Te.jsx(xP,{className:"smart-docx-editor",renderElement:u,renderLeaf:a,onDOMBeforeInput:i})})}const JP=lu(v.defineComponent({__name:"Markdown",props:{initialValue:{type:Array}},setup(e){const t=e,n=DO(ZP);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=YP[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 QP){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}=Av();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"]]),ek=lu(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(JP,v.normalizeProps(v.guardReactiveProps(t)),null,16),v.createCommentVNode(" 菜单栏 "),v.createVNode(Cx)],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"]]),tk=lu(v.defineComponent({__name:"index",props:{initialValue:{type:Array}},setup(e){const t=e;return(n,r)=>(v.openBlock(),v.createBlock(ek,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"]]),nk="2.0.9";function rk(e=Nb()){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})}Sb(document.head,r,{childList:!0}),r()}),e}function ok(){const e=Ma();return v.onMounted(()=>{var o;const t=e.value.parentNode,{tailwindResetStyle:n,elementPlusStyle:r}=((o=globalThis.SmartCore)==null?void 0:o[nk])??{};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:rk()}}const uk=lu(v.defineComponent({__name:"App",props:{initialValue:{type:Array}},emits:["change"],setup(e,{emit:t}){const n=t;return ok(),Bv.on(r=>{n("change",r)}),v.onMounted(()=>{La.value=Ma().value.parentNode}),(r,o)=>{const u=HE;return v.openBlock(),v.createBlock(u,{namespace:"smart"},{default:v.withCtx(()=>[v.createVNode(tk,{"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"]]),ak="smart-docx-editor";function ik(e,t){var n;jb&&!customElements.get(e)&&customElements.define(e,(n=t.prototype)!=null&&n.connectedCallback?t:v.defineCustomElement(t))}ik(ak,uk)})((S1=SmartCore["2.0.9"])==null?void 0:S1.Vue);
|
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=k.toSlatePoint(e,[i,s],{exactMatch:o,suppressThrow:u});if(!C)return null;var E=d?C:k.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 I3(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=b.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 c1(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 M3(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 $3(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 f1(e,t){var{start:n,end:r,text:o}=t,u=e.slice(n,r),a=M3(u,o),i=Math.min(u.length-a,o.length-a),s=$3(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 L3(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=c1(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 f1(e,{start:r,end:s,text:i})}function z3(e){var{path:t,diff:n}=e;return{anchor:{path:t,offset:n.start},focus:{path:t,offset:n.end}}}function Sd(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||!b.isDescendant(a[1],u[1]))return null;r-=o.text.length,o=a[0],n=a[1]}return{path:n,offset:r}}function d1(e,t){var n=Sd(e,t.anchor);if(!n)return null;if(_.isCollapsed(t))return{anchor:n,focus:n};var r=Sd(e,t.focus);return r?{anchor:n,focus:r}:null}function Od(e,t,n){var r=gt.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 ue.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=ue.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=ue.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 p1(e,t,n){var r=Od(e,t.anchor,n);if(!r)return null;if(_.isCollapsed(t))return{anchor:r,focus:r};var o=Od(e,t.focus,n);return o?{anchor:r,focus:o}:null}function V3(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 v1(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 Ns(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v1(Object(n),!0).forEach(function(r){Lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var W3=25,U3=200,H3=function(){},K3=e=>(e==null?void 0:e.constructor.name)==="DataTransfer";function q3(e){var{editor:t,scheduleOnDOMSelectionChange:n,onDOMSelectionChange:r}=e,o=!1,u=null,a=null,i=null,s=0,l=!1,c=()=>{var P=cr.get(t);if(cr.delete(t),P){var{selection:L}=t,j=d1(t,P);j&&(!L||!_.equals(j,L))&&R.select(t,j)}},d=()=>{var P=lr.get(t);if(lr.delete(t),!!P){if(P.at){var L=ue.isPoint(P.at)?Sd(t,P.at):d1(t,P.at);if(!L)return;var j=D.range(t,L);(!t.selection||!_.equals(t.selection,j))&&R.select(t,L)}P.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 P=t.selection&&D.rangeRef(t,t.selection,{affinity:"forward"});On.set(t,t.marks),H3("flush",lr.get(t),gt.get(t));for(var L=E(),j;j=(z=gt.get(t))===null||z===void 0?void 0:z[0];){var z,G,T=Zt.get(t);T!==void 0&&(Zt.delete(t),t.marks=T),T&&l===!1&&(l=null);var I=z3(j);(!t.selection||!_.equals(t.selection,I))&&R.select(t,I),j.diff.text?D.insertText(t,j.diff.text):D.deleteFragment(t),gt.set(t,(G=gt.get(t))===null||G===void 0?void 0:G.filter(ne=>{var{id:te}=ne;return te!==j.id})),I3(t,j)||(L=!1,lr.delete(t),On.delete(t),o="action",cr.delete(t),n.cancel(),r.cancel(),P==null||P.unref())}var K=P==null?void 0:P.unref();if(K&&!cr.get(t)&&(!t.selection||!_.equals(K,t.selection))&&R.select(t,K),C()){d();return}L&&n(),n.flush(),r.flush(),c();var Q=On.get(t);On.delete(t),Q!==void 0&&(t.marks=Q,t.onChange())},y=P=>{u&&clearTimeout(u),u=setTimeout(()=>{Vr.set(t,!1),p()},W3)},m=P=>{Vr.set(t,!0),u&&(clearTimeout(u),u=null)},f=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,j=wd.get(t);if(j){if(E()||L){j.style.display="none";return}j.style.removeProperty("display")}},w=(P,L)=>{var j,z=(j=gt.get(t))!==null&&j!==void 0?j:[];gt.set(t,z);var G=q.leaf(t,P),T=z.findIndex(Q=>b.equals(Q.path,P));if(T<0){var I=f1(G.text,L);I&&z.push({path:P,diff:L,id:s++}),f();return}var K=L3(G.text,z[T].diff,L);if(!K){z.splice(T,1),f();return}z[T]=Ns(Ns({},z[T]),{},{diff:K})},h=function(L){var{at:j}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};l=!1,cr.delete(t),n.cancel(),r.cancel(),C()&&p(),lr.set(t,{at:j,run:L}),i=setTimeout(p)},g=P=>{var L;a&&(clearTimeout(a),a=null);var{inputType:j}=P,z=null,G=P.dataTransfer||P.data||void 0;l!==!1&&j!=="insertText"&&j!=="insertCompositionText"&&(l=!1);var[T]=P.getTargetRanges();T&&(z=k.toSlateRange(t,T,{exactMatch:!1,suppressThrow:!0}));var I=k.getWindow(t),K=I.getSelection();if(!z&&K&&(T=K,z=k.toSlateRange(t,K,{exactMatch:!1,suppressThrow:!0})),z=(L=z)!==null&&L!==void 0?L:t.selection,!!z){var Q=!0;if(j.startsWith("delete")){if(_.isExpanded(z)){var[ne,te]=_.edges(z),ye=q.leaf(t,ne.path);if(ye.text.length===ne.offset&&te.offset===0){var fe=D.next(t,{at:ne.path,match:Z.isText});fe&&b.equals(fe[1],te.path)&&(z={anchor:te,focus:te})}}var F=j.endsWith("Backward")?"backward":"forward",[W,U]=_.edges(z),[Y,ie]=D.leaf(t,W.path),ee={text:"",start:W.offset,end:U.offset},he=gt.get(t),pe=he==null?void 0:he.find(Ge=>b.equals(Ge.path,ie)),se=pe?[pe.diff,ee]:[ee],ae=c1(Y.text,...se);if(ae.length===0&&(Q=!1),_.isExpanded(z)){if(Q&&b.equals(z.anchor.path,z.focus.path)){var me={path:z.anchor.path,offset:W.offset},Pe=D.range(t,me,me);return A(Pe),w(z.anchor.path,{text:"",end:U.offset,start:W.offset})}return h(()=>D.deleteFragment(t,{direction:F}),{at:z})}}switch(j){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return h(()=>D.deleteFragment(t),{at:z});case"deleteContent":case"deleteContentForward":{var{anchor:ve}=z;if(Q&&_.isCollapsed(z)){var Qe=q.leaf(t,ve.path);if(ve.offset<Qe.text.length)return w(ve.path,{text:"",start:ve.offset,end:ve.offset+1})}return h(()=>D.deleteForward(t),{at:z})}case"deleteContentBackward":{var yt,{anchor:je}=z,We=xd(T)?T.isCollapsed:!!((yt=T)!==null&&yt!==void 0&&yt.collapsed);return Q&&We&&_.isCollapsed(z)&&je.offset>0?w(je.path,{text:"",start:je.offset-1,end:je.offset}):h(()=>D.deleteBackward(t),{at:z})}case"deleteEntireSoftLine":return h(()=>{D.deleteBackward(t,{unit:"line"}),D.deleteForward(t,{unit:"line"})},{at:z});case"deleteHardLineBackward":return h(()=>D.deleteBackward(t,{unit:"block"}),{at:z});case"deleteSoftLineBackward":return h(()=>D.deleteBackward(t,{unit:"line"}),{at:z});case"deleteHardLineForward":return h(()=>D.deleteForward(t,{unit:"block"}),{at:z});case"deleteSoftLineForward":return h(()=>D.deleteForward(t,{unit:"line"}),{at:z});case"deleteWordBackward":return h(()=>D.deleteBackward(t,{unit:"word"}),{at:z});case"deleteWordForward":return h(()=>D.deleteForward(t,{unit:"word"}),{at:z});case"insertLineBreak":return h(()=>D.insertSoftBreak(t),{at:z});case"insertParagraph":return h(()=>D.insertBreak(t),{at:z});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{if(K3(G))return h(()=>k.insertData(t,G),{at:z});var we=G??"";if(Zt.get(t)&&(we=we.replace("\uFEFF","")),j==="insertText"&&/.*\n.*\n$/.test(we)&&(we=we.slice(0,-1)),we.includes(`
|
57
|
+
`))return h(()=>{var Ge=we.split(`
|
58
|
+
`);Ge.forEach((pn,Wr)=>{pn&&D.insertText(t,pn),Wr!==Ge.length-1&&D.insertSoftBreak(t)})},{at:z});if(b.equals(z.anchor.path,z.focus.path)){var[nt,Te]=_.edges(z),de={start:nt.offset,end:Te.offset,text:we};if(we&&l&&j==="insertCompositionText"){var Dt=l.start+l.text.search(/\S|$/),dn=de.start+de.text.search(/\S|$/);dn===Dt+1&&de.end===l.start+l.text.length?(de.start-=1,l=null,O()):l=!1}else j==="insertText"?l===null?l=de:l&&_.isCollapsed(z)&&l.end+l.text.length===nt.offset?l=Ns(Ns({},l),{},{text:l.text+we}):l=!1:l=!1;if(Q){w(nt.path,de);return}}return h(()=>D.insertText(t,we),{at:z})}}}},C=()=>!!lr.get(t),E=()=>{var P;return!!((P=gt.get(t))!==null&&P!==void 0&&P.length)},B=()=>C()||E(),x=()=>o,A=P=>{cr.set(t,P),a&&(clearTimeout(a),a=null);var{selection:L}=t;if(P){var j=!L||!b.equals(L.anchor.path,P.anchor.path),z=!L||!b.equals(L.anchor.path.slice(0,-1),P.anchor.path.slice(0,-1));(j&&l||z)&&(l=!1),(j||E())&&(a=setTimeout(p,U3))}},S=()=>{(C()||!E())&&p()},N=P=>{E()||(f(!0),setTimeout(f))},O=()=>{C()||(i=setTimeout(p))},V=P=>{if(!(E()||C())&&P.some(j=>Fd(t,j,P))){var L;(L=u1.get(t))===null||L===void 0||L()}};return{flush:p,scheduleFlush:O,hasPendingDiffs:E,hasPendingAction:C,hasPendingChanges:B,isFlushing:x,handleUserSelect:A,handleCompositionEnd:y,handleCompositionStart:m,handleDOMBeforeInput:g,handleKeyDown:N,handleDomMutations:V,handleInput:S}}function Y3(){var e=M.useRef(!1);return M.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),e.current}var ca=Ps?M.useLayoutEffect:M.useEffect;function Q3(e,t,n){var[r]=M.useState(()=>new MutationObserver(t));ca(()=>{r.takeRecords()}),M.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 G3=["node"];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 X3(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 Z3={subtree:!0,childList:!0,characterData:!0},J3=st?e=>{var{node:t}=e,n=Io(e,G3);if(!st)return null;var r=ar(),o=Y3(),[u]=M.useState(()=>q3(X3({editor:r},n)));return Q3(t,u.handleDomMutations,Z3),Ad.set(r,u.scheduleFlush),o&&u.flush(),u}:()=>null,eP=["anchor","focus"],tP=["anchor","focus"],nP=(e,t)=>Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(n=>t.hasOwnProperty(n)&&e[n]===t[n]),m1=(e,t)=>{var n=Io(e,eP),r=Io(t,tP);return e[$o]===t[$o]&&nP(n,r)},rP=(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)||!m1(r,o))return!1}return!0},oP=(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||!m1(r,o))return!1}return!0};function g1(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 uP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g1(Object(n),!0).forEach(function(r){Lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var aP=e=>{var{isLast:t,leaf:n,parent:r,text:o}=e,u=ar(),a=k.findPath(u,o),i=b.parent(a),s=!!n[a1];return u.isVoid(r)?re.createElement(_d,{length:q.string(r).length}):n.text===""&&r.children[r.children.length-1]===o&&!u.isInline(r)&&D.string(u,i)===""?re.createElement(_d,{isLineBreak:!0,isMarkPlaceholder:s}):n.text===""?re.createElement(_d,{isMarkPlaceholder:s}):t&&n.text.slice(-1)===`
|
59
|
+
`?re.createElement(y1,{isTrailing:!0,text:n.text}):re.createElement(y1,{text:n.text})},y1=e=>{var{text:t,isTrailing:n=!1}=e,r=M.useRef(null),o=()=>"".concat(t??"").concat(n?`
|
60
|
+
`:""),[u]=M.useState(o);return ca(()=>{var a=o();r.current&&r.current.textContent!==a&&(r.current.textContent=a)}),re.createElement(iP,{ref:r},u)},iP=M.memo(M.forwardRef((e,t)=>re.createElement("span",{"data-slate-string":!0,ref:t},e.children))),_d=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",uP({},o),!(st||e1)||!n?"\uFEFF":null,n?re.createElement("br",null):null)};function D1(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 C1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D1(Object(n),!0).forEach(function(r){Lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var sP=st?300:0;function lP(e,t){e.current&&(e.current.disconnect(),t&&(e.current=null))}function w1(e){e.current&&(clearTimeout(e.current),e.current=null)}var cP=e=>{var{leaf:t,isLast:n,text:r,parent:o,renderPlaceholder:u,renderLeaf:a=g=>re.createElement(dP,C1({},g))}=e,i=ar(),s=M.useRef(null),l=M.useRef(null),[c,d]=M.useState(!1),p=M.useRef(null),y=M.useCallback(g=>{if(lP(s,g==null),g==null){var C;wd.delete(i),(C=t.onPlaceholderResize)===null||C===void 0||C.call(t,null)}else{if(wd.set(i,g),!s.current){var E=window.ResizeObserver||p3;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(aP,{isLast:n,leaf:t,parent:o,text:r}),f=!!t[$o];if(M.useEffect(()=>(f?p.current||(p.current=setTimeout(()=>{d(!0),p.current=null},sP)):(w1(p),d(!1)),()=>w1(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:Lr?"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})},fP=re.memo(cP,(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[$o]===e.leaf[$o]),dP=e=>{var{attributes:t,children:n}=e;return re.createElement("span",C1({},t),n)},pP=e=>{for(var{decorations:t,isLast:n,parent:r,renderPlaceholder:o,renderLeaf:u,text:a}=e,i=ar(),s=M.useRef(null),l=Z.decorations(a,t),c=k.findKey(i,a),d=[],p=0;p<l.length;p++){var y=l[p];d.push(re.createElement(fP,{isLast:n&&p===l.length-1,key:"".concat(c.id,"-").concat(p),renderPlaceholder:o,leaf:y,text:a,parent:r,renderLeaf:u}))}var m=M.useCallback(f=>{var w=Rs.get(i);f?(w==null||w.set(c,f),zr.set(a,f),sa.set(f,a)):(w==null||w.delete(c),zr.delete(a),s.current&&sa.delete(s.current)),s.current=f},[s,i,c,a]);return re.createElement("span",{"data-slate-node":"text",ref:m},d)},E1=re.memo(pP,(e,t)=>t.parent===e.parent&&t.isLast===e.isLast&&t.renderLeaf===e.renderLeaf&&t.renderPlaceholder===e.renderPlaceholder&&t.text===e.text&&oP(t.decorations,e.decorations));function B1(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 Pd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B1(Object(n),!0).forEach(function(r){Lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var vP=e=>{var{decorations:t,element:n,renderElement:r=g=>re.createElement(mP,Pd({},g)),renderPlaceholder:o,renderLeaf:u,selection:a}=e,i=ar(),s=DP(),l=i.isInline(n),c=k.findKey(i,n),d=M.useCallback(g=>{var C=Rs.get(i);g?(C==null||C.set(c,g),zr.set(n,g),sa.set(g,n)):(C==null||C.delete(c),zr.delete(n))},[i,c,n]),p=b1({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=Cy(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(E1,{renderPlaceholder:o,decorations:[],isLast:!1,parent:n,text:h})),Dd.set(h,0),Cd.set(h,n)}return r({attributes:y,children:p,element:n})},hP=re.memo(vP,(e,t)=>e.element===t.element&&e.renderElement===t.renderElement&&e.renderLeaf===t.renderLeaf&&e.renderPlaceholder===t.renderPlaceholder&&rP(e.decorations,t.decorations)&&(e.selection===t.selection||!!e.selection&&!!t.selection&&_.equals(e.selection,t.selection))),mP=e=>{var{attributes:t,children:n,element:r}=e,o=ar(),u=o.isInline(r)?"span":"div";return re.createElement(u,Pd(Pd({},t),{},{style:{position:"relative"}}),n)},A1=M.createContext(()=>[]),gP=()=>M.useContext(A1),yP=M.createContext(!1),b1=e=>{for(var{decorations:t,node:n,renderElement:r,renderPlaceholder:o,renderLeaf:u,selection:a}=e,i=gP(),s=ar(),l=k.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=k.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(yP.Provider,{key:"provider-".concat(f.id),value:!!h},re.createElement(hP,{decorations:g,element:m,key:f.id,renderElement:r,renderPlaceholder:o,renderLeaf:u,selection:h}))):c.push(re.createElement(E1,{decorations:g,key:f.id,isLast:d&&p===n.children.length-1,parent:n,renderPlaceholder:o,renderLeaf:u,text:m})),Dd.set(m,p),Cd.set(m,n)}return c},x1=M.createContext(!1),DP=()=>M.useContext(x1),F1=M.createContext(null),CP=()=>{var e=M.useContext(F1);if(!e)throw new Error("The `useSlate` hook must be used inside the <Slate> component's context.");var{editor:t}=e;return t};function wP(){var e=ar(),t=M.useRef(!1),n=M.useRef(0),r=M.useCallback(()=>{if(!t.current){t.current=!0;var o=k.getWindow(e);o.cancelAnimationFrame(n.current),n.current=o.requestAnimationFrame(()=>{t.current=!1})}},[e]);return M.useEffect(()=>()=>cancelAnimationFrame(n.current),[]),{receivedUserInput:t,onUserInput:r}}var EP=3,BP={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"},AP={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"},bP={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},xe=e=>{var t=BP[e],n=AP[e],r=bP[e],o=t&&hd(t),u=n&&hd(n),a=r&&hd(r);return i=>!!(o&&o(i)||t1&&u&&u(i)||!t1&&a&&a(i))},_e={isBold:xe("bold"),isCompose:xe("compose"),isMoveBackward:xe("moveBackward"),isMoveForward:xe("moveForward"),isDeleteBackward:xe("deleteBackward"),isDeleteForward:xe("deleteForward"),isDeleteLineBackward:xe("deleteLineBackward"),isDeleteLineForward:xe("deleteLineForward"),isDeleteWordBackward:xe("deleteWordBackward"),isDeleteWordForward:xe("deleteWordForward"),isExtendBackward:xe("extendBackward"),isExtendForward:xe("extendForward"),isExtendLineBackward:xe("extendLineBackward"),isExtendLineForward:xe("extendLineForward"),isItalic:xe("italic"),isMoveLineBackward:xe("moveLineBackward"),isMoveLineForward:xe("moveLineForward"),isMoveWordBackward:xe("moveWordBackward"),isMoveWordForward:xe("moveWordForward"),isRedo:xe("redo"),isSoftBreak:xe("insertSoftBreak"),isSplitBlock:xe("splitBlock"),isTransposeCharacter:xe("transposeCharacter"),isUndo:xe("undo")},xP=(e,t)=>{var n=[],r=()=>{n=[]},o=a=>{if(t.current){var i=a.filter(s=>Fd(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}},FP={subtree:!0,childList:!0,characterData:!0,characterDataOldValue:!0};class S1 extends M.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,FP)}componentDidMount(){var{receivedUserInput:t}=this.props,n=this.context;this.manager=xP(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(S1,"contextType",md);var SP=st?S1:e=>{var{children:t}=e;return re.createElement(re.Fragment,null,t)},OP=["autoFocus","decorate","onDOMBeforeInput","placeholder","readOnly","renderElement","renderLeaf","renderPlaceholder","scrollSelectionIntoView","style","as","disableDefaultStyles"],_P=["text"];function O1(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 fn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O1(Object(n),!0).forEach(function(r){Lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var PP=e=>re.createElement(re.Fragment,null,b1(e)),kP=e=>{var t=M.useCallback(F=>re.createElement(TP,fn({},F)),[]),{autoFocus:n,decorate:r=RP,onDOMBeforeInput:o,placeholder:u,readOnly:a=!1,renderElement:i,renderLeaf:s,renderPlaceholder:l=t,scrollSelectionIntoView:c=NP,style:d={},as:p="div",disableDefaultStyles:y=!1}=e,m=Io(e,OP),f=CP(),[w,h]=M.useState(!1),g=M.useRef(null),C=M.useRef([]),[E,B]=M.useState(),x=M.useRef(!1),{onUserInput:A,receivedUserInput:S}=wP(),[,N]=M.useReducer(F=>F+1,0);u1.set(f,N),Ed.set(f,a);var O=M.useMemo(()=>({isDraggingInternally:!1,isUpdatingSelection:!1,latestElement:null,hasMarkPlaceholder:!1}),[]);M.useEffect(()=>{g.current&&n&&g.current.focus()},[n]);var V=M.useRef(),P=M.useMemo(()=>W_(()=>{var F=k.toDOMNode(f,f),W=F.getRootNode();if(r1&&!x.current&&Lr&&W instanceof ShadowRoot){x.current=!0;var U=R3();U?document.execCommand("indent"):R.deselect(f),x.current=!1;return}var Y=V.current;if((st||!k.isComposing(f))&&(!O.isUpdatingSelection||Y!=null&&Y.isFlushing())&&!O.isDraggingInternally){var ie=k.findDocumentOrShadowRoot(f),{activeElement:ee}=ie,he=k.toDOMNode(f,f),pe=ie.getSelection();if(ee===he?(O.latestElement=ee,sr.set(f,!0)):sr.delete(f),!pe)return R.deselect(f);var{anchorNode:se,focusNode:ae}=pe,me=k.hasEditableTarget(f,se)||k.isTargetInsideNonReadonlyVoid(f,se),Pe=k.hasEditableTarget(f,ae)||k.isTargetInsideNonReadonlyVoid(f,ae);if(me&&Pe){var ve=k.toSlateRange(f,pe,{exactMatch:!1,suppressThrow:!0});ve&&(!k.isComposing(f)&&!(Y!=null&&Y.hasPendingChanges())&&!(Y!=null&&Y.isFlushing())?R.select(f,ve):Y==null||Y.handleUserSelect(ve))}a&&(!me||!Pe)&&R.deselect(f)}},100),[f,a,O]),L=M.useMemo(()=>I_(P,0),[P]);V.current=J3({node:g,onDOMSelectionChange:P,scheduleOnDOMSelectionChange:L}),ca(()=>{var F,W,U;g.current&&(U=bd(g.current))?(o1.set(f,U),ks.set(f,g.current),zr.set(f,g.current),sa.set(g.current,f)):zr.delete(f);var{selection:Y}=f,ie=k.findDocumentOrShadowRoot(f),ee=ie.getSelection();if(!(!ee||!k.isFocused(f)||(F=V.current)!==null&&F!==void 0&&F.hasPendingAction())){var he=me=>{var Pe=ee.type!=="None";if(!(!Y&&!Pe)){var ve=ee.focusNode,Qe;if(Mo&&ee.rangeCount>1){var yt=ee.getRangeAt(0),je=ee.getRangeAt(ee.rangeCount-1);yt.startContainer===ve?Qe=je.endContainer:Qe=yt.startContainer}else Qe=ee.anchorNode;var We=ks.get(f),we=!1;if(We.contains(Qe)&&We.contains(ve)&&(we=!0),Pe&&we&&Y&&!me){var nt=k.toSlateRange(f,ee,{exactMatch:!0,suppressThrow:!0});if(nt&&_.equals(nt,Y)){var Te;if(!O.hasMarkPlaceholder||(Te=Qe)!==null&&Te!==void 0&&(Te=Te.parentElement)!==null&&Te!==void 0&&Te.hasAttribute("data-slate-mark-placeholder"))return}}if(Y&&!k.hasRange(f,Y)){f.selection=k.toSlateRange(f,ee,{exactMatch:!1,suppressThrow:!0});return}O.isUpdatingSelection=!0;var de=Y&&k.toDOMRange(f,Y);return de?(k.isComposing(f)&&!st?ee.collapseToEnd():_.isBackward(Y)?ee.setBaseAndExtent(de.endContainer,de.endOffset,de.startContainer,de.startOffset):ee.setBaseAndExtent(de.startContainer,de.startOffset,de.endContainer,de.endOffset),c(f,de)):ee.removeAllRanges(),de}};ee.rangeCount<=1&&he();var pe=((W=V.current)===null||W===void 0?void 0:W.isFlushing())==="action";if(!st||!pe){setTimeout(()=>{O.isUpdatingSelection=!1});return}var se=null,ae=requestAnimationFrame(()=>{if(pe){var me=Pe=>{try{var ve=k.toDOMNode(f,f);ve.focus(),he(Pe)}catch{}};me(),se=setTimeout(()=>{me(!0),O.isUpdatingSelection=!1})}});return()=>{cancelAnimationFrame(ae),se&&clearTimeout(se)}}});var j=M.useCallback(F=>{var W=k.toDOMNode(f,f),U=W.getRootNode();if(r1&&x!==null&&x!==void 0&&x.current&&Lr&&U instanceof ShadowRoot){var Y=F.getTargetRanges(),ie=Y[0],ee=new window.Range;ee.setStart(ie.startContainer,ie.startOffset),ee.setEnd(ie.endContainer,ie.endOffset);var he=k.toSlateRange(f,ee,{exactMatch:!1,suppressThrow:!1});R.select(f,he),F.preventDefault(),F.stopImmediatePropagation();return}if(A(),!a&&k.hasEditableTarget(f,F.target)&&!jP(F,o)){var pe;if(V.current)return V.current.handleDOMBeforeInput(F);L.flush(),P.flush();var{selection:se}=f,{inputType:ae}=F,me=F.dataTransfer||F.data||void 0,Pe=ae==="insertCompositionText"||ae==="deleteCompositionText";if(Pe&&k.isComposing(f))return;var ve=!1;if(ae==="insertText"&&se&&_.isCollapsed(se)&&F.data&&F.data.length===1&&/[a-z ]/i.test(F.data)&&se.anchor.offset!==0){var Qe,yt;ve=!0,f.marks&&(ve=!1);var{anchor:je}=se,[We,we]=k.toDOMPoint(f,je),nt=(Qe=We.parentElement)===null||Qe===void 0?void 0:Qe.closest("a"),Te=k.getWindow(f);if(ve&&nt&&k.hasDOMNode(f,nt)){var de,Dt=Te==null?void 0:Te.document.createTreeWalker(nt,NodeFilter.SHOW_TEXT).lastChild();Dt===We&&((de=Dt.textContent)===null||de===void 0?void 0:de.length)===we&&(ve=!1)}if(ve&&We.parentElement&&(Te==null||(yt=Te.getComputedStyle(We.parentElement))===null||yt===void 0?void 0:yt.whiteSpace)==="pre"){var dn=D.above(f,{at:je.path,match:js=>X.isElement(js)&&D.isBlock(f,js)});dn&&q.string(dn[0]).includes(" ")&&(ve=!1)}}if(!ae.startsWith("delete")||ae.startsWith("deleteBy")){var[Ge]=F.getTargetRanges();if(Ge){var pn=k.toSlateRange(f,Ge,{exactMatch:!1,suppressThrow:!1});if(!se||!_.equals(se,pn)){ve=!1;var Wr=!Pe&&f.selection&&D.rangeRef(f,f.selection);R.select(f,pn),Wr&&la.set(f,Wr)}}}if(Pe)return;if(ve||F.preventDefault(),se&&_.isExpanded(se)&&ae.startsWith("delete")){var _n=ae.endsWith("Backward")?"backward":"forward";D.deleteFragment(f,{direction:_n});return}switch(ae){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":{ae==="insertFromComposition"&&k.isComposing(f)&&(h(!1),Vr.set(f,!1)),(me==null?void 0:me.constructor.name)==="DataTransfer"?k.insertData(f,me):typeof me=="string"&&(ve?C.current.push(()=>D.insertText(f,me)):D.insertText(f,me));break}}var fa=(pe=la.get(f))===null||pe===void 0?void 0:pe.unref();la.delete(f),fa&&(!f.selection||!_.equals(f.selection,fa))&&R.select(f,fa)}},[f,P,A,o,a,L]),z=M.useCallback(F=>{F==null?(P.cancel(),L.cancel(),ks.delete(f),zr.delete(f),g.current&&ir&&g.current.removeEventListener("beforeinput",j)):ir&&F.addEventListener("beforeinput",j),g.current=F},[P,L,f,j]);ca(()=>{var F=k.getWindow(f);return F.document.addEventListener("selectionchange",L),()=>{F.document.removeEventListener("selectionchange",L)}},[L]);var G=r([f,[]]),T=u&&f.children.length===1&&Array.from(q.texts(f)).length===1&&q.string(f)===""&&!w,I=M.useCallback(F=>{if(F&&T){var W;B((W=F.getBoundingClientRect())===null||W===void 0?void 0:W.height)}else B(void 0)},[T]);if(T){var K=D.start(f,[]);G.push({[$o]:!0,placeholder:u,onPlaceholderResize:I,anchor:K,focus:K})}var{marks:Q}=f;if(O.hasMarkPlaceholder=!1,f.selection&&_.isCollapsed(f.selection)&&Q){var{anchor:ne}=f.selection,te=q.leaf(f,ne.path),ye=Io(te,_P);if(!Z.equals(te,Q,{loose:!0})){O.hasMarkPlaceholder=!0;var fe=Object.fromEntries(Object.keys(ye).map(F=>[F,null]));G.push(fn(fn(fn({[a1]:!0},fe),Q),{},{anchor:ne,focus:ne}))}}return M.useEffect(()=>{setTimeout(()=>{var{selection:F}=f;if(F){var{anchor:W}=F,U=q.leaf(f,W.path);if(Q&&!Z.equals(U,Q,{loose:!0})){Zt.set(f,Q);return}}Zt.delete(f)})}),re.createElement(x1.Provider,{value:a},re.createElement(A1.Provider,{value:r},re.createElement(SP,{node:g,receivedUserInput:S},re.createElement(p,fn(fn({role:a?void 0:"textbox","aria-multiline":a?void 0:!0},m),{},{spellCheck:ir||!Ps?m.spellCheck:!1,autoCorrect:ir||!Ps?m.autoCorrect:"false",autoCapitalize:ir||!Ps?m.autoCapitalize:"false","data-slate-editor":!0,"data-slate-node":"value",contentEditable:!a,zindex:-1,suppressContentEditableWarning:!0,ref:z,style:fn(fn({},y?{}:fn({position:"relative",whiteSpace:"pre-wrap",wordWrap:"break-word"},E?{minHeight:E}:{})),d),onBeforeInput:M.useCallback(F=>{if(!ir&&!a&&!lt(F,m.onBeforeInput)&&k.hasSelectableTarget(f,F.target)&&(F.preventDefault(),!k.isComposing(f))){var W=F.data;D.insertText(f,W)}},[m.onBeforeInput,f,a]),onInput:M.useCallback(F=>{if(!lt(F,m.onInput)){if(V.current){V.current.handleInput();return}for(var W of C.current)W();C.current=[]}},[m.onInput]),onBlur:M.useCallback(F=>{if(!(a||O.isUpdatingSelection||!k.hasSelectableTarget(f,F.target)||lt(F,m.onBlur))){var W=k.findDocumentOrShadowRoot(f);if(O.latestElement!==W.activeElement){var{relatedTarget:U}=F,Y=k.toDOMNode(f,f);if(U!==Y&&!(zt(U)&&U.hasAttribute("data-slate-spacer"))){if(U!=null&&fr(U)&&k.hasDOMNode(f,U)){var ie=k.toSlateNode(f,U);if(X.isElement(ie)&&!f.isVoid(ie))return}if(Lr){var ee=W.getSelection();ee==null||ee.removeAllRanges()}sr.delete(f)}}}},[a,O.isUpdatingSelection,O.latestElement,f,m.onBlur]),onClick:M.useCallback(F=>{if(k.hasTarget(f,F.target)&&!lt(F,m.onClick)&&fr(F.target)){var W=k.toSlateNode(f,F.target),U=k.findPath(f,W);if(!D.hasPath(f,U)||q.get(f,U)!==W)return;if(F.detail===EP&&U.length>=1){var Y=U;if(!(X.isElement(W)&&D.isBlock(f,W))){var ie,ee=D.above(f,{match:ve=>X.isElement(ve)&&D.isBlock(f,ve),at:U});Y=(ie=ee==null?void 0:ee[1])!==null&&ie!==void 0?ie:U.slice(0,1)}var he=D.range(f,Y);R.select(f,he);return}if(a)return;var pe=D.start(f,U),se=D.end(f,U),ae=D.void(f,{at:pe}),me=D.void(f,{at:se});if(ae&&me&&b.equals(ae[1],me[1])){var Pe=D.range(f,pe);R.select(f,Pe)}}},[f,m.onClick,a]),onCompositionEnd:M.useCallback(F=>{if(k.hasSelectableTarget(f,F.target)){var W;if(k.isComposing(f)&&Promise.resolve().then(()=>{h(!1),Vr.set(f,!1)}),(W=V.current)===null||W===void 0||W.handleCompositionEnd(F),lt(F,m.onCompositionEnd)||st)return;if(!Lr&&!B3&&!e1&&!b3&&!A3&&F.data){var U=Zt.get(f);Zt.delete(f),U!==void 0&&(On.set(f,f.marks),f.marks=U),D.insertText(f,F.data);var Y=On.get(f);On.delete(f),Y!==void 0&&(f.marks=Y)}}},[m.onCompositionEnd,f]),onCompositionUpdate:M.useCallback(F=>{k.hasSelectableTarget(f,F.target)&&!lt(F,m.onCompositionUpdate)&&(k.isComposing(f)||(h(!0),Vr.set(f,!0)))},[m.onCompositionUpdate,f]),onCompositionStart:M.useCallback(F=>{if(k.hasSelectableTarget(f,F.target)){var W;if((W=V.current)===null||W===void 0||W.handleCompositionStart(F),lt(F,m.onCompositionStart)||st)return;h(!0);var{selection:U}=f;if(U&&_.isExpanded(U)){D.deleteFragment(f);return}}},[m.onCompositionStart,f]),onCopy:M.useCallback(F=>{k.hasSelectableTarget(f,F.target)&&!lt(F,m.onCopy)&&!_1(F)&&(F.preventDefault(),k.setFragmentData(f,F.clipboardData,"copy"))},[m.onCopy,f]),onCut:M.useCallback(F=>{if(!a&&k.hasSelectableTarget(f,F.target)&&!lt(F,m.onCut)&&!_1(F)){F.preventDefault(),k.setFragmentData(f,F.clipboardData,"cut");var{selection:W}=f;if(W)if(_.isExpanded(W))D.deleteFragment(f);else{var U=q.parent(f,W.anchor.path);D.isVoid(f,U)&&R.delete(f)}}},[a,f,m.onCut]),onDragOver:M.useCallback(F=>{if(k.hasTarget(f,F.target)&&!lt(F,m.onDragOver)){var W=k.toSlateNode(f,F.target);X.isElement(W)&&D.isVoid(f,W)&&F.preventDefault()}},[m.onDragOver,f]),onDragStart:M.useCallback(F=>{if(!a&&k.hasTarget(f,F.target)&&!lt(F,m.onDragStart)){var W=k.toSlateNode(f,F.target),U=k.findPath(f,W),Y=X.isElement(W)&&D.isVoid(f,W)||D.void(f,{at:U,voids:!0});if(Y){var ie=D.range(f,U);R.select(f,ie)}O.isDraggingInternally=!0,k.setFragmentData(f,F.dataTransfer,"drag")}},[a,f,m.onDragStart,O]),onDrop:M.useCallback(F=>{if(!a&&k.hasTarget(f,F.target)&&!lt(F,m.onDrop)){F.preventDefault();var W=f.selection,U=k.findEventRange(f,F),Y=F.dataTransfer;R.select(f,U),O.isDraggingInternally&&W&&!_.equals(W,U)&&!D.void(f,{at:U,voids:!0})&&R.delete(f,{at:W}),k.insertData(f,Y),k.isFocused(f)||k.focus(f)}O.isDraggingInternally=!1},[a,f,m.onDrop,O]),onDragEnd:M.useCallback(F=>{!a&&O.isDraggingInternally&&m.onDragEnd&&k.hasTarget(f,F.target)&&m.onDragEnd(F),O.isDraggingInternally=!1},[a,O,m,f]),onFocus:M.useCallback(F=>{if(!a&&!O.isUpdatingSelection&&k.hasEditableTarget(f,F.target)&&!lt(F,m.onFocus)){var W=k.toDOMNode(f,f),U=k.findDocumentOrShadowRoot(f);if(O.latestElement=U.activeElement,Mo&&F.target!==W){W.focus();return}sr.set(f,!0)}},[a,O,f,m.onFocus]),onKeyDown:M.useCallback(F=>{if(!a&&k.hasEditableTarget(f,F.target)){var W;(W=V.current)===null||W===void 0||W.handleKeyDown(F);var{nativeEvent:U}=F;if(k.isComposing(f)&&U.isComposing===!1&&(Vr.set(f,!1),h(!1)),lt(F,m.onKeyDown)||k.isComposing(f))return;var{selection:Y}=f,ie=f.children[Y!==null?Y.focus.path[0]:0],ee=Cy(q.string(ie))==="rtl";if(_e.isRedo(U)){F.preventDefault();var he=f;typeof he.redo=="function"&&he.redo();return}if(_e.isUndo(U)){F.preventDefault();var pe=f;typeof pe.undo=="function"&&pe.undo();return}if(_e.isMoveLineBackward(U)){F.preventDefault(),R.move(f,{unit:"line",reverse:!0});return}if(_e.isMoveLineForward(U)){F.preventDefault(),R.move(f,{unit:"line"});return}if(_e.isExtendLineBackward(U)){F.preventDefault(),R.move(f,{unit:"line",edge:"focus",reverse:!0});return}if(_e.isExtendLineForward(U)){F.preventDefault(),R.move(f,{unit:"line",edge:"focus"});return}if(_e.isMoveBackward(U)){F.preventDefault(),Y&&_.isCollapsed(Y)?R.move(f,{reverse:!ee}):R.collapse(f,{edge:ee?"end":"start"});return}if(_e.isMoveForward(U)){F.preventDefault(),Y&&_.isCollapsed(Y)?R.move(f,{reverse:ee}):R.collapse(f,{edge:ee?"start":"end"});return}if(_e.isMoveWordBackward(U)){F.preventDefault(),Y&&_.isExpanded(Y)&&R.collapse(f,{edge:"focus"}),R.move(f,{unit:"word",reverse:!ee});return}if(_e.isMoveWordForward(U)){F.preventDefault(),Y&&_.isExpanded(Y)&&R.collapse(f,{edge:"focus"}),R.move(f,{unit:"word",reverse:ee});return}if(ir){if((n1||Lr)&&Y&&(_e.isDeleteBackward(U)||_e.isDeleteForward(U))&&_.isCollapsed(Y)){var se=q.parent(f,Y.anchor.path);if(X.isElement(se)&&D.isVoid(f,se)&&(D.isInline(f,se)||D.isBlock(f,se))){F.preventDefault(),D.deleteBackward(f,{unit:"block"});return}}}else{if(_e.isBold(U)||_e.isItalic(U)||_e.isTransposeCharacter(U)){F.preventDefault();return}if(_e.isSoftBreak(U)){F.preventDefault(),D.insertSoftBreak(f);return}if(_e.isSplitBlock(U)){F.preventDefault(),D.insertBreak(f);return}if(_e.isDeleteBackward(U)){F.preventDefault(),Y&&_.isExpanded(Y)?D.deleteFragment(f,{direction:"backward"}):D.deleteBackward(f);return}if(_e.isDeleteForward(U)){F.preventDefault(),Y&&_.isExpanded(Y)?D.deleteFragment(f,{direction:"forward"}):D.deleteForward(f);return}if(_e.isDeleteLineBackward(U)){F.preventDefault(),Y&&_.isExpanded(Y)?D.deleteFragment(f,{direction:"backward"}):D.deleteBackward(f,{unit:"line"});return}if(_e.isDeleteLineForward(U)){F.preventDefault(),Y&&_.isExpanded(Y)?D.deleteFragment(f,{direction:"forward"}):D.deleteForward(f,{unit:"line"});return}if(_e.isDeleteWordBackward(U)){F.preventDefault(),Y&&_.isExpanded(Y)?D.deleteFragment(f,{direction:"backward"}):D.deleteBackward(f,{unit:"word"});return}if(_e.isDeleteWordForward(U)){F.preventDefault(),Y&&_.isExpanded(Y)?D.deleteFragment(f,{direction:"forward"}):D.deleteForward(f,{unit:"word"});return}}}},[a,f,m.onKeyDown]),onPaste:M.useCallback(F=>{!a&&k.hasEditableTarget(f,F.target)&&!lt(F,m.onPaste)&&(!ir||S3(F.nativeEvent)||Lr)&&(F.preventDefault(),k.insertData(f,F.clipboardData))},[a,f,m.onPaste])}),re.createElement(PP,{decorations:G,node:f,renderElement:i,renderPlaceholder:l,renderLeaf:s,selection:f.selection})))))},TP=e=>{var{attributes:t,children:n}=e;return re.createElement("span",fn({},t),n,st&&re.createElement("br",null))},RP=()=>[],NP=(e,t)=>{if(t.getBoundingClientRect&&(!e.selection||e.selection&&_.isCollapsed(e.selection))){var n=t.startContainer.parentElement;n.getBoundingClientRect=t.getBoundingClientRect.bind(t),K_(n,{scrollMode:"if-needed"}),delete n.getBoundingClientRect}},lt=(e,t)=>{if(!t)return!1;var n=t(e);return n??(e.isDefaultPrevented()||e.isPropagationStopped())},_1=e=>fr(e.target)&&(e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement),jP=(e,t)=>{if(!t)return!1;var n=t(e);return n??e.defaultPrevented},IP=M.createContext(!1),MP=M.createContext({});function $P(e){var t=M.useRef([]).current,n=M.useRef({editor:e}).current,r=M.useCallback(u=>{n.editor=u,t.forEach(a=>a(u))},[t,n]),o=M.useMemo(()=>({getSlate:()=>n.editor,addEventListener:u=>(t.push(u),()=>{t.splice(t.indexOf(u),1)})}),[t,n]);return{selectorContext:o,onChange:r}}var LP=["editor","children","onChange","onSelectionChange","onValueChange","initialValue"],zP=e=>{var{editor:t,children:n,onChange:r,onSelectionChange:o,onValueChange:u,initialValue:a}=e,i=Io(e,LP),[s,l]=re.useState(()=>{if(!q.isNodeList(a))throw new Error("[Slate] initialValue is invalid! Expected a list of elements but got: ".concat(Le.stringify(a)));if(!D.isEditor(t))throw new Error("[Slate] editor is invalid! You passed: ".concat(Le.stringify(t)));return t.children=a,Object.assign(t,i),{v:0,editor:t}}),{selectorContext:c,onChange:d}=$P(t),p=M.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]);M.useEffect(()=>(Bd.set(t,p),()=>{Bd.set(t,()=>{})}),[t,p]);var[y,m]=M.useState(k.isFocused(t));return M.useEffect(()=>{m(k.isFocused(t))},[t]),ca(()=>{var f=()=>m(k.isFocused(t));return Jy>=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(MP.Provider,{value:c},re.createElement(F1.Provider,{value:s},re.createElement(md.Provider,{value:s.editor},re.createElement(IP.Provider,{value:y},n))))},P1=(e,t)=>{var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},k1=(e,t,n)=>{var r=k.toDOMRange(e,t).getBoundingClientRect(),o=k.toDOMRange(e,n).getBoundingClientRect();return P1(r,o)&&P1(o,r)},VP=(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(k1(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;)k1(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 T1(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 R1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T1(Object(n),!0).forEach(function(r){Lt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var WP=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 Rs.set(r,new WeakMap),r.addMark=(l,c)=>{var d,p;(d=Ad.get(r))===null||d===void 0||d(),!Zt.get(r)&&(p=gt.get(r))!==null&&p!==void 0&&p.length&&Zt.set(r,null),On.delete(r),i(l,c)},r.removeMark=l=>{var c;!Zt.get(r)&&(c=gt.get(r))!==null&&c!==void 0&&c.length&&Zt.set(r,null),On.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=VP(r,p);_.isCollapsed(y)||R.delete(r,{at:y})}}},r.apply=l=>{var c=[],d=[],p=gt.get(r);if(p!=null&&p.length){var y=p.map(j=>V3(j,l)).filter(Boolean);gt.set(r,y)}var m=cr.get(r);m&&cr.set(r,p1(r,m,l));var f=lr.get(r);if(f!=null&&f.at){var w=ue.isPoint(f==null?void 0:f.at)?Od(r,f.at,l):p1(r,f.at,l);lr.set(r,w?R1(R1({},f),{},{at:w}):null)}switch(l.type){case"insert_text":case"remove_text":case"set_node":case"split_node":{c.push(...Lo(r,l.path));break}case"set_selection":{var h;(h=la.get(r))===null||h===void 0||h.unref(),la.delete(r);break}case"insert_node":case"remove_node":{c.push(...Lo(r,b.parent(l.path)));break}case"merge_node":{var g=b.previous(l.path);c.push(...Lo(r,g));break}case"move_node":{var C=b.common(b.parent(l.path),b.parent(l.newPath));c.push(...Lo(r,C));var E;b.isBefore(l.path,l.newPath)?(c.push(...Lo(r,b.parent(l.path))),E=l.newPath):(c.push(...Lo(r,b.parent(l.newPath))),E=l.path);var B=q.get(t,b.parent(E)),x=k.findKey(r,B),A=D.pathRef(r,b.parent(E));d.push([A,x]);break}}o(l);for(var[S,N]of c){var[O]=D.node(r,S);Ts.set(O,N)}for(var[V,P]of d)if(V.current){var[L]=D.node(r,V.current);Ts.set(L,P)}},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=k.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=k.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 V=O.getAttribute("data-slate-zero-width")==="n";O.textContent=V?`
|
61
|
+
`:""}),i1(h)){var B=h.ownerDocument.createElement("span");B.style.whiteSpace="pre",B.appendChild(h),w.appendChild(B),h=B}var x=r.getFragment(),A=JSON.stringify(x),S=window.btoa(encodeURIComponent(A));h.setAttribute("data-slate-fragment",S),l.setData("application/".concat(n),S);var N=w.ownerDocument.createElement("div");return N.appendChild(w),N.setAttribute("hidden","true"),w.ownerDocument.body.appendChild(N),l.setData("text/html",N.innerHTML),l.setData("text/plain",l1(N)),w.ownerDocument.body.removeChild(N),l}}},r.insertData=l=>{r.insertFragmentData(l)||r.insertTextData(l)},r.insertFragmentData=l=>{var c=l.getData("application/".concat(n))||T3(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&&R.splitNodes(r,{always:!0}),r.insertText(y),p=!0;return!0}return!1},r.onChange=l=>{var c=Jy<18?Ro.unstable_batchedUpdates:d=>d();c(()=>{var d=Bd.get(r);d&&d(l),u(l)})},r},Lo=(e,t)=>{var n=[];for(var[r,o]of D.levels(e,{at:t})){var u=k.findKey(e,r);n.push([o,u])}return n},UP={isHistory(e){return Ue(e)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Mn.isOperationList(e.redos[0].operations))&&(e.undos.length===0||Mn.isOperationList(e.undos[0].operations))}},kd=new WeakMap,Td=new WeakMap,zo={isHistoryEditor(e){return UP.isHistory(e.history)&&D.isEditor(e)},isMerging(e){return Td.get(e)},isSaving(e){return kd.get(e)},redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=zo.isMerging(e);Td.set(e,!1),t(),Td.set(e,n)},withoutSaving(e,t){var n=zo.isSaving(e);kd.set(e,!1),t(),kd.set(e,n)}},HP=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&&R.setSelection(t,u.selectionBefore),zo.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];zo.withoutSaving(t,()=>{D.withoutNormalizing(t,()=>{var a=u.operations.map(Mn.inverse).reverse();for(var i of a)t.apply(i);u.selectionBefore&&R.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=zo.isSaving(t),c=zo.isMerging(t);if(l==null&&(l=qP(r)),l){if(c==null&&(i==null?c=!1:o.length!==0?c=!0:c=KP(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},KP=(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)),qP=(e,t)=>e.type!=="set_selection";function YP(e){const n=`docx-h${e.element.level}`;return Ne.jsx(n,{...e.attributes,children:e.children})}function QP(e){return Ne.jsx("docx-blockquote",{...e.attributes,children:e.children})}const{Provider:GP,Consumer:XP}=M.createContext(!1);function ZP(e){const t=e.element,n=`docx-${t.ordered?"o":"u"}l`;return Ne.jsx(GP,{value:!!t.ordered,children:Ne.jsx(n,{...e.attributes,children:e.children})})}function JP(e){return Ne.jsx(XP,{children:t=>Ne.jsx("docx-li",{className:t?"ordered":"",children:e.children})})}const ek={"#":"heading","##":"heading","###":"heading","####":"heading","#####":"heading","######":"heading",">":"blockquote","*":"list-item","-":"list-item","+":"list-item"},tk=[[/\*\*(.+?)\*\*$/,"bold"],[/\*(.+?)\*$/,"italic"],[/~~(.+?)~~$/,"del"],[/~(.+?)~$/,"underline"]];function nk(e){return e.element.type==="heading"?Ne.jsx(YP,{...e}):e.element.type==="blockquote"?Ne.jsx(QP,{...e}):e.element.type==="list"?Ne.jsx(ZP,{...e}):e.element.type==="list-item"?Ne.jsx(JP,{...e}):Ne.jsx("p",{...e.attributes,children:e.children})}function rk({attributes:e,children:t,leaf:n}){return n.bold&&(t=Ne.jsx("strong",{children:t})),n.code&&(t=Ne.jsx("code",{children:t})),n.italic&&(t=Ne.jsx("em",{children:t})),n.del&&(t=Ne.jsx("del",{children:t})),n.underline&&(t=Ne.jsx("u",{children:t})),Ne.jsx("span",{...e,children:t})}function ok(e){const{initialValue:t=[{type:"paragraph",children:[{text:""}]}],onBeforeInput:n,withOverride:r=c=>c}=e,o=M.useMemo(()=>r(WP(HP(wx()))),[]),u=M.useCallback(c=>Ne.jsx(nk,{...c}),[]),a=M.useCallback(c=>Ne.jsx(rk,{...c}),[]),i=M.useCallback(n?c=>{queueMicrotask(()=>n(c))}:()=>{},[o]),s=M.useCallback(c=>MA.trigger(c),[o]),l=M.useCallback(c=>Sv.trigger(c),[o]);return za.value=o,Ne.jsx(zP,{editor:o,initialValue:t,onSelectionChange:s,onValueChange:l,children:Ne.jsx(kP,{className:"smart-docx-editor",renderElement:u,renderLeaf:a,onDOMBeforeInput:i})})}const uk=fu(v.defineComponent({__name:"Markdown",props:{initialValue:{type:Array}},setup(e){const t=e,n=bO(ok);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)&&ue.equals(l.anchor,D.end(u,d))){if(c.type==="list-item")return R.insertNodes(u,{type:"list-item",children:[{text:""}]},r(u));if(c.type!=="paragraph")return R.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=ek[f];if(w){R.select(u,m),_.isCollapsed(m)||R.delete(u);const h={type:w};w==="heading"?h.level=`${f.length}`:w==="blockquote"&&(h.type="paragraph"),R.setNodes(u,h,r(u)),w==="blockquote"?R.wrapNodes(u,{type:"blockquote",children:[]},r(u)):w==="list-item"&&R.wrapNodes(u,{type:"list",children:[]},r(u));return}else for(const[h,g]of tk){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 R.insertText(u,E,{at:x}),R.setNodes(u,{[g]:!0},{at:x,match:A=>Z.isText(A),split:!0}),R.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&&ue.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,R.unwrapNodes(u,{at:m})):f?(h=!0,R.moveNodes(u,{to:m})):w&&(h=!0,R.moveNodes(u,{to:b.next(m)})),h){R.setNodes(u,{type:"paragraph"});return}}else D.isEditor(y)&&y.children.length===1&&R.setNodes(u,{type:"paragraph"})}i(...l)}},u};{const{isValidSelection:u}=_v();Xe(La(),"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"]]),ak=fu(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(uk,v.normalizeProps(v.guardReactiveProps(t)),null,16),v.createCommentVNode(" 菜单栏 "),v.createVNode(xx)],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"]]),ik=fu(v.defineComponent({__name:"index",props:{initialValue:{type:Array}},setup(e){const t=e;return(n,r)=>(v.openBlock(),v.createBlock(ak,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"]]),sk="2.0.10";function lk(e=zA()){const t=La(),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})}Fv(document.head,r,{childList:!0}),r()}),e}function ck(){const e=La();return v.onMounted(()=>{var o;const t=e.value.parentNode,{tailwindResetStyle:n,elementPlusStyle:r}=((o=globalThis.SmartCore)==null?void 0:o[sk])??{};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:lk()}}const fk=fu(v.defineComponent({__name:"App",props:{initialValue:{type:Array}},emits:["change"],setup(e,{emit:t}){const n=t;return ck(),Sv.on(r=>{n("change",r)}),v.onMounted(()=>{Va.value=La().value.parentNode}),(r,o)=>{const u=ZE;return v.openBlock(),v.createBlock(u,{namespace:"smart"},{default:v.withCtx(()=>[v.createVNode(ik,{"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"]]),dk="smart-docx-editor";function pk(e,t){var n;VA&&!customElements.get(e)&&customElements.define(e,(n=t.prototype)!=null&&n.connectedCallback?t:v.defineCustomElement(t))}pk(dk,fk)})((N1=SmartCore["2.0.10"])==null?void 0:N1.Vue);
|