PageSourceSearch

https://www.gcrindex.org/assets/vendor-BWhtmU2y.js

js gcrindex.org collected 2026-10-02 02:04:00 UTC 358,642 bytes, 49 lines download raw bytes

vendor: 4,184 bytes, lines 1-9
1function Zc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ed={exports:{}},so={},td={exports:{}},A={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Ri=Symbol.for("react.element"),Vm=Symbol.for("react.portal"),bm=Symbol.for("react.fragment"),Wm=Symbol.for("react.strict_mode"),$m=Symbol.for("react.profiler"),jm=Symbol.for("react.provider"),Um=Symbol.for("react.context"),Hm=Symbol.for("react.forward_ref"),Km=Symbol.for("react.suspense"),Jm=Symbol.for("react.memo"),Qm=Symbol.for("react.lazy"),$a=Symbol.iterator;function qm(t){return t===null||typeof t!="object"?null:(t=$a&&t[$a]||t["@@iterator"],typeof t=="function"?t:null)}var nd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},rd=Object.assign,id={};function wr(t,e,n){this.props=t,this.context=e,this.refs=id,this.updater=n||nd}wr.prototype.isReactComponent={};wr.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};wr.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function ld(){}ld.prototype=wr.prototype;function Du(t,e,n){this.props=t,this.context=e,this.refs=id,this.updater=n||nd}var Ru=Du.prototype=new ld;Ru.constructor=Du;rd(Ru,wr.prototype);Ru.isPureReactComponent=!0;var ja=Array.isArray,od=Object.prototype.hasOwnProperty,Pu={current:null},sd={key:!0,ref:!0,__self:!0,__source:!0};function ud(t,e,n){var r,i={},l=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(l=""+e.key),e)od.call(e,r)&&!sd.hasOwnProperty(r)&&(i[r]=e[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var u=Array(s),a=0;a<s;a++)u[a]=arguments[a+2];i.children=u}if(t&&t.defaultProps)for(r in s=t.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Ri,type:t,key:l,ref:o,props:i,_owner:Pu.current}}function Ym(t,e){return{$$typeof:Ri,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function Iu(t){return typeof t=="object"&&t!==null&&t.$$typeof===Ri}function Gm(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var Ua=/\/+/g;function Ao(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Gm(""+t.key):e.toString(36)}function fl(t,e,n,r,i){var l=typeof t;(l==="undefined"||l==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(l){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case Ri:case Vm:o=!0}}if(o)return o=t,i=i(o),t=r===""?"."+Ao(o,0):r,ja(i)?(n="",t!=null&&(n=t.replace(Ua,"$&/")+"/"),fl(i,e,n,"",function(a){return a})):i!=null&&(Iu(i)&&(i=Ym(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Ua,"$&/")+"/")+t)),e.push(i)),1;if(o=0,r=r===""?".":r+":",ja(t))for(var s=0;s<t.length;s++){l=t[s];var u=r+Ao(l,s);o+=fl(l,e,n,u,i)}else if(u=qm(t),typeof u=="function")for(t=u.call(t),s=0;!(l=t.next()).done;)l=l.value,u=r+Ao(l,s++),o+=fl(l,e,n,u,i);else if(l==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return o}function $i(t,e,n){if(t==null)return t;var r=[],i=0;return fl(t,r,"","",function(l){return e.call(n,l,i++)}),r}function Xm(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var Te={current:null},cl={transition:null},Zm={ReactCurrentDispatcher:Te,ReactCurrentBatchConfig:cl,ReactCurrentOwner:Pu};function ad(){throw Error("act(...) is not supported in production builds of React.")}
vendor: 4,305 bytes, lines 9-25
9A.Children={map:$i,forEach:function(t,e,n){$i(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return $i(t,function(){e++}),e},toArray:function(t){return $i(t,function(e){return e})||[]},only:function(t){if(!Iu(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};A.Component=wr;A.Fragment=bm;A.Profiler=$m;A.PureComponent=Du;A.StrictMode=Wm;A.Suspense=Km;A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zm;A.act=ad;A.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=rd({},t.props),i=t.key,l=t.ref,o=t._owner;if(e!=null){if(e.ref!==void 0&&(l=e.ref,o=Pu.current),e.key!==void 0&&(i=""+e.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(u in e)od.call(e,u)&&!sd.hasOwnProperty(u)&&(r[u]=e[u]===void 0&&s!==void 0?s[u]:e[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){s=Array(u);for(var a=0;a<u;a++)s[a]=arguments[a+2];r.children=s}return{$$typeof:Ri,type:t.type,key:i,ref:l,props:r,_owner:o}};A.createContext=function(t){return t={$$typeof:Um,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:jm,_context:t},t.Consumer=t};A.createElement=ud;A.createFactory=function(t){var e=ud.bind(null,t);return e.type=t,e};A.createRef=function(){return{current:null}};A.forwardRef=function(t){return{$$typeof:Hm,render:t}};A.isValidElement=Iu;A.lazy=function(t){return{$$typeof:Qm,_payload:{_status:-1,_result:t},_init:Xm}};A.memo=function(t,e){return{$$typeof:Jm,type:t,compare:e===void 0?null:e}};A.startTransition=function(t){var e=cl.transition;cl.transition={};try{t()}finally{cl.transition=e}};A.unstable_act=ad;A.useCallback=function(t,e){return Te.current.useCallback(t,e)};A.useContext=function(t){return Te.current.useContext(t)};A.useDebugValue=function(){};A.useDeferredValue=function(t){return Te.current.useDeferredValue(t)};A.useEffect=function(t,e){return Te.current.useEffect(t,e)};A.useId=function(){return Te.current.useId()};A.useImperativeHandle=function(t,e,n){return Te.current.useImperativeHandle(t,e,n)};A.useInsertionEffect=function(t,e){return Te.current.useInsertionEffect(t,e)};A.useLayoutEffect=function(t,e){return Te.current.useLayoutEffect(t,e)};A.useMemo=function(t,e){return Te.current.useMemo(t,e)};A.useReducer=function(t,e,n){return Te.current.useReducer(t,e,n)};A.useRef=function(t){return Te.current.useRef(t)};A.useState=function(t){return Te.current.useState(t)};A.useSyncExternalStore=function(t,e,n){return Te.current.useSyncExternalStore(t,e,n)};A.useTransition=function(){return Te.current.useTransition()};A.version="18.3.1";td.exports=A;var zu=td.exports;const TS=Zc(zu);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var eg=zu,tg=Symbol.for("react.element"),ng=Symbol.for("react.fragment"),rg=Object.prototype.hasOwnProperty,ig=eg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,lg={key:!0,ref:!0,__self:!0,__source:!0};function fd(t,e,n){var r,i={},l=null,o=null;n!==void 0&&(l=""+n),e.key!==void 0&&(l=""+e.key),e.ref!==void 0&&(o=e.ref);for(r in e)rg.call(e,r)&&!lg.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:tg,type:t,key:l,ref:o,props:i,_owner:ig.current}}so.Fragment=ng;so.jsx=fd;so.jsxs=fd;ed.exports=so;var MS=ed.exports,Ha={},cd={exports:{}},be={},dd={exports:{}},hd={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(t){function e(M,P){var I=M.length;M.push(P);e:for(;0<I;){var Y=I-1>>>1,ie=M[Y];if(0<i(ie,P))M[Y]=P,M[I]=ie,I=Y;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var P=M[0],I=M.pop();if(I!==P){M[0]=I;e:for(var Y=0,ie=M.length,bi=ie>>>1;Y<bi;){var dn=2*(Y+1)-1,zo=M[dn],hn=dn+1,Wi=M[hn];if(0>i(zo,I))hn<ie&&0>
vendor: 10,252 bytes, lines 25-34
25i(Wi,zo)?(M[Y]=Wi,M[hn]=I,Y=hn):(M[Y]=zo,M[dn]=I,Y=dn);else if(hn<ie&&0>i(Wi,I))M[Y]=Wi,M[hn]=I,Y=hn;else break e}}return P}function i(M,P){var I=M.sortIndex-P.sortIndex;return I!==0?I:M.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;t.unstable_now=function(){return l.now()}}else{var o=Date,s=o.now();t.unstable_now=function(){return o.now()-s}}var u=[],a=[],f=1,c=null,d=3,h=!1,p=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,m=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 v(M){for(var P=n(a);P!==null;){if(P.callback===null)r(a);else if(P.startTime<=M)r(a),P.sortIndex=P.expirationTime,e(u,P);else break;P=n(a)}}function k(M){if(y=!1,v(M),!p)if(n(u)!==null)p=!0,Po(E);else{var P=n(a);P!==null&&Io(k,P.startTime-M)}}function E(M,P){p=!1,y&&(y=!1,m(N),N=-1),h=!0;var I=d;try{for(v(P),c=n(u);c!==null&&(!(c.expirationTime>P)||M&&!et());){var Y=c.callback;if(typeof Y=="function"){c.callback=null,d=c.priorityLevel;var ie=Y(c.expirationTime<=P);P=t.unstable_now(),typeof ie=="function"?c.callback=ie:c===n(u)&&r(u),v(P)}else r(u);c=n(u)}if(c!==null)var bi=!0;else{var dn=n(a);dn!==null&&Io(k,dn.startTime-P),bi=!1}return bi}finally{c=null,d=I,h=!1}}var D=!1,C=null,N=-1,L=5,z=-1;function et(){return!(t.unstable_now()-z<L)}function Or(){if(C!==null){var M=t.unstable_now();z=M;var P=!0;try{P=C(!0,M)}finally{P?Tr():(D=!1,C=null)}}else D=!1}var Tr;if(typeof g=="function")Tr=function(){g(Or)};else if(typeof MessageChannel<"u"){var Wa=new MessageChannel,_m=Wa.port2;Wa.port1.onmessage=Or,Tr=function(){_m.postMessage(null)}}else Tr=function(){S(Or,0)};function Po(M){C=M,D||(D=!0,Tr())}function Io(M,P){N=S(function(){M(t.unstable_now())},P)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(M){M.callback=null},t.unstable_continueExecution=function(){p||h||(p=!0,Po(E))},t.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<M?Math.floor(1e3/M):5},t.unstable_getCurrentPriorityLevel=function(){return d},t.unstable_getFirstCallbackNode=function(){return n(u)},t.unstable_next=function(M){switch(d){case 1:case 2:case 3:var P=3;break;default:P=d}var I=d;d=P;try{return M()}finally{d=I}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(M,P){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var I=d;d=M;try{return P()}finally{d=I}},t.unstable_scheduleCallback=function(M,P,I){var Y=t.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?Y+I:Y):I=Y,M){case 1:var ie=-1;break;case 2:ie=250;break;case 5:ie=1073741823;break;case 4:ie=1e4;break;default:ie=5e3}return ie=I+ie,M={id:f++,callback:P,priorityLevel:M,startTime:I,expirationTime:ie,sortIndex:-1},I>Y?(M.sortIndex=I,e(a,M),n(u)===null&&M===n(a)&&(y?(m(N),N=-1):y=!0,Io(k,I-Y))):(M.sortIndex=ie,e(u,M),p||h||(p=!0,Po(E))),M},t.unstable_shouldYield=et,t.unstable_wrapCallback=function(M){var P=d;return function(){var I=d;d=P;try{return M.apply(this,arguments)}finally{d=I}}}})(hd);dd.exports=hd;var og=dd.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var sg=zu,Ve=og;function x(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var pd=new Set,li={};function _n(t,e){cr(t,e),cr(t+"Capture",e)}function cr(t,e){for(li[t]=e,t=0;t<e.length;t++)pd.add(e[t])}var Mt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cs=Object.prototype.hasOwnProperty,ug=/^[: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]*$/,Ka={},Ja={};function ag(t){return Cs.call(Ja,t)?!0:Cs.call(Ka,t)?!1:ug.test(t)?Ja[t]=!0:(Ka[t]=!0,!1)}function fg(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function cg(t,e,n,r){if(e===null||typeof e>"u"||fg(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Me(t,e,n,r,i,l,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=l,this.removeEmptyString=o}var me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){me[t]=new Me(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];me[e]=new Me(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){me[t]=new Me(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){me[t]=new Me(t,2,!1,t,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(t){me[t]=new Me(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){me[t]=new Me(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){me[t]=new Me(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){me[t]=new Me(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){me[t]=new Me(t,5,!1,t.toLowerCase(),null,!1,!1)});var Au=/[\-:]([a-z])/g;function Lu(t){return t[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(t){var e=t.replace(Au,Lu);me[e]=new Me(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Au,Lu);me[e]=new Me(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Au,Lu);me[e]=new Me(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){me[t]=new Me(t,1,!1,t.toLowerCase(),null,!1,!1)});me.xlinkHref=new Me("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){me[t]=new Me(t,1,!1,t.toLowerCase(),null,!0,!0)});function Fu(t,e,n,r){var i=me.hasOwnProperty(e)?me[e]:null;(i!==null?i.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(cg(e,n,i,r)&&(n=null),r||i===null?ag(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=n===null?i.type===3?!1:"":n:(e=i.attributeName,r=i.attributeNamespace,n===null?t.removeAttribute(e):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var It=sg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ji=Symbol.for("react.element"),Hn=Symbol.for("react.portal"),Kn=Symbol.for("react.fragment"),Bu=Symbol.for("react.strict_mode"),Ns=Symbol.for("react.profiler"),md=Symbol.for("react.provider"),gd=Symbol.for("react.context"),_u=Symbol.for("react.forward_ref"),Es=Symbol.for("react.suspense"),Os=Symbol.for("react.suspense_list"),Vu=Symbol.for("react.memo"),Lt=Symbol.for("react.lazy"),yd=Symbol.for("react.offscreen"),Qa=Symbol.iterator;function Mr(t){return t===null||typeof t!="object"?null:(t=Qa&&t[Qa]||t["@@iterator"],typeof t=="function"?t:null)}var J=Object.assign,Lo;function Br(t){if(Lo===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Lo=e&&e[1]||""}return`
34`+Lo+t}var Fo=!1;function Bo(t,e){if(!t||Fo)return"";Fo=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(a){var r=a}Reflect.construct(t,[],e)}else{try{e.call()}
vendor: 8,548 bytes, lines 34-37
34catch(a){r=a}t.call(e.prototype)}else{try{throw Error()}catch(a){r=a}t()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var i=a.stack.split(`
35`),l=r.stack.split(`
36`),o=i.length-1,s=l.length-1;1<=o&&0<=s&&i[o]!==l[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==l[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==l[s]){var u=`
37`+i[o].replace(" at new "," at ");return t.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",t.displayName)),u}while(1<=o&&0<=s);break}}}finally{Fo=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Br(t):""}function dg(t){switch(t.tag){case 5:return Br(t.type);case 16:return Br("Lazy");case 13:return Br("Suspense");case 19:return Br("SuspenseList");case 0:case 2:case 15:return t=Bo(t.type,!1),t;case 11:return t=Bo(t.type.render,!1),t;case 1:return t=Bo(t.type,!0),t;default:return""}}function Ts(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Kn:return"Fragment";case Hn:return"Portal";case Ns:return"Profiler";case Bu:return"StrictMode";case Es:return"Suspense";case Os:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case gd:return(t.displayName||"Context")+".Consumer";case md:return(t._context.displayName||"Context")+".Provider";case _u:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Vu:return e=t.displayName||null,e!==null?e:Ts(t.type)||"Memo";case Lt:e=t._payload,t=t._init;try{return Ts(t(e))}catch{}}return null}function hg(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ts(e);case 8:return e===Bu?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function ln(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function vd(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function pg(t){var e=vd(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,l.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ui(t){t._valueTracker||(t._valueTracker=pg(t))}function Sd(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=vd(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function El(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Ms(t,e){var n=e.checked;return J({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function qa(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=ln(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function kd(t,e){e=e.checked,e!=null&&Fu(t,"checked",e,!1)}function Ds(t,e){kd(t,e);var n=ln(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Rs(t,e.type,n):e.hasOwnProperty("defaultValue")&&Rs(t,e.type,ln(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Ya(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Rs(t,e,n){(e!=="number"||El(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var _r=Array.isArray;function rr(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+ln(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,r&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function Ps(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(x(91));return J({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Ga(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(x(92));if(_r(n)){if(1<n.length)throw Error(x(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:ln(n)}}function xd(t,e){var n=ln(e.value),r=ln(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function Xa(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function wd(t){switch(t){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 Is(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?wd(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Hi,Cd=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,i)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(Hi=Hi||document.createElement("div"),Hi.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Hi.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function oi(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Hr={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},mg=["Webkit","ms","Moz","O"];Object.keys(Hr).forEach(function(t){mg.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Hr[e]=Hr[t]})});function Nd(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Hr.hasOwnProperty(t)&&Hr[t]?(""+e).trim():e+"px"}function Ed(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Nd(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var gg=J({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 zs(t,e){if(e){if(gg[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(x(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(x(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(x(61))}if(e.style!=null&&typeof e.style!="object")throw Error(x(62))}}function As(t,e){if(t.indexOf("-")===-1)return typeof e.is=="str
37ing";switch(t){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 Ls=null;function bu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Fs=null,ir=null,lr=null;function Za(t){if(t=zi(t)){if(typeof Fs!="function")throw Error(x(280));var e=t.stateNode;e&&(e=ho(e),Fs(t.stateNode,t.type,e))}}function Od(t){ir?lr?lr.push(t):lr=[t]:ir=t}function Td(){if(ir){var t=ir,e=lr;if(lr=ir=null,Za(t),e)for(t=0;t<e.length;t++)Za(e[t])}}function Md(t,e){return t(e)}function Dd(){}var _o=!1;function Rd(t,e,n){if(_o)return t(e,n);_o=!0;try{return Md(t,e,n)}finally{_o=!1,(ir!==null||lr!==null)&&(Dd(),Td())}}function si(t,e){var n=t.stateNode;if(n===null)return null;var r=ho(n);if(r===null)return null;n=r[e];e:switch(e){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)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(x(231,e,typeof n));return n}var Bs=!1;if(Mt)try{var Dr={};Object.defineProperty(Dr,"passive",{get:function(){Bs=!0}}),window.addEventListener("test",Dr,Dr),window.removeEventListener("test",Dr,Dr)}catch{Bs=!1}function yg(t,e,n,r,i,l,o,s,u){var a=Array.prototype.slice.call(arguments,3);try{e.apply(n,a)}catch(f){this.onError(f)}}var Kr=!1,Ol=null,Tl=!1,_s=null,vg={onError:function(t){Kr=!0,Ol=t}};function Sg(t,e,n,r,i,l,o,s,u){Kr=!1,Ol=null,yg.apply(vg,arguments)}function kg(t,e,n,r,i,l,o,s,u){if(Sg.apply(this,arguments),Kr){if(Kr){var a=Ol;Kr=!1,Ol=null}else throw Error(x(198));Tl||(Tl=!0,_s=a)}}function Vn(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function Pd(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function ef(t){if(Vn(t)!==t)throw Error(x(188))}function xg(t){var e=t.alternate;if(!e){if(e=Vn(t),e===null)throw Error(x(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(i===null)break;var l=i.alternate;if(l===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return ef(i),t;if(l===r)return ef(i),e;l=l.sibling}throw Error(x(188))}if(n.return!==r.return)n=i,r=l;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=l;break}if(s===r){o=!0,r=i,n=l;break}s=s.sibling}if(!o){for(s=l.child;s;){if(s===n){o=!0,n=l,r=i;break}if(s===r){o=!0,r=l,n=i;break}s=s.sibling}if(!o)throw Error(x(189))}}if(n.alternate!==r)throw Error(x(190))}if(n.tag!==3)throw Error(x(188));return n.stateNode.current===n?t:e}function Id(t){return t=xg(t),t!==null?zd(t):null}function zd(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=zd(t);if(e!==null)return e;t=t.sibling}return null}var Ad=Ve.unstable_scheduleCallback,tf=Ve.unstable_cancelCallback,wg=Ve.unstable_shouldYield,Cg=Ve.unstable_requestPaint,G=Ve.unstable_now,Ng=Ve.unstable_getCurrentPriorityLevel,Wu=Ve.unstable_ImmediatePriority,Ld=Ve.unstable_UserBlockingPriority,Ml=Ve.unstable_NormalPriority,Eg=Ve.unstable_LowPriority,Fd=Ve.unstable_IdlePriority,uo=null,pt=null;function Og(t){if(pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot(uo,t,void 0,(t.current.flags&128)===128)}catch{}}var ot=Math.clz32?Math.clz32:Dg,Tg=Math.log,Mg=Math.LN2;function Dg(t){return t>>>=0,t===0?32:31-(Tg(t)/Mg|0)|0}var Ki=64,Ji=4194304;function Vr(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Dl(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,l=t.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=Vr(s):(l&=o,l!==0&&(r=Vr(l)))}else o=n&~i,o!==0?r=Vr(o):l!==0&&(r=Vr(l));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,l=e&-e,i>=l||i===16&&(l&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0<e;)n=31-ot(e),i=1<<n,r|=t[n],e&=~i;return r}function Rg(t,e){switch(t){case 1:case 2:case 4:return e+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 e+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 Pg(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,l=t.pendingLanes;0<l;){var o=31-ot(l),s=1<<o,u=i[o];u===-1?(!(s&n)||s&r)&&(i[o]=Rg(s,e)):u<=e&&(t.expiredLanes|=s),l&=~s}}function Vs(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Bd(){var t=Ki;return Ki<<=1,!(Ki&4194240)&&(Ki=64),t}function Vo(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Pi(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-ot(e),t[e]=n}function Ig(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var i=31-ot(n),l=1<<i;e[i]=0,r[i]=-1,t[i]=-1,n&=~l}}function $u(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-ot(n),i=1<<r;i&e|t[r]&e&&(t[r]|=e),n&=~i}}var b=0;function _d(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var Vd,ju,bd,Wd,$d,bs=!1,Qi=[],Jt=null,Qt=null,qt=null,ui=new Map,ai=new Map,Vt=[],zg="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 nf(t,e){switch(t){case"focusin":case"focusout":Jt=null;break;case"dragenter":case"dragleave":Qt=null;break;case"mouseover":case"mouseout":qt=null;break;case"pointerover":case"pointerout":ui.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ai.delete(e.pointerId)}}function Rr(t,e,n,r,i,l){return t===null||t.nativeEvent!==l?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:l,targetContainers:[i]},e!==null&&(e=zi(e),e!==null&&ju(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function Ag(t,e,n,r,i){switch(e){case"focusin":return Jt=Rr(Jt,t,e,n,r,i),!0;case"dragenter":return Qt=Rr(Qt,t,e,n,r,i),!0;case"mouseover":return qt=Rr(qt,t,e,n,r,i),!0;case"pointerover":var l=i.pointerId;return ui.set(l,Rr(ui.get(l)||null,t,e,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,ai.set(l,Rr(ai.get(l)||null,t,e,n,r,i)),!0}return!1}
vendor: 14,387 bytes, line 37
37function jd(t){var e=yn(t.target);if(e!==null){var n=Vn(e);if(n!==null){if(e=n.tag,e===13){if(e=Pd(n),e!==null){t.blockedOn=e,$d(t.priority,function(){bd(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function dl(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Ws(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);Ls=r,n.target.dispatchEvent(r),Ls=null}else return e=zi(n),e!==null&&ju(e),t.blockedOn=n,!1;e.shift()}return!0}function rf(t,e,n){dl(t)&&n.delete(e)}function Lg(){bs=!1,Jt!==null&&dl(Jt)&&(Jt=null),Qt!==null&&dl(Qt)&&(Qt=null),qt!==null&&dl(qt)&&(qt=null),ui.forEach(rf),ai.forEach(rf)}function Pr(t,e){t.blockedOn===e&&(t.blockedOn=null,bs||(bs=!0,Ve.unstable_scheduleCallback(Ve.unstable_NormalPriority,Lg)))}function fi(t){function e(i){return Pr(i,t)}if(0<Qi.length){Pr(Qi[0],t);for(var n=1;n<Qi.length;n++){var r=Qi[n];r.blockedOn===t&&(r.blockedOn=null)}}for(Jt!==null&&Pr(Jt,t),Qt!==null&&Pr(Qt,t),qt!==null&&Pr(qt,t),ui.forEach(e),ai.forEach(e),n=0;n<Vt.length;n++)r=Vt[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<Vt.length&&(n=Vt[0],n.blockedOn===null);)jd(n),n.blockedOn===null&&Vt.shift()}var or=It.ReactCurrentBatchConfig,Rl=!0;function Fg(t,e,n,r){var i=b,l=or.transition;or.transition=null;try{b=1,Uu(t,e,n,r)}finally{b=i,or.transition=l}}function Bg(t,e,n,r){var i=b,l=or.transition;or.transition=null;try{b=4,Uu(t,e,n,r)}finally{b=i,or.transition=l}}function Uu(t,e,n,r){if(Rl){var i=Ws(t,e,n,r);if(i===null)qo(t,e,r,Pl,n),nf(t,r);else if(Ag(i,t,e,n,r))r.stopPropagation();else if(nf(t,r),e&4&&-1<zg.indexOf(t)){for(;i!==null;){var l=zi(i);if(l!==null&&Vd(l),l=Ws(t,e,n,r),l===null&&qo(t,e,r,Pl,n),l===i)break;i=l}i!==null&&r.stopPropagation()}else qo(t,e,r,null,n)}}var Pl=null;function Ws(t,e,n,r){if(Pl=null,t=bu(r),t=yn(t),t!==null)if(e=Vn(t),e===null)t=null;else if(n=e.tag,n===13){if(t=Pd(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return Pl=t,null}function Ud(t){switch(t){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(Ng()){case Wu:return 1;case Ld:return 4;case Ml:case Eg:return 16;case Fd:return 536870912;default:return 16}default:return 16}}var $t=null,Hu=null,hl=null;function Hd(){if(hl)return hl;var t,e=Hu,n=e.length,r,i="value"in $t?$t.value:$t.textContent,l=i.length;for(t=0;t<n&&e[t]===i[t];t++);var o=n-t;for(r=1;r<=o&&e[n-r]===i[l-r];r++);return hl=i.slice(t,1<r?1-r:void 0)}function pl(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function qi(){return!0}function lf(){return!1}function We(t){function e(n,r,i,l,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=l,this.target=o,this.currentTarget=null;for(var s in t)t.hasOwnProperty(s)&&(n=t[s],this[s]=n?n(l):l[s]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?qi:lf,this.isPropagationStopped=lf,this}return J(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=qi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=qi)},persist:function(){},isPersistent:qi}),e}var Cr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ku=We(Cr),Ii=J({},Cr,{view:0,detail:0}),_g=We(Ii),bo,Wo,Ir,ao=J({},Ii,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ju,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ir&&(Ir&&t.type==="mousemove"?(bo=t.screenX-Ir.screenX,Wo=t.screenY-Ir.screenY):Wo=bo=0,Ir=t),bo)},movementY:function(t){return"movementY"in t?t.movementY:Wo}}),of=We(ao),Vg=J({},ao,{dataTransfer:0}),bg=We(Vg),Wg=J({},Ii,{relatedTarget:0}),$o=We(Wg),$g=J({},Cr,{animationName:0,elapsedTime:0,pseudoElement:0}),jg=We($g),Ug=J({},Cr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Hg=We(Ug),Kg=J({},Cr,{data:0}),sf=We(Kg),Jg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qg={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"},qg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yg(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=qg[t])?!!e[t]:!1}function Ju(){return Yg}var Gg=J({},Ii,{key:function(t){if(t.key){var e=Jg[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=pl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Qg[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ju,charCode:function(t){return t.type==="keypress"?pl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?pl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Xg=We(Gg),Zg=J({},ao,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uf=We(Zg),ey=J({},Ii,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ju}),ty=We(ey),ny=J({},Cr,{propertyName:0,elapsedTime:0,pseudoElement:0}),ry=We(ny),iy=J({},ao,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),ly=We(iy),oy=[9,13,27,32],Qu=Mt&&"CompositionEvent"in window,Jr=null;Mt&&"documentMode"in document&&(Jr=document.documentMode);var sy=Mt&&"TextEvent"in window&&!Jr,Kd=Mt&&(!Qu||Jr&&8<Jr&&11>=Jr),af=" ",ff=!1;function Jd(t,e){switch(t){case"keyup":return oy.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Jn=!1;function uy(t,e){switch(t){case"compositionend":return Qd(e);case"keypress":return e.which!==32?null:(ff=!0,af);case"textInput":return t=e.data,t===af&&ff?null:t;default:return null}}function ay(t,e){if(Jn)return t==="compositionend"||!Qu&&Jd(t,e)?(t=Hd(),hl=Hu=$t=null,Jn=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Kd&&e.locale!=="ko"?null:e.data;default:return null}}var fy={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 cf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!fy[t.type]:e==="textarea"}function qd(t,e,n,r){Od(r),e=Il(e,"onChange"),0<e.length&&(n=new Ku("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var Qr=null,ci=null;function cy(t){oh(t,0)}function fo(t){var e=Yn(t);if(Sd(e))return t}function dy(t,e){if(t==="change")return e}var Yd=!1;if(Mt){var jo;if(Mt){var Uo="oninput"in document;if(!Uo){var df=document.createElement("div");df.setAttribute("oninput","return;"),Uo=typeof df.oninput=="function"}jo=Uo}else jo=!1;Yd=jo&&(!document.documentMode||9<document.documentMode)}function hf(){Qr&&(Qr.detachEvent("onpropertychange",Gd),ci=Qr=null)}function Gd(t){if(t.propertyName==="value"&&fo(ci)){var e=[];qd(e,ci,t,bu(t)),Rd(cy,e)}}function hy(t,e,n){t==="focusin"?(hf(),Qr=e,ci=n,Qr.attachEvent("onpropertychange",Gd)):t==="focusout"&&hf()}function py(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return fo(ci)}function my(t,e){if(t==="click")return fo(e)}function gy(t,e){if(t==="input"||t==="change")return fo(e)}function yy(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ut=typeof Object.is=="function"?Object.is:yy;function di(t,e){if(ut(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Cs.call(e,i)||!ut(t[i],e[i]))return!1}return!0}function pf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function mf(t,e){var n=pf(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=pf(n)}}function Xd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Xd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Zd(){for(var t=window,e=El();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=El(t.document)}return e}function qu(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function vy(t){var e=Zd(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&Xd(n.ownerDocument.documentElement,n)){if(r!==null&&qu(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=n.textContent.length,l=Math.min(r.start,i);r=r.end===void 0?l:Math.min(r.end,i),!t.extend&&l>r&&(i=r,r=l,l=i),i=mf(n,l);var o=mf(n,r);i&&o&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),l>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var Sy=Mt&&"documentMode"in document&&11>=document.documentMode,Qn=null,$s=null,qr=null,js=!1;function gf(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;js||Qn==null||Qn!==El(r)||(r=Qn,"selectionStart"in r&&qu(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}),qr&&di(qr,r)||(qr=r,r=Il($s,"onSelect"),0<r.length&&(e=new Ku("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=Qn)))}function Yi(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var qn={animationend:Yi("Animation","AnimationEnd"),animationiteration:Yi("Animation","AnimationIteration"),animationstart:Yi("Animation","AnimationStart"),transitionend:Yi("Transition","TransitionEnd")},Ho={},eh={};Mt&&(eh=document.createElement("div").style,"AnimationEvent"in window||(delete qn.animationend.animation,delete qn.animationiteration.animation,delete qn.animationstart.animation),"TransitionEvent"in window||delete qn.transitionend.transition);function co(t){if(Ho[t])return Ho[t];if(!qn[t])return t;var e=qn[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in eh)return Ho[t]=e[n];return t}var th=co("animationend"),nh=co("animationiteration"),rh=co("animationstart"),ih=co("transitionend"),lh=new Map,yf="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 un(t,e){lh.set(t,e),_n(e,[t])}for(var Ko=0;Ko<yf.length;Ko++){var Jo=yf[Ko],ky=Jo.toLowerCase(),xy=Jo[0].toUpperCase()+Jo.slice(1);
vendor: 4,566 bytes, line 37
37un(ky,"on"+xy)}un(th,"onAnimationEnd");un(nh,"onAnimationIteration");un(rh,"onAnimationStart");un("dblclick","onDoubleClick");un("focusin","onFocus");un("focusout","onBlur");un(ih,"onTransitionEnd");cr("onMouseEnter",["mouseout","mouseover"]);cr("onMouseLeave",["mouseout","mouseover"]);cr("onPointerEnter",["pointerout","pointerover"]);cr("onPointerLeave",["pointerout","pointerover"]);_n("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));_n("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));_n("onBeforeInput",["compositionend","keypress","textInput","paste"]);_n("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));_n("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));_n("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var br="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(" "),wy=new Set("cancel close invalid load scroll toggle".split(" ").concat(br));function vf(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,kg(r,e,void 0,t),t.currentTarget=null}function oh(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],i=r.event;r=r.listeners;e:{var l=void 0;if(e)for(var o=r.length-1;0<=o;o--){var s=r[o],u=s.instance,a=s.currentTarget;if(s=s.listener,u!==l&&i.isPropagationStopped())break e;vf(i,s,a),l=u}else for(o=0;o<r.length;o++){if(s=r[o],u=s.instance,a=s.currentTarget,s=s.listener,u!==l&&i.isPropagationStopped())break e;vf(i,s,a),l=u}}}if(Tl)throw t=_s,Tl=!1,_s=null,t}function $(t,e){var n=e[Qs];n===void 0&&(n=e[Qs]=new Set);var r=t+"__bubble";n.has(r)||(sh(e,t,2,!1),n.add(r))}function Qo(t,e,n){var r=0;e&&(r|=4),sh(n,t,r,e)}var Gi="_reactListening"+Math.random().toString(36).slice(2);function hi(t){if(!t[Gi]){t[Gi]=!0,pd.forEach(function(n){n!=="selectionchange"&&(wy.has(n)||Qo(n,!1,t),Qo(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Gi]||(e[Gi]=!0,Qo("selectionchange",!1,e))}}function sh(t,e,n,r){switch(Ud(e)){case 1:var i=Fg;break;case 4:i=Bg;break;default:i=Uu}n=i.bind(null,e,n,t),i=void 0,!Bs||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),r?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function qo(t,e,n,r,i){var l=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;o=o.return}for(;s!==null;){if(o=yn(s),o===null)return;if(u=o.tag,u===5||u===6){r=l=o;continue e}s=s.parentNode}}r=r.return}Rd(function(){var a=l,f=bu(n),c=[];e:{var d=lh.get(t);if(d!==void 0){var h=Ku,p=t;switch(t){case"keypress":if(pl(n)===0)break e;case"keydown":case"keyup":h=Xg;break;case"focusin":p="focus",h=$o;break;case"focusout":p="blur",h=$o;break;case"beforeblur":case"afterblur":h=$o;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=of;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=bg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=ty;break;case th:case nh:case rh:h=jg;break;case ih:h=ry;break;case"scroll":h=_g;break;case"wheel":h=ly;break;case"copy":case"cut":case"paste":h=Hg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=uf}var y=(e&4)!==0,S=!y&&t==="scroll",m=y?d!==null?d+"Capture":null:d;y=[];for(var g=a,v;g!==null;){v=g;var k=v.stateNode;if(v.tag===5&&k!==null&&(v=k,m!==null&&(k=si(g,m),k!=null&&y.push(pi(g,k,v)))),S)break;g=g.return}0<y.length&&(d=new h(d,p,null,n,f),c.push({event:d,listeners:y}))}}if(!(e&7)){e:{if(d=t==="mouseover"||t==="pointerover",h=t==="mouseout"||t==="pointerout",d&&n!==Ls&&(p=n.relatedTarget||n.fromElement)&&(yn(p)||p[Dt]))break e;if((h||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,h?(p=n.relatedTarget||n.toElement,h=a,p=
vendor: 6,472 bytes, lines 37-38
37p?yn(p):null,p!==null&&(S=Vn(p),p!==S||p.tag!==5&&p.tag!==6)&&(p=null)):(h=null,p=a),h!==p)){if(y=of,k="onMouseLeave",m="onMouseEnter",g="mouse",(t==="pointerout"||t==="pointerover")&&(y=uf,k="onPointerLeave",m="onPointerEnter",g="pointer"),S=h==null?d:Yn(h),v=p==null?d:Yn(p),d=new y(k,g+"leave",h,n,f),d.target=S,d.relatedTarget=v,k=null,yn(f)===a&&(y=new y(m,g+"enter",p,n,f),y.target=v,y.relatedTarget=S,k=y),S=k,h&&p)t:{for(y=h,m=p,g=0,v=y;v;v=bn(v))g++;for(v=0,k=m;k;k=bn(k))v++;for(;0<g-v;)y=bn(y),g--;for(;0<v-g;)m=bn(m),v--;for(;g--;){if(y===m||m!==null&&y===m.alternate)break t;y=bn(y),m=bn(m)}y=null}else y=null;h!==null&&Sf(c,d,h,y,!1),p!==null&&S!==null&&Sf(c,S,p,y,!0)}}e:{if(d=a?Yn(a):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var E=dy;else if(cf(d))if(Yd)E=gy;else{E=py;var D=hy}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(E=my);if(E&&(E=E(t,a))){qd(c,E,n,f);break e}D&&D(t,d,a),t==="focusout"&&(D=d._wrapperState)&&D.controlled&&d.type==="number"&&Rs(d,"number",d.value)}switch(D=a?Yn(a):window,t){case"focusin":(cf(D)||D.contentEditable==="true")&&(Qn=D,$s=a,qr=null);break;case"focusout":qr=$s=Qn=null;break;case"mousedown":js=!0;break;case"contextmenu":case"mouseup":case"dragend":js=!1,gf(c,n,f);break;case"selectionchange":if(Sy)break;case"keydown":case"keyup":gf(c,n,f)}var C;if(Qu)e:{switch(t){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else Jn?Jd(t,n)&&(N="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(Kd&&n.locale!=="ko"&&(Jn||N!=="onCompositionStart"?N==="onCompositionEnd"&&Jn&&(C=Hd()):($t=f,Hu="value"in $t?$t.value:$t.textContent,Jn=!0)),D=Il(a,N),0<D.length&&(N=new sf(N,t,null,n,f),c.push({event:N,listeners:D}),C?N.data=C:(C=Qd(n),C!==null&&(N.data=C)))),(C=sy?uy(t,n):ay(t,n))&&(a=Il(a,"onBeforeInput"),0<a.length&&(f=new sf("onBeforeInput","beforeinput",null,n,f),c.push({event:f,listeners:a}),f.data=C))}oh(c,e)})}function pi(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Il(t,e){for(var n=e+"Capture",r=[];t!==null;){var i=t,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=si(t,n),l!=null&&r.unshift(pi(t,l,i)),l=si(t,e),l!=null&&r.push(pi(t,l,i))),t=t.return}return r}function bn(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Sf(t,e,n,r,i){for(var l=e._reactName,o=[];n!==null&&n!==r;){var s=n,u=s.alternate,a=s.stateNode;if(u!==null&&u===r)break;s.tag===5&&a!==null&&(s=a,i?(u=si(n,l),u!=null&&o.unshift(pi(n,u,s))):i||(u=si(n,l),u!=null&&o.push(pi(n,u,s)))),n=n.return}o.length!==0&&t.push({event:e,listeners:o})}var Cy=/\r\n?/g,Ny=/\u0000|\uFFFD/g;function kf(t){return(typeof t=="string"?t:""+t).replace(Cy,`
38`).replace(Ny,"")}function Xi(t,e,n){if(e=kf(e),kf(t)!==e&&n)throw Error(x(425))}function zl(){}var Us=null,Hs=null;function Ks(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Js=typeof setTimeout=="function"?setTimeout:void 0,Ey=typeof clearTimeout=="function"?clearTimeout:void 0,xf=typeof Promise=="function"?Promise:void 0,Oy=typeof queueMicrotask=="function"?queueMicrotask:typeof xf<"u"?function(t){return xf.resolve(null).then(t).catch(Ty)}:Js;function Ty(t){setTimeout(function(){throw t})}function Yo(t,e){var n=e,r=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){t.removeChild(i),fi(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);fi(e)}function Yt(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function wf(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var Nr=Math.random().toString(36).slice(2),dt="__reactFiber$"+Nr,mi="__reactProps$"+Nr,Dt="__reactContainer$"+Nr,Qs="__reactEvents$"+Nr,My="__reactListeners$"+Nr,Dy="__reactHandles$"+Nr;function yn(t){var e=t[dt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Dt]||n[dt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=wf(t);t!==null;){if(n=t[dt])return n;t=wf(t)}return e}t=n,n=t.parentNode}return null}function zi(t){return t=t[dt]||t[Dt],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Yn(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(x(33))}function ho(t){return t[mi]||null}var qs=[],Gn=-1;function an(t){return{current:t}}function j(t){0>Gn||(t.current=qs[Gn],qs[Gn]=null,Gn--)}function W(t,e){Gn++,qs[Gn]=t.current,t.current=e}var on={},ke=an(on),Pe=an(!1),Dn=on;function dr(t,e){var n=t.type.contextTypes;if(!n)return on;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=e[l];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function Ie(t){return t=t.childContextTypes,t!=null}function Al(){j(Pe),j(ke)}function Cf(t,e,n){if(ke.current!==on)throw Error(x(168));W(ke,e),W(Pe,n)}function uh(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(x(108,hg(t)||"Unknown",i));return J({},n,r)}function Ll(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||on,Dn=ke.current,W(ke,t),W(Pe,Pe.current),!0}function Nf(t,e,n){var r=t.stateNode;if(!r)throw Error(x(169));n?(t=uh(t,e,Dn),r.__reactInternalMemoizedMergedChildContext=t,j(Pe),j(ke),W(ke,t)):j(Pe),W(Pe,n)}var wt=null,po=!1,Go=!1;function ah(t){wt===null?wt=[t]:wt.push(t)}function Ry(t){po=!0,ah(t)}function fn(){if(!Go&&wt!==null){Go=!0;var t=0,e=b;try{var n=wt;for(b=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}wt=null,po=!1}catch(i){throw wt!==null&&(wt=wt.slice(t+1)),Ad(Wu,fn),i}finally{b=e,Go=!1}}return null}var Xn=[],Zn=0,Fl=null,Bl=0,je=[],Ue=0,Rn=null,Ct=1,Nt="";function pn(t,e){Xn[Zn++]=Bl,Xn[Zn++]=Fl,Fl=t,Bl=e}function fh(t,e,n){je[Ue++]=Ct,je[Ue++]=Nt,je[Ue++]=Rn,Rn=t;var r=Ct;t=Nt;var i=32-ot(r)-1;r&=~(1<<i),n+=1;var l=32-ot(e)+i;
vendor: 27,352 bytes, lines 38-40
38if(30<l){var o=i-i%5;l=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ct=1<<32-ot(e)+i|n<<i|r,Nt=l+t}else Ct=1<<l|n<<i|r,Nt=t}function Yu(t){t.return!==null&&(pn(t,1),fh(t,1,0))}function Gu(t){for(;t===Fl;)Fl=Xn[--Zn],Xn[Zn]=null,Bl=Xn[--Zn],Xn[Zn]=null;for(;t===Rn;)Rn=je[--Ue],je[Ue]=null,Nt=je[--Ue],je[Ue]=null,Ct=je[--Ue],je[Ue]=null}var _e=null,Be=null,U=!1,it=null;function ch(t,e){var n=Ke(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function Ef(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,_e=t,Be=Yt(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,_e=t,Be=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=Rn!==null?{id:Ct,overflow:Nt}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=Ke(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,_e=t,Be=null,!0):!1;default:return!1}}function Ys(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Gs(t){if(U){var e=Be;if(e){var n=e;if(!Ef(t,e)){if(Ys(t))throw Error(x(418));e=Yt(n.nextSibling);var r=_e;e&&Ef(t,e)?ch(r,n):(t.flags=t.flags&-4097|2,U=!1,_e=t)}}else{if(Ys(t))throw Error(x(418));t.flags=t.flags&-4097|2,U=!1,_e=t}}}function Of(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;_e=t}function Zi(t){if(t!==_e)return!1;if(!U)return Of(t),U=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!Ks(t.type,t.memoizedProps)),e&&(e=Be)){if(Ys(t))throw dh(),Error(x(418));for(;e;)ch(t,e),e=Yt(e.nextSibling)}if(Of(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(x(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){Be=Yt(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}Be=null}}else Be=_e?Yt(t.stateNode.nextSibling):null;return!0}function dh(){for(var t=Be;t;)t=Yt(t.nextSibling)}function hr(){Be=_e=null,U=!1}function Xu(t){it===null?it=[t]:it.push(t)}var Py=It.ReactCurrentBatchConfig;function zr(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(x(309));var r=n.stateNode}if(!r)throw Error(x(147,t));var i=r,l=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===l?e.ref:(e=function(o){var s=i.refs;o===null?delete s[l]:s[l]=o},e._stringRef=l,e)}if(typeof t!="string")throw Error(x(284));if(!n._owner)throw Error(x(290,t))}return t}function el(t,e){throw t=Object.prototype.toString.call(e),Error(x(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Tf(t){var e=t._init;return e(t._payload)}function hh(t){function e(m,g){if(t){var v=m.deletions;v===null?(m.deletions=[g],m.flags|=16):v.push(g)}}function n(m,g){if(!t)return null;for(;g!==null;)e(m,g),g=g.sibling;return null}function r(m,g){for(m=new Map;g!==null;)g.key!==null?m.set(g.key,g):m.set(g.index,g),g=g.sibling;return m}function i(m,g){return m=en(m,g),m.index=0,m.sibling=null,m}function l(m,g,v){return m.index=v,t?(v=m.alternate,v!==null?(v=v.index,v<g?(m.flags|=2,g):v):(m.flags|=2,g)):(m.flags|=1048576,g)}function o(m){return t&&m.alternate===null&&(m.flags|=2),m}function s(m,g,v,k){return g===null||g.tag!==6?(g=is(v,m.mode,k),g.return=m,g):(g=i(g,v),g.return=m,g)}function u(m,g,v,k){var E=v.type;return E===Kn?f(m,g,v.props.children,k,v.key):g!==null&&(g.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Lt&&Tf(E)===g.type)?(k=i(g,v.props),k.ref=zr(m,g,v),k.return=m,k):(k=xl(v.type,v.key,v.props,null,m.mode,k),k.ref=zr(m,g,v),k.return=m,k)}function a(m,g,v,k){return g===null||g.tag!==4||g.stateNode.containerInfo!==v.containerInfo||g.stateNode.implementation!==v.implementation?(g=ls(v,m.mode,k),g.return=m,g):(g=i(g,v.children||[]),g.return=m,g)}function f(m,g,v,k,E){return g===null||g.tag!==7?(g=Cn(v,m.mode,k,E),g.return=m,g):(g=i(g,v),g.return=m,g)}function c(m,g,v){if(typeof g=="string"&&g!==""||typeof g=="number")return g=is(""+g,m.mode,v),g.return=m,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case ji:return v=xl(g.type,g.key,g.props,null,m.mode,v),v.ref=zr(m,null,g),v.return=m,v;case Hn:return g=ls(g,m.mode,v),g.return=m,g;case Lt:var k=g._init;return c(m,k(g._payload),v)}if(_r(g)||Mr(g))return g=Cn(g,m.mode,v,null),g.return=m,g;el(m,g)}return null}function d(m,g,v,k){var E=g!==null?g.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return E!==null?null:s(m,g,""+v,k);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ji:return v.key===E?u(m,g,v,k):null;case Hn:return v.key===E?a(m,g,v,k):null;case Lt:return E=v._init,d(m,g,E(v._payload),k)}if(_r(v)||Mr(v))return E!==null?null:f(m,g,v,k,null);el(m,v)}return null}function h(m,g,v,k,E){if(typeof k=="string"&&k!==""||typeof k=="number")return m=m.get(v)||null,s(g,m,""+k,E);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case ji:return m=m.get(k.key===null?v:k.key)||null,u(g,m,k,E);case Hn:return m=m.get(k.key===null?v:k.key)||null,a(g,m,k,E);case Lt:var D=k._init;return h(m,g,v,D(k._payload),E)}if(_r(k)||Mr(k))return m=m.get(v)||null,f(g,m,k,E,null);el(g,k)}return null}function p(m,g,v,k){for(var E=null,D=null,C=g,N=g=0,L=null;C!==null&&N<v.length;N++){C.index>N?(L=C,C=null):L=C.sibling;var z=d(m,C,v[N],k);if(z===null){C===null&&(C=L);break}t&&C&&z.alternate===null&&e(m,C),g=l(z,g,N),D===null?E=z:D.sibling=z,D=z,C=L}if(N===v.length)return n(m,C),U&&pn(m,N),E;if(C===null){for(;N<v.length;N++)C=c(m,v[N],k),C!==null&&(g=l(C,g,N),D===null?E=C:D.sibling=C,D=C);return U&&pn(m,N),E}for(C=r(m,C);N<v.length;N++)L=h(C,m,N,v[N],k),L!==null&&(t&&L.alternate!==null&&C.delete(L.key===null?N:L.key),g=l(L,g,N),D===null?E=L:D.sibling=L,D=L);return t&&C.forEach(function(et){return e(m,et)}),U&&pn(m,N),E}function y(m,g,v,k){var E=Mr(v);if(typeof E!="function")throw Error(x(150));if(v=E.call(v),v==null)throw Error(x(151));for(var D=E=null,C=g,N=g=0,L=null,z=v.next();C!==null&&!z.done;N++,z=v.next()){C.index>N?(L=C,C=null):L=C.sibling;var et=d(m,C,z.value,k);if(et===null){C===null&&(C=L);break}t&&C&&et.alternate===null&&e(m,C),g=l(et,g,N),D===null?E=et:D.sibling=et,D=et,C=L}if(z.done)return n(m,C),U&&pn(m,N),E;if(C===null){for(;!z.done;N++,z=v.next())z=c(m,z.value,k),z!==null&&(g=l(z,g,N),D===null?E=z:D.sibling=z,D=z);return U&&pn(m,N),E}for(C=r(m,C);!z.done;N++,z=v.next())z=h(C,m,N,z.value,k),z!==null&&(t&&z.alternate!==null&&C.delete(z.key===null?N:z.key),g=l(z,g,N),D===null?E=z:D.sibling=z,D=z);return t&&C.forEach(function(Or){return e(m,Or)}),U&&pn(m,N),E}function S(m,g,v,k){if(typeof v=="object"&&v!==null&&v.type===Kn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ji:e:{for(var E=v.key,D=g;D!==null;){if(D.key===E){if(E=v.type,E===Kn){if(D.tag===7){n(m,D.sibling),g=i(D,v.props.children),g.return=m,m=g;break e}}else if(D.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Lt&&Tf(E)===D.type){n(m,D.sibling),g=i(D,v.props),g.ref=zr(m,D,v),g.return=m,m=g;break e}n(m,D);break}else e(m,D);D=D.sibling}v.type===Kn?(g=Cn(v.props.children,m.mode,k,v.key),g.return=m,m=g):(k=xl(v.type,v.key,v.props,null,m.mode,k),k.ref=zr(m,g,v),k.return=m,m=k)}return o(m);case Hn:e:{for(D=v.key;g!==null;){if(g.key===D)if(g.tag===4&&g.stateNode.containerInfo===v.containerInfo&&g.stateNode.implementation===v.implementation){n(m,g.sibling),g=i(g,v.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else e(m,g);g=g.sibling}g=ls(v,m.mode,k),g.return=m,m=g}return o(m);case Lt:return D=v._init,S(m,g,D(v._payload),k)}if(_r(v))return p(m,g,v,k);if(Mr(v))return y(m,g,v,k);el(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,g!==null&&g.tag===6?(n(m,g.sibling),g=i(g,v),g.return=m,m=g):(n(m,g),g=is(v,m.mode,k),g.return=m,m=g),o(m)):n(m,g)}return S}var pr=hh(!0),ph=hh(!1),_l=an(null),Vl=null,er=null,Zu=null;function ea(){Zu=er=Vl=null}function ta(t){var e=_l.current;j(_l),t._currentValue=e}function Xs(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function sr(t,e){Vl=t,Zu=er=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Re=!0),t.firstContext=null)}function Xe(t){var e=t._currentValue;if(Zu!==t)if(t={context:t,memoizedValue:e,next:null},er===null){if(Vl===null)throw Error(x(308));er=t,Vl.dependencies={lanes:0,firstContext:t}}else er=er.next=t;return e}var vn=null;function na(t){vn===null?vn=[t]:vn.push(t)}function mh(t,e,n,r){var i=e.interleaved;return i===null?(n.next=n,na(e)):(n.next=i.next,i.next=n),e.interleaved=n,Rt(t,r)}function Rt(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var Ft=!1;function ra(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function gh(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Ot(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Gt(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,B&2){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,Rt(t,n)}return i=r.interleaved,i===null?(e.next=e,na(r)):(e.next=i.next,i.next=e),r.interleaved=e,Rt(t,n)}function ml(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,$u(t,n)}}function Mf(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=o:l=l.next=o,n=n.next}while(n!==null);l===null?i=l=e:l=l.next=e}else i=l=e;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function bl(t,e,n,r){var i=t.updateQueue;Ft=!1;var l=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var u=s,a=u.next;u.next=null,o===null?l=a:o.next=a,o=u;var f=t.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==o&&(s===null?f.firstBaseUpdate=a:s.next=a,f.lastBaseUpdate=u))}if(l!==null){var c=i.baseState;o=0,f=a=u=null,s=l;do{var d=s.lane,h=s.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=t,y=s;switch(d=e,h=n,y.tag){case 1:if(p=y.payload,typeof p=="function"){c=p.call(h,c,d);break e}c=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=y.payload,d=typeof p=="function"?p.call(h,c,d):p,d==null)break e;c=J({},c,d);break e;case 2:Ft=!0}}s.callback!==null&&s.lane!==0&&(t.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(a=f=h,u=c):f=f.next=h,o|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(u=c),i.baseState=u,i.firstBaseUpdate=a,i.lastBaseUpdate=f,e=i.shared.interleaved,e!==null){i=e;do o|=i.lane,i=i.next;while(i!==e)}else l===null&&(i.shared.lanes=0);In|=o,t.lanes=o,t.memoizedState=c}}function Df(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(x(191,i));i.call(r)}}}var Ai={},mt=an(Ai),gi=an(Ai),yi=an(Ai);function Sn(t){if(t===Ai)throw Error(x(174));return t}function ia(t,e){switch(W(yi,e),W(gi,t),W(mt,Ai),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Is(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Is(e,t)}j(mt),W(mt,e)}function mr(){j(mt),j(gi),j(yi)}function yh(t){Sn(yi.current);var e=Sn(mt.current),n=Is(e,t.type);e!==n&&(W(gi,t),W(mt,n))}function la(t){gi.current===t&&(j(mt),j(gi))}var H=an(0);function Wl(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Xo=[];function oa(){for(var t=0;t<Xo.length;t++)Xo[t]._workInProgressVersionPrimary=null;Xo.length=0}var gl=It.ReactCurrentDispatcher,Zo=It.ReactCurrentBatchConfig,Pn=0,K=null,ee=null,le=null,$l=!1,Yr=!1,vi=0,Iy=0;function ge(){throw Error(x(321))}function sa(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!ut(t[n],e[n]))return!1;return!0}function ua(t,e,n,r,i,l){if(Pn=l,K=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,gl.current=t===null||t.memoizedState===null?Fy:By,t=n(r,i),Yr){l=0;do{if(Yr=!1,vi=0,25<=l)throw Error(x(301));l+=1,le=ee=null,e.updateQueue=null,gl.current=_y,t=n(r,i)}while(Yr)}if(gl.current=jl,e=ee!==null&&ee.next!==null,Pn=0,le=ee=K=null,$l=!1,e)throw Error(x(300));return t}function aa(){var t=vi!==0;return vi=0,t}function ft(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return le===null?K.memoizedState=le=t:le=le.next=t,le}function Ze(){if(ee===null){var t=K.alternate;t=t!==null?t.memoizedState:null}else t=ee.next;var e=le===null?K.memoizedState:le.next;if(e!==null)le=e,ee=t;else{if(t===null)throw Error(x(310));ee=t,t={memoizedState:ee.memoizedState,baseState:ee.baseState,baseQueue:ee.baseQueue,queue:ee.queue,next:null},le===null?K.memoizedState=le=t:le=le.next=t}return le}function Si(t,e){return typeof e=="function"?e(t):e}function es(t){var e=Ze(),n=e.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=t;var r=ee,i=r.baseQueue,l=n.pending;if(l!==null){if(i!==null){var o=i.next;i.next=l.next,l.next=o}r.baseQueue=i=l,n.pending=null}if(i!==null){l=i.next,r=r.baseState;var s=o=null,u=null,a=l;do{var f=a.lane;if((Pn&f)===f)u!==null&&(u=u.next={lane:0,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null}),r=a.hasEagerState?a.eagerState:t(r,a.action);else{var c={lane:f,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null};u===null?(s=u=c,o=r):u=u.next=c,K.lanes|=f,In|=f}a=a.next}while(a!==null&&a!==l);u===null?o=r:u.next=s,ut(r,e.memoizedState)||(Re=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=u,n.lastRenderedState=r}if(t=n.interleaved,t!==null){i=t;do l=i.lane,K.lanes|=l,In|=l,i=i.next;while(i!==t)}else i===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function ts(t){var e=Ze(),n=e.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,l=e.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do l=t(l,o.action),o=o.next;while(o!==i);ut(l,e.memoizedState)||(Re=!0),e.memoizedState=l,e.baseQueue===null&&(e.baseState=l),n.lastRenderedState=l}return[l,r]}function vh(){}function Sh(t,e){var n=K,r=Ze(),i=e(),l=!ut(r.memoizedState,i);if(l&&(r.memoizedState=i,Re=!0),r=r.queue,fa(wh.bind(null,n,r,t),[t]),r.getSnapshot!==e||l||le!==null&&le.memoizedState.tag&1){if(n.flags|=2048,ki(9,xh.bind(null,n,r,i,e),void 0,null),oe===null)throw Error(x(349));Pn&30||kh(n,e,i)}return i}function kh(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=K.updateQueue,e===null?(e={lastEffect:null,stores:null},K.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function xh(t,e,n,r){e.value=n,e.getSnapshot=r,Ch(e)&&Nh(t)}function wh(t,e,n){return n(function(){Ch(e)&&Nh(t)})}function Ch(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!ut(t,n)}catch{return!0}}function Nh(t){var e=Rt(t,1);e!==null&&st(e,t,1,-1)}function Rf(t){var e=ft();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Si,lastRenderedState:t},e.queue=t,t=t.dispatch=Ly.bind(null,K,t),[e.memoizedState,t]}function ki(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=K.updateQueue,e===null?(e={lastEffect:null,stores:null},K.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function Eh(){return Ze().memoizedState}function yl(t,e,n,r){var i=ft();K.flags|=t,i.memoizedState=ki(1|e,n,void 0,r===void 0?null:r)}function mo(t,e,n,r){var i=Ze();r=r===void 0?null:r;var l=void 0;if(ee!==null){var o=ee.memoizedState;if(l=o.destroy,r!==null&&sa(r,o.deps)){i.memoizedState=ki(e,n,l,r);return}}K.flags|=t,i.memoizedState=ki(1|e,n,l,r)}function Pf(t,e){return yl(8390656,8,t,e)}function fa(t,e){return mo(2048,8,t,e)}function Oh(t,e){return mo(4,2,t,e)}function Th(t,e){return mo(4,4,t,e)}function Mh(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Dh(t,e,n){return n=n!=null?n.concat([t]):null,mo(4,4,Mh.bind(null,e,t),n)}function ca(){}function Rh(t,e){var n=Ze();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&sa(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function Ph(t,e){var n=Ze();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&sa(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function Ih(t,e,n){return Pn&21?(ut(n,e)||(n=Bd(),K.lanes|=n,In|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,Re=!0),t.memoizedState=n)}function zy(t,e){var n=b;b=n!==0&&4>n?n:4,t(!0);var r=Zo.transition;Zo.transition={};try{t(!1),e()}finally{b=n,Zo.transition=r}}function zh(){return Ze().memoizedState}function Ay(t,e,n){var r=Zt(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ah(t))Lh(e,n);else if(n=mh(t,e,n,r),n!==null){var i=Ne();st(n,t,r,i),Fh(n,e,r)}}function Ly(t,e,n){var r=Zt(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ah(t))Lh(e,i);else{var l=t.alternate;if(t.lanes===0&&(l===null||l.lanes===0)&&(l=e.lastRenderedReducer,l!==null))try{var o=e.lastRenderedState,s=l(o,n);if(i.hasEagerState=!0,i.eagerState=s,ut(s,o)){var u=e.interleaved;u===null?(i.next=i,na(e)):(i.next=u.next,u.next=i),e.interleaved=i;return}}catch{}finally{}n=mh(t,e,i,r),n!==null&&(i=Ne(),st(n,t,r,i),Fh(n,e,r))}}function Ah(t){var e=t.alternate;return t===K||e!==null&&e===K}function Lh(t,e){Yr=$l=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Fh(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,$u(t,n)}}var jl={readContext:Xe,useCallback:ge,useContext:ge,useEffect:ge,useImperativeHandle:ge,useInsertionEffect:ge,useLayoutEffect:ge,useMemo:ge,useReducer:ge,useRef:ge,useState:ge,useDebugValue:ge,useDeferredValue:ge,useTransition:ge,useMutableSource:ge,useSyncExternalStore:ge,useId:ge,unstable_isNewReconciler:!1},Fy={readContext:Xe,useCallback:function(t,e){return ft().memoizedState=[t,e===void 0?null:e],t},useContext:Xe,useEffect:Pf,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,yl(4194308,4,Mh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return yl(4194308,4,t,e)},useInsertionEffect:function(t,e){return yl(4,2,t,e)},useMemo:function(t,e){var n=ft();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=ft();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=Ay.bind(null,K,t),[r.memoizedState,t]},useRef:function(t){var e=ft();return t={current:t},e.memoizedState=t},useState:Rf,useDebugValue:ca,useDeferredValue:function(t){return ft().memoizedState=t},useTransition:function(){var t=Rf(!1),e=t[0];return t=zy.bind(null,t[1]),ft().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=K,i=ft();if(U){if(n===void 0)throw Error(x(407));n=n()}else{if(n=e(),oe===null)throw Error(x(349));Pn&30||kh(r,e,n)}i.memoizedState=n;var l={value:n,getSnapshot:e};return i.queue=l,Pf(wh.bind(null,r,l,t),[t]),r.flags|=2048,ki(9,xh.bind(null,r,l,n,e),void 0,null),n},useId:function(){var t=ft(),e=oe.identifierPrefix;if(U){var n=Nt,r=Ct;n=(r&~(1<<32-ot(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=vi++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=Iy++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},By={readContext:Xe,useCallback:Rh,useContext:Xe,useEffect:fa,useImperativeHandle:Dh,useInsertionEffect:Oh,useLayoutEffect:Th,useMemo:Ph,useReducer:es,useRef:Eh,useState:function(){return es(Si)},useDebugValue:ca,useDeferredValue:function(t){var e=Ze();return Ih(e,ee.memoizedState,t)},useTransition:function(){var t=es(Si)[0],e=Ze().memoizedState;return[t,e]},useMutableSource:vh,useSyncExternalStore:Sh,useId:zh,unstable_isNewReconciler:!1},_y={readContext:Xe,useCallback:Rh,useContext:Xe,useEffect:fa,useImperativeHandle:Dh,useInsertionEffect:Oh,useLayoutEffect:Th,useMemo:Ph,useReducer:ts,useRef:Eh,useState:function(){return ts(Si)},useDebugValue:ca,useDeferredValue:function(t){var e=Ze();return ee===null?e.memoizedState=t:Ih(e,ee.memoizedState,t)},useTransition:function(){var t=ts(Si)[0],e=Ze().memoizedState;return[t,e]},useMutableSource:vh,useSyncExternalStore:Sh,useId:zh,unstable_isNewReconciler:!1};function nt(t,e){if(t&&t.defaultProps){e=J({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function Zs(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:J({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var go={isMounted:function(t){return(t=t._reactInternals)?Vn(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=Ne(),i=Zt(t),l=Ot(r,i);l.payload=e,n!=null&&(l.callback=n),e=Gt(t,l,i),e!==null&&(st(e,t,i,r),ml(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=Ne(),i=Zt(t),l=Ot(r,i);l.tag=1,l.payload=e,n!=null&&(l.callback=n),e=Gt(t,l,i),e!==null&&(st(e,t,i,r),ml(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ne(),r=Zt(t),i=Ot(n,r);i.tag=2,e!=null&&(i.callback=e),e=Gt(t,i,r),e!==null&&(st(e,t,r,n),ml(e,t,r))}};function If(t,e,n,r,i,l,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,l,o):e.prototype&&e.prototype.isPureReactComponent?!di(n,r)||!di(i,l):!0}function Bh(t,e,n){var r=!1,i=on,l=e.contextType;return typeof l=="object"&&l!==null?l=Xe(l):(i=Ie(e)?Dn:ke.current,r=e.contextTypes,l=(r=r!=null)?dr(t,i):on),e=new e(n,l),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=go,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=l),e}function zf(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&go.enqueueReplaceState(e,e.state,null)}function eu(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs={},ra(t);var l=e.contextType;typeof l=="object"&&l!==null?i.context=Xe(l):(l=Ie(e)?Dn:ke.current,i.context=dr(t,l)),i.state=t.memoizedState,l=e.getDerivedStateFromProps,typeof l=="function"&&(Zs(t,e,l,n),i.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(e=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),e!==i.state&&go.enqueueReplaceState(i,i.state,null),bl(t,n,i,r),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308)}function gr(t,e){try{var n="",r=e;do n+=dg(r),r=r.return;while(r);var i=n}catch(l){i=`
39Error generating stack: `+l.message+`
40`+l.stack}return{value:t,source:e,stack:i,digest:null}}function ns(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function tu(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var Vy=typeof WeakMap=="function"?WeakMap:Map;function _h(t,e,n){n=Ot(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Hl||(Hl=!0,cu=r),tu(t,e)},n}function Vh(t,e,n){n=Ot(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var i=e.value;n.payload=function(){return r(i)},n.callback=function(){tu(t,e)}}var l=t.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){tu(t,e),typeof r!="function"&&(Xt===null?Xt=new Set([this]):Xt.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),n}function Af(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new Vy;var i=new Set;r.set(e,i)}else i=r.get(e),i===void 0&&(i=new Set,r.set(e,i));i.has(n)||(i.add(n),t=Zy.bind(null,t,e,n),e.then(t,t))}function Lf(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function Ff(t,e,n,r,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=Ot(-1,1),e.tag=2,Gt(n,e,1))),n.lanes|=1),t)}var by=It.ReactCurrentOwner,Re=!1;function Ce(t,e,n,r){e.child=t===null?ph(e,null,n,r):pr(e,t.child,n,r)}function Bf(t,e,n,r,i){n=n.render;var l=e.ref;return sr(e,i),r=ua(t,e,n,r,l,i),n=aa(),t!==null&&!Re?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Pt(t,e,i)):(U&&n&&Yu(e),e.flags|=1,Ce(t,e,r,i),e.child)}function _f(t,e,n,r,i){if(t===null){var l=n.type;return typeof l=="function"&&!Sa(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=l,bh(t,e,l,r,i)):(t=xl(n.type,null,r,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(l=t.child,!(t.lanes&i)){var o=l.memoizedProps;if(n=n.compare,n=n!==null?n:di,n(o,r)&&t.ref===e.ref)return Pt(t,e,i)}return e.flags|=1,t=en(l,r),t.ref=e.ref,t.return=e,e.child=t}function bh(t,e,n,r,i){if(t!==null){var l=t.memoizedProps;if(di(l,r)&&t.ref===e.ref)if(Re=!1,e.pendingProps=r=l,(t.lanes&i)!==0)t.flags&131072&&(Re=!0);else return e.lanes=t.lanes,Pt(t,e,i)}return nu(t,e,n,r,i)}function Wh(t,e,n){var r=e.pendingProps,i=r.children,l=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},W(nr,Le),Le|=n;else{if(!(n&1073741824))return t=l!==null?l.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,W(nr,Le),Le|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=l!==null?l.baseLanes:n,W(nr,Le),Le|=r}else l!==null?(r=l.baseLanes|n,e.memoizedState=null):r=n,W(nr,Le),Le|=r;return Ce(t,e,i,n),e.child}function $h(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}
vendor: 8,013 bytes, line 40
40function nu(t,e,n,r,i){var l=Ie(n)?Dn:ke.current;return l=dr(e,l),sr(e,i),n=ua(t,e,n,r,l,i),r=aa(),t!==null&&!Re?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Pt(t,e,i)):(U&&r&&Yu(e),e.flags|=1,Ce(t,e,n,i),e.child)}function Vf(t,e,n,r,i){if(Ie(n)){var l=!0;Ll(e)}else l=!1;if(sr(e,i),e.stateNode===null)vl(t,e),Bh(e,n,r),eu(e,n,r,i),r=!0;else if(t===null){var o=e.stateNode,s=e.memoizedProps;o.props=s;var u=o.context,a=n.contextType;typeof a=="object"&&a!==null?a=Xe(a):(a=Ie(n)?Dn:ke.current,a=dr(e,a));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function";c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==r||u!==a)&&zf(e,o,r,a),Ft=!1;var d=e.memoizedState;o.state=d,bl(e,r,o,i),u=e.memoizedState,s!==r||d!==u||Pe.current||Ft?(typeof f=="function"&&(Zs(e,n,f,r),u=e.memoizedState),(s=Ft||If(e,n,s,r,d,u,a))?(c||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=u),o.props=r,o.state=u,o.context=a,r=s):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{o=e.stateNode,gh(t,e),s=e.memoizedProps,a=e.type===e.elementType?s:nt(e.type,s),o.props=a,c=e.pendingProps,d=o.context,u=n.contextType,typeof u=="object"&&u!==null?u=Xe(u):(u=Ie(n)?Dn:ke.current,u=dr(e,u));var h=n.getDerivedStateFromProps;(f=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==c||d!==u)&&zf(e,o,r,u),Ft=!1,d=e.memoizedState,o.state=d,bl(e,r,o,i);var p=e.memoizedState;s!==c||d!==p||Pe.current||Ft?(typeof h=="function"&&(Zs(e,n,h,r),p=e.memoizedState),(a=Ft||If(e,n,a,r,d,p,u)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,p,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,p,u)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=p),o.props=r,o.state=p,o.context=u,r=a):(typeof o.componentDidUpdate!="function"||s===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),r=!1)}return ru(t,e,n,r,l,i)}function ru(t,e,n,r,i,l){$h(t,e);var o=(e.flags&128)!==0;if(!r&&!o)return i&&Nf(e,n,!1),Pt(t,e,l);r=e.stateNode,by.current=e;var s=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&o?(e.child=pr(e,t.child,null,l),e.child=pr(e,null,s,l)):Ce(t,e,s,l),e.memoizedState=r.state,i&&Nf(e,n,!0),e.child}function jh(t){var e=t.stateNode;e.pendingContext?Cf(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Cf(t,e.context,!1),ia(t,e.containerInfo)}function bf(t,e,n,r,i){return hr(),Xu(i),e.flags|=256,Ce(t,e,n,r),e.child}var iu={dehydrated:null,treeContext:null,retryLane:0};function lu(t){return{baseLanes:t,cachePool:null,transitions:null}}function Uh(t,e,n){var r=e.pendingProps,i=H.current,l=!1,o=(e.flags&128)!==0,s;if((s=o)||(s=t!==null&&t.memoizedState===null?!1:(i&2)!==0),s?(l=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),W(H,i&1),t===null)return Gs(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=r.children,t=r.fallback,l?(r=e.mode,l=e.child,o={mode:"hidden",children:o},!(r&1)&&l!==null?(l.childLanes=0,l.pendingProps=o):l=So(o,r,0,null),t=Cn(t,r,n,null),l.return=e,t.return=e,l.sibling=t,e.child=l,e.child.memoizedState=lu(n),e.memoizedState=iu,t):da(e,o));if(i=t.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Wy(t,e,o,r,s,i,n);if(l){l=r.fallback,o=e.mode,i=t.child,s=i.sibling;var u={mode:"hidden",children:r.children};return!(o&1)&&e.child!==i?(r=e.child,r.childLanes=0,r.pendingProps=u,e.deletions=null):(r=en(i,u),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?l=en(s,l):(l=Cn(l,o,n,null),l.flags|=2),l.return=e,r.return=e,r.sibling=l,e.child=r,r=l,l=e.child,o=t.child.memoizedState,o=o===null?lu(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},l.memoizedState=o,l.childLanes=t.childLanes&~n,e.memoizedState=iu,r}return l=t.child,t=l.sibling,r=en(l,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function da(t,e){return e=So({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function tl(t,e,n,r){return r!==null&&Xu(r),pr(e,t.child,null,n),t=da(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Wy(t,e,n,r,i,l,o){if(n)return e.flags&256?(e.flags&=-257,r=ns(Error(x(422))),tl(t,e,o,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(l=r.fallback,i=e.mode,r=So({mode:"visible",children:r.children},i,0,null),l=Cn(l,i,o,null),l.flags|=2,r.return=e,l.return=e,r.sibling=l,e.child=r,e.mode&1&&pr(e,t.child,null,o),e.child.memoizedState=lu(o),e.memoizedState=iu,l);if(!(e.mode&1))return tl(t,e,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,l=Error(x(419)),r=ns(l,r,void 0),tl(t,e,o,r)}if(s=(o&t.childLanes)!==0,Re||s){if(r=oe,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==l.retryLane&&(l.retryLane=i,Rt(t,i),st(r,t,i,-1))}return va(),r=ns(Error(x(421))),tl(t,e,o,r)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=e0.bind(null,t),i._reactRetry=e,null):(t=l.treeContext,Be=Yt(i.nextSibling),_e=e,U=!0,it=null,t!==null&&(je[Ue++]=Ct,je[Ue++]=Nt,je[Ue++]=Rn,Ct=t.id,Nt=t.overflow,Rn=e),e=da(e,r.children),e.flags|=4096,e)}function Wf(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),Xs(t.return,e,n)}function rs(t,e,n,r,i){var l=t.memoizedState;l===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(l.isBackwards=e,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=i)}function Hh(t,e,n){var r=e.pendingProps,i=r.revealOrder,l=r.tail;if(Ce(t,e,r.children,n),r=H.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Wf(t,n,e);else if(t.tag===19)Wf(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(W(H,r),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&Wl(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),rs(e,!1,i,n,l);break;case"backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&Wl(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}rs(e,!0,n,null,l);break;case"together":rs(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function vl(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}
vendor: 2,795 bytes, line 40
40function Pt(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),In|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(x(153));if(e.child!==null){for(t=e.child,n=en(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=en(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function $y(t,e,n){switch(e.tag){case 3:jh(e),hr();break;case 5:yh(e);break;case 1:Ie(e.type)&&Ll(e);break;case 4:ia(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,i=e.memoizedProps.value;W(_l,r._currentValue),r._currentValue=i;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(W(H,H.current&1),e.flags|=128,null):n&e.child.childLanes?Uh(t,e,n):(W(H,H.current&1),t=Pt(t,e,n),t!==null?t.sibling:null);W(H,H.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return Hh(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),W(H,H.current),r)break;return null;case 22:case 23:return e.lanes=0,Wh(t,e,n)}return Pt(t,e,n)}var Kh,ou,Jh,Qh;Kh=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};ou=function(){};Jh=function(t,e,n,r){var i=t.memoizedProps;if(i!==r){t=e.stateNode,Sn(mt.current);var l=null;switch(n){case"input":i=Ms(t,i),r=Ms(t,r),l=[];break;case"select":i=J({},i,{value:void 0}),r=J({},r,{value:void 0}),l=[];break;case"textarea":i=Ps(t,i),r=Ps(t,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=zl)}zs(n,r);var o;n=null;for(a in i)if(!r.hasOwnProperty(a)&&i.hasOwnProperty(a)&&i[a]!=null)if(a==="style"){var s=i[a];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(li.hasOwnProperty(a)?l||(l=[]):(l=l||[]).push(a,null));for(a in r){var u=r[a];if(s=i!=null?i[a]:void 0,r.hasOwnProperty(a)&&u!==s&&(u!=null||s!=null))if(a==="style")if(s){for(o in s)!s.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&s[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(l||(l=[]),l.push(a,n)),n=u;else a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(l=l||[]).push(a,u)):a==="children"?typeof u!="string"&&typeof u!="number"||(l=l||[]).push(a,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(li.hasOwnProperty(a)?(u!=null&&a==="onScroll"&&$("scroll",t),l||s===u||(l=[])):(l=l||[]).push(a,u))}n&&(l=l||[]).push("style",n);var a=l;
vendor: 4,565 bytes, line 40
40(e.updateQueue=a)&&(e.flags|=4)}};Qh=function(t,e,n,r){n!==r&&(e.flags|=4)};function Ar(t,e){if(!U)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function ye(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function jy(t,e,n){var r=e.pendingProps;switch(Gu(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ye(e),null;case 1:return Ie(e.type)&&Al(),ye(e),null;case 3:return r=e.stateNode,mr(),j(Pe),j(ke),oa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(Zi(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,it!==null&&(pu(it),it=null))),ou(t,e),ye(e),null;case 5:la(e);var i=Sn(yi.current);if(n=e.type,t!==null&&e.stateNode!=null)Jh(t,e,n,r,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(x(166));return ye(e),null}if(t=Sn(mt.current),Zi(e)){r=e.stateNode,n=e.type;var l=e.memoizedProps;switch(r[dt]=e,r[mi]=l,t=(e.mode&1)!==0,n){case"dialog":$("cancel",r),$("close",r);break;case"iframe":case"object":case"embed":$("load",r);break;case"video":case"audio":for(i=0;i<br.length;i++)$(br[i],r);break;case"source":$("error",r);break;case"img":case"image":case"link":$("error",r),$("load",r);break;case"details":$("toggle",r);break;case"input":qa(r,l),$("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},$("invalid",r);break;case"textarea":Ga(r,l),$("invalid",r)}zs(n,l),i=null;for(var o in l)if(l.hasOwnProperty(o)){var s=l[o];o==="children"?typeof s=="string"?r.textContent!==s&&(l.suppressHydrationWarning!==!0&&Xi(r.textContent,s,t),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(l.suppressHydrationWarning!==!0&&Xi(r.textContent,s,t),i=["children",""+s]):li.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&$("scroll",r)}switch(n){case"input":Ui(r),Ya(r,l,!0);break;case"textarea":Ui(r),Xa(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=zl)}r=i,e.updateQueue=r,r!==null&&(e.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=wd(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=o.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=o.createElement(n,{is:r.is}):(t=o.createElement(n),n==="select"&&(o=t,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):t=o.createElementNS(t,n),t[dt]=e,t[mi]=r,Kh(t,e,!1,!1),e.stateNode=t;e:{switch(o=As(n,r),n){case"dialog":$("cancel",t),$("close",t),i=r;break;case"iframe":case"object":case"embed":$("load",t),i=r;break;case"video":case"audio":for(i=0;i<br.length;i++)$(br[i],t);i=r;break;case"source":$("error",t),i=r;break;case"img":case"image":case"link":$("error",t),$("load",t),i=r;break;case"details":$("toggle",t),i=r;break;case"input":qa(t,r),i=Ms(t,r),$("invalid",t);break;case"option":i=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},i=J({},r,{value:void 0}),$("invalid",t);break;case"textarea":Ga(t,r),i=Ps(t,r),$("invalid",t);break;default:i=r}zs(n,i),s=i;for(l in s)if(s.hasOwnProperty(l)){var u=s[l];l==="style"?Ed(t,u):l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Cd(t,u)):l==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&oi(t,u):typeof u=="number"&&oi(t,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(li.hasOwnProperty(l)?u!=null&&l==="onScroll"&&$("scroll",t):u!=null&&Fu(t,l,u,o))}switch(n){case"input":Ui(t),Ya(t,r,!1);break;case"textarea":Ui(t),Xa(t);break;case"option":r.value!=null&&t.setAttribute("value",""+ln(r.value));break;case"select":t.multiple=!!r.multiple,l=r.value,l!=null?rr(t,!!r.multiple,l,!1):r.defaultValue!=null&&rr(t,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(t.onclick=zl)}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&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}
vendor: 29,794 bytes, line 40
40return ye(e),null;case 6:if(t&&e.stateNode!=null)Qh(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(x(166));if(n=Sn(yi.current),Sn(mt.current),Zi(e)){if(r=e.stateNode,n=e.memoizedProps,r[dt]=e,(l=r.nodeValue!==n)&&(t=_e,t!==null))switch(t.tag){case 3:Xi(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Xi(r.nodeValue,n,(t.mode&1)!==0)}l&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[dt]=e,e.stateNode=r}return ye(e),null;case 13:if(j(H),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(U&&Be!==null&&e.mode&1&&!(e.flags&128))dh(),hr(),e.flags|=98560,l=!1;else if(l=Zi(e),r!==null&&r.dehydrated!==null){if(t===null){if(!l)throw Error(x(318));if(l=e.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(x(317));l[dt]=e}else hr(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;ye(e),l=!1}else it!==null&&(pu(it),it=null),l=!0;if(!l)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(r=r!==null,r!==(t!==null&&t.memoizedState!==null)&&r&&(e.child.flags|=8192,e.mode&1&&(t===null||H.current&1?re===0&&(re=3):va())),e.updateQueue!==null&&(e.flags|=4),ye(e),null);case 4:return mr(),ou(t,e),t===null&&hi(e.stateNode.containerInfo),ye(e),null;case 10:return ta(e.type._context),ye(e),null;case 17:return Ie(e.type)&&Al(),ye(e),null;case 19:if(j(H),l=e.memoizedState,l===null)return ye(e),null;if(r=(e.flags&128)!==0,o=l.rendering,o===null)if(r)Ar(l,!1);else{if(re!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(o=Wl(t),o!==null){for(e.flags|=128,Ar(l,!1),r=o.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)l=n,t=r,l.flags&=14680066,o=l.alternate,o===null?(l.childLanes=0,l.lanes=t,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=o.childLanes,l.lanes=o.lanes,l.child=o.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,l.type=o.type,t=o.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return W(H,H.current&1|2),e.child}t=t.sibling}l.tail!==null&&G()>yr&&(e.flags|=128,r=!0,Ar(l,!1),e.lanes=4194304)}else{if(!r)if(t=Wl(o),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Ar(l,!0),l.tail===null&&l.tailMode==="hidden"&&!o.alternate&&!U)return ye(e),null}else 2*G()-l.renderingStartTime>yr&&n!==1073741824&&(e.flags|=128,r=!0,Ar(l,!1),e.lanes=4194304);l.isBackwards?(o.sibling=e.child,e.child=o):(n=l.last,n!==null?n.sibling=o:e.child=o,l.last=o)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=G(),e.sibling=null,n=H.current,W(H,r?n&1|2:n&1),e):(ye(e),null);case 22:case 23:return ya(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Le&1073741824&&(ye(e),e.subtreeFlags&6&&(e.flags|=8192)):ye(e),null;case 24:return null;case 25:return null}throw Error(x(156,e.tag))}function Uy(t,e){switch(Gu(e),e.tag){case 1:return Ie(e.type)&&Al(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return mr(),j(Pe),j(ke),oa(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return la(e),null;case 13:if(j(H),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(x(340));hr()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return j(H),null;case 4:return mr(),null;case 10:return ta(e.type._context),null;case 22:case 23:return ya(),null;case 24:return null;default:return null}}var nl=!1,Se=!1,Hy=typeof WeakSet=="function"?WeakSet:Set,T=null;function tr(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Q(t,e,r)}else n.current=null}function su(t,e,n){try{n()}catch(r){Q(t,e,r)}}var $f=!1;function Ky(t,e){if(Us=Rl,t=Zd(),qu(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var o=0,s=-1,u=-1,a=0,f=0,c=t,d=null;t:for(;;){for(var h;c!==n||i!==0&&c.nodeType!==3||(s=o+i),c!==l||r!==0&&c.nodeType!==3||(u=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(h=c.firstChild)!==null;)d=c,c=h;for(;;){if(c===t)break t;if(d===n&&++a===i&&(s=o),d===l&&++f===r&&(u=o),(h=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=h}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Hs={focusedElem:t,selectionRange:n},Rl=!1,T=e;T!==null;)if(e=T,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,T=t;else for(;T!==null;){e=T;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var y=p.memoizedProps,S=p.memoizedState,m=e.stateNode,g=m.getSnapshotBeforeUpdate(e.elementType===e.type?y:nt(e.type,y),S);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var v=e.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch(k){Q(e,e.return,k)}if(t=e.sibling,t!==null){t.return=e.return,T=t;break}T=e.return}return p=$f,$f=!1,p}function Gr(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var l=i.destroy;i.destroy=void 0,l!==void 0&&su(e,n,l)}i=i.next}while(i!==r)}}function yo(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function uu(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function qh(t){var e=t.alternate;e!==null&&(t.alternate=null,qh(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[dt],delete e[mi],delete e[Qs],delete e[My],delete e[Dy])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Yh(t){return t.tag===5||t.tag===3||t.tag===4}function jf(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Yh(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function au(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=zl));else if(r!==4&&(t=t.child,t!==null))for(au(t,e,n),t=t.sibling;t!==null;)au(t,e,n),t=t.sibling}function fu(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(fu(t,e,n),t=t.sibling;t!==null;)fu(t,e,n),t=t.sibling}var ue=null,rt=!1;function zt(t,e,n){for(n=n.child;n!==null;)Gh(t,e,n),n=n.sibling}function Gh(t,e,n){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount(uo,n)}catch{}switch(n.tag){case 5:Se||tr(n,e);case 6:var r=ue,i=rt;ue=null,zt(t,e,n),ue=r,rt=i,ue!==null&&(rt?(t=ue,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):ue.removeChild(n.stateNode));break;case 18:ue!==null&&(rt?(t=ue,n=n.stateNode,t.nodeType===8?Yo(t.parentNode,n):t.nodeType===1&&Yo(t,n),fi(t)):Yo(ue,n.stateNode));break;case 4:r=ue,i=rt,ue=n.stateNode.containerInfo,rt=!0,zt(t,e,n),ue=r,rt=i;break;case 0:case 11:case 14:case 15:if(!Se&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var l=i,o=l.destroy;l=l.tag,o!==void 0&&(l&2||l&4)&&su(n,e,o),i=i.next}while(i!==r)}zt(t,e,n);break;case 1:if(!Se&&(tr(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Q(n,e,s)}zt(t,e,n);break;case 21:zt(t,e,n);break;case 22:n.mode&1?(Se=(r=Se)||n.memoizedState!==null,zt(t,e,n),Se=r):zt(t,e,n);break;default:zt(t,e,n)}}function Uf(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new Hy),e.forEach(function(r){var i=t0.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function tt(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var l=t,o=e,s=o;e:for(;s!==null;){switch(s.tag){case 5:ue=s.stateNode,rt=!1;break e;case 3:ue=s.stateNode.containerInfo,rt=!0;break e;case 4:ue=s.stateNode.containerInfo,rt=!0;break e}s=s.return}if(ue===null)throw Error(x(160));Gh(l,o,i),ue=null,rt=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(a){Q(i,e,a)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)Xh(e,t),e=e.sibling}function Xh(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(tt(e,t),at(t),r&4){try{Gr(3,t,t.return),yo(3,t)}catch(y){Q(t,t.return,y)}try{Gr(5,t,t.return)}catch(y){Q(t,t.return,y)}}break;case 1:tt(e,t),at(t),r&512&&n!==null&&tr(n,n.return);break;case 5:if(tt(e,t),at(t),r&512&&n!==null&&tr(n,n.return),t.flags&32){var i=t.stateNode;try{oi(i,"")}catch(y){Q(t,t.return,y)}}if(r&4&&(i=t.stateNode,i!=null)){var l=t.memoizedProps,o=n!==null?n.memoizedProps:l,s=t.type,u=t.updateQueue;if(t.updateQueue=null,u!==null)try{s==="input"&&l.type==="radio"&&l.name!=null&&kd(i,l),As(s,o);var a=As(s,l);for(o=0;o<u.length;o+=2){var f=u[o],c=u[o+1];f==="style"?Ed(i,c):f==="dangerouslySetInnerHTML"?Cd(i,c):f==="children"?oi(i,c):Fu(i,f,c,a)}switch(s){case"input":Ds(i,l);break;case"textarea":xd(i,l);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!l.multiple;var h=l.value;h!=null?rr(i,!!l.multiple,h,!1):d!==!!l.multiple&&(l.defaultValue!=null?rr(i,!!l.multiple,l.defaultValue,!0):rr(i,!!l.multiple,l.multiple?[]:"",!1))}i[mi]=l}catch(y){Q(t,t.return,y)}}break;case 6:if(tt(e,t),at(t),r&4){if(t.stateNode===null)throw Error(x(162));i=t.stateNode,l=t.memoizedProps;try{i.nodeValue=l}catch(y){Q(t,t.return,y)}}break;case 3:if(tt(e,t),at(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{fi(e.containerInfo)}catch(y){Q(t,t.return,y)}break;case 4:tt(e,t),at(t);break;case 13:tt(e,t),at(t),i=t.child,i.flags&8192&&(l=i.memoizedState!==null,i.stateNode.isHidden=l,!l||i.alternate!==null&&i.alternate.memoizedState!==null||(ma=G())),r&4&&Uf(t);break;case 22:if(f=n!==null&&n.memoizedState!==null,t.mode&1?(Se=(a=Se)||f,tt(e,t),Se=a):tt(e,t),at(t),r&8192){if(a=t.memoizedState!==null,(t.stateNode.isHidden=a)&&!f&&t.mode&1)for(T=t,f=t.child;f!==null;){for(c=T=f;T!==null;){switch(d=T,h=d.child,d.tag){case 0:case 11:case 14:case 15:Gr(4,d,d.return);break;case 1:tr(d,d.return);var p=d.stateNode;if(typeof p.componentWillUnmount=="function"){r=d,n=d.return;try{e=r,p.props=e.memoizedProps,p.state=e.memoizedState,p.componentWillUnmount()}catch(y){Q(r,n,y)}}break;case 5:tr(d,d.return);break;case 22:if(d.memoizedState!==null){Kf(c);continue}}h!==null?(h.return=d,T=h):Kf(c)}f=f.sibling}e:for(f=null,c=t;;){if(c.tag===5){if(f===null){f=c;try{i=c.stateNode,a?(l=i.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"):(s=c.stateNode,u=c.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,s.style.display=Nd("display",o))}catch(y){Q(t,t.return,y)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=a?"":c.memoizedProps}catch(y){Q(t,t.return,y)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===t)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:tt(e,t),at(t),r&4&&Uf(t);break;case 21:break;default:tt(e,t),at(t)}}function at(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(Yh(n)){var r=n;break e}n=n.return}throw Error(x(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(oi(i,""),r.flags&=-33);var l=jf(t);fu(t,l,i);break;case 3:case 4:var o=r.stateNode.containerInfo,s=jf(t);au(t,s,o);break;default:throw Error(x(161))}}catch(u){Q(t,t.return,u)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Jy(t,e,n){T=t,Zh(t)}function Zh(t,e,n){for(var r=(t.mode&1)!==0;T!==null;){var i=T,l=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||nl;if(!o){var s=i.alternate,u=s!==null&&s.memoizedState!==null||Se;s=nl;var a=Se;if(nl=o,(Se=u)&&!a)for(T=i;T!==null;)o=T,u=o.child,o.tag===22&&o.memoizedState!==null?Jf(i):u!==null?(u.return=o,T=u):Jf(i);for(;l!==null;)T=l,Zh(l),l=l.sibling;T=i,nl=s,Se=a}Hf(t)}else i.subtreeFlags&8772&&l!==null?(l.return=i,T=l):Hf(t)}}function Hf(t){for(;T!==null;){var e=T;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:Se||yo(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!Se)if(n===null)r.componentDidMount();else{var i=e.elementType===e.type?n.memoizedProps:nt(e.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var l=e.updateQueue;l!==null&&Df(e,l,r);break;case 3:var o=e.updateQueue;if(o!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}Df(e,o,n)}break;case 5:var s=e.stateNode;if(n===null&&e.flags&4){n=s;var u=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var a=e.alternate;if(a!==null){var f=a.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&fi(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(x(163))}Se||e.flags&512&&uu(e)}catch(d){Q(e,e.return,d)}}if(e===t){T=null;break}if(n=e.sibling,n!==null){n.return=e.return,T=n;break}T=e.return}}function Kf(t){for(;T!==null;){var e=T;if(e===t){T=null;break}var n=e.sibling;if(n!==null){n.return=e.return,T=n;break}T=e.return}}function Jf(t){for(;T!==null;){var e=T;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{yo(4,e)}catch(u){Q(e,n,u)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var i=e.return;try{r.componentDidMount()}catch(u){Q(e,i,u)}}var l=e.return;try{uu(e)}catch(u){Q(e,l,u)}break;case 5:var o=e.return;try{uu(e)}catch(u){Q(e,o,u)}}}catch(u){Q(e,e.return,u)}if(e===t){T=null;break}var s=e.sibling;if(s!==null){s.return=e.return,T=s;break}T=e.return}}var Qy=Math.ceil,Ul=It.ReactCurrentDispatcher,ha=It.ReactCurrentOwner,Qe=It.ReactCurrentBatchConfig,B=0,oe=null,X=null,he=0,Le=0,nr=an(0),re=0,xi=null,In=0,vo=0,pa=0,Xr=null,De=null,ma=0,yr=1/0,kt=null,Hl=!1,cu=null,Xt=null,rl=!1,jt=null,Kl=0,Zr=0,du=null,Sl=-1,kl=0;function Ne(){return B&6?G():Sl!==-1?Sl:Sl=G()}function Zt(t){return t.mode&1?B&2&&he!==0?he&-he:Py.transition!==null?(kl===0&&(kl=Bd()),kl):(t=b,t!==0||(t=window.event,t=t===void 0?16:Ud(t.type)),t):1}function st(t,e,n,r){if(50<Zr)throw Zr=0,du=null,Error(x(185));Pi(t,n,r),(!(B&2)||t!==oe)&&(t===oe&&(!(B&2)&&(vo|=n),re===4&&bt(t,he)),ze(t,r),n===1&&B===0&&!(e.mode&1)&&(yr=G()+500,po&&fn()))}function ze(t,e){var n=t.callbackNode;Pg(t,e);var r=Dl(t,t===oe?he:0);if(r===0)n!==null&&tf(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&tf(n),e===1)t.tag===0?Ry(Qf.bind(null,t)):ah(Qf.bind(null,t)),Oy(function(){!(B&6)&&fn()}),n=null;else{switch(_d(r)){case 1:n=Wu;break;case 4:n=Ld;break;case 16:n=Ml;break;case 536870912:n=Fd;break;default:n=Ml}n=sp(n,ep.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function ep(t,e){if(Sl=-1,kl=0,B&6)throw Error(x(327));var n=t.callbackNode;if(ur()&&t.callbackNode!==n)return null;var r=Dl(t,t===oe?he:0);if(r===0)return null;if(r&30||r&t.expiredLanes||e)e=Jl(t,r);else{e=r;var i=B;B|=2;var l=np();(oe!==t||he!==e)&&(kt=null,yr=G()+500,wn(t,e));do try{Gy();break}catch(s){tp(t,s)}while(!0);ea(),Ul.current=l,B=i,X!==null?e=0:(oe=null,he=0,e=re)}if(e!==0){if(e===2&&(i=Vs(t),i!==0&&(r=i,e=hu(t,i))),e===1)throw n=xi,wn(t,0),bt(t,r),ze(t,G()),n;if(e===6)bt(t,r);else{if(i=t.current.alternate,!(r&30)&&!qy(i)&&(e=Jl(t,r),e===2&&(l=Vs(t),l!==0&&(r=l,e=hu(t,l))),e===1))throw n=xi,wn(t,0),bt(t,r),ze(t,G()),n;switch(t.finishedWork=i,t.finishedLanes=r,e){case 0:case 1:throw Error(x(345));case 2:mn(t,De,kt);break;case 3:if(bt(t,r),(r&130023424)===r&&(e=ma+500-G(),10<e)){if(Dl(t,0)!==0)break;if(i=t.suspendedLanes,(i&r)!==r){Ne(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=Js(mn.bind(null,t,De,kt),e);break}mn(t,De,kt);break;case 4:if(bt(t,r),(r&4194240)===r)break;for(e=t.eventTimes,i=-1;0<r;){var o=31-ot(r);l=1<<o,o=e[o],o>i&&(i=o),r&=~l}if(r=i,r=G()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Qy(r/1960))-r,10<r){t.timeoutHandle=Js(mn.bind(null,t,De,kt),r);break}mn(t,De,kt);break;case 5:mn(t,De,kt);break;default:throw Error(x(329))}}}return ze(t,G()),t.callbackNode===n?ep.bind(null,t):null}function hu(t,e){var n=Xr;return t.current.memoizedState.isDehydrated&&(wn(t,e).flags|=256),t=Jl(t,e),t!==2&&(e=De,De=n,e!==null&&pu(e)),t}function pu(t){De===null?De=t:De.push.apply(De,t)}function qy(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],l=i.getSnapshot;i=i.value;try{if(!ut(l(),i))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function bt(t,e){for(e&=~pa,e&=~vo,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-ot(e),r=1<<n;t[n]=-1,e&=~r}}function Qf(t){if(B&6)throw Error(x(327));ur();var e=Dl(t,0);if(!(e&1))return ze(t,G()),null;var n=Jl(t,e);if(t.tag!==0&&n===2){var r=Vs(t);r!==0&&(e=r,n=hu(t,r))}if(n===1)throw n=xi,wn(t,0),bt(t,e),ze(t,G()),n;if(n===6)throw Error(x(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,mn(t,De,kt),ze(t,G()),null}function ga(t,e){var n=B;B|=1;try{return t(e)}finally{B=n,B===0&&(yr=G()+500,po&&fn())}}function zn(t){jt!==null&&jt.tag===0&&!(B&6)&&ur();var e=B;B|=1;var n=Qe.transition,r=b;try{if(Qe.transition=null,b=1,t)return t()}finally{b=r,Qe.transition=n,B=e,!(B&6)&&fn()}}function ya(){Le=nr.current,j(nr)}function wn(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,Ey(n)),X!==null)for(n=X.return;n!==null;){var r=n;switch(Gu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Al();break;case 3:mr(),j(Pe),j(ke),oa();break;case 5:la(r);break;case 4:mr();break;case 13:j(H);break;case 19:j(H);break;case 10:ta(r.type._context);break;case 22:case 23:ya()}n=n.return}if(oe=t,X=t=en(t.current,null),he=Le=e,re=0,xi=null,pa=vo=In=0,De=Xr=null,vn!==null){for(e=0;e<vn.length;e++)if(n=vn[e],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,l=n.pending;if(l!==null){var o=l.next;l.next=i,r.next=o}n.pending=r}vn=null}return t}function tp(t,e){do{var n=X;try{if(ea(),gl.current=jl,$l){for(var r=K.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}$l=!1}if(Pn=0,le=ee=K=null,Yr=!1,vi=0,ha.current=null,n===null||n.return===null){re=1,xi=e,X=null;break}e:{var l=t,o=n.return,s=n,u=e;if(e=he,s.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var a=u,f=s,c=f.tag;if(!(f.mode&1)&&(c===0||c===11||c===15)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=Lf(o);if(h!==null){h.flags&=-257,Ff(h,o,s,l,e),h.mode&1&&Af(l,a,e),e=h,u=a;var p=e.updateQueue;if(p===null){var y=new Set;y.add(u),e.updateQueue=y}else p.add(u);break e}else{if(!(e&1)){Af(l,a,e),va();break e}u=Error(x(426))}}else if(U&&s.mode&1){var S=Lf(o);if(S!==null){!(S.flags&65536)&&(S.flags|=256),Ff(S,o,s,l,e),Xu(gr(u,s));break e}}l=u=gr(u,s),re!==4&&(re=2),Xr===null?Xr=[l]:Xr.push(l),l=o;do{switch(l.tag){case 3:l.flags|=65536,e&=-e,l.lanes|=e;var m=_h(l,u,e);Mf(l,m);break e;case 1:s=u;var g=l.type,v=l.stateNode;if(!(l.flags&128)&&(typeof g.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Xt===null||!Xt.has(v)))){l.flags|=65536,e&=-e,l.lanes|=e;var k=Vh(l,s,e);Mf(l,k);break e}}l=l.return}while(l!==null)}ip(n)}catch(E){e=E,X===n&&n!==null&&(X=n=n.return);continue}break}while(!0)}function np(){var t=Ul.current;return Ul.current=jl,t===null?jl:t}function va(){(re===0||re===3||re===2)&&(re=4),oe===null||!(In&268435455)&&!(vo&268435455)||bt(oe,he)}function Jl(t,e){var n=B;B|=2;var r=np();(oe!==t||he!==e)&&(kt=null,wn(t,e));do try{Yy();break}catch(i){tp(t,i)}while(!0);if(ea(),B=n,Ul.current=r,X!==null)throw Error(x(261));return oe=null,he=0,re}function Yy(){for(;X!==null;)rp(X)}function Gy(){for(;X!==null&&!wg();)rp(X)}function rp(t){var e=op(t.alternate,t,Le);t.memoizedProps=t.pendingProps,e===null?ip(t):X=e,ha.current=null}function ip(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=Uy(n,e),n!==null){n.flags&=32767,X=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{re=6,X=null;return}}else if(n=jy(n,e,Le),n!==null){X=n;return}if(e=e.sibling,e!==null){X=e;return}X=e=t}while(e!==null);re===0&&(re=5)}function mn(t,e,n){var r=b,i=Qe.transition;try{Qe.transition=null,b=1,Xy(t,e,n,r)}finally{Qe.transition=i,b=r}return null}function Xy(t,e,n,r){do ur();while(jt!==null);if(B&6)throw Error(x(327));n=t.finishedWork;var i=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(x(177));t.callbackNode=null,t.callbackPriority=0;var l=n.lanes|n.childLanes;if(Ig(t,l),t===oe&&(X=oe=null,he=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||rl||(rl=!0,sp(Ml,function(){return ur(),null})),l=(n.flags&15990)!==0,n.subtreeFlags&15990||l){l=Qe.transition,Qe.transition=null;var o=b;b=1;var s=B;B|=4,ha.current=null,Ky(t,n),Xh(n,t),vy(Hs),Rl=!!Us,Hs=Us=null,t.current=n,Jy(n),Cg(),B=s,b=o,Qe.transition=l}else t.current=n;if(rl&&(rl=!1,jt=t,Kl=i),l=t.pendingLanes,l===0&&(Xt=null),Og(n.stateNode),ze(t,G()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)i=e[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Hl)throw Hl=!1,t=cu,cu=null,t;return Kl&1&&t.tag!==0&&ur(),l=t.pendingLanes,l&1?t===du?Zr++:(Zr=0,du=t):Zr=0,fn(),null}function ur(){if(jt!==null){var t=_d(Kl),e=Qe.transition,n=b;try{if(Qe.transition=null,b=16>t?16:t,jt===null)var r=!1;else{if(t=jt,jt=null,Kl=0,B&6)throw Error(x(331));var i=B;for(B|=4,T=t.current;T!==null;){var l=T,o=l.child;if(T.flags&16){var s=l.deletions;if(s!==null){for(var u=0;u<s.length;u++){var a=s[u];for(T=a;T!==null;){var f=T;switch(f.tag){case 0:case 11:case 15:Gr(8,f,l)}var c=f.child;if(c!==null)c.return=f,T=c;else for(;T!==null;){f=T;var d=f.sibling,h=f.return;if(qh(f),f===a){T=null;break}if(d!==null){d.return=h,T=d;break}T=h}}}var p=l.alternate;if(p!==null){var y=p.child;if(y!==null){p.child=null;do{var S=y.sibling;y.sibling=null,y=S}while(y!==null)}}T=l}}if(l.subtreeFlags&2064&&o!==null)o.return=l,T=o;else e:for(;T!==null;){if(l=T,l.flags&2048)switch(l.tag){case 0:case 11:case 15:Gr(9,l,l.return)}var m=l.sibling;if(m!==null){m.return=l.return,T=m;break e}T=l.return}}var g=t.current;for(T=g;T!==null;){o=T;var v=o.child;if(o.subtreeFlags&2064&&v!==null)v.return=o,T=v;else e:for(o=g;T!==null;){if(s=T,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:yo(9,s)}}catch(E){Q(s,s.return,E)}if(s===o){T=null;break e}var k=s.sibling;if(k!==null){k.return=s.return,T=k;break e}T=s.return}}if(B=i,fn(),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot(uo,t)}catch{}r=!0}return r}finally{b=n,Qe.transition=e}}return!1}function qf(t,e,n){e=gr(n,e),e=_h(t,e,1),t=Gt(t,e,1),e=Ne(),t!==null&&(Pi(t,1,e),ze(t,e))}function Q(t,e,n){if(t.tag===3)qf(t,t,n);else for(;e!==null;){if(e.tag===3){qf(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Xt===null||!Xt.has(r))){t=gr(n,t),t=Vh(e,t,1),e=Gt(e,t,1),t=Ne(),e!==null&&(Pi(e,1,t),ze(e,t));break}}e=e.return}}function Zy(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=Ne(),t.pingedLanes|=t.suspendedLanes&n,oe===t&&(he&n)===n&&(re===4||re===3&&(he&130023424)===he&&500>G()-ma?wn(t,0):pa|=n),ze(t,e)}function lp(t,e){e===0&&(t.mode&1?(e=Ji,Ji<<=1,!(Ji&130023424)&&(Ji=4194304)):e=1);var n=Ne();t=Rt(t,e),t!==null&&(Pi(t,e,n),ze(t,n))}function e0(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),lp(t,n)}function t0(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(x(314))}r!==null&&r.delete(e),lp(t,n)}var op;op=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||Pe.current)Re=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Re=!1,$y(t,e,n);Re=!!(t.flags&131072)}else Re=!1,U&&e.flags&1048576&&fh(e,Bl,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;vl(t,e),t=e.pendingProps;var i=dr(e,ke.current);sr(e,n),i=ua(null,e,r,t,i,n);var l=aa();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Ie(r)?(l=!0,Ll(e)):l=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,ra(e),i.updater=go,e.stateNode=i,i._reactInternals=e,eu(e,r,t,n),e=ru(null,e,r,!0,l,n)):(e.tag=0,U&&l&&Yu(e),Ce(null,e,i,n),e=e.child),e;case 16:r=e.elementType;e:{switch(vl(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=r0(r),t=nt(r,t),i){case 0:e=nu(null,e,r,t,n);break e;case 1:e=Vf(null,e,r,t,n);break e;case 11:e=Bf(null,e,r,t,n);break e;case 14:e=_f(null,e,r,nt(r.type,t),n);break e}throw Error(x(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:nt(r,i),nu(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:nt(r,i),Vf(t,e,r,i,n);case 3:e:{if(jh(e),t===null)throw Error(x(387));r=e.pendingProps,l=e.memoizedState,i=l.element,gh(t,e),bl(e,r,null,n);var o=e.memoizedState;if(r=o.element,l.isDehydrated)if(l={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=l,e.memoizedState=l,e.flags&256){i=gr(Error(x(423)),e),e=bf(t,e,r,n,i);break e}else if(r!==i){i=gr(Error(x(424)),e),e=bf(t,e,r,n,i);break e}else for(Be=Yt(e.stateNode.containerInfo.firstChild),_e=e,U=!0,it=null,n=ph(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(hr(),r===i){e=Pt(t,e,n);break e}Ce(t,e,r,n)}e=e.child}return e;case 5:return yh(e),t===null&&Gs(e),r=e.type,i=e.pendingProps,l=t!==null?t.memoizedProps:null,o=i.children,Ks(r,i)?o=null:l!==null&&Ks(r,l)&&(e.flags|=32),$h(t,e),Ce(t,e,o,n),e.child;case 6:return t===null&&Gs(e),null;case 13:return Uh(t,e,n);case 4:return ia(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=pr(e,null,r,n):Ce(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:nt(r,i),Bf(t,e,r,i,n);case 7:return Ce(t,e,e.pendingProps,n),e.child;case 8:return Ce(t,e,e.pendingProps.children,n),e.child;case 12:return Ce(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,i=e.pendingProps,l=e.memoizedProps,o=i.value,W(_l,r._currentValue),r._currentValue=o,l!==null)if(ut(l.value,o)){if(l.children===i.children&&!Pe.current){e=Pt(t,e,n);break e}}else for(l=e.child,l!==null&&(l.return=e);l!==null;){var s=l.dependencies;if(s!==null){o=l.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(l.tag===1){u=Ot(-1,n&-n),u.tag=2;var a=l.updateQueue;if(a!==null){a=a.shared;var f=a.pending;f===null?u.next=u:(u.next=f.next,f.next=u),a.pending=u}}l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),Xs(l.return,n,e),s.lanes|=n;break}u=u.next}}else if(l.tag===10)o=l.type===e.type?null:l.child;else if(l.tag===18){if(o=l.return,o===null)throw Error(x(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Xs(o,n,e),o=l.sibling}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===e){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}Ce(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,sr(e,n),i=Xe(i),r=r(i),e.flags|=1,Ce(t,e,r,n),e.child;case 14:return r=e.type,i=nt(r,e.pendingProps),i=nt(r.type,i),_f(t,e,r,i,n);case 15:return bh(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:nt(r,i),vl(t,e),e.tag=1,Ie(r)?(t=!0,Ll(e)):t=!1,sr(e,n),Bh(e,r,i),eu(e,r,i,n),ru(null,e,r,!0,t,n);case 19:return Hh(t,e,n);case 22:return Wh(t,e,n)}throw Error(x(156,e.tag))};function sp(t,e){return Ad(t,e)}function n0(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,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 Ke(t,e,n,r){return new n0(t,e,n,r)}function Sa(t){return t=t.prototype,!(!t||!t.isReactComponent)}function r0(t){if(typeof t=="function")return Sa(t)?1:0;if(t!=null){if(t=t.$$typeof,t===_u)return 11;if(t===Vu)return 14}return 2}function en(t,e){var n=t.alternate;return n===null?(n=Ke(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deleti
vendor: 10,049 bytes, line 40
40ons=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function xl(t,e,n,r,i,l){var o=2;if(r=t,typeof t=="function")Sa(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case Kn:return Cn(n.children,i,l,e);case Bu:o=8,i|=8;break;case Ns:return t=Ke(12,n,e,i|2),t.elementType=Ns,t.lanes=l,t;case Es:return t=Ke(13,n,e,i),t.elementType=Es,t.lanes=l,t;case Os:return t=Ke(19,n,e,i),t.elementType=Os,t.lanes=l,t;case yd:return So(n,i,l,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case md:o=10;break e;case gd:o=9;break e;case _u:o=11;break e;case Vu:o=14;break e;case Lt:o=16,r=null;break e}throw Error(x(130,t==null?t:typeof t,""))}return e=Ke(o,n,e,i),e.elementType=t,e.type=r,e.lanes=l,e}function Cn(t,e,n,r){return t=Ke(7,t,r,e),t.lanes=n,t}function So(t,e,n,r){return t=Ke(22,t,r,e),t.elementType=yd,t.lanes=n,t.stateNode={isHidden:!1},t}function is(t,e,n){return t=Ke(6,t,null,e),t.lanes=n,t}function ls(t,e,n){return e=Ke(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function i0(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vo(0),this.expirationTimes=Vo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ka(t,e,n,r,i,l,o,s,u){return t=new i0(t,e,n,s,u),e===1?(e=1,l===!0&&(e|=8)):e=0,l=Ke(3,null,null,e),t.current=l,l.stateNode=t,l.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ra(l),t}function l0(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Hn,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function up(t){if(!t)return on;t=t._reactInternals;e:{if(Vn(t)!==t||t.tag!==1)throw Error(x(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(Ie(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(x(171))}if(t.tag===1){var n=t.type;if(Ie(n))return uh(t,n,e)}return e}function ap(t,e,n,r,i,l,o,s,u){return t=ka(n,r,!0,t,i,l,o,s,u),t.context=up(null),n=t.current,r=Ne(),i=Zt(n),l=Ot(r,i),l.callback=e??null,Gt(n,l,i),t.current.lanes=i,Pi(t,i,r),ze(t,r),t}function ko(t,e,n,r){var i=e.current,l=Ne(),o=Zt(i);return n=up(n),e.context===null?e.context=n:e.pendingContext=n,e=Ot(l,o),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=Gt(i,e,o),t!==null&&(st(t,i,o,l),ml(t,i,o)),o}function Ql(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function Yf(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function xa(t,e){Yf(t,e),(t=t.alternate)&&Yf(t,e)}function o0(){return null}var fp=typeof reportError=="function"?reportError:function(t){console.error(t)};function wa(t){this._internalRoot=t}xo.prototype.render=wa.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(x(409));ko(t,e,null,null)};xo.prototype.unmount=wa.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;zn(function(){ko(null,t,null,null)}),e[Dt]=null}};function xo(t){this._internalRoot=t}xo.prototype.unstable_scheduleHydration=function(t){if(t){var e=Wd();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Vt.length&&e!==0&&e<Vt[n].priority;n++);Vt.splice(n,0,t),n===0&&jd(t)}};function Ca(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function wo(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Gf(){}function s0(t,e,n,r,i){if(i){if(typeof r=="function"){var l=r;r=function(){var a=Ql(o);l.call(a)}}var o=ap(e,r,t,0,null,!1,!1,"",Gf);return t._reactRootContainer=o,t[Dt]=o.current,hi(t.nodeType===8?t.parentNode:t),zn(),o}for(;i=t.lastChild;)t.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var a=Ql(u);s.call(a)}}var u=ka(t,0,!1,null,null,!1,!1,"",Gf);return t._reactRootContainer=u,t[Dt]=u.current,hi(t.nodeType===8?t.parentNode:t),zn(function(){ko(e,u,n,r)}),u}function Co(t,e,n,r,i){var l=n._reactRootContainer;if(l){var o=l;if(typeof i=="function"){var s=i;i=function(){var u=Ql(o);s.call(u)}}ko(e,o,t,i)}else o=s0(n,e,t,i,r);return Ql(o)}Vd=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=Vr(e.pendingLanes);n!==0&&($u(e,n|1),ze(e,G()),!(B&6)&&(yr=G()+500,fn()))}break;case 13:zn(function(){var r=Rt(t,1);if(r!==null){var i=Ne();st(r,t,1,i)}}),xa(t,1)}};ju=function(t){if(t.tag===13){var e=Rt(t,134217728);if(e!==null){var n=Ne();st(e,t,134217728,n)}xa(t,134217728)}};bd=function(t){if(t.tag===13){var e=Zt(t),n=Rt(t,e);if(n!==null){var r=Ne();st(n,t,e,r)}xa(t,e)}};Wd=function(){return b};$d=function(t,e){var n=b;try{return b=t,e()}finally{b=n}};Fs=function(t,e,n){switch(e){case"input":if(Ds(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=ho(r);if(!i)throw Error(x(90));Sd(r),Ds(r,i)}}}break;case"textarea":xd(t,n);break;case"select":e=n.value,e!=null&&rr(t,!!n.multiple,e,!1)}};Md=ga;Dd=zn;var u0={usingClientEntryPoint:!1,Events:[zi,Yn,ho,Od,Td,ga]},Lr={findFiberByHostInstance:yn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},a0={bundleType:Lr.bundleType,version:Lr.version,rendererPackageName:Lr.rendererPackageName,rendererConfig:Lr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:It.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Id(t),t===null?null:t.stateNode},findFiberByHostInstance:Lr.findFiberByHostInstance||o0,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 il=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!il.isDisabled&&il.supportsFiber)try{uo=il.inject(a0),pt=il}catch{}}be.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=u0;be.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ca(e))throw Error(x(200));return l0(t,e,null,n)};be.createRoot=function(t,e){if(!Ca(t))throw Error(x(299));var n=!1,r="",i=fp;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=ka(t,1,!1,null,null,n,!1,r,i),t[Dt]=e.current,hi(t.nodeType===8?t.parentNode:t),new wa(e)};be.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(x(188)):(t=Object.keys(t).join(","),Error(x(268,t)));return t=Id(e),t=t===null?null:t.stateNode,t};be.flushSync=function(t){return zn(t)};be.hydrate=function(t,e,n){if(!wo(e))throw Error(x(200));return Co(null,t,e,!0,n)};be.hydrateRoot=function(t,e,n){if(!Ca(t))throw Error(x(405));var r=n!=null&&n.hydratedSources||null,i=!1,l="",o=fp;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),e=ap(e,null,t,1,n??null,i,!1,l,o),t[Dt]=e.current,hi(t),r)for(t=0;t<r.length;t++)n=r[t],i=n._getVersion,i=i(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,i]:e.mutableSourceEagerHydrationData.push(n,i);return new xo(e)};be.render=function(t,e,n){if(!wo(e))throw Error(x(200));return Co(null,t,e,!1,n)};be.unmountComponentAtNode=function(t){if(!wo(t))throw Error(x(40));return t._reactRootContainer?(zn(function(){Co(null,null,t,!1,function(){t._reactRootContainer=null,t[Dt]=null})}),!0):!1};be.unstable_batchedUpdates=ga;be.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!wo(n))throw Error(x(200));if(t==null||t._reactInternals===void 0)throw Error(x(38));return Co(t,e,n,!1,r)};be.version="18.3.1-next-f1338f8080-20240426";function cp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cp)}catch(t){console.error(t)}}cp(),cd.exports=be;var dp=cd.exports;const DS=Zc(dp);var Xf=dp;Ha.createRoot=Xf.createRoot,Ha.hydrateRoot=Xf.hydrateRoot;function ae(t){this.content=t}ae.prototype={constructor:ae,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,i=r.find(t),l=r.content.slice();return i==-1?l.push(n||t,e):(l[i+1]=e,n&&(l[i]=n)),new ae(l)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new ae(n)},addToStart:function(t,e){return new ae([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new ae(n)},addBefore:function(t,e,n){var r=this.remove(e),i=r.content.slice(),l=r.find(t);return i.splice(l==-1?i.length:l,0,e,n),new ae(i)}
vendor: 4,093 bytes, line 40
40,forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=ae.from(t),t.size?new ae(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=ae.from(t),t.size?new ae(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=ae.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};ae.from=function(t){if(t instanceof ae)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new ae(e)};function hp(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(r),l=e.child(r);if(i==l){n+=i.nodeSize;continue}if(!i.sameMarkup(l))return n;if(i.isText&&i.text!=l.text){for(let o=0;i.text[o]==l.text[o];o++)n++;return n}if(i.content.size||l.content.size){let o=hp(i.content,l.content,n+1);if(o!=null)return o}n+=i.nodeSize}}function pp(t,e,n,r){for(let i=t.childCount,l=e.childCount;;){if(i==0||l==0)return i==l?null:{a:n,b:r};let o=t.child(--i),s=e.child(--l),u=o.nodeSize;if(o==s){n-=u,r-=u;continue}if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let a=0,f=Math.min(o.text.length,s.text.length);for(;a<f&&o.text[o.text.length-a-1]==s.text[s.text.length-a-1];)a++,n--,r--;return{a:n,b:r}}if(o.content.size||s.content.size){let a=pp(o.content,s.content,n-1,r-1);if(a)return a}n-=u,r-=u}}class w{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,i=0,l){for(let o=0,s=0;s<n;o++){let u=this.content[o],a=s+u.nodeSize;if(a>e&&r(u,i+s,l||null,o)!==!1&&u.content.size){let f=s+1;u.nodesBetween(Math.max(0,e-f),Math.min(u.content.size,n-f),r,i+f)}s=a}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let l="",o=!0;return this.nodesBetween(e,n,(s,u)=>{let a=s.isText?s.text.slice(Math.max(e,u)-u,n-u):s.isLeaf?i?typeof i=="function"?i(s):i:s.type.spec.leafText?s.type.spec.leafText(s):"":"";s.isBlock&&(s.isLeaf&&a||s.isTextblock)&&r&&(o?o=!1:l+=r),l+=a},0),l}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,i=this.content.slice(),l=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),l=1);l<e.content.length;l++)i.push(e.content[l]);return new w(i,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],i=0;if(n>e)for(let l=0,o=0;o<n;l++){let s=this.content[l],u=o+s.nodeSize;u>e&&((o<e||u>n)&&(s.isText?s=s.cut(Math.max(0,e-o),Math.min(s.text.length,n-o)):s=s.cut(Math.max(0,e-o-1),Math.min(s.content.size,n-o-1))),r.push(s),i+=s.nodeSize),o=u}return new w(r,i)}cutByIndex(e,n){return e==n?w.empty:e==0&&n==this.content.length?this:new w(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let i=this.content.slice(),l=this.size+n.nodeSize-r.nodeSize;return i[e]=n,new w(i,l)}addToStart(e){return new w([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new w(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let i=this.content[n];e(i,r,n),r+=i.nodeSize}}findDiffStart(e,n=0){return hp(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return pp(this,e,n,r)}findIndex(e){if(e==0)return ll(0,e);if(e==this.size)return ll(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),l=r+i.nodeSize;if(l>
vendor: 4,499 bytes, line 40
40=e)return l==e?ll(n+1,l):ll(n,r);r=l}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return w.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return w.fromArray(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return w.empty;let n,r=0;for(let i=0;i<e.length;i++){let l=e[i];r+=l.nodeSize,i&&l.isText&&e[i-1].sameMarkup(l)?(n||(n=e.slice(0,i)),n[n.length-1]=l.withText(n[n.length-1].text+l.text)):n&&n.push(l)}return new w(n||e,r)}static from(e){if(!e)return w.empty;if(e instanceof w)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new w([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}w.empty=new w([],0);const ss={index:0,offset:0};function ll(t,e){return ss.index=t,ss.offset=e,ss}function ql(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!ql(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!ql(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}class V{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let i=0;i<e.length;i++){let l=e[i];if(this.eq(l))return e;if(this.type.excludes(l.type))n||(n=e.slice(0,i));else{if(l.type.excludes(this.type))return e;!r&&l.type.rank>this.type.rank&&(n||(n=e.slice(0,i)),n.push(this),r=!0),n&&n.push(l)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&ql(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let i=r.create(n.attrs);return r.checkAttrs(i.attrs),i}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return V.none;if(e instanceof V)return[e];let n=e.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}}V.none=[];class Yl extends Error{}class O{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=gp(this.content,e+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new O(r,this.openStart,this.openEnd)}removeBetween(e,n){return new O(mp(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return O.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new O(w.fromJSON(e,n.content),r,i)}static maxOpen(e,n=!0){let r=0,i=0;for(let l=e.firstChild;l&&!l.isLeaf&&(n||!l.type.spec.isolating);l=l.firstChild)r++;for(let l=e.lastChild;l&&!l.isLeaf&&(n||!l.type.spec.isolating);l=l.lastChild)i++;return new O(e,r,i)}}O.empty=new O(w.empty,0,0);function mp(t,e,n){let{index:r,offset:i}=t.findIndex(e),l=t.maybeChild(r),{index:o,offset:s}=t.findIndex(n);if(i==e||l.isText){if(s!=n&&!t.child(o).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=o)throw new RangeError("Removing non-flat range");return t.replaceChild(r,l.copy(mp(l.content,e-i-1,n-i-1)))}function gp(t,e,n,r,i,l){let{index:o,offset:s}=t.findIndex(e),u=t.maybeChild(o);if(s==e||u.isText)return l&&r<=0&&i<=0&&!l.canReplace(o,o,n)?null:t.cut(0,e).append(n).append(t.cut(e));let a=gp(u.content,e-s-1,n,o==0?r-1:0,o==t.childCount-1?i-1:0,u);return a&&t.replaceChild(o,u.copy(a))}function f0(t,e,n){if(n.openStart>
vendor: 9,062 bytes, line 40
40t.depth)throw new Yl("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Yl("Inconsistent open depths");return yp(t,e,n,0)}function yp(t,e,n,r){let i=t.index(r),l=t.node(r);if(i==e.index(r)&&r<t.depth-n.openStart){let o=yp(t,e,n,r+1);return l.copy(l.content.replaceChild(i,o))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let o=t.parent,s=o.content;return En(o,s.cut(0,t.parentOffset).append(n.content).append(s.cut(e.parentOffset)))}else{let{start:o,end:s}=c0(n,t);return En(l,Sp(t,o,s,e,r))}else return En(l,Gl(t,e,r))}function vp(t,e){if(!e.type.compatibleContent(t.type))throw new Yl("Cannot join "+e.type.name+" onto "+t.type.name)}function mu(t,e,n){let r=t.node(n);return vp(r,e.node(n)),r}function Nn(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function ei(t,e,n,r){let i=(e||t).node(n),l=0,o=e?e.index(n):i.childCount;t&&(l=t.index(n),t.depth>n?l++:t.textOffset&&(Nn(t.nodeAfter,r),l++));for(let s=l;s<o;s++)Nn(i.child(s),r);e&&e.depth==n&&e.textOffset&&Nn(e.nodeBefore,r)}function En(t,e){return t.type.checkContent(e),t.copy(e)}function Sp(t,e,n,r,i){let l=t.depth>i&&mu(t,e,i+1),o=r.depth>i&&mu(n,r,i+1),s=[];return ei(null,t,i,s),l&&o&&e.index(i)==n.index(i)?(vp(l,o),Nn(En(l,Sp(t,e,n,r,i+1)),s)):(l&&Nn(En(l,Gl(t,e,i+1)),s),ei(e,n,i,s),o&&Nn(En(o,Gl(n,r,i+1)),s)),ei(r,null,i,s),new w(s)}function Gl(t,e,n){let r=[];if(ei(null,t,n,r),t.depth>n){let i=mu(t,e,n+1);Nn(En(i,Gl(t,e,n+1)),r)}return ei(e,null,n,r),new w(r)}function c0(t,e){let n=e.depth-t.openStart,i=e.node(n).copy(t.content);for(let l=n-1;l>=0;l--)i=e.node(l).copy(w.from(i));return{start:i.resolveNoCache(t.openStart+n),end:i.resolveNoCache(i.content.size-t.openEnd-n)}}class wi{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(n);return r?e.child(n).cut(r):i}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let l=0;l<e;l++)i+=r.child(l).nodeSize;return i}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return V.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),i=e.maybeChild(n);if(!r){let s=r;r=i,i=s}let l=r.marks;for(var o=0;o<l.length;o++)l[o].type.spec.inclusive===!1&&(!i||!l[o].isInSet(i.marks))&&(l=l[o--].removeFromSet(l));return l}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,i=e.parent.maybeChild(e.index());for(var l=0;l<r.length;l++)r[l].type.spec.inclusive===!1&&(!i||!r[l].isInSet(i.marks))&&(r=r[l--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new Xl(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,l=n;for(let o=e;;){let{index:s,offset:u}=o.content.findIndex(l),a=l-u;if(r.push(o,s,i+u),!a||(o=o.child(s),o.isText))break;l=a-1,i+=u+1}return new wi(n,r,l)}static resolveCached(e,n){let r=Zf.get(e);if(r)for(let l=0;l<r.elts.length;l++){let o=r.elts[l];if(o.pos==n)return o}else Zf.set(e,r=new d0);let i=r.elts[r.i]=wi.resolve(e,n);return r.i=(r.i+1)%h0,i}}class d0{constructor(){this.elts=[],this.i=0}}const h0=12,Zf=new WeakMap;class Xl{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const p0=Object.create(null);class gt{constructor(e,n,r,i=V.none){this.type=e,this.attrs=n,this.marks=i,this.content=r||w.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,i=0){this.content.nodesBetween(e,n,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,i){return this.content.textBetween(e,n,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&ql(this.attrs,n||e.defaultAttrs||p0)&&V.sameSet(this.marks,r||V.none)}copy(e=null){return e==this.content?this:new gt(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new gt(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return O.empty;let i=this.resolve(e),l=this.resolve(n),o=r?0:i.sharedDepth(n),s=i.start(o),a=i.node(o).content.cut(i.pos-s,l.pos-s);return new O(a,i.depth-o,l.depth-o)}replace(e,n,r){return f0(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:i}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(i==e||n.isText)return n;e-=i+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}resolve(e){return wi.resolveCached(this,e)}resolveNoCache(e){return wi.resolve(this,e)}rangeHasMark(e,n,r){let i=!1;return n>e&&this.nodesBetween(e,n,l=>(r.isInSet(l.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),kp(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=w.empty,i=0,l=r.childCount){let o=this.contentMatchAt(e).matchFragment(r,i,l),s=o&&o.matchFragment(this.content,n);if(!s||!s.validEnd)return!1;for(let u=i;u<l;u++)if(!this.type.allowsMarks(r.child(u).marks))return!1;return!0}canReplaceWith(e,n,r,i){if(i&&!this.type.allowsMarks(i))return!1;let l=this.contentMatchAt(e).matchType(r),o=l&&l.matchFragment(this.content,n);return o?o.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=V.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!V.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}
40`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let i=w.fromJSON(e,n.content),l=e.nodeType(n.type).create(n.attrs,i,r);return l.type.checkAttrs(l.attrs),l}}gt.prototype.text=void 0;class Zl extends gt{constructor(e,n,r,i){if(super(e,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):kp(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Zl(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Zl(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function kp(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class An{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new m0(e,n);if(r.next==null)return An.empty;let i=xp(r);r.next&&r.err("Unexpected trailing text");let l=w0(x0(i));return C0(l,r),l}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let i=this;for(let l=n;i&&l<r;l++)i=i.matchType(e.child(l).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let i=[this];function l(o,s){let u=o.matchFragment(e,r);if(u&&(!n||u.validEnd))return w.from(s.map(a=>a.createAndFill()));for(let a=0;a<o.next.length;a++){let{type:f,next:c}=o.next[a];if(!(f.isText||f.hasRequiredAttrs())&&i.indexOf(c)==-1){i.push(c);let d=l(c,s.concat(f));if(d)return d}}return null}return l(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),l=i.match;if(l.matchType(e)){let o=[];for(let s=i;s.type;s=s.via)o.push(s.type);return o.reverse()}for(let o=0;o<l.next.length;o++){let{type:s,next:u}=l.next[o];!s.isLeaf&&!s.hasRequiredAttrs()&&!(s.name in n)&&(!i.type||u.validEnd)&&(r.push({match:s.contentMatch,type:s,via:i}),n[s.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&n(r.next[i].next)}return n(this),e.map((r,i)=>{let l=i+(r.validEnd?"*":" ")+" ";for(let o=0;o<r.next.length;o++)l+=(o?", ":"")+r.next[o].type.name+"->"+e.indexOf(r.next[o].next);return l}).join(`
41`)}}An.empty=new An(!0);class m0{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function xp(t){let e=[];do e.push(g0(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function g0(t){let e=[];do e.push(y0(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function y0(t){let e=k0(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=v0(t,e);else break;return e}function ec(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");
vendor: 4,718 bytes, line 41
41let e=Number(t.next);return t.pos++,e}function v0(t,e){let n=ec(t),r=n;return t.eat(",")&&(t.next!="}"?r=ec(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function S0(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let i=[];for(let l in n){let o=n[l];o.isInGroup(e)&&i.push(o)}return i.length==0&&t.err("No node type or group '"+e+"' found"),i}function k0(t){if(t.eat("(")){let e=xp(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=S0(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function x0(t){let e=[[]];return i(l(t,0),n()),e;function n(){return e.push([])-1}function r(o,s,u){let a={term:u,to:s};return e[o].push(a),a}function i(o,s){o.forEach(u=>u.to=s)}function l(o,s){if(o.type=="choice")return o.exprs.reduce((u,a)=>u.concat(l(a,s)),[]);if(o.type=="seq")for(let u=0;;u++){let a=l(o.exprs[u],s);if(u==o.exprs.length-1)return a;i(a,s=n())}else if(o.type=="star"){let u=n();return r(s,u),i(l(o.expr,u),u),[r(u)]}else if(o.type=="plus"){let u=n();return i(l(o.expr,s),u),i(l(o.expr,u),u),[r(u)]}else{if(o.type=="opt")return[r(s)].concat(l(o.expr,s));if(o.type=="range"){let u=s;for(let a=0;a<o.min;a++){let f=n();i(l(o.expr,u),f),u=f}if(o.max==-1)i(l(o.expr,u),u);else for(let a=o.min;a<o.max;a++){let f=n();r(u,f),i(l(o.expr,u),f),u=f}return[r(u)]}else{if(o.type=="name")return[r(s,void 0,o.value)];throw new Error("Unknown expr type")}}}}function wp(t,e){return e-t}function tc(t,e){let n=[];return r(e),n.sort(wp);function r(i){let l=t[i];if(l.length==1&&!l[0].term)return r(l[0].to);n.push(i);for(let o=0;o<l.length;o++){let{term:s,to:u}=l[o];!s&&n.indexOf(u)==-1&&r(u)}}}function w0(t){let e=Object.create(null);return n(tc(t,0));function n(r){let i=[];r.forEach(o=>{t[o].forEach(({term:s,to:u})=>{if(!s)return;let a;for(let f=0;f<i.length;f++)i[f][0]==s&&(a=i[f][1]);tc(t,u).forEach(f=>{a||i.push([s,a=[]]),a.indexOf(f)==-1&&a.push(f)})})});let l=e[r.join(",")]=new An(r.indexOf(t.length-1)>-1);for(let o=0;o<i.length;o++){let s=i[o][1].sort(wp);l.next.push({type:i[o][0],next:e[s.join(",")]||n(s)})}return l}}function C0(t,e){for(let n=0,r=[t];n<r.length;n++){let i=r[n],l=!i.validEnd,o=[];for(let s=0;s<i.next.length;s++){let{type:u,next:a}=i.next[s];o.push(u.name),l&&!(u.isText||u.hasRequiredAttrs())&&(l=!1),r.indexOf(a)==-1&&r.push(a)}l&&e.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Cp(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function Np(t,e){let n=Object.create(null);for(let r in t){let i=e&&e[r];if(i===void 0){let l=t[r];if(l.hasDefault)i=l.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=i}return n}function Ep(t,e,n,r){for(let i in e)if(!(i in t))throw new RangeError(`Unsupported attribute ${i} for ${n} of type ${i}`);for(let i in t){let l=t[i];l.validate&&l.validate(e[i])}}function Op(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new E0(t,r,e[r]);return n}let nc=class Tp{constructor(e,n,r){this.name=e,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=Op(e,r.attrs),this.defaultAttrs=Cp(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==An.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Np(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new gt(this,this.computeAttrs(e),w.from(n),V.setFrom(r))}createChecked(e=null,n,r){return n=w.from(n),this.checkContent(n),new gt(this,this.computeAttrs(e),n,V.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=w.from(n),n.size){let o=this.contentMatch.fillBefore(n);if(!o)return null;n=o.append(n)}let i=this.contentMatch.matchFragment(n),l=i&&i.fillBefore(w.empty,!0);return l?new gt(this,e,n.append(l),V.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);
vendor: 10,472 bytes, lines 41-43
41if(!n||!n.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){Ep(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?n&&n.push(e[r]):n||(n=e.slice(0,r));return n?n.length?n:V.none:e}static compile(e,n){let r=Object.create(null);e.forEach((l,o)=>r[l]=new Tp(l,n,o));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let l in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function N0(t,e,n){let r=n.split("|");return i=>{let l=i===null?"null":typeof i;if(r.indexOf(l)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${l}`)}}class E0{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?N0(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class No{constructor(e,n,r,i){this.name=e,this.rank=n,this.schema=r,this.spec=i,this.attrs=Op(e,i.attrs),this.excluded=null;let l=Cp(this.attrs);this.instance=l?new V(this,l):null}create(e=null){return!e&&this.instance?this.instance:new V(this,Np(this.attrs,e))}static compile(e,n){let r=Object.create(null),i=0;return e.forEach((l,o)=>r[l]=new No(l,i++,n,o)),r}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){Ep(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class RS{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let i in e)n[i]=e[i];n.nodes=ae.from(e.nodes),n.marks=ae.from(e.marks||{}),this.nodes=nc.compile(this.spec.nodes,this),this.marks=No.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let l=this.nodes[i],o=l.spec.content||"",s=l.spec.marks;if(l.contentMatch=r[o]||(r[o]=An.parse(o,this.nodes)),l.inlineContent=l.contentMatch.inlineContent,l.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!l.isInline||!l.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=l}l.markSet=s=="_"?null:s?rc(this,s.split(" ")):s==""||!l.inlineContent?[]:null}for(let i in this.marks){let l=this.marks[i],o=l.spec.excludes;l.excluded=o==null?[l]:o==""?[]:rc(this,o.split(" "))}this.nodeFromJSON=i=>gt.fromJSON(this,i),this.markFromJSON=i=>V.fromJSON(this,i),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof nc){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,i)}text(e,n){let r=this.nodes.text;return new Zl(r,r.defaultAttrs,e,V.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function rc(t,e){let n=[];for(let r=0;r<e.length;r++){let i=e[r],l=t.marks[i],o=l;if(l)n.push(l);else for(let s in t.marks){let u=t.marks[s];(i=="_"||u.spec.group&&u.spec.group.split(" ").indexOf(i)>-1)&&n.push(o=u)}if(!o)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}function O0(t){return t.tag!=null}function T0(t){return t.style!=null}class Ci{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(O0(i))this.tags.push(i);else if(T0(i)){let l=/[^=]*/.exec(i.style)[0];r.indexOf(l)<0&&r.push(l),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let l=e.nodes[i.node];return l.contentMatch.matchType(l)})}parse(e,n={}){let r=new lc(this,n,!1);return r.addAll(e,V.none,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new lc(this,n,!0);return r.addAll(e,V.none,n.from,n.to),O.maxOpen(r.finish())}matchTag(e,n,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let l=this.tags[i];if(R0(e,l.tag)&&(l.namespace===void 0||e.namespaceURI==l.namespace)&&(!l.context||n.matchesContext(l.context))){if(l.getAttrs){let o=l.getAttrs(e);if(o===!1)continue;l.attrs=o||void 0}return l}}}matchStyle(e,n,r,i){for(let l=i?this.styles.indexOf(i)+1:0;l<this.styles.length;l++){let o=this.styles[l],s=o.style;if(!(s.indexOf(e)!=0||o.context&&!r.matchesContext(o.context)||s.length>e.length&&(s.charCodeAt(e.length)!=61||s.slice(e.length+1)!=n))){if(o.getAttrs){let u=o.getAttrs(n);if(u===!1)continue;o.attrs=u||void 0}return o}}}static schemaRules(e){let n=[];function r(i){let l=i.priority==null?50:i.priority,o=0;for(;o<n.length;o++){let s=n[o];if((s.priority==null?50:s.priority)<l)break}n.splice(o,0,i)}for(let i in e.marks){let l=e.marks[i].spec.parseDOM;l&&l.forEach(o=>{r(o=oc(o)),o.mark||o.ignore||o.clearMark||(o.mark=i)})}for(let i in e.nodes){let l=e.nodes[i].spec.parseDOM;l&&l.forEach(o=>{r(o=oc(o)),o.node||o.ignore||o.mark||(o.node=i)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Ci(e,Ci.schemaRules(e)))}}const Mp={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},M0={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Dp={ol:!0,ul:!0},Ni=1,gu=2,ti=4;function ic(t,e,n){return e!=null?(e?Ni:0)|(e==="full"?gu:0):t&&t.whitespace=="pre"?Ni|gu:n&~ti}class ol{constructor(e,n,r,i,l,o){this.type=e,this.attrs=n,this.marks=r,this.solid=i,this.options=o,this.content=[],this.activeMarks=V.none,this.match=l||(o&ti?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(w.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Ni)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let l=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=l.withText(l.text.slice(0,l.text.length-i[0].length))}}let n=w.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(w.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Mp.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class lc{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let i=n.topNode,l,o=ic(null,n.preserveWhitespace,0)|(r?ti:0);i?l=new ol(i.type,i.attrs,V.none,!0,n.topMatch||i.type.contentMatch,o):r?l=new ol(null,null,V.none,!0,null,o):l=new ol(e.schema.topNodeType,null,V.none,!0,null,o),this.nodes=[l],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let r=e.nodeValue,i=this.top,l=i.options&gu?"full":this.localPreserveWS||(i.options&Ni)>0,{schema:o}=this.parser;if(l==="full"||i.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(l)if(l==="full")r=r.replace(/\r\n?/g,`
42`);else if(o.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(o.linebreakReplacement.create())){let s=r.split(/\r?\n|\r/);for(let u=0;u<s.length;u++)u&&this.insertNode(o.linebreakReplacement.create(),n,!0),s[u]&&this.insertNode(o.text(s[u]),n,!/\S/.test(s[u]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let s=i.content[i.content.length-1],u=e.previousSibling;(!s||u&&u.nodeName=="BR"||s.isText&&/[ \t\r\n\u000c]$/.test(s.text))&&(r=r.slice(1))}r&&this.insertNode(o.text(r),n,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,n,r){let i=this.localPreserveWS,l=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o=e.nodeName.toLowerCase(),s;Dp.hasOwnProperty(o)&&this.parser.normalizeLists&&D0(e);let u=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(s=this.parser.matchTag(e,this,r));e:if(u?u.ignore:M0.hasOwnProperty(o))this.findInside(e),this.ignoreFallback(e,n);else if(!u||u.skip||u.closeParent){u&&u.closeParent?this.open=Math.max(0,this.open-1):u&&u.skip.nodeType&&(e=u.skip);let a,f=this.needsBlock;if(Mp.hasOwnProperty(o))l.content.length&&l.content[0].isInline&&this.open&&(this.open--,l=this.top),a=!0,l.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let c=u&&u.skip?n:this.readStyles(e,n);c&&this.addAll(e,c),a&&this.sync(l),this.needsBlock=f}else{let a=this.readStyles(e,n);a&&this.addElementByRule(e,u,a,u.consuming===!1?s:void 0)}this.localPreserveWS=i}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
43`),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(e,n){let r=e.style;if(r&&r.length)for(let i=0;i<this.parser.matchedStyles.length;i++){let l=this.parser.matchedStyles[i],o=r.getPropertyValue(l);if(o)for(let s=void 0;;){let u=this.parser.matchStyle(l,o,this,s);if(!u)break;if(u.ignore)return null;if(u.clearMark?n=n.filter(a=>!u.clearMark(a)):n=n.concat(this.parser.schema.marks[u.mark].create(u.attrs)),u.consuming===!1)s=u;else break}}return n}addElementByRule(e,n,r,i){let l,o;
vendor: 4,117 bytes, line 43
43if(n.node)if(o=this.parser.schema.nodes[n.node],o.isLeaf)this.insertNode(o.create(n.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let u=this.enter(o,n.attrs||null,r,n.preserveWhitespace);u&&(l=!0,r=u)}else{let u=this.parser.schema.marks[n.mark];r=r.concat(u.create(n.attrs))}let s=this.top;if(o&&o.isLeaf)this.findInside(e);else if(i)this.addElement(e,r,i);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(u=>this.insertNode(u,r,!1));else{let u=e;typeof n.contentElement=="string"?u=e.querySelector(n.contentElement):typeof n.contentElement=="function"?u=n.contentElement(e):n.contentElement&&(u=n.contentElement),this.findAround(e,u,!0),this.addAll(u,r),this.findAround(e,u,!1)}l&&this.sync(s)&&this.open--}addAll(e,n,r,i){let l=r||0;for(let o=r?e.childNodes[r]:e.firstChild,s=i==null?null:e.childNodes[i];o!=s;o=o.nextSibling,++l)this.findAtPoint(e,l),this.addDOM(o,n);this.findAtPoint(e,l)}findPlace(e,n,r){let i,l;for(let o=this.open,s=0;o>=0;o--){let u=this.nodes[o],a=u.findWrapping(e);if(a&&(!i||i.length>a.length+s)&&(i=a,l=u,!a.length))break;if(u.solid){if(r)break;s+=2}}if(!i)return null;this.sync(l);for(let o=0;o<i.length;o++)n=this.enterInner(i[o],null,n,!1);return n}insertNode(e,n,r){if(e.isInline&&this.needsBlock&&!this.top.type){let l=this.textblockFromContext();l&&(n=this.enterInner(l,null,n))}let i=this.findPlace(e,n,r);if(i){this.closeExtra();let l=this.top;l.match&&(l.match=l.match.matchType(e.type));let o=V.none;for(let s of i.concat(e.marks))(l.type?l.type.allowsMarkType(s.type):sc(s.type,e.type))&&(o=s.addToSet(o));return l.content.push(e.mark(o)),!0}return!1}enter(e,n,r,i){let l=this.findPlace(e.create(n),r,!1);return l&&(l=this.enterInner(e,n,r,!0,i)),l}enterInner(e,n,r,i=!1,l){this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(e);let s=ic(e,l,o.options);o.options&ti&&o.content.length==0&&(s|=ti);let u=V.none;return r=r.filter(a=>(o.type?o.type.allowsMarkType(a.type):sc(a.type,e))?(u=a.addToSet(u),!1):!0),this.nodes.push(new ol(e,n,u,i,null,s)),this.open++,r}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let n=this.open;n>=0;n--){if(this.nodes[n]==e)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=Ni)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)e+=r[i].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&e.nodeType==1&&e.contains(this.find[i].node)&&n.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),l=-(r?r.depth+1:0)+(i?0:1),o=(s,u)=>{for(;s>=0;s--){let a=n[s];if(a==""){if(s==n.length-1||s==0)continue;for(;u>=l;u--)if(o(s-1,u))return!0;return!1}else{let f=u>0||u==0&&i?this.nodes[u].type:r&&u>=l?r.node(u-l).type:null;if(!f||f.name!=a&&!f.isInGroup(a))return!1;u--}}return!0};return o(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];
vendor: 4,256 bytes, line 43
43if(r.isTextblock&&r.defaultAttrs)return r}}}function D0(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&Dp.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function R0(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function oc(t){let e={};for(let n in t)e[n]=t[n];return e}function sc(t,e){let n=e.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(t))continue;let l=[],o=s=>{l.push(s);for(let u=0;u<s.edgeCount;u++){let{type:a,next:f}=s.edge(u);if(a==e||l.indexOf(f)<0&&o(f))return!0}};if(o(i.contentMatch))return!0}}class Er{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=sl(n).createDocumentFragment());let i=r,l=[];return e.forEach(o=>{if(l.length||o.marks.length){let s=0,u=0;for(;s<l.length&&u<o.marks.length;){let a=o.marks[u];if(!this.marks[a.type.name]){u++;continue}if(!a.eq(l[s][0])||a.type.spec.spanning===!1)break;s++,u++}for(;s<l.length;)i=l.pop()[1];for(;u<o.marks.length;){let a=o.marks[u++],f=this.serializeMark(a,o.isInline,n);f&&(l.push([a,i]),i.appendChild(f.dom),i=f.contentDOM||f.dom)}}i.appendChild(this.serializeNodeInner(o,n))}),r}serializeNodeInner(e,n){if(e.isText)return sl(n).createTextNode(e.text);let{dom:r,contentDOM:i}=wl(sl(n),this.nodes[e.type.name](e),null,e.attrs);if(i){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,i)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let i=e.marks.length-1;i>=0;i--){let l=this.serializeMark(e.marks[i],e.isInline,n);l&&((l.contentDOM||l.dom).appendChild(r),r=l.dom)}return r}serializeMark(e,n,r={}){let i=this.marks[e.type.name];return i&&wl(sl(r),i(e,n),null,e.attrs)}static renderSpec(e,n,r=null,i){return typeof n=="string"?{dom:e.createTextNode(n)}:wl(e,n,r,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Er(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=uc(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return uc(e.marks)}}function uc(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function sl(t){return t.document||window.document}const ac=new WeakMap;function P0(t){let e=ac.get(t);return e===void 0&&ac.set(t,e=I0(t)),e}function I0(t){let e=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let i=0;i<r.length;i++)n(r[i]);else for(let i in r)n(r[i])}return n(t),e}function wl(t,e,n,r){if(e.nodeType==1)return{dom:e};if(e.dom&&e.dom.nodeType==1)return e;let i=e[0],l;if(typeof i!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(l=P0(r))&&l.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let o=i.indexOf(" ");o>0&&(n=i.slice(0,o),i=i.slice(o+1));let s,u=n?t.createElementNS(n,i):t.createElement(i),a=e[1],f=1;if(a&&typeof a=="object"&&a.nodeType==null&&!Array.isArray(a)){f=2;for(let c in a)if(a[c]!=null){let d=c.indexOf(" ");d>0?u.setAttributeNS(c.slice(0,d),c.slice(d+1),a[c]):c=="style"&&u.style?u.style.cssText=a[c]:u.setAttribute(c,a[c])}}for(let c=f;c<e.length;c++){let d=e[c];if(d===0){if(c<e.length-1||c>f)throw new RangeError("Content hole must be the only child of its parent node");return{dom:u,contentDOM:u}}else if(typeof d=="string")u.appendChild(t.createTextNode(d));else{let{dom:h,contentDOM:p}=wl(t,d,n,r);if(u.appendChild(h),p){if(s)throw new RangeError("Multiple content holes");s=p}}}return{dom:u,contentDOM:s}}const Rp=65535,Pp=Math.pow(2,16);function z0(t,e){return t+e*Pp}function fc(t){return t&Rp}function A0(t){return(t-(t&Rp))/Pp}const Ip=1,zp=2,Cl=4,Ap=8;class yu{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&Ap)>0}get deletedBefore(){return(this.delInfo&(Ip|Cl))>0}get deletedAfter(){return(this.delInfo&(zp|Cl))>0}get deletedAcross(){return(this.delInfo&Cl)>0}}class Fe{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&Fe.empty)return Fe.empty}recover(e){let n=0,r=fc(e);if(!this.inverted)for(let i=0;i<r;
vendor: 3,652 bytes, line 43
43i++)n+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+n+A0(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,r){let i=0,l=this.inverted?2:1,o=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let u=this.ranges[s]-(this.inverted?i:0);if(u>e)break;let a=this.ranges[s+l],f=this.ranges[s+o],c=u+a;if(e<=c){let d=a?e==u?-1:e==c?1:n:n,h=u+i+(d<0?0:f);if(r)return h;let p=e==(n<0?u:c)?null:z0(s/3,e-u),y=e==u?zp:e==c?Ip:Cl;return(n<0?e!=u:e!=c)&&(y|=Ap),new yu(h,y,p)}i+=f-a}return r?e+i:new yu(e+i,0,null)}touches(e,n){let r=0,i=fc(n),l=this.inverted?2:1,o=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let u=this.ranges[s]-(this.inverted?r:0);if(u>e)break;let a=this.ranges[s+l],f=u+a;if(e<=f&&s==i*3)return!0;r+=this.ranges[s+o]-a}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,l=0;i<this.ranges.length;i+=3){let o=this.ranges[i],s=o-(this.inverted?l:0),u=o+(this.inverted?0:l),a=this.ranges[i+n],f=this.ranges[i+r];e(s,s+a,u,u+f),l+=f-a}}invert(){return new Fe(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Fe.empty:new Fe(e<0?[0,-e,0]:[0,0,e])}}Fe.empty=new Fe([]);class Ei{constructor(e,n,r=0,i=e?e.length:0){this.mirror=n,this.from=r,this.to=i,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new Ei(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(e){for(let n=0,r=this._maps.length;n<e._maps.length;n++){let i=e.getMirror(n);this.appendMap(e._maps[n],i!=null&&i<n?r+i:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,r=this._maps.length+e._maps.length;n>=0;n--){let i=e.getMirror(n);this.appendMap(e._maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let e=new Ei;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,r){let i=0;for(let l=this.from;l<this.to;l++){let o=this._maps[l],s=o.mapResult(e,n);if(s.recover!=null){let u=this.getMirror(l);if(u!=null&&u>l&&u<this.to){l=u,e=this._maps[u].recover(s.recover);continue}}i|=s.delInfo,e=s.pos}return r?e:new yu(e,i,null)}}const us=Object.create(null);class we{getMap(){return Fe.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=us[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in us)throw new RangeError("Duplicate use of step JSON ID "+e);return us[e]=n,n.prototype.jsonID=e,n}}class Z{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new Z(e,null)}static fail(e){return new Z(null,e)}static fromReplace(e,n,r,i){try{return Z.ok(e.replace(n,r,i))}catch(l){if(l instanceof Yl)return Z.fail(l.message);throw l}}}function Na(t,e,n){let r=[];for(let i=0;i<t.childCount;i++){let l=t.child(i);l.content.size&&(l=l.copy(Na(l.content,e,l))),l.isInline&&(l=e(l,n,i)),r.push(l)}return w.fromArray(r)}class Ut extends we{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.no
vendor: 7,462 bytes, line 43
43de(r.sharedDepth(this.to)),l=new O(Na(n.content,(o,s)=>!o.isAtom||!s.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),i),n.openStart,n.openEnd);return Z.fromReplace(e,this.from,this.to,l)}invert(){return new ht(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Ut(n.pos,r.pos,this.mark)}merge(e){return e instanceof Ut&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Ut(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Ut(n.from,n.to,e.markFromJSON(n.mark))}}we.jsonID("addMark",Ut);class ht extends we{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new O(Na(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),n.openStart,n.openEnd);return Z.fromReplace(e,this.from,this.to,r)}invert(){return new Ut(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new ht(n.pos,r.pos,this.mark)}merge(e){return e instanceof ht&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new ht(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new ht(n.from,n.to,e.markFromJSON(n.mark))}}we.jsonID("removeMark",ht);class Ht extends we{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Z.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Z.fromReplace(e,this.pos,this.pos+1,new O(w.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;i<n.marks.length;i++)if(!n.marks[i].isInSet(r))return new Ht(this.pos,n.marks[i]);return new Ht(this.pos,this.mark)}}return new Ln(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Ht(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Ht(n.pos,e.markFromJSON(n.mark))}}we.jsonID("addNodeMark",Ht);class Ln extends we{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Z.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return Z.fromReplace(e,this.pos,this.pos+1,new O(w.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Ht(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Ln(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Ln(n.pos,e.markFromJSON(n.mark))}}we.jsonID("removeNodeMark",Ln);class te extends we{constructor(e,n,r,i=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=i}apply(e){return this.structure&&vu(e,this.from,this.to)?Z.fail("Structure replace would overwrite content"):Z.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Fe([this.from,this.to-this.from,this.slice.size])}invert(e){return new te(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.to,-1),r=this.from==this.to&&te.MAP_BIAS<0?n:e.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new te(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(e){if(!(e instanceof te)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?O.empty:new O(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new te(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?O.empty:new O(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new te(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new te(n.from,n.to,O.fromJSON(e,n.slice),!!n.structure)}}te.MAP_BIAS=1;we.jsonID("replace",te);class pe extends we{constructor(e,n,r,i,l,o,s=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=i,this.slice=l,this.insert=o,this.structure=s}apply(e){if(this.structure&&(vu(e,this.from,this.gapFrom)||vu(e,this.gapTo,this.to)))return Z.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return Z.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?Z.fromReplace(e,this.from,this.to,r):Z.fail("Content does not fit in gap")}getMap(){return new Fe([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new pe(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),l=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||l>r.pos?null:new pe(n.pos,r.pos,i,l,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new pe(n.from,n.to,n.gapFrom,n.gapTo,O.fromJSON(e,n.slice),n.insert,!!n.structure)}}we.jsonID("replaceAround",pe);function vu(t,e,n){let r=t.resolve(e),i=n-e,l=r.depth;for(;i>0&&l>0&&r.indexAfter(l)==r.node(l).childCount;)l--,i--;if(i>0){let o=r.node(l).maybeChild(r.indexAfter(l));for(;i>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,i--}}return!1}function L0(t,e,n,r){let i=[],l=[],o,s;t.doc.nodesBetween(e,n,(u,a,f)=>{if(!u.isInline)return;let c=u.marks;if(!r.isInSet(c)&&f.type.allowsMarkType(r.type)){let d=Math.max(a,e),h=Math.min(a+u.nodeSize,n),p=r.addToSet(c);for(let y=0;y<c.length;y++)c[y].isInSet(p)||(o&&o.to==d&&o.mark.eq(c[y])?o.to=h:i.push(o=new ht(d,h,c[y])));s&&s.to==d?s.to=h:l.push(s=new Ut(d,h,r))}}
vendor: 6,842 bytes, lines 43-44
43),i.forEach(u=>t.step(u)),l.forEach(u=>t.step(u))}function F0(t,e,n,r){let i=[],l=0;t.doc.nodesBetween(e,n,(o,s)=>{if(!o.isInline)return;l++;let u=null;if(r instanceof No){let a=o.marks,f;for(;f=r.isInSet(a);)(u||(u=[])).push(f),a=f.removeFromSet(a)}else r?r.isInSet(o.marks)&&(u=[r]):u=o.marks;if(u&&u.length){let a=Math.min(s+o.nodeSize,n);for(let f=0;f<u.length;f++){let c=u[f],d;for(let h=0;h<i.length;h++){let p=i[h];p.step==l-1&&c.eq(i[h].style)&&(d=p)}d?(d.to=a,d.step=l):i.push({style:c,from:Math.max(s,e),to:a,step:l})}}}),i.forEach(o=>t.step(new ht(o.from,o.to,o.style)))}function Ea(t,e,n,r=n.contentMatch,i=!0){let l=t.doc.nodeAt(e),o=[],s=e+1;for(let u=0;u<l.childCount;u++){let a=l.child(u),f=s+a.nodeSize,c=r.matchType(a.type);if(!c)o.push(new te(s,f,O.empty));else{r=c;for(let d=0;d<a.marks.length;d++)n.allowsMarkType(a.marks[d].type)||t.step(new ht(s,f,a.marks[d]));if(i&&a.isText&&n.whitespace!="pre"){let d,h=/\r?\n|\r/g,p;for(;d=h.exec(a.text);)p||(p=new O(w.from(n.schema.text(" ",n.allowedMarks(a.marks))),0,0)),o.push(new te(s+d.index,s+d.index+d[0].length,p))}}s=f}if(!r.validEnd){let u=r.fillBefore(w.empty,!0);t.replace(s,s,new O(u,0,0))}for(let u=o.length-1;u>=0;u--)t.step(o[u])}function B0(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function Li(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth,i=0,l=0;;--r){let o=t.$from.node(r),s=t.$from.index(r)+i,u=t.$to.indexAfter(r)-l;if(r<t.depth&&o.canReplace(s,u,n))return r;if(r==0||o.type.spec.isolating||!B0(o,s,u))break;s&&(i=1),u<o.childCount&&(l=1)}return null}function _0(t,e,n){let{$from:r,$to:i,depth:l}=e,o=r.before(l+1),s=i.after(l+1),u=o,a=s,f=w.empty,c=0;for(let p=l,y=!1;p>n;p--)y||r.index(p)>0?(y=!0,f=w.from(r.node(p).copy(f)),c++):u--;let d=w.empty,h=0;for(let p=l,y=!1;p>n;p--)y||i.after(p+1)<i.end(p)?(y=!0,d=w.from(i.node(p).copy(d)),h++):a++;t.step(new pe(u,a,o,s,new O(f.append(d),c,h),f.size-c,!0))}function Lp(t,e,n=null,r=t){let i=V0(t,e),l=i&&b0(r,e);return l?i.map(cc).concat({type:e,attrs:n}).concat(l.map(cc)):null}function cc(t){return{type:t,attrs:null}}function V0(t,e){let{parent:n,startIndex:r,endIndex:i}=t,l=n.contentMatchAt(r).findWrapping(e);if(!l)return null;let o=l.length?l[0]:e;return n.canReplaceWith(r,i,o)?l:null}function b0(t,e){let{parent:n,startIndex:r,endIndex:i}=t,l=n.child(r),o=e.contentMatch.findWrapping(l.type);if(!o)return null;let u=(o.length?o[o.length-1]:e).contentMatch;for(let a=r;u&&a<i;a++)u=u.matchType(n.child(a).type);return!u||!u.validEnd?null:o}function W0(t,e,n){let r=w.empty;for(let o=n.length-1;o>=0;o--){if(r.size){let s=n[o].type.contentMatch.matchFragment(r);if(!s||!s.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=w.from(n[o].type.create(n[o].attrs,r))}let i=e.start,l=e.end;t.step(new pe(i,l,i,l,new O(r,0,0),n.length,!0))}function $0(t,e,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let l=t.steps.length;t.doc.nodesBetween(e,n,(o,s)=>{let u=typeof i=="function"?i(o):i;if(o.isTextblock&&!o.hasMarkup(r,u)&&j0(t.doc,t.mapping.slice(l).map(s),r)){let a=null;if(r.schema.linebreakReplacement){let h=r.whitespace=="pre",p=!!r.contentMatch.matchType(r.schema.linebreakReplacement);h&&!p?a=!1:!h&&p&&(a=!0)}a===!1&&Bp(t,o,s,l),Ea(t,t.mapping.slice(l).map(s,1),r,void 0,a===null);let f=t.mapping.slice(l),c=f.map(s,1),d=f.map(s+o.nodeSize,1);return t.step(new pe(c,d,c+1,d-1,new O(w.from(r.create(u,null,o.marks)),0,0),1,!0)),a===!0&&Fp(t,o,s,l),!1}})}function Fp(t,e,n,r){e.forEach((i,l)=>{if(i.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(i.text);){let u=t.mapping.slice(r).map(n+1+l+o.index);t.replaceWith(u,u+1,e.type.schema.linebreakReplacement.create())}}})}function Bp(t,e,n,r){e.forEach((i,l)=>{if(i.type==i.type.schema.linebreakReplacement){let o=t.mapping.slice(r).map(n+1+l);t.replaceWith(o,o+1,e.type.schema.text(`
44`))}})}function j0(t,e,n){let r=t.resolve(e),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function U0(t,e,n,r,i){let l=t.doc.nodeAt(e);if(!l)throw new RangeError("No node at given position");n||(n=l.type);let o=n.create(r,null,i||l.marks);if(l.isLeaf)return t.replaceWith(e,e+l.nodeSize,o);if(!n.validContent(l.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new pe(e,e+l.nodeSize,e+1,e+l.nodeSize-1,new O(w.from(o),0,0),1,!0))}function ni(t,e,n=1,r){let i=t.resolve(e),l=i.depth-n,o=r&&r[r.length-1]||i.parent;if(l<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let a=i.depth-1,f=n-2;a>l;a--,f--){let c=i.node(a),d=i.index(a);if(c.type.spec.isolating)return!1;let h=c.content.cutByIndex(d,c.childCount),p=r&&r[f+1];p&&(h=h.replaceChild(0,p.type.create(p.attrs)));let y=r&&r[f]||c;if(!c.canReplace(d+1,c.childCount)||!y.type.validContent(h))return!1}let s=i.indexAfter(l),u=r&&r[0];return i.node(l).canReplaceWith(s,s,u?u.type:i.node(l+1).type)}function H0(t,e,n=1,r){let i=t.doc.resolve(e),l=w.empty,o=w.empty;for(let s=i.depth,u=i.depth-n,a=n-1;s>u;s--,a--){l=w.from(i.node(s).copy(l));let f=r&&r[a];o=w.from(f?f.type.create(f.attrs,o):i.node(s).copy(o))}t.step(new te(e,e,new O(l.append(o),n,n),!0))}function Fi(t,e){let n=t.resolve(e),r=n.index();return _p(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function K0(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:r}=t.type.schema;for(let i=0;i<e.childCount;i++){let l=e.child(i),o=l.type==r?t.type.schema.nodes.text:l.type;if(n=n.matchType(o),!n||!t.type.allowsMarks(l.marks))return!1}return n.validEnd}function _p(t,e){return!!(t&&e&&!t.isLeaf&&K0(t,e))}function Vp(t,e,n=-1){let r=t.resolve(e);for(let i=r.depth;;i--){let l,o,s=r.index(i);if(i==r.depth?(l=r.nodeBefore,o=r.nodeAfter):n>0?(l=r.node(i+1),s++,o=r.node(i).maybeChild(s)):(l=r.node(i).maybeChild(s-1),o=r.node(i+1)),l&&!l.isTextblock&&_p(l,o)&&r.node(i).canReplace(s,s+1))return e;if(i==0)break;e=n<0?r.before(i):r.after(i)}}function J0(t,e,n){let r=null,{linebreakReplacement:i}=t.doc.type.schema,l=t.doc.resolve(e-n),o=l.node().type;if(i&&o.inlineContent){let f=o.whitespace=="pre",c=!!o.contentMatch.matchType(i);f&&!c?r=!1:!f&&c&&(r=!0)}let s=t.steps.length;if(r===!1){let f=t.doc.resolve(e+n);Bp(t,f.node(),f.before(),s)}o.inlineContent&&Ea(t,e+n-1,o,l.node().contentMatchAt(l.index()),r==null);let u=t.mapping.slice(s),a=u.map(e-n);if(t.step(new te(a,u.map(e+n,-1),O.empty,!0)),r===!0){let f=t.doc.resolve(a);Fp(t,f.node(),f.before(),t.steps.length)}return t}function Q0(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;
vendor: 6,643 bytes, line 44
44i--){let l=r.index(i);if(r.node(i).canReplaceWith(l,l,n))return r.before(i+1);if(l>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let l=r.indexAfter(i);if(r.node(i).canReplaceWith(l,l,n))return r.after(i+1);if(l<r.node(i).childCount)return null}return null}function bp(t,e,n){let r=t.resolve(e);if(!n.content.size)return e;let i=n.content;for(let l=0;l<n.openStart;l++)i=i.firstChild.content;for(let l=1;l<=(n.openStart==0&&n.size?2:1);l++)for(let o=r.depth;o>=0;o--){let s=o==r.depth?0:r.pos<=(r.start(o+1)+r.end(o+1))/2?-1:1,u=r.index(o)+(s>0?1:0),a=r.node(o),f=!1;if(l==1)f=a.canReplace(u,u,i);else{let c=a.contentMatchAt(u).findWrapping(i.firstChild.type);f=c&&a.canReplaceWith(u,u,c[0])}if(f)return s==0?r.pos:s<0?r.before(o+1):r.after(o+1)}return null}function Eo(t,e,n=e,r=O.empty){if(e==n&&!r.size)return null;let i=t.resolve(e),l=t.resolve(n);return Wp(i,l,r)?new te(e,n,r):new q0(i,l,r).fit()}function Wp(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class q0{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=w.empty;for(let i=0;i<=e.depth;i++){let l=e.node(i);this.frontier.push({type:l.type,match:l.contentMatchAt(e.indexAfter(i))})}for(let i=e.depth;i>0;i--)this.placed=w.from(e.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let a=this.findFittable();a?this.placeNodes(a):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let l=this.placed,o=r.depth,s=i.depth;for(;o&&s&&l.childCount==1;)l=l.firstChild.content,o--,s--;let u=new O(l,o,s);return e>-1?new pe(r.pos,e,this.$to.pos,this.$to.end(),u,n):u.size||r.pos!=this.$to.pos?new te(r.pos,i.pos,u):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,i=this.unplaced.openEnd;r<e;r++){let l=n.firstChild;if(n.childCount>1&&(i=0),l.type.spec.isolating&&i<=r){e=r;break}n=l.content}for(let n=1;n<=2;n++)for(let r=n==1?e:this.unplaced.openStart;r>=0;r--){let i,l=null;r?(l=as(this.unplaced.content,r-1).firstChild,i=l.content):i=this.unplaced.content;let o=i.firstChild;for(let s=this.depth;s>=0;s--){let{type:u,match:a}=this.frontier[s],f,c=null;if(n==1&&(o?a.matchType(o.type)||(c=a.fillBefore(w.from(o),!1)):l&&u.compatibleContent(l.type)))return{sliceDepth:r,frontierDepth:s,parent:l,inject:c};if(n==2&&o&&(f=a.findWrapping(o.type)))return{sliceDepth:r,frontierDepth:s,parent:l,wrap:f};if(l&&a.matchType(l.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,i=as(e,n);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new O(e,n+1,Math.max(r,i.size+n>=e.size-r?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:r}=this.unplaced,i=as(e,n);if(i.childCount<=1&&n>0){let l=e.size-n<=n+i.size;this.unplaced=new O(Wr(e,n-1,1),n-1,l?n-1:r)}else this.unplaced=new O(Wr(e,n,1),n,r)}placeNodes({sliceDepth:e,frontierDepth:n,parent:r,inject:i,wrap:l}){for(;this.depth>n;)this.closeFrontierNode();if(l)for(let y=0;y<l.length;y++)this.openFrontierNode(l[y]);let o=this.unplaced,s=r?r.content:o.content,u=o.openStart-e,a=0,f=[],{match:c,type:d}=this.frontier[n];if(i){for(let y=0;y<i.childCount;y++)f.push(i.child(y));c=c.matchFragment(i)}let h=s.size+e-(o.content.size-o.openEnd);for(;a<s.childCount;){let y=s.child(a),S=c.matchType(y.type);if(!S)break;a++,(a>1||u==0||y.content.size)&&(c=S,f.push($p(y.mark(d.allowedMarks(y.marks)),a==1?u:0,a==s.childCount?h:-1)))}let p=a==s.childCount;p||(h=-1),this.placed=$r(this.placed,n,w.from(f)),this.frontier[n].match=c,p&&h<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let y=0,S=s;y<h;y++){let m=S.lastChild;this.frontier.push({type:m.type,match:m.contentMatchAt(m.childCount)}),S=m.content}this.unplaced=p?e==0?O.empty:new O(Wr(o.content,e-1,1),e-1,h<0?o.openEnd:e-1):new O(Wr(o.content,e,a),o.openStart,o.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!fs(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:r}=this.$to,i=this.$to.after(r);for(;r>1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:r,type:i}=this.frontier[n],l=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),o=fs(e,n,i,r,l);if(o){for(let s=n-1;s>=0;s--){let{match:u,type:a}=this.frontier[s],f=fs(e,s,a,u,!0);if(!f||f.childCount)continue e}return{depth:n,fit:o,move:l?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=$r(this.placed,n.depth,n.fit)),e=n.move;for(let r=n.depth+1;r<=e.depth;r++){let i=e.node(r),l=i.type.contentMatch.fillBefore(i.content,!0,e.index(r));this.openFrontierNode(i.type,i.attrs,l)}return e}openFrontierNode(e,n=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=$r(this.placed,this.depth,w.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(w.empty,!0);n.childCount&&(this.placed=$r(this.placed,this.frontier.length,n))}}function Wr(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Wr(t.firstChild.content,e-1,n)))}function $r(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy($r(t.lastChild.content,e-1,n)))}function as(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function $p(t,e,n){if(e<=0)return t;let r=t.content;return e>1&&(r=r.replaceChild(0,$p(r.firstChild,e-1,r.childCount==1?n-1:0))),e>0&&(r=t.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(t.type.contentMatch.matchFragment(r).fillBefore(w.empty,!0)))),t.copy(r)}function fs(t,e,n,r,i){let l=t.node(e),o=i?t.indexAfter(e):t.index(e);if(o==l.childCount&&!n.compatibleContent(l.type))return null;let s=r.fillBefore(l.content,!0,o);return s&&!Y0(n,l.content,o)?s:null}function Y0(t,e,n){for(let r=n;r<e.childCount;r++)if(!t.allowsMarks(e.child(r).marks))return!0;return!1}function G0(t){return t.spec.defining||t.spec.definingForContent}function X0(t,e,n,r){if(!r.size)return t.deleteRange(e,n);let i=t.doc.resolve(e),l=t.doc.resolve(n);if(Wp(i,l,r))return t.step(new te(e,n,r));let o=Up(i,l);o[o.length-1]==0&&o.pop();let s=-(i.depth+1);o.unshift(s);for(let d=i.depth,h=i.pos-1;d>0;
vendor: 14,789 bytes, line 44
44d--,h--){let p=i.node(d).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;o.indexOf(d)>-1?s=d:i.before(d)==h&&o.splice(1,0,-d)}let u=o.indexOf(s),a=[],f=r.openStart;for(let d=r.content,h=0;;h++){let p=d.firstChild;if(a.push(p),h==r.openStart)break;d=p.content}for(let d=f-1;d>=0;d--){let h=a[d],p=G0(h.type);if(p&&!h.sameMarkup(i.node(Math.abs(s)-1)))f=d;else if(p||!h.type.isTextblock)break}for(let d=r.openStart;d>=0;d--){let h=(d+f+1)%(r.openStart+1),p=a[h];if(p)for(let y=0;y<o.length;y++){let S=o[(y+u)%o.length],m=!0;S<0&&(m=!1,S=-S);let g=i.node(S-1),v=i.index(S-1);if(g.canReplaceWith(v,v,p.type,p.marks))return t.replace(i.before(S),m?l.after(S):n,new O(jp(r.content,0,r.openStart,h),h,r.openEnd))}}let c=t.steps.length;for(let d=o.length-1;d>=0&&(t.replace(e,n,r),!(t.steps.length>c));d--){let h=o[d];h<0||(e=i.before(h),n=l.after(h))}}function jp(t,e,n,r,i){if(e<n){let l=t.firstChild;t=t.replaceChild(0,l.copy(jp(l.content,e+1,n,r,l)))}if(e>r){let l=i.contentMatchAt(0),o=l.fillBefore(t).append(t);t=o.append(l.matchFragment(o).fillBefore(w.empty,!0))}return t}function Z0(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let i=Q0(t.doc,e,r.type);i!=null&&(e=n=i)}t.replaceRange(e,n,new O(w.from(r),0,0))}function e1(t,e,n){let r=t.doc.resolve(e),i=t.doc.resolve(n);if(r.parent.isTextblock&&i.parent.isTextblock&&r.start()!=i.start()&&r.parentOffset==0&&i.parentOffset==0){let o=r.sharedDepth(n),s=!1;for(let u=r.depth;u>o;u--)r.node(u).type.spec.isolating&&(s=!0);for(let u=i.depth;u>o;u--)i.node(u).type.spec.isolating&&(s=!0);if(!s){for(let u=r.depth;u>0&&e==r.start(u);u--)e=r.before(u);for(let u=i.depth;u>0&&n==i.start(u);u--)n=i.before(u);r=t.doc.resolve(e),i=t.doc.resolve(n)}}let l=Up(r,i);for(let o=0;o<l.length;o++){let s=l[o],u=o==l.length-1;if(u&&s==0||r.node(s).type.contentMatch.validEnd)return t.delete(r.start(s),i.end(s));if(s>0&&(u||r.node(s-1).canReplace(r.index(s-1),i.indexAfter(s-1))))return t.delete(r.before(s),i.after(s))}for(let o=1;o<=r.depth&&o<=i.depth;o++)if(e-r.start(o)==r.depth-o&&n>r.end(o)&&i.end(o)-n!=i.depth-o&&r.start(o-1)==i.start(o-1)&&r.node(o-1).canReplace(r.index(o-1),i.index(o-1)))return t.delete(r.before(o),n);t.delete(e,n)}function Up(t,e){let n=[],r=Math.min(t.depth,e.depth);for(let i=r;i>=0;i--){let l=t.start(i);if(l<t.pos-(t.depth-i)||e.end(i)>e.pos+(e.depth-i)||t.node(i).type.spec.isolating||e.node(i).type.spec.isolating)break;(l==e.start(i)||i==t.depth&&i==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&i&&e.start(i-1)==l-1)&&n.push(i)}return n}class ar extends we{constructor(e,n,r){super(),this.pos=e,this.attr=n,this.value=r}apply(e){let n=e.nodeAt(this.pos);if(!n)return Z.fail("No node at attribute step's position");let r=Object.create(null);for(let l in n.attrs)r[l]=n.attrs[l];r[this.attr]=this.value;let i=n.type.create(r,null,n.marks);return Z.fromReplace(e,this.pos,this.pos+1,new O(w.from(i),0,n.isLeaf?0:1))}getMap(){return Fe.empty}invert(e){return new ar(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new ar(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new ar(n.pos,n.attr,n.value)}}we.jsonID("attr",ar);class Oi extends we{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let i in e.attrs)n[i]=e.attrs[i];n[this.attr]=this.value;let r=e.type.create(n,e.content,e.marks);return Z.ok(r)}getMap(){return Fe.empty}invert(e){return new Oi(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Oi(n.attr,n.value)}}we.jsonID("docAttr",Oi);let vr=class extends Error{};vr=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n};vr.prototype=Object.create(Error.prototype);vr.prototype.constructor=vr;vr.prototype.name="TransformError";class t1{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Ei}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new vr(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,n=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let i=this.mapping.maps[r];r&&(e=i.map(e,1),n=i.map(n,-1)),i.forEach((l,o,s,u)=>{e=Math.min(e,s),n=Math.max(n,u)})}return e==1e9?null:{from:e,to:n}}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,r=O.empty){let i=Eo(this.doc,e,n,r);return i&&this.step(i),this}replaceWith(e,n,r){return this.replace(e,n,new O(w.from(r),0,0))}delete(e,n){return this.replace(e,n,O.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return X0(this,e,n,r),this}replaceRangeWith(e,n,r){return Z0(this,e,n,r),this}deleteRange(e,n){return e1(this,e,n),this}lift(e,n){return _0(this,e,n),this}join(e,n=1){return J0(this,e,n),this}wrap(e,n){return W0(this,e,n),this}setBlockType(e,n=e,r,i=null){return $0(this,e,n,r,i),this}setNodeMarkup(e,n,r=null,i){return U0(this,e,n,r,i),this}setNodeAttribute(e,n,r){return this.step(new ar(e,n,r)),this}setDocAttribute(e,n){return this.step(new Oi(e,n)),this}addNodeMark(e,n){return this.step(new Ht(e,n)),this}removeNodeMark(e,n){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n instanceof V)n.isInSet(r.marks)&&this.step(new Ln(e,n));else{let i=r.marks,l,o=[];for(;l=n.isInSet(i);)o.push(new Ln(e,l)),i=l.removeFromSet(i);for(let s=o.length-1;s>=0;s--)this.step(o[s])}return this}split(e,n=1,r){return H0(this,e,n,r),this}addMark(e,n,r){return L0(this,e,n,r),this}removeMark(e,n,r){return F0(this,e,n,r),this}clearIncompatible(e,n,r){return Ea(this,e,n,r),this}}const cs=Object.create(null);class F{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new n1(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n<e.length;n++)if(e[n].$from.pos!=e[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,n=O.empty){let r=n.content.lastChild,i=null;for(let s=0;s<n.openEnd;s++)i=r,r=r.lastChild;let l=e.steps.length,o=this.ranges;for(let s=0;s<o.length;s++){let{$from:u,$to:a}=o[s],f=e.mapping.slice(l);e.replaceRange(f.map(u.pos),f.map(a.pos),s?O.empty:n),s==0&&pc(e,l,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,n){let r=e.steps.length,i=this.ranges;for(let l=0;l<i.length;l++){let{$from:o,$to:s}=i[l],u=e.mapping.slice(r),a=u.map(o.pos),f=u.map(s.pos);l?e.deleteRange(a,f):(e.replaceRangeWith(a,f,n),pc(e,r,n.isInline?-1:1))}}static findFrom(e,n,r=!1){let i=e.parent.inlineContent?new _(e):jn(e.node(0),e.parent,e.pos,e.index(),n,r);if(i)return i;for(let l=e.depth-1;l>=0;l--){let o=n<0?jn(e.node(0),e.node(l),e.before(l+1),e.index(l),n,r):jn(e.node(0),e.node(l),e.after(l+1),e.index(l)+1,n,r);if(o)return o}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new qe(e.node(0))}static atStart(e){return jn(e,e,0,0,1)||new qe(e)}static atEnd(e){return jn(e,e,e.content.size,e.childCount,-1)||new qe(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=cs[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in cs)throw new RangeError("Duplicate use of selection JSON ID "+e);return cs[e]=n,n.prototype.jsonID=e,n}getBookmark(){return _.between(this.$anchor,this.$head).getBookmark()}}F.prototype.visible=!0;class n1{constructor(e,n){this.$from=e,this.$to=n}}let dc=!1;function hc(t){!dc&&!t.parent.inlineContent&&(dc=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class _ extends F{constructor(e,n=e){hc(e),hc(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let r=e.resolve(n.map(this.head));if(!r.parent.inlineContent)return F.near(r);let i=e.resolve(n.map(this.anchor));return new _(i.parent.inlineContent?i:r,r)}replace(e,n=O.empty){if(super.replace(e,n),n==O.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof _&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Oo(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new _(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){let i=e.resolve(n);return new this(i,r==n?i:e.resolve(r))}static between(e,n,r){let i=e.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let l=F.findFrom(n,r,!0)||F.findFrom(n,-r,!0);if(l)n=l.$head;else return F.near(n,r)}return e.parent.inlineContent||(i==0?e=n:(e=(F.findFrom(e,-r,!0)||F.findFrom(e,r,!0)).$anchor,e.pos<n.pos!=i<0&&(e=n))),new _(e,n)}}F.jsonID("text",_);class Oo{constructor(e,n){this.anchor=e,this.head=n}map(e){return new Oo(e.map(this.anchor),e.map(this.head))}resolve(e){return _.between(e.resolve(this.anchor),e.resolve(this.head))}}class R extends F{constructor(e){let n=e.nodeAfter,r=e.node(0).resolve(e.pos+n.nodeSize);super(e,r),this.node=n}map(e,n){let{deleted:r,pos:i}=n.mapResult(this.anchor),l=e.resolve(i);return r?F.near(l):new R(l)}content(){return new O(w.from(this.node),0,0)}eq(e){return e instanceof R&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Oa(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new R(e.resolve(n.anchor))}static create(e,n){return new R(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}R.prototype.visible=!1;F.jsonID("node",R);class Oa{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:r}=e.mapResult(this.anchor);return n?new Oo(r,r):new Oa(r)}resolve(e){let n=e.resolve(this.anchor),r=n.nodeAfter;return r&&R.isSelectable(r)?new R(n):F.near(n)}}class qe extends F{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=O.empty){if(n==O.empty){e.delete(0,e.doc.content.size);let r=F.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new qe(e)}map(e){return new qe(e)}eq(e){return e instanceof qe}getBookmark(){return r1}}F.jsonID("all",qe);const r1={map(){return this},resolve(t){return new qe(t)}};function jn(t,e,n,r,i,l=!1){if(e.inlineContent)return _.create(t,n);for(let o=r-(i>0?0:1);i>0?o<e.childCount:o>=0;o+=i){let s=e.child(o);if(s.isAtom){if(!l&&R.isSelectable(s))return R.create(t,n-(i<0?s.nodeSize:0))}else{let u=jn(t,s,n+i,i<0?s.childCount:0,i,l);if(u)return u}n+=s.nodeSize*i}return null}function pc(t,e,n){let r=t.steps.length-1;if(r<e)return;let i=t.steps[r];if(!(i instanceof te||i instanceof pe))return;let l=t.mapping.maps[r],o;l.forEach((s,u,a,f)=>{o==null&&(o=f)}),t.setSelection(F.near(t.doc.resolve(o),n))}const mc=1,ul=2,gc=4;class i1 extends t1{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|mc)&~ul,this.storedMarks=null,this}get selectionSet(){return(this.updated&mc)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=ul,this}ensureMarks(e){return V.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&ul)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~ul,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let r=this.selection;return n&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||V.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,r){let i=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(i.text(e),!0):this.deleteSelection();{if(r==null&&(r=n),!e)return this.deleteRange(n,r);let l=this.storedMarks;if(!l){let o=this.doc.resolve(n);l=r==n?o.marks():o.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,i.text(e,l)),!this.selection.empty&&this.selection.to==n+e.length&&this.setSelection(F.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=gc,this}get scrolledIntoView(){return(this.updated&gc)>0}}function yc(t,e){return!e||!t?t:t.bind(e)}class jr{constructor(e,n,r){this.name=e,this.init=yc(n.init,r),this.apply=yc(n.apply,r)}}const l1=[new jr("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new jr("selection",{init(t,e){return t.selection||F.atStart(e.doc)},apply(t){return t.selection}}),new jr("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new jr("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class ds{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=l1.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new jr(r.key,r.spec.state,r))})}}
vendor: 4,302 bytes, line 44
44class Ur{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=n){let i=this.config.plugins[r];if(i.spec.filterTransaction&&!i.spec.filterTransaction.call(i,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],r=this.applyInner(e),i=null;for(;;){let l=!1;for(let o=0;o<this.config.plugins.length;o++){let s=this.config.plugins[o];if(s.spec.appendTransaction){let u=i?i[o].n:0,a=i?i[o].state:this,f=u<n.length&&s.spec.appendTransaction.call(s,u?n.slice(u):n,a,r);if(f&&r.filterTransaction(f,o)){if(f.setMeta("appendedTransaction",e),!i){i=[];for(let c=0;c<this.config.plugins.length;c++)i.push(c<o?{state:r,n:n.length}:{state:this,n:0})}n.push(f),r=r.applyInner(f),l=!0}i&&(i[o]={state:r,n:n.length})}}if(!l)return{state:r,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new Ur(this.config),r=this.config.fields;for(let i=0;i<r.length;i++){let l=r[i];n[l.name]=l.apply(e,this[l.name],this,n)}return n}get tr(){return new i1(this)}static create(e){let n=new ds(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new Ur(n);for(let i=0;i<n.fields.length;i++)r[n.fields[i].name]=n.fields[i].init(e,r);return r}reconfigure(e){let n=new ds(this.schema,e.plugins),r=n.fields,i=new Ur(n);for(let l=0;l<r.length;l++){let o=r[l].name;i[o]=this.hasOwnProperty(o)?this[o]:r[l].init(e,i)}return i}toJSON(e){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(r=>r.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=e[r],l=i.spec.state;l&&l.toJSON&&(n[r]=l.toJSON.call(i,this[i.key]))}return n}static fromJSON(e,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let i=new ds(e.schema,e.plugins),l=new Ur(i);return i.fields.forEach(o=>{if(o.name=="doc")l.doc=gt.fromJSON(e.schema,n.doc);else if(o.name=="selection")l.selection=F.fromJSON(l.doc,n.selection);else if(o.name=="storedMarks")n.storedMarks&&(l.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let s in r){let u=r[s],a=u.spec.state;if(u.key==o.name&&a&&a.fromJSON&&Object.prototype.hasOwnProperty.call(n,s)){l[o.name]=a.fromJSON.call(u,e,n[s],l);return}}l[o.name]=o.init(e,l)}}),l}}function Hp(t,e,n){for(let r in t){let i=t[r];i instanceof Function?i=i.bind(e):r=="handleDOMEvents"&&(i=Hp(i,e,{})),n[r]=i}return n}class To{constructor(e){this.spec=e,this.props={},e.props&&Hp(e.props,this,this.props),this.key=e.key?e.key.key:Kp("plugin")}getState(e){return e[this.key]}}const hs=Object.create(null);function Kp(t){return t in hs?t+"$"+ ++hs[t]:(hs[t]=0,t+"$")}class Jp{constructor(e="key"){this.key=Kp(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const fe=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Sr=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let Su=null;const xt=function(t,e,n){let r=Su||(Su=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},o1=function(){Su=null},Fn=function(t,e,n,r){return n&&(vc(t,e,n,r,-1)||vc(t,e,n,r,1))},s1=/^(img|br|input|textarea|hr)$/i;function vc(t,e,n,r,i){for(var l;;){if(t==n&&e==r)return!0;if(e==(i<0?0:He(t))){let o=t.parentNode;if(!o||o.nodeType!=1||Bi(t)||s1.test(t.nodeName)||t.contentEditable=="false")return!1;e=fe(t)+(i<0?0:1),t=o}else if(t.nodeType==1){let o=t.childNodes[e+(i<0?-1:0)];if(o.nodeType==1&&o.contentEditable=="false")if(!((l=o.pmViewDesc)===null||l===void 0)&&l.ignoreForSelection)e+=i;else return!1;else t=o,e=i<0?He(t):0}else return!1}}function He(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function u1(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=He(t)}else if(t.parentNode&&!Bi(t))e=fe(t),t=t.parentNode;else return null}}function a1(t,e){for(;;
vendor: 5,928 bytes, line 44
44){if(t.nodeType==3&&e<t.nodeValue.length)return t;if(t.nodeType==1&&e<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[e],e=0}else if(t.parentNode&&!Bi(t))e=fe(t)+1,t=t.parentNode;else return null}}function f1(t,e,n){for(let r=e==0,i=e==He(t);r||i;){if(t==n)return!0;let l=fe(t);if(t=t.parentNode,!t)return!1;r=r&&l==0,i=i&&l==He(t)}}function Bi(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const Mo=function(t){return t.focusNode&&Fn(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function gn(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function c1(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function d1(t,e,n){if(t.caretPositionFromPoint)try{let r=t.caretPositionFromPoint(e,n);if(r)return{node:r.offsetNode,offset:Math.min(He(r.offsetNode),r.offset)}}catch{}if(t.caretRangeFromPoint){let r=t.caretRangeFromPoint(e,n);if(r)return{node:r.startContainer,offset:Math.min(He(r.startContainer),r.startOffset)}}}const yt=typeof navigator<"u"?navigator:null,Sc=typeof document<"u"?document:null,cn=yt&&yt.userAgent||"",ku=/Edge\/(\d+)/.exec(cn),Qp=/MSIE \d/.exec(cn),xu=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(cn),Ae=!!(Qp||xu||ku),tn=Qp?document.documentMode:xu?+xu[1]:ku?+ku[1]:0,Ye=!Ae&&/gecko\/(\d+)/i.test(cn);Ye&&+(/Firefox\/(\d+)/.exec(cn)||[0,0])[1];const wu=!Ae&&/Chrome\/(\d+)/.exec(cn),de=!!wu,qp=wu?+wu[1]:0,xe=!Ae&&!!yt&&/Apple Computer/.test(yt.vendor),kr=xe&&(/Mobile\/\w+/.test(cn)||!!yt&&yt.maxTouchPoints>2),$e=kr||(yt?/Mac/.test(yt.platform):!1),Yp=yt?/Win/.test(yt.platform):!1,Et=/Android \d/.test(cn),_i=!!Sc&&"webkitFontSmoothing"in Sc.documentElement.style,h1=_i?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function p1(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function St(t,e){return typeof t=="number"?t:t[e]}function m1(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*r}}function kc(t,e,n){let r=t.someProp("scrollThreshold")||0,i=t.someProp("scrollMargin")||5,l=t.dom.ownerDocument;for(let o=n||t.dom;o;){if(o.nodeType!=1){o=Sr(o);continue}let s=o,u=s==l.body,a=u?p1(l):m1(s),f=0,c=0;if(e.top<a.top+St(r,"top")?c=-(a.top-e.top+St(i,"top")):e.bottom>a.bottom-St(r,"bottom")&&(c=e.bottom-e.top>a.bottom-a.top?e.top+St(i,"top")-a.top:e.bottom-a.bottom+St(i,"bottom")),e.left<a.left+St(r,"left")?f=-(a.left-e.left+St(i,"left")):e.right>a.right-St(r,"right")&&(f=e.right-a.right+St(i,"right")),f||c)if(u)l.defaultView.scrollBy(f,c);else{let h=s.scrollLeft,p=s.scrollTop;c&&(s.scrollTop+=c),f&&(s.scrollLeft+=f);let y=s.scrollLeft-h,S=s.scrollTop-p;e={left:e.left-y,top:e.top-S,right:e.right-y,bottom:e.bottom-S}}let d=u?"fixed":getComputedStyle(o).position;if(/^(fixed|sticky)$/.test(d))break;o=d=="absolute"?o.offsetParent:Sr(o)}}function g1(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),r,i;for(let l=(e.left+e.right)/2,o=n+1;o<Math.min(innerHeight,e.bottom);o+=5){let s=t.root.elementFromPoint(l,o);if(!s||s==t.dom||!t.dom.contains(s))continue;let u=s.getBoundingClientRect();if(u.top>=n-20){r=s,i=u.top;break}}return{refDOM:r,refTop:i,stack:Gp(t.dom)}}function Gp(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=Sr(r));return e}function y1({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;Xp(n,r==0?0:r-e)}function Xp(t,e){for(let n=0;n<t.length;n++){let{dom:r,top:i,left:l}=t[n];r.scrollTop!=i+e&&(r.scrollTop=i+e),r.scrollLeft!=l&&(r.scrollLeft=l)}}let Wn=null;function v1(t){if(t.setActive)return t.setActive();if(Wn)return t.focus(Wn);let e=Gp(t);t.focus(Wn==null?{get preventScroll(){return Wn={preventScroll:!0},!0}}:void 0),Wn||(Wn=!1,Xp(e,0))}function Zp(t,e){let n,r=2e8,i,l=0,o=e.top,s=e.top,u,a;for(let f=t.firstChild,c=0;f;f=f.nextSibling,c++){let d;if(f.nodeType==1)d=f.getClientRects();else if(f.nodeType==3)d=xt(f).getClientRects();else continue;for(let h=0;h<d.length;h++){let p=d[h];if(p.top<=o&&p.bottom>=s){o=Math.max(p.bottom,o),s=Math.min(p.top,s);let y=p.left>e.left?p.left-e.left:p.right<e.left?e.left-p.right:0;if(y<r){n=f,r=y,i=y&&n.nodeType==3?{left:p.right<e.left?p.right:p.left,top:e.top}:e,f.nodeType==1&&y&&(l=c+(e.left>=(p.left+p.right)/2?1:0));continue}}else p.top>e.top&&!u&&p.left<=e.left&&p.right>=e.left&&(u=f,a={left:Math.max(p.left,Math.min(p.right,e.left)),top:p.top});!n&&(e.left>=p.right&&e.top>=p.top||e.left>=p.left&&e.top>=p.bottom)&&(l=c+1)}}return!n&&u&&(n=u,i=a,r=0),n&&n.nodeType==3?S1(n,i):!n||r&&n.nodeType==1?{node:t,offset:l}:Zp(n,i)}function S1(t,e){let n=t.nodeValue.length,r=document.createRange(),i;for(let l=0;l<n;l++){r.setEnd(t,l+1),r.setStart(t,l);let o=At(r,1);if(o.top!=o.bottom&&Ta(e,o)){i={node:t,offset:l+(e.left>=(o.left+o.right)/2?1:0)};break}}return r.detach(),i||{node:t,offset:0}}function Ta(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function k1(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function x1(t,e,n){let{node:r,offset:i}=Zp(e,n),l=-1;if(r.nodeType==1&&!r.firstChild){let o=r.getBoundingClientRect();l=o.left!=o.right&&n.left>(o.left+o.right)/2?1:-1}return t.docView.posFromDOM(r,i,l)}function w1(t,e,n,r){let i=-1;for(let l=e,o=!1;l!=t.dom;){let s=t.docView.nearestDesc(l,!0),u;if(!s)return null;if(s.dom.nodeType==1&&(s.node.isBlock&&s.parent||!s.contentDOM)&&((u=s.dom.getBoundingClientRect()).width||u.height)&&(s.node.isBlock&&s.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(s.dom.nodeName)&&(!o&&u.left>r.left||u.top>
vendor: 7,106 bytes, line 44
44r.top?i=s.posBefore:(!o&&u.right<r.left||u.bottom<r.top)&&(i=s.posAfter),o=!0),!s.contentDOM&&i<0&&!s.node.isText))return(s.node.isBlock?r.top<(u.top+u.bottom)/2:r.left<(u.left+u.right)/2)?s.posBefore:s.posAfter;l=s.dom.parentNode}return i>-1?i:t.docView.posFromDOM(e,n,-1)}function em(t,e,n){let r=t.childNodes.length;if(r&&n.top<n.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-n.top)/(n.bottom-n.top))-2)),l=i;;){let o=t.childNodes[l];if(o.nodeType==1){let s=o.getClientRects();for(let u=0;u<s.length;u++){let a=s[u];if(Ta(e,a))return em(o,e,a)}}if((l=(l+1)%r)==i)break}return t}function C1(t,e){let n=t.dom.ownerDocument,r,i=0,l=d1(n,e.left,e.top);l&&({node:r,offset:i}=l);let o=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),s;if(!o||!t.dom.contains(o.nodeType!=1?o.parentNode:o)){let a=t.dom.getBoundingClientRect();if(!Ta(e,a)||(o=em(t.dom,e,a),!o))return null}if(xe)for(let a=o;r&&a;a=Sr(a))a.draggable&&(r=void 0);if(o=k1(o,e),r){if(Ye&&r.nodeType==1&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let f=r.childNodes[i],c;f.nodeName=="IMG"&&(c=f.getBoundingClientRect()).right<=e.left&&c.bottom>e.top&&i++}let a;_i&&i&&r.nodeType==1&&(a=r.childNodes[i-1]).nodeType==1&&a.contentEditable=="false"&&a.getBoundingClientRect().top>=e.top&&i--,r==t.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?s=t.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(s=w1(t,r,i,e))}s==null&&(s=x1(t,o,e));let u=t.docView.nearestDesc(o,!0);return{pos:s,inside:u?u.posAtStart-u.border:-1}}function xc(t){return t.top<t.bottom||t.left<t.right}function At(t,e){let n=t.getClientRects();if(n.length){let r=n[e<0?0:n.length-1];if(xc(r))return r}return Array.prototype.find.call(n,xc)||t.getBoundingClientRect()}const N1=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function tm(t,e,n){let{node:r,offset:i,atom:l}=t.docView.domFromPos(e,n<0?-1:1),o=_i||Ye;if(r.nodeType==3)if(o&&(N1.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let u=At(xt(r,i,i),n);if(Ye&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let a=At(xt(r,i-1,i-1),-1);if(a.top==u.top){let f=At(xt(r,i,i+1),-1);if(f.top!=u.top)return Fr(f,f.left<a.left)}}return u}else{let u=i,a=i,f=n<0?1:-1;return n<0&&!i?(a++,f=-1):n>=0&&i==r.nodeValue.length?(u--,f=1):n<0?u--:a++,Fr(At(xt(r,u,a),f),f<0)}if(!t.state.doc.resolve(e-(l||0)).parent.inlineContent){if(l==null&&i&&(n<0||i==He(r))){let u=r.childNodes[i-1];if(u.nodeType==1)return ps(u.getBoundingClientRect(),!1)}if(l==null&&i<He(r)){let u=r.childNodes[i];if(u.nodeType==1)return ps(u.getBoundingClientRect(),!0)}return ps(r.getBoundingClientRect(),n>=0)}if(l==null&&i&&(n<0||i==He(r))){let u=r.childNodes[i-1],a=u.nodeType==3?xt(u,He(u)-(o?0:1)):u.nodeType==1&&(u.nodeName!="BR"||!u.nextSibling)?u:null;if(a)return Fr(At(a,1),!1)}if(l==null&&i<He(r)){let u=r.childNodes[i];for(;u.pmViewDesc&&u.pmViewDesc.ignoreForCoords;)u=u.nextSibling;let a=u?u.nodeType==3?xt(u,0,o?0:1):u.nodeType==1?u:null:null;if(a)return Fr(At(a,-1),!0)}return Fr(At(r.nodeType==3?xt(r):r,-n),n>=0)}function Fr(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function ps(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function nm(t,e,n){let r=t.state,i=t.root.activeElement;r!=e&&t.updateState(e),i!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),i!=t.dom&&i&&i.focus()}}function E1(t,e,n){let r=e.selection,i=n=="up"?r.$from:r.$to;return nm(t,e,()=>{let{node:l}=t.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let s=t.docView.nearestDesc(l,!0);if(!s)break;if(s.node.isBlock){l=s.contentDOM||s.dom;break}l=s.dom.parentNode}let o=tm(t,i.pos,1);for(let s=l.firstChild;s;s=s.nextSibling){let u;if(s.nodeType==1)u=s.getClientRects();else if(s.nodeType==3)u=xt(s,0,s.nodeValue.length).getClientRects();else continue;for(let a=0;a<u.length;a++){let f=u[a];if(f.bottom>f.top+1&&(n=="up"?o.top-f.top>(f.bottom-o.top)*2:f.bottom-o.bottom>(o.bottom-f.top)*2))return!1}}return!0})}const O1=/[\u0590-\u08ac]/;function T1(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,l=!i,o=i==r.parent.content.size,s=t.domSelection();return s?!O1.test(r.parent.textContent)||!s.modify?n=="left"||n=="backward"?l:o:nm(t,e,()=>{let{focusNode:u,focusOffset:a,anchorNode:f,anchorOffset:c}=t.domSelectionRange(),d=s.caretBidiLevel;s.modify("move",n,"character");let h=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:p,focusOffset:y}=t.domSelectionRange(),S=p&&!h.contains(p.nodeType==1?p:p.parentNode)||u==p&&a==y;try{s.collapse(f,c),u&&(u!=f||a!=c)&&s.extend&&s.extend(u,a)}catch{}return d!=null&&(s.caretBidiLevel=d),S}):r.pos==r.start()||r.pos==r.end()}let wc=null,Cc=null,Nc=!1;function M1(t,e,n){return wc==e&&Cc==n?Nc:(wc=e,Cc=n,Nc=n=="up"||n=="down"?E1(t,e,n):T1(t,e,n))}const Ge=0,Ec=1,kn=2,vt=3;class Vi{constructor(e,n,r,i){this.parent=e,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=Ge,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n<this.children.length;n++)e+=this.children[n].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let n=0,r=this.posAtStart;;n++){let i=this.children[n];if(i==e)return r;r+=i.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,n,r){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(r<0){let l,o;if(e==this.contentDOM)l=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;l=e.previousSibling}for(;l&&!((o=l.pmViewDesc)&&o.parent==this);)l=l.previousSibling;return l?this.posBeforeChild(o)+o.size:this.posAtStart}else{let l,o;if(e==this.contentDOM)l=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;l=e.nextSibling}for(;l&&!((o=l.pmViewDesc)&&o.parent==this);)l=l.nextSibling;return l?this.posBeforeChild(o):this.posAtEnd}let i;if(e==this.dom&&this.contentDOM)i=n>fe(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let l=e;;l=l.parentNode){if(l==this.dom){i=!1;break}if(l.previousSibling)break}if(i==null&&n==e.childNodes.length)for(let l=e;;l=l.parentNode){if(l==this.dom){i=!0;break}if(l.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let r=!0,i=e;i;i=i.parentNode){let l=this.getDesc(i),o;if(l&&(!n||l.node))if(r&&(o=l.nodeDOM)&&!(o.nodeType==1?o.contains(e.nodeType==1?e:e.parentNode):o==e))r=!1;else return l}}
vendor: 4,360 bytes, lines 44-45
44getDesc(e){let n=e.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(e,n,r){for(let i=e;i;i=i.parentNode){let l=this.getDesc(i);if(l)return l.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;n<this.children.length;n++){let i=this.children[n],l=r+i.size;if(r==e&&l!=r){for(;!i.border&&i.children.length;)for(let o=0;o<i.children.length;o++){let s=i.children[o];if(s.size){i=s;break}}return i}if(e<l)return i.descAt(e-r-i.border);r=l}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,i=0;for(let l=0;r<this.children.length;r++){let o=this.children[r],s=l+o.size;if(s>e||o instanceof im){i=e-l;break}l=s}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let l;r&&!(l=this.children[r-1]).size&&l instanceof rm&&l.side>=0;r--);if(n<=0){let l,o=!0;for(;l=r?this.children[r-1]:null,!(!l||l.dom.parentNode==this.contentDOM);r--,o=!1);return l&&n&&o&&!l.border&&!l.domAtom?l.domFromPos(l.size,n):{node:this.contentDOM,offset:l?fe(l.dom)+1:0}}else{let l,o=!0;for(;l=r<this.children.length?this.children[r]:null,!(!l||l.dom.parentNode==this.contentDOM);r++,o=!1);return l&&o&&!l.border&&!l.domAtom?l.domFromPos(0,n):{node:this.contentDOM,offset:l?fe(l.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,r=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let i=-1,l=-1;for(let o=r,s=0;;s++){let u=this.children[s],a=o+u.size;if(i==-1&&e<=a){let f=o+u.border;if(e>=f&&n<=a-u.border&&u.node&&u.contentDOM&&this.contentDOM.contains(u.contentDOM))return u.parseRange(e,n,f);e=o;for(let c=s;c>0;c--){let d=this.children[c-1];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(1)){i=fe(d.dom)+1;break}e-=d.size}i==-1&&(i=0)}if(i>-1&&(a>n||s==this.children.length-1)){n=a;for(let f=s+1;f<this.children.length;f++){let c=this.children[f];if(c.size&&c.dom.parentNode==this.contentDOM&&!c.emptyChildAt(-1)){l=fe(c.dom);break}n+=c.size}l==-1&&(l=this.contentDOM.childNodes.length);break}o=a}return{node:this.contentDOM,from:e,to:n,fromOffset:i,toOffset:l}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:r}=this.domFromPos(e,0);if(n.nodeType!=1||r==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[r]}setSelection(e,n,r,i=!1){let l=Math.min(e,n),o=Math.max(e,n);for(let h=0,p=0;h<this.children.length;h++){let y=this.children[h],S=p+y.size;if(l>p&&o<S)return y.setSelection(e-p-y.border,n-p-y.border,r,i);p=S}let s=this.domFromPos(e,e?-1:1),u=n==e?s:this.domFromPos(n,n?-1:1),a=r.root.getSelection(),f=r.domSelectionRange(),c=!1;if((Ye||xe)&&e==n){let{node:h,offset:p}=s;if(h.nodeType==3){if(c=!!(p&&h.nodeValue[p-1]==`
45`),c&&p==h.nodeValue.length)for(let y=h,S;y;y=y.parentNode){if(S=y.nextSibling){S.nodeName=="BR"&&(s=u={node:S.parentNode,offset:fe(S)+1});break}let m=y.pmViewDesc;if(m&&m.node&&m.node.isBlock)break}}else{let y=h.childNodes[p-1];c=y&&(y.nodeName=="BR"||y.contentEditable=="false")}}if(Ye&&f.focusNode&&f.focusNode!=u.node&&f.focusNode.nodeType==1){let h=f.focusNode.childNodes[f.focusOffset];h&&h.contentEditable=="false"&&(i=!0)}if(!(i||c&&xe)&&Fn(s.node,s.offset,f.anchorNode,f.anchorOffset)&&Fn(u.node,u.offset,f.focusNode,f.focusOffset))return;let d=!1;if((a.extend||e==n)&&!(c&&Ye)){a.collapse(s.node,s.offset);try{e!=n&&a.extend(u.node,u.offset),d=!0}catch{}}if(!d){if(e>n){let p=s;s=u,u=p}let h=document.createRange();h.setEnd(u.node,u.offset),h.setStart(s.node,s.offset),a.removeAllRanges(),a.addRange(h)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,i=0;i<this.children.length;i++){let l=this.children[i],o=r+l.size;if(r==o?e<=o&&n>=r:e<o&&n>r){let s=r+l.border,u=o-l.border;if(e>=s&&n<=u){this.dirty=e==r||n==o?kn:Ec,e==s&&n==u&&(l.contentLost||l.dom.parentNode!=this.contentDOM)?l.dirty=vt:l.markDirty(e-s,n-s);return}else l.dirty=l.dom==l.contentDOM&&l.dom.parentNode==this.contentDOM&&!l.children.length?kn:vt}r=o}this.dirty=kn}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?kn:Ec;n.dirty<r&&(n.dirty=r)}
vendor: 3,737 bytes, line 45
45}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class rm extends Vi{constructor(e,n,r,i){let l,o=n.type.toDOM;if(typeof o=="function"&&(o=o(r,()=>{if(!l)return i;if(l.parent)return l.parent.posBeforeChild(l)})),!n.type.spec.raw){if(o.nodeType!=1){let s=document.createElement("span");s.appendChild(o),o=s}o.contentEditable="false",o.classList.add("ProseMirror-widget")}super(e,[],o,null),this.widget=n,this.widget=n,l=this}matchesWidget(e){return this.dirty==Ge&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class D1 extends Vi{constructor(e,n,r,i){super(e,[],n,null),this.textDOM=r,this.text=i}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class Bn extends Vi{constructor(e,n,r,i,l){super(e,[],r,i),this.mark=n,this.spec=l}static create(e,n,r,i){let l=i.nodeViews[n.type.name],o=l&&l(n,i,r);return(!o||!o.dom)&&(o=Er.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new Bn(e,n,o.dom,o.contentDOM||o.dom,o)}parseRule(){return this.dirty&vt||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=vt&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=Ge){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=Ge}}slice(e,n,r){let i=Bn.create(this.parent,this.mark,!0,r),l=this.children,o=this.size;n<o&&(l=Nu(l,n,o,r)),e>0&&(l=Nu(l,0,e,r));for(let s=0;s<l.length;s++)l[s].parent=i;return i.children=l,i}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class nn extends Vi{constructor(e,n,r,i,l,o,s,u,a){super(e,[],l,o),this.node=n,this.outerDeco=r,this.innerDeco=i,this.nodeDOM=s}static create(e,n,r,i,l,o){let s=l.nodeViews[n.type.name],u,a=s&&s(n,l,()=>{if(!u)return o;if(u.parent)return u.parent.posBeforeChild(u)},r,i),f=a&&a.dom,c=a&&a.contentDOM;if(n.isText){if(!f)f=document.createTextNode(n.text);else if(f.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else f||({dom:f,contentDOM:c}=Er.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!c&&!n.isText&&f.nodeName!="BR"&&(f.hasAttribute("contenteditable")||(f.contentEditable="false"),n.type.spec.draggable&&(f.draggable=!0));let d=f;return f=sm(f,r,n),a?u=new R1(e,n,r,i,f,c||null,d,a,l,o+1):n.isText?new Do(e,n,r,i,f,d,l):new nn(e,n,r,i,f,c||null,d,l,o+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>w.empty)}return e}matchesNode(e,n,r){return this.dirty==Ge&&e.eq(this.node)&&eo(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}
vendor: 11,160 bytes, line 45
45updateChildren(e,n){let r=this.node.inlineContent,i=n,l=e.composing?this.localCompositionInfo(e,n):null,o=l&&l.pos>-1?l:null,s=l&&l.pos<0,u=new I1(this,o&&o.node,e);L1(this.node,this.innerDeco,(a,f,c)=>{a.spec.marks?u.syncToMarks(a.spec.marks,r,e,f):a.type.side>=0&&!c&&u.syncToMarks(f==this.node.childCount?V.none:this.node.child(f).marks,r,e,f),u.placeWidget(a,e,i)},(a,f,c,d)=>{u.syncToMarks(a.marks,r,e,d);let h;u.findNodeMatch(a,f,c,d)||s&&e.state.selection.from>i&&e.state.selection.to<i+a.nodeSize&&(h=u.findIndexWithChild(l.node))>-1&&u.updateNodeAt(a,f,c,h,e)||u.updateNextNode(a,f,c,e,d,i)||u.addNode(a,f,c,e,i),i+=a.nodeSize}),u.syncToMarks([],r,e,0),this.node.isTextblock&&u.addTextblockHacks(),u.destroyRest(),(u.changed||this.dirty==kn)&&(o&&this.protectLocalComposition(e,o),lm(this.contentDOM,this.children,e),kr&&F1(this.dom))}localCompositionInfo(e,n){let{from:r,to:i}=e.state.selection;if(!(e.state.selection instanceof _)||r<n||i>n+this.node.content.size)return null;let l=e.input.compositionNode;if(!l||!this.dom.contains(l.parentNode))return null;if(this.node.inlineContent){let o=l.nodeValue,s=B1(this.node.content,o,r-n,i-n);return s<0?null:{node:l,pos:s,text:o}}else return{node:l,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:i}){if(this.getDesc(n))return;let l=n;for(;l.parentNode!=this.contentDOM;l=l.parentNode){for(;l.previousSibling;)l.parentNode.removeChild(l.previousSibling);for(;l.nextSibling;)l.parentNode.removeChild(l.nextSibling);l.pmViewDesc&&(l.pmViewDesc=void 0)}let o=new D1(this,l,n,i);e.input.compositionNodes.push(o),this.children=Nu(this.children,r,r+i.length,e,o)}update(e,n,r,i){return this.dirty==vt||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,r,i),!0)}updateInner(e,n,r,i){this.updateOuterDeco(n),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=Ge}updateOuterDeco(e){if(eo(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=om(this.dom,this.nodeDOM,Cu(this.outerDeco,this.node,n),Cu(e,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function Oc(t,e,n,r,i){sm(r,e,t);let l=new nn(void 0,t,e,n,r,r,r,i,0);return l.contentDOM&&l.updateChildren(i,0),l}class Do extends nn{constructor(e,n,r,i,l,o,s){super(e,n,r,i,l,null,o,s,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,r,i){return this.dirty==vt||this.dirty!=Ge&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=Ge||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=e,this.dirty=Ge,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,r){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,r){let i=this.node.cut(e,n),l=document.createTextNode(i.text);return new Do(this.parent,i,this.outerDeco,this.innerDeco,l,l,r)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=vt)}get domAtom(){return!1}isText(e){return this.node.text==e}}class im extends Vi{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Ge&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class R1 extends nn{constructor(e,n,r,i,l,o,s,u,a,f){super(e,n,r,i,l,o,s,a,f),this.spec=u}update(e,n,r,i){if(this.dirty==vt)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let l=this.spec.update(e,n,r);return l&&this.updateInner(e,n,r,i),l}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,r,i){this.spec.setSelection?this.spec.setSelection(e,n,r.root):super.setSelection(e,n,r,i)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function lm(t,e,n){let r=t.firstChild,i=!1;for(let l=0;l<e.length;l++){let o=e[l],s=o.dom;if(s.parentNode==t){for(;s!=r;)r=Tc(r),i=!0;r=r.nextSibling}else i=!0,t.insertBefore(s,r);if(o instanceof Bn){let u=r?r.previousSibling:t.lastChild;lm(o.contentDOM,o.children,n),r=u?u.nextSibling:t.firstChild}}for(;r;)r=Tc(r),i=!0;i&&n.trackWrites==t&&(n.trackWrites=null)}const ri=function(t){t&&(this.nodeName=t)};ri.prototype=Object.create(null);const xn=[new ri];function Cu(t,e,n){if(t.length==0)return xn;let r=n?xn[0]:new ri,i=[r];for(let l=0;l<t.length;l++){let o=t[l].type.attrs;if(o){o.nodeName&&i.push(r=new ri(o.nodeName));for(let s in o){let u=o[s];u!=null&&(n&&i.length==1&&i.push(r=new ri(e.isInline?"span":"div")),s=="class"?r.class=(r.class?r.class+" ":"")+u:s=="style"?r.style=(r.style?r.style+";":"")+u:s!="nodeName"&&(r[s]=u))}}}return i}function om(t,e,n,r){if(n==xn&&r==xn)return e;let i=e;for(let l=0;l<r.length;l++){let o=r[l],s=n[l];if(l){let u;s&&s.nodeName==o.nodeName&&i!=t&&(u=i.parentNode)&&u.nodeName.toLowerCase()==o.nodeName||(u=document.createElement(o.nodeName),u.pmIsDeco=!0,u.appendChild(i),s=xn[0]),i=u}P1(i,s||xn[0],o)}return i}function P1(t,e,n){for(let r in e)r!="class"&&r!="style"&&r!="nodeName"&&!(r in n)&&t.removeAttribute(r);for(let r in n)r!="class"&&r!="style"&&r!="nodeName"&&n[r]!=e[r]&&t.setAttribute(r,n[r]);if(e.class!=n.class){let r=e.class?e.class.split(" ").filter(Boolean):[],i=n.class?n.class.split(" ").filter(Boolean):[];for(let l=0;l<r.length;l++)i.indexOf(r[l])==-1&&t.classList.remove(r[l]);for(let l=0;l<i.length;l++)r.indexOf(i[l])==-1&&t.classList.add(i[l]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,i;for(;i=r.exec(e.style);)t.style.removeProperty(i[1])}n.style&&(t.style.cssText+=n.style)}}function sm(t,e,n){return om(t,t,xn,Cu(e,n,t.nodeType!=1))}function eo(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function Tc(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class I1{constructor(e,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=z1(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let r=e;r<n;r++)this.top.children[r].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,r,i){let l=0,o=this.stack.length>>1,s=Math.min(o,e.length);for(;l<s&&(l==o-1?this.top:this.stack[l+1<<1]).matchesMark(e[l])&&e[l].type.spec.spanning!==!1;)l++;for(;l<o;)this.destroyRest(),this.top.dirty=Ge,this.index=this.stack.pop(),this.top=this.stack.pop(),o--;for(;o<e.length;){this.stack.push(this.top,this.index+1);let u=-1,a=this.top.children.length;i<this.preMatch.index&&(a=Math.min(this.index+3,a));for(let f=this.index;f<a;f++){let c=this.top.children[f];if(c.matchesMark(e[o])&&!this.isLocked(c.dom)){u=f;break}}if(u>-1)u>this.index&&(this.changed=!0,this.destroyBetween(this.index,u)),this.top=this.top.children[this.index];else{let f=Bn.create(this.top,e[o],n,r);this.top.children.splice(this.index,0,f),this.top=f,this.changed=!0}this.index=0,o++}}findNodeMatch(e,n,r,i){let l=-1,o;if(i>=this.preMatch.index&&(o=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&o.matchesNode(e,n,r))l=this.top.children.indexOf(o,this.index);else for(let s=this.index,u=Math.min(this.top.children.length,s+5);s<u;s++){let a=this.top.children[s];if(a.matchesNode(e,n,r)&&!this.preMatch.matched.has(a)){l=s;break}}return l<0?!1:(this.destroyBetween(this.index,l),this.index++,!0)}updateNodeAt(e,n,r,i,l){let o=this.top.children[i];return o.dirty==vt&&o.dom==o.contentDOM&&(o.dirty=kn),o.update(e,n,r,l)?(this.destroyBetween(this.index,i),this.index++,!0):!1}findIndexWithChild(e){for(;;){let n=e.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let r=e.pmViewDesc;if(r){for(let i=this.index;i<this.top.children.length;i++)if(this.top.children[i]==r)return i}return-1}e=n}}updateNextNode(e,n,r,i,l,o){for(let s=this.index;s<this.top.children.length;s++){let u=this.top.children[s];if(u instanceof nn){let a=this.preMatch.matched.get(u);if(a!=null&&a!=l)return!1;let f=u.dom,c,d=this.isLocked(f)&&!(e.isText&&u.node&&u.node.isText&&u.nodeDOM.nodeValue==e.text&&u.dirty!=vt&&eo(n,u.outerDeco));if(!d&&u.update(e,n,r,i))return this.destroyBetween(this.index,s),u.dom!=f&&(this.changed=!0),this.index++,!0;if(!d&&(c=this.recreateWrapper(u,e,n,r,i,o)))return this.destroyBetween(this.index,s),this.top.children[this.index]=c,c.contentDOM&&(c.dirty=kn,c.updateChildren(i,o+1),c.dirty=Ge),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,r,i,l,o){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content)||!eo(r,e.outerDeco)||!i.eq(e.innerDeco))return null;let s=nn.create(this.top,n,r,i,l,o);if(s.contentDOM){s.children=e.children,e.children=[];for(let u of s.children)u.parent=s}return e.destroy(),s}addNode(e,n,r,i,l){let o=nn.create(this.top,e,n,r,i,l);o.contentDOM&&o.updateChildren(i,l+1),this.top.children.splice(this.index++,0,o),this.changed=!0}placeWidget(e,n,r){let i=this.index<this.top.children.length?this.top.children[this.index]:null;if(i&&i.matchesWidget(e)&&(e==i.widget||!i.widget.type.toDOM.parentNode))this.index++;else{let l=new rm(this.top,e,n,r);this.top.children.splice(this.index++,0,l),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof Bn;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof Do)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((xe||de)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(e,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(e))this.index++;else{let r=document.createElement(e);e=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),e=="BR"&&(r.className="ProseMirror-trailingBreak");let i=new im(this.top,[],r,null);n!=this.top?n.children.push(i):n.children.splice(this.index++,0,i),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function z1(t,e){let n=e,r=n.children.length,i=t.childCount,l=ne
vendor: 4,549 bytes, line 45
45w Map,o=[];e:for(;i>0;){let s;for(;;)if(r){let a=n.children[r-1];if(a instanceof Bn)n=a,r=a.children.length;else{s=a,r--;break}}else{if(n==e)break e;r=n.parent.children.indexOf(n),n=n.parent}let u=s.node;if(u){if(u!=t.child(i-1))break;--i,l.set(s,i),o.push(s)}}return{index:i,matched:l,matches:o.reverse()}}function A1(t,e){return t.type.side-e.type.side}function L1(t,e,n,r){let i=e.locals(t),l=0;if(i.length==0){for(let a=0;a<t.childCount;a++){let f=t.child(a);r(f,i,e.forChild(l,f),a),l+=f.nodeSize}return}let o=0,s=[],u=null;for(let a=0;;){let f,c;for(;o<i.length&&i[o].to==l;){let S=i[o++];S.widget&&(f?(c||(c=[f])).push(S):f=S)}if(f)if(c){c.sort(A1);for(let S=0;S<c.length;S++)n(c[S],a,!!u)}else n(f,a,!!u);let d,h;if(u)h=-1,d=u,u=null;else if(a<t.childCount)h=a,d=t.child(a++);else break;for(let S=0;S<s.length;S++)s[S].to<=l&&s.splice(S--,1);for(;o<i.length&&i[o].from<=l&&i[o].to>l;)s.push(i[o++]);let p=l+d.nodeSize;if(d.isText){let S=p;o<i.length&&i[o].from<S&&(S=i[o].from);for(let m=0;m<s.length;m++)s[m].to<S&&(S=s[m].to);S<p&&(u=d.cut(S-l),d=d.cut(0,S-l),p=S,h=-1)}else for(;o<i.length&&i[o].to<p;)o++;let y=d.isInline&&!d.isLeaf?s.filter(S=>!S.inline):s.slice();r(d,y,e.forChild(l,d),h),l=p}}function F1(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function B1(t,e,n,r){for(let i=0,l=0;i<t.childCount&&l<=r;){let o=t.child(i++),s=l;if(l+=o.nodeSize,!o.isText)continue;let u=o.text;for(;i<t.childCount;){let a=t.child(i++);if(l+=a.nodeSize,!a.isText)break;u+=a.text}if(l>=n){if(l>=r&&u.slice(r-e.length-s,r-s)==e)return r-e.length;let a=s<r?u.lastIndexOf(e,r-s-1):-1;if(a>=0&&a+e.length+s>=n)return s+a;if(n==r&&u.length>=r+e.length-s&&u.slice(r-s,r-s+e.length)==e)return r}}return-1}function Nu(t,e,n,r,i){let l=[];for(let o=0,s=0;o<t.length;o++){let u=t[o],a=s,f=s+=u.size;a>=n||f<=e?l.push(u):(a<e&&l.push(u.slice(0,e-a,r)),i&&(l.push(i),i=void 0),f>n&&l.push(u.slice(n-a,u.size,r)))}return l}function Ma(t,e=null){let n=t.domSelectionRange(),r=t.state.doc;if(!n.focusNode)return null;let i=t.docView.nearestDesc(n.focusNode),l=i&&i.size==0,o=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(o<0)return null;let s=r.resolve(o),u,a;if(Mo(n)){for(u=o;i&&!i.node;)i=i.parent;let c=i.node;if(i&&c.isAtom&&R.isSelectable(c)&&i.parent&&!(c.isInline&&f1(n.focusNode,n.focusOffset,i.dom))){let d=i.posBefore;a=new R(o==d?s:r.resolve(d))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let c=o,d=o;for(let h=0;h<n.rangeCount;h++){let p=n.getRangeAt(h);c=Math.min(c,t.docView.posFromDOM(p.startContainer,p.startOffset,1)),d=Math.max(d,t.docView.posFromDOM(p.endContainer,p.endOffset,-1))}if(c<0)return null;[u,o]=d==t.state.selection.anchor?[d,c]:[c,d],s=r.resolve(o)}else u=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(u<0)return null}let f=r.resolve(u);if(!a){let c=e=="pointer"||t.state.selection.head<s.pos&&!l?1:-1;a=Da(t,f,s,c)}return a}function um(t){return t.editable?t.hasFocus():fm(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Tt(t,e=!1){let n=t.state.selection;if(am(t,n),!!um(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&de){let r=t.domSelectionRange(),i=t.domObserver.currentSelection;if(r.anchorNode&&i.anchorNode&&Fn(r.anchorNode,r.anchorOffset,i.anchorNode,i.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)V1(t);else{let{anchor:r,head:i}=n,l,o;Mc&&!(n instanceof _)&&(n.$from.parent.inlineContent||(l=Dc(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(o=Dc(t,n.to))),t.docView.setSelection(r,i,t,e),Mc&&(l&&Rc(l),o&&Rc(o)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&_1(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const Mc=xe||de&&qp<63;function Dc(t,e){let{node:n,offset:r}=t.docView.domFromPos(e,0),i=r<n.childNodes.length?n.childNodes[r]:null,l=r?n.childNodes[r-1]:null;if(xe&&i&&i.contentEditable=="false")return ms(i);if((!i||i.contentEditable=="false")&&(!l||l.contentEditable=="false")){if(i)return ms(i);if(l)return ms(l)}}function ms(t){return t.contentEditable="true",xe&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function Rc(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function _1(t){let e=t.dom.ownerDocument;
vendor: 8,163 bytes, lines 45-48
45e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),r=n.anchorNode,i=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=i)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!um(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function V1(t){let e=t.domSelection();if(!e)return;let n=t.cursorWrapper.dom,r=n.nodeName=="IMG";r?e.collapse(n.parentNode,fe(n)+1):e.collapse(n,0),!r&&!t.state.selection.visible&&Ae&&tn<=11&&(n.disabled=!0,n.disabled=!1)}function am(t,e){if(e instanceof R){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(Pc(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else Pc(t)}function Pc(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Da(t,e,n,r){return t.someProp("createSelectionBetween",i=>i(t,e,n))||_.between(e,n,r)}function Ic(t){return t.editable&&!t.hasFocus()?!1:fm(t)}function fm(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function b1(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return Fn(e.node,e.offset,n.anchorNode,n.anchorOffset)}function Eu(t,e){let{$anchor:n,$head:r}=t.selection,i=e>0?n.max(r):n.min(r),l=i.parent.inlineContent?i.depth?t.doc.resolve(e>0?i.after():i.before()):null:i;return l&&F.findFrom(l,e)}function Bt(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function zc(t,e,n){let r=t.state.selection;if(r instanceof _)if(n.indexOf("s")>-1){let{$head:i}=r,l=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter;if(!l||l.isText||!l.isLeaf)return!1;let o=t.state.doc.resolve(i.pos+l.nodeSize*(e<0?-1:1));return Bt(t,new _(r.$anchor,o))}else if(r.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let i=Eu(t.state,e);return i&&i instanceof R?Bt(t,i):!1}else if(!($e&&n.indexOf("m")>-1)){let i=r.$head,l=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter,o;if(!l||l.isText)return!1;let s=e<0?i.pos-l.nodeSize:i.pos;return l.isAtom||(o=t.docView.descAt(s))&&!o.contentDOM?R.isSelectable(l)?Bt(t,new R(e<0?t.state.doc.resolve(i.pos-l.nodeSize):i)):_i?Bt(t,new _(t.state.doc.resolve(e<0?s:s+l.nodeSize))):!1:!1}}else return!1;else{if(r instanceof R&&r.node.isInline)return Bt(t,new _(e>0?r.$to:r.$from));{let i=Eu(t.state,e);return i?Bt(t,i):!1}}}function to(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function ii(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function $n(t,e){return e<0?W1(t):$1(t)}function W1(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let i,l,o=!1;for(Ye&&n.nodeType==1&&r<to(n)&&ii(n.childNodes[r],-1)&&(o=!0);;)if(r>0){if(n.nodeType!=1)break;{let s=n.childNodes[r-1];if(ii(s,-1))i=n,l=--r;else if(s.nodeType==3)n=s,r=n.nodeValue.length;else break}}else{if(cm(n))break;{let s=n.previousSibling;for(;s&&ii(s,-1);)i=n.parentNode,l=fe(s),s=s.previousSibling;if(s)n=s,r=to(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}o?Ou(t,n,r):i&&Ou(t,i,l)}function $1(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let i=to(n),l,o;for(;;)if(r<i){if(n.nodeType!=1)break;let s=n.childNodes[r];if(ii(s,1))l=n,o=++r;else break}else{if(cm(n))break;{let s=n.nextSibling;for(;s&&ii(s,1);)l=s.parentNode,o=fe(s)+1,s=s.nextSibling;if(s)n=s,r=0,i=to(n);else{if(n=n.parentNode,n==t.dom)break;r=i=0}}}l&&Ou(t,l,o)}function cm(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function j1(t,e){for(;t&&e==t.childNodes.length&&!Bi(t);)e=fe(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let n=t.childNodes[e];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=0}}function U1(t,e){for(;t&&!e&&!Bi(t);)e=fe(t),t=t.parentNode;for(;t&&e;){let n=t.childNodes[e-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=t.childNodes.length}}function Ou(t,e,n){if(e.nodeType!=3){let l,o;(o=j1(e,n))?(e=o,n=0):(l=U1(e,n))&&(e=l,n=l.nodeValue.length)}let r=t.domSelection();if(!r)return;if(Mo(r)){let l=document.createRange();l.setEnd(e,n),l.setStart(e,n),r.removeAllRanges(),r.addRange(l)}else r.extend&&r.extend(e,n);t.domObserver.setCurSelection();let{state:i}=t;setTimeout(()=>{t.state==i&&Tt(t)},50)}function Ac(t,e){let n=t.state.doc.resolve(e);if(!(de||Yp)&&n.parent.inlineContent){let i=t.coordsAtPos(e);if(e>n.start()){let l=t.coordsAtPos(e-1),o=(l.top+l.bottom)/2;if(o>i.top&&o<i.bottom&&Math.abs(l.left-i.left)>1)return l.left<i.left?"ltr":"rtl"}if(e<n.end()){let l=t.coordsAtPos(e+1),o=(l.top+l.bottom)/2;if(o>i.top&&o<i.bottom&&Math.abs(l.left-i.left)>1)return l.left>i.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function Lc(t,e,n){let r=t.state.selection;if(r instanceof _&&!r.empty||n.indexOf("s")>-1||$e&&n.indexOf("m")>-1)return!1;let{$from:i,$to:l}=r;if(!i.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let o=Eu(t.state,e);if(o&&o instanceof R)return Bt(t,o)}if(!i.parent.inlineContent){let o=e<0?i:l,s=r instanceof qe?F.near(o,e):F.findFrom(o,e);return s?Bt(t,s):!1}return!1}function Fc(t,e){if(!(t.state.selection instanceof _))return!0;let{$head:n,$anchor:r,empty:i}=t.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let l=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(l&&!l.isText){let o=t.state.tr;return e<0?o.delete(n.pos-l.nodeSize,n.pos):o.delete(n.pos,n.pos+l.nodeSize),t.dispatch(o),!0}return!1}function Bc(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function H1(t){if(!xe||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;Bc(t,r,"true"),setTimeout(()=>Bc(t,r,"false"),20)}return!1}function K1(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function J1(t,e){let n=e.keyCode,r=K1(e);if(n==8||$e&&n==72&&r=="c")return Fc(t,-1)||$n(t,-1);if(n==46&&!e.shiftKey||$e&&n==68&&r=="c")return Fc(t,1)||$n(t,1);if(n==13||n==27)return!0;if(n==37||$e&&n==66&&r=="c"){let i=n==37?Ac(t,t.state.selection.from)=="ltr"?-1:1:-1;return zc(t,i,r)||$n(t,i)}else if(n==39||$e&&n==70&&r=="c"){let i=n==39?Ac(t,t.state.selection.from)=="ltr"?1:-1:1;return zc(t,i,r)||$n(t,i)}else{if(n==38||$e&&n==80&&r=="c")return Lc(t,-1,r)||$n(t,-1);if(n==40||$e&&n==78&&r=="c")return H1(t)||Lc(t,1,r)||$n(t,1);if(r==($e?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Ra(t,e){t.someProp("transformCopied",h=>{e=h(e,t)});let n=[],{content:r,openStart:i,openEnd:l}=e;for(;i>1&&l>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,l--;let h=r.firstChild;n.push(h.type.name,h.attrs!=h.type.defaultAttrs?h.attrs:null),r=h.content}let o=t.someProp("clipboardSerializer")||Er.fromSchema(t.state.schema),s=ym(),u=s.createElement("div");u.appendChild(o.serializeFragment(r,{document:s}));let a=u.firstChild,f,c=0;for(;a&&a.nodeType==1&&(f=gm[a.nodeName.toLowerCase()]);){for(let h=f.length-1;h>=0;h--){let p=s.createElement(f[h]);for(;u.firstChild;)p.appendChild(u.firstChild);u.appendChild(p),c++}a=u.firstChild}a&&a.nodeType==1&&a.setAttribute("data-pm-slice",`${i} ${l}${c?` -${c}`:""} ${JSON.stringify(n)}`);let d=t.someProp("clipboardTextSerializer",h=>h(e,t))||e.content.textBetween(0,e.content.size,`
46
47`);return{dom:u,text:d,slice:e}}function dm(t,e,n,r,i){let l=i.parent.type.spec.code,o,s;if(!n&&!e)return null;let u=!!e&&(r||l||!n);if(u){if(t.someProp("transformPastedText",d=>{e=d(e,l||r,t)}),l)return s=new O(w.from(t.state.schema.text(e.replace(/\r\n?/g,`
48`))),0,0),t.someProp("transformPasted",d=>{s=d(s,t,!0)}),s;let c=t.someProp("clipboardTextParser",d=>d(e,i,r,t));if(c)s=c;else{let d=i.marks(),{schema:h}=t.state,p=Er.fromSchema(h);
vendor: 13,608 bytes, line 48
48o=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(y=>{let S=o.appendChild(document.createElement("p"));y&&S.appendChild(p.serializeNode(h.text(y,d)))})}}else t.someProp("transformPastedHTML",c=>{n=c(n,t)}),o=G1(n),_i&&X1(o);let a=o&&o.querySelector("[data-pm-slice]"),f=a&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(a.getAttribute("data-pm-slice")||"");if(f&&f[3])for(let c=+f[3];c>0;c--){let d=o.firstChild;for(;d&&d.nodeType!=1;)d=d.nextSibling;if(!d)break;o=d}if(s||(s=(t.someProp("clipboardParser")||t.someProp("domParser")||Ci.fromSchema(t.state.schema)).parseSlice(o,{preserveWhitespace:!!(u||f),context:i,ruleFromNode(d){return d.nodeName=="BR"&&!d.nextSibling&&d.parentNode&&!Q1.test(d.parentNode.nodeName)?{ignore:!0}:null}})),f)s=Z1(_c(s,+f[1],+f[2]),f[4]);else if(s=O.maxOpen(q1(s.content,i),!0),s.openStart||s.openEnd){let c=0,d=0;for(let h=s.content.firstChild;c<s.openStart&&!h.type.spec.isolating;c++,h=h.firstChild);for(let h=s.content.lastChild;d<s.openEnd&&!h.type.spec.isolating;d++,h=h.lastChild);s=_c(s,c,d)}return t.someProp("transformPasted",c=>{s=c(s,t,u)}),s}const Q1=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function q1(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let i=e.node(n).contentMatchAt(e.index(n)),l,o=[];if(t.forEach(s=>{if(!o)return;let u=i.findWrapping(s.type),a;if(!u)return o=null;if(a=o.length&&l.length&&pm(u,l,s,o[o.length-1],0))o[o.length-1]=a;else{o.length&&(o[o.length-1]=mm(o[o.length-1],l.length));let f=hm(s,u);o.push(f),i=i.matchType(f.type),l=u}}),o)return w.from(o)}return t}function hm(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,w.from(t));return t}function pm(t,e,n,r,i){if(i<t.length&&i<e.length&&t[i]==e[i]){let l=pm(t,e,n,r.lastChild,i+1);if(l)return r.copy(r.content.replaceChild(r.childCount-1,l));if(r.contentMatchAt(r.childCount).matchType(i==t.length-1?n.type:t[i+1]))return r.copy(r.content.append(w.from(hm(n,t,i+1))))}}function mm(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,mm(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(w.empty,!0);return t.copy(n.append(r))}function Tu(t,e,n,r,i,l){let o=e<0?t.firstChild:t.lastChild,s=o.content;return t.childCount>1&&(l=0),i<r-1&&(s=Tu(s,e,n,r,i+1,l)),i>=n&&(s=e<0?o.contentMatchAt(0).fillBefore(s,l<=i).append(s):s.append(o.contentMatchAt(o.childCount).fillBefore(w.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,o.copy(s))}function _c(t,e,n){return e<t.openStart&&(t=new O(Tu(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new O(Tu(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const gm={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let Vc=null;function ym(){return Vc||(Vc=document.implementation.createHTMLDocument("title"))}let gs=null;function Y1(t){let e=window.trustedTypes;return e?(gs||(gs=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),gs.createHTML(t)):t}function G1(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=ym().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),i;if((i=r&&gm[r[1].toLowerCase()])&&(t=i.map(l=>"<"+l+">").join("")+t+i.map(l=>"</"+l+">").reverse().join("")),n.innerHTML=Y1(t),i)for(let l=0;l<i.length;l++)n=n.querySelector(i[l])||n;return n}function X1(t){let e=t.querySelectorAll(de?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let r=e[n];r.childNodes.length==1&&r.textContent==" "&&r.parentNode&&r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),r)}}function Z1(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,r;try{r=JSON.parse(e)}catch{return t}let{content:i,openStart:l,openEnd:o}=t;for(let s=r.length-2;s>=0;s-=2){let u=n.nodes[r[s]];if(!u||u.hasRequiredAttrs())break;i=w.from(u.create(r[s+1],i)),l++,o++}return new O(i,l,o)}const Ee={},Oe={},ev={touchstart:!0,touchmove:!0};class tv{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function nv(t){for(let e in Ee){let n=Ee[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{iv(t,r)&&!Pa(t,r)&&(t.editable||!(r.type in Oe))&&n(t,r)},ev[e]?{passive:!0}:void 0)}xe&&t.dom.addEventListener("input",()=>null),Mu(t)}function Kt(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function rv(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function Mu(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>Pa(t,r))})}function Pa(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function iv(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function lv(t,e){!Pa(t,e)&&Ee[e.type]&&(t.editable||!(e.type in Oe))&&Ee[e.type](t,e)}Oe.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!Sm(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(Et&&de&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),kr&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();t.input.lastIOSEnter=r,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==r&&(t.someProp("handleKeyDown",i=>i(t,gn(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||J1(t,n)?n.preventDefault():Kt(t,"key")};Oe.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)};Oe.keypress=(t,e)=>{let n=e;if(Sm(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||$e&&n.metaKey)return;if(t.someProp("handleKeyPress",i=>i(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof _)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode),l=()=>t.state.tr.insertText(i).scrollIntoView();!/[\r\n]/.test(i)&&!t.someProp("handleTextInput",o=>o(t,r.$from.pos,r.$to.pos,i,l))&&t.dispatch(l()),n.preventDefault()}};function Ro(t){return{left:t.clientX,top:t.clientY}}function ov(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}function Ia(t,e,n,r,i){if(r==-1)return!1;let l=t.state.doc.resolve(r);for(let o=l.depth+1;o>0;o--)if(t.someProp(e,s=>o>l.depth?s(t,n,l.nodeAfter,l.before(o),i,!0):s(t,n,l.node(o),l.before(o),i,!1)))return!0;return!1}function fr(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let r=t.state.tr.setSelection(e);r.setMeta("pointer",!0),t.dispatch(r)}function sv(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&&R.isSelectable(r)?(fr(t,new R(n)),!0):!1}function uv(t,e){if(e==-1)return!1;let n=t.state.selection,r,i;n instanceof R&&(r=n.node);let l=t.state.doc.resolve(e);for(let o=l.depth+1;o>0;o--){let s=o>l.depth?l.nodeAfter:l.node(o);if(R.isSelectable(s)){r&&n.$from.depth>0&&o>=n.$from.depth&&l.before(n.$from.depth+1)==n.$from.pos?i=l.before(n.$from.depth):i=l.before(o);break}}return i!=null?(fr(t,R.create(t.state.doc,i)),!0):!1}function av(t,e,n,r,i){return Ia(t,"handleClickOn",e,n,r)||t.someProp("handleClick",l=>l(t,e,r))||(i?uv(t,n):sv(t,n))}function fv(t,e,n,r){return Ia(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",i=>i(t,e,r))}function cv(t,e,n,r){return Ia(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",i=>i(t,e,r))||dv(t,n,r)}function dv(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(fr(t,_.create(r,0,r.content.size)),!0):!1;let i=r.resolve(e);for(let l=i.depth+1;l>0;l--){let o=l>i.depth?i.nodeAfter:i.node(l),s=i.before(l);if(o.inlineContent)fr(t,_.create(r,s+1,s+1+o.content.size));else if(R.isSelectable(o))fr(t,R.create(r,s));else continue;return!0}}function za(t){return no(t)}const vm=$e?"metaKey":"ctrlKey";Ee.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=za(t),i=Date.now(),l="singleClick";i-t.input.lastClick.time<500&&ov(n,t.input.lastClick)&&!n[vm]&&t.input.lastClick.button==n.button&&(t.input.lastClick.type=="singleClick"?l="doubleClick":t.input.lastClick.type=="doubleClick"&&(l="tripleClick")),t.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:l,button:n.button};let o=t.posAtCoords(Ro(n));o&&(l=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new hv(t,o,n,!!r)):(l=="doubleClick"?fv:cv)(t,o.pos,o.inside,n)?n.preventDefault():Kt(t,"pointer"))};class hv{constructor(e,n,r,i){this.view=e,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[vm],this.allowDefault=r.shiftKey;let l,o;if(n.inside>-1)l=e.state.doc.nodeAt(n.inside),o=n.inside;else{let f=e.state.doc.resolve(n.pos);l=f.parent,o=f.depth?f.before():0}const s=i?null:r.target,u=s?e.docView.nearestDesc(s,!0):null;this.target=u&&u.nodeDOM.nodeType==1?u.nodeDOM:null;let{selection:a}=e.state;r.button==0&&(l.type.spec.draggable&&l.type.spec.selectable!==!1||a instanceof R&&a.from<=o&&a.to>o)&&(this.mightDrag={node:l,pos:o,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Ye&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Kt(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Tt(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(Ro(e))),this.updateAllowDefault(e),this.allowDefault||!n?Kt(this.view,"pointer"):av(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||xe&&this.mightDrag&&!this.mightDrag.node.isAtom||de&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(fr(this.view,F.near(this.view.state.doc.resolve(n.pos))),e.preventDefault()):Kt(this.view,"pointer")}move(e){this.updateAllowDefault(e),Kt(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}Ee.touchstart=t=>{t.input.lastTouch=Date.now(),za(t),Kt(t,"pointer")};Ee.touchmove=t=>{t.input.lastTouch=Date.now(),Kt(t,"pointer")};Ee.contextmenu=t=>za(t);function Sm(t,e){return t.composing?!0:xe&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const pv=Et?5e3:-1;Oe.compositionstart=Oe.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof _&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)||de&&Yp&&mv(t)))t.markCursor=t.state.storedMarks||n.marks(),no(t,!0),t.markCursor=null;else if(no(t,!e.selection.empty),Ye&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let i=r.focusNode,l=r.focusOffset;i&&i.nodeType==1&&l!=0;){let o=l<0?i.lastChild:i.childNodes[l-1];if(!o)break;if(o.nodeType==3){let s=t.domSelection();s&&s.collapse(o,o.nodeValue.length);break}else i=o,l=-1}}t.input.composing=!0}km(t,pv)};function mv(t){let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(!e||e.nodeType!=1||n>=e.childNodes.length)return!1;let r=e.childNodes[n];return r.nodeType==1&&r.contentEditable=="false"}Oe.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.badSafariComposition?t.domObserver.forceFlush():t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,km(t,20))};function km(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>no(t),e))}function xm(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=yv());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}
vendor: 4,840 bytes, line 48
48function gv(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=u1(e.focusNode,e.focusOffset),r=a1(e.focusNode,e.focusOffset);if(n&&r&&n!=r){let i=r.pmViewDesc,l=t.domObserver.lastChangedTextNode;if(n==l||r==l)return l;if(!i||!i.isText(r.nodeValue))return r;if(t.input.compositionNode==r){let o=n.pmViewDesc;if(!(!o||!o.isText(n.nodeValue)))return r}}return n||r}function yv(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function no(t,e=!1){if(!(Et&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),xm(t),e||t.docView&&t.docView.dirty){let n=Ma(t),r=t.state.selection;return n&&!n.eq(r)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function vv(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const Ti=Ae&&tn<15||kr&&h1<604;Ee.copy=Oe.cut=(t,e)=>{let n=e,r=t.state.selection,i=n.type=="cut";if(r.empty)return;let l=Ti?null:n.clipboardData,o=r.content(),{dom:s,text:u}=Ra(t,o);l?(n.preventDefault(),l.clearData(),l.setData("text/html",s.innerHTML),l.setData("text/plain",u)):vv(t,s),i&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function Sv(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function kv(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?Mi(t,r.value,null,i,e):Mi(t,r.textContent,r.innerHTML,i,e)},50)}function Mi(t,e,n,r,i){let l=dm(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",u=>u(t,i,l||O.empty)))return!0;if(!l)return!1;let o=Sv(l),s=o?t.state.tr.replaceSelectionWith(o,r):t.state.tr.replaceSelection(l);return t.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function wm(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Oe.paste=(t,e)=>{let n=e;if(t.composing&&!Et)return;let r=Ti?null:n.clipboardData,i=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&Mi(t,wm(r),r.getData("text/html"),i,n)?n.preventDefault():kv(t,n)};class Cm{constructor(e,n,r){this.slice=e,this.move=n,this.node=r}}const xv=$e?"altKey":"ctrlKey";function Nm(t,e){let n;return t.someProp("dragCopies",r=>{n=n||r(e)}),n!=null?!n:!e[xv]}Ee.dragstart=(t,e)=>{let n=e,r=t.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=t.state.selection,l=i.empty?null:t.posAtCoords(Ro(n)),o;if(!(l&&l.pos>=i.from&&l.pos<=(i instanceof R?i.to-1:i.to))){if(r&&r.mightDrag)o=R.create(t.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let c=t.docView.nearestDesc(n.target,!0);c&&c.node.type.spec.draggable&&c!=t.docView&&(o=R.create(t.state.doc,c.posBefore))}}let s=(o||t.state.selection).content(),{dom:u,text:a,slice:f}=Ra(t,s);(!n.dataTransfer.files.length||!de||qp>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Ti?"Text":"text/html",u.innerHTML),n.dataTransfer.effectAllowed="copyMove",Ti||n.dataTransfer.setData("text/plain",a),t.dragging=new Cm(f,Nm(t,n),o)};Ee.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)};Oe.dragover=Oe.dragenter=(t,e)=>e.preventDefault();Oe.drop=(t,e)=>{try{wv(t,e,t.dragging)}finally{t.dragging=null}};function wv(t,e,n){if(!e.dataTransfer)return;let r=t.posAtCoords(Ro(e));if(!r)return;let i=t.state.doc.resolve(r.pos),l=n&&n.slice;l?t.someProp("transformPasted",h=>{l=h(l,t,!1)}):l=dm(t,wm(e.dataTransfer),Ti?null:e.dataTransfer.getData("text/html"),!1,i);let o=!!(n&&Nm(t,e));if(t.someProp("handleDrop",h=>h(t,e,l||O.empty,o))){e.preventDefault();return}if(!l)return;e.preventDefault();let s=l?bp(t.state.doc,i.pos,l):i.pos;s==null&&(s=i.pos);let u=t.state.tr;if(o){let{node:h}=n;h?h.replace(u):u.deleteSelection()}let a=u.mapping.map(s),f=l.openStart==0&&l.openEnd==0&&l.content.childCount==1,c=u.doc;if(f?u.replaceRangeWith(a,a,l.content.firstChild):u.replaceRange(a,a,l),u.doc.eq(c))return;let d=u.doc.resolve(a);if(f&&R.isSelectable(l.content.firstChild)&&d.nodeAfter&&d.nodeAfter.sameMarkup(l.content.firstChild))u.setSelection(new R(d));else{let h=u.mapping.map(s);
vendor: 9,497 bytes, line 48
48u.mapping.maps[u.mapping.maps.length-1].forEach((p,y,S,m)=>h=m),u.setSelection(Da(t,d,u.doc.resolve(h)))}t.focus(),t.dispatch(u.setMeta("uiEvent","drop"))}Ee.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&Tt(t)},20))};Ee.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)};Ee.beforeinput=(t,e)=>{if(de&&Et&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:r}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=r||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",l=>l(t,gn(8,"Backspace")))))return;let{$cursor:i}=t.state.selection;i&&i.pos>0&&t.dispatch(t.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let t in Oe)Ee[t]=Oe[t];function Di(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class ro{constructor(e,n){this.toDOM=e,this.spec=n||On,this.side=this.spec.side||0}map(e,n,r,i){let{pos:l,deleted:o}=e.mapResult(n.from+i,this.side<0?-1:1);return o?null:new Je(l-r,l-r,this)}valid(){return!0}eq(e){return this==e||e instanceof ro&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Di(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class rn{constructor(e,n){this.attrs=e,this.spec=n||On}map(e,n,r,i){let l=e.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,o=e.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return l>=o?null:new Je(l,o,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof rn&&Di(this.attrs,e.attrs)&&Di(this.spec,e.spec)}static is(e){return e.type instanceof rn}destroy(){}}class Aa{constructor(e,n){this.attrs=e,this.spec=n||On}map(e,n,r,i){let l=e.mapResult(n.from+i,1);if(l.deleted)return null;let o=e.mapResult(n.to+i,-1);return o.deleted||o.pos<=l.pos?null:new Je(l.pos-r,o.pos-r,this)}valid(e,n){let{index:r,offset:i}=e.content.findIndex(n.from),l;return i==n.from&&!(l=e.child(r)).isText&&i+l.nodeSize==n.to}eq(e){return this==e||e instanceof Aa&&Di(this.attrs,e.attrs)&&Di(this.spec,e.spec)}destroy(){}}class Je{constructor(e,n,r){this.from=e,this.to=n,this.type=r}copy(e,n){return new Je(e,n,this.type)}eq(e,n=0){return this.type.eq(e.type)&&this.from+n==e.from&&this.to+n==e.to}map(e,n,r){return this.type.map(e,this,n,r)}static widget(e,n,r){return new Je(e,e,new ro(n,r))}static inline(e,n,r,i){return new Je(e,n,new rn(r,i))}static node(e,n,r,i){return new Je(e,n,new Aa(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof rn}get widget(){return this.type instanceof ro}}const Un=[],On={};class ne{constructor(e,n){this.local=e.length?e:Un,this.children=n.length?n:Un}static create(e,n){return n.length?io(n,e,0,On):ve}find(e,n,r){let i=[];return this.findInner(e??0,n??1e9,i,0,r),i}findInner(e,n,r,i,l){for(let o=0;o<this.local.length;o++){let s=this.local[o];s.from<=n&&s.to>=e&&(!l||l(s.spec))&&r.push(s.copy(s.from+i,s.to+i))}for(let o=0;o<this.children.length;o+=3)if(this.children[o]<n&&this.children[o+1]>e){let s=this.children[o]+1;this.children[o+2].findInner(e-s,n-s,r,i+s,l)}}map(e,n,r){return this==ve||e.maps.length==0?this:this.mapInner(e,n,0,0,r||On)}mapInner(e,n,r,i,l){let o;for(let s=0;s<this.local.length;s++){let u=this.local[s].map(e,r,i);u&&u.type.valid(n,u)?(o||(o=[])).push(u):l.onRemove&&l.onRemove(this.local[s].spec)}return this.children.length?Cv(this.children,o||[],e,n,r,i,l):o?new ne(o.sort(Tn),Un):ve}add(e,n){return n.length?this==ve?ne.create(e,n):this.addInner(e,n,0):this}addInner(e,n,r){let i,l=0;e.forEach((s,u)=>{let a=u+r,f;if(f=Om(n,s,a)){for(i||(i=this.children.slice());l<i.length&&i[l]<u;)l+=3;i[l]==u?i[l+2]=i[l+2].addInner(s,f,a+1):i.splice(l,0,u,u+s.nodeSize,io(f,s,a+1,On)),l+=3}});let o=Em(l?Tm(n):n,-r);for(let s=0;s<o.length;s++)o[s].type.valid(e,o[s])||o.splice(s--,1);return new ne(o.length?this.local.concat(o).sort(Tn):this.local,i||this.children)}remove(e){return e.length==0||this==ve?this:this.removeInner(e,0)}removeInner(e,n){let r=this.children,i=this.local;for(let l=0;l<r.length;l+=3){let o,s=r[l]+n,u=r[l+1]+n;for(let f=0,c;f<e.length;f++)(c=e[f])&&c.from>s&&c.to<u&&(e[f]=null,(o||(o=[])).push(c));if(!o)continue;r==this.children&&(r=this.children.slice());let a=r[l+2].removeInner(o,s+1);a!=ve?r[l+2]=a:(r.splice(l,3),l-=3)}if(i.length){for(let l=0,o;l<e.length;l++)if(o=e[l])for(let s=0;s<i.length;s++)i[s].eq(o,n)&&(i==this.local&&(i=this.local.slice()),i.splice(s--,1))}return r==this.children&&i==this.local?this:i.length||r.length?new ne(i,r):ve}forChild(e,n){if(this==ve)return this;if(n.isLeaf)return ne.empty;let r,i;for(let s=0;s<this.children.length;s+=3)if(this.children[s]>=e){this.children[s]==e&&(r=this.children[s+2]);break}let l=e+1,o=l+n.content.size;for(let s=0;s<this.local.length;s++){let u=this.local[s];if(u.from<o&&u.to>l&&u.type instanceof rn){let a=Math.max(l,u.from)-l,f=Math.min(o,u.to)-l;a<f&&(i||(i=[])).push(u.copy(a,f))}}if(i){let s=new ne(i.sort(Tn),Un);return r?new Wt([s,r]):s}return r||ve}eq(e){if(this==e)return!0;if(!(e instanceof ne)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(e.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0}locals(e){return La(this.localsInner(e))}localsInner(e){if(this==ve)return Un;if(e.inlineContent||!this.local.some(rn.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof rn||n.push(this.local[r]);return n}forEachSet(e){e(this)}}ne.empty=new ne([],[]);ne.removeOverlap=La;const ve=ne.empty;class Wt{constructor(e){this.members=e}map(e,n){const r=this.members.map(i=>i.map(e,n,On));return Wt.from(r)}forChild(e,n){if(n.isLeaf)return ne.empty;let r=[];for(let i=0;i<this.members.length;i++){let l=this.members[i].forChild(e,n);l!=ve&&(l instanceof Wt?r=r.concat(l.members):r.push(l))}return Wt.from(r)}eq(e){if(!(e instanceof Wt)||e.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(e.members[n]))return!1;return!0}locals(e){let n,r=!0;for(let i=0;i<this.members.length;i++){let l=this.members[i].localsInner(e);if(l.length)if(!n)n=l;else{r&&(n=n.slice(),r=!1);for(let o=0;o<l.length;o++)n.push(l[o])}}return n?La(r?n:n.sort(Tn)):Un}static from(e){switch(e.length){case 0:return ve;case 1:return e[0];default:return new Wt(e.every(n=>n instanceof ne)?e:e.reduce((n,r)=>n.concat(r instanceof ne?r:r.members),[]))}}forEachSet(e){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(e)}}function Cv(t,e,n,r,i,l,o){let s=t.slice();for(let a=0,f=l;a<n.maps.length;a++){let c=0;n.maps[a].forEach((d,h,p,y)=>{let S=y-p-(h-d);for(let m=0;m<s.length;m+=3){let g=s[m+1];if(g<0||d>g+f-c)continue;let v=s[m]+f-c;h>=v?s[m+1]=d<=v?-2:-1:d>=f&&S&&(s[m]+=S,s[m+1]+=S)}c+=S}),f=n.maps[a].map(f,-1)}let u=!1;for(let a=0;a<s.length;a+=3)if(s[a+1]<0){if(s[a+1]==-2){u=!0,s[a+1]=-1;continue}let f=n.map(t[a]+l),c=f-i;if(c<0||c>=r.content.size){u=!0;continue}let d=n.map(t[a+1]+l,-1),h=d-i,{index:p,offset:y}=r.content.findIndex(c),S=r.maybeChild(p);if(S&&y==c&&y+S.nodeSize==h){let m=s[a+2].mapInner(n,S,f+1,t[a]+l+1,o);m!=ve?(s[a]=c,s[a+1]=h,s[a+2]=m):(s[a+1]=-2,u=!0)}else u=!0}if(u){let a=Nv(s,t,e,n,i,l,o),f=io(a,r,0,o);e=f.local;for(let c=0;c<s.length;c+=3)s[c+1]<0&&(s.splice(c,3),c-=3);for(let c=0,d=0;c<f.children.length;c+=3){let h=f.children[c];for(;d<s.length&&s[d]<h;)d+=3;s.splice(d,0,f.children[c],f.children[c+1],f.children[c+2])}}return new ne(e.sort(Tn),s)}function Em(t,e){if(!e||!t.length)return t;let n=[];for(let r=0;r<t.length;r++){let i=t[r];n.push(new Je(i.from+e,i.to+e,i.type))}return n}function Nv(t,e,n,r,i,l,o){function s(u,a){for(let f=0;f<u.local.length;f++){let c=u.local[f].map(r,i,a);c?n.push(c):o.onRemove&&o.onRemove(u.local[f].spec)}for(let f=0;f<u.children.length;f+=3)s(u.children[f+2],u.children[f]+a+1)}for(let u=0;u<t.length;u+=3)t[u+1]==-1&&s(t[u+2],e[u]+l+1);return n}function Om(t,e,n){if(e.isLeaf)return null;let r=n+e.nodeSize,i=null;for(let l=0,o;l<t.length;l++)(o=t[l])&&o.from>n&&o.to<r&&((i||(i=[])).push(o),t[l]=null);return i}function Tm(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function io(t,e,n,r){let i=[],l=!1;e.forEach((s,u)=>{let a=Om(t,s,u+n);if(a){l=!0;let f=io(a,s,n+u+1,r);f!=ve&&i.push(u,u+s.nodeSize,f)}});let o=Em(l?Tm(t):t,-n).sort(Tn);for(let s=0;s<o.length;s++)o[s].type.valid(e,o[s])||(r.onRemove&&r.onRemove(o[s].spec),o.splice(s--,1));return o.length||i.length?new ne(o,i):ve}function Tn(t,e){return t.from-e.from||t.to-e.to}function La(t){let e=t;for(let n=0;n<e.length-1;n++){let r=e[n];if(r.from!=r.to)for(let i=n+1;i<e.length;i++){let l=e[i];if(l.from==r.from){l.to!=r.to&&(e==t&&(e=t.slice()),e[i]=l.copy(l.from,r.to),bc(e,i+1,l.copy(r.to,l.to)));continue}else{l.from<r.to&&(e==t&&(e=t.slice()),e[n]=r.copy(r.from,l.from),bc(e,i,r.copy(l.from,r.to)));break}}}return e}function bc(t,e,n){for(;e<t.length&&Tn(n,t[e])>0;)e++;t.splice(e,0,n)}function ys(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=ve&&e.push(r)}
vendor: 7,842 bytes, line 48
48),t.cursorWrapper&&e.push(ne.create(t.state.doc,[t.cursorWrapper.deco])),Wt.from(e)}const Ev={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Ov=Ae&&tn<=11;class Tv{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class Mv{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Tv,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;i<r.length;i++)this.queue.push(r[i]);Ae&&tn<=11&&r.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():xe&&e.composing&&r.some(i=>i.type=="childList"&&i.target.nodeName=="TR")?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),Ov&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,Ev)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;n<e.length;n++)this.queue.push(e[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Ic(this.view)){if(this.suppressingSelectionUpdates)return Tt(this.view);if(Ae&&tn<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Fn(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,r;for(let l=e.focusNode;l;l=Sr(l))n.add(l);for(let l=e.anchorNode;l;l=Sr(l))if(n.has(l)){r=l;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=e.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&Ic(e)&&!this.ignoreSelectionChange(r),l=-1,o=-1,s=!1,u=[];if(e.editable)for(let f=0;f<n.length;f++){let c=this.registerMutation(n[f],u);c&&(l=l<0?c.from:Math.min(c.from,l),o=o<0?c.to:Math.max(c.to,o),c.typeOver&&(s=!0))}if(u.some(f=>f.nodeName=="BR")&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46)){for(let f of u)if(f.nodeName=="BR"&&f.parentNode){let c=f.nextSibling;for(;c&&c.nodeType==1;){if(c.contentEditable=="false"){f.parentNode.removeChild(f);break}c=c.firstChild}}}else if(Ye&&u.length){let f=u.filter(c=>c.nodeName=="BR");if(f.length==2){let[c,d]=f;c.parentNode&&c.parentNode.parentNode==d.parentNode?d.remove():c.remove()}else{let{focusNode:c}=this.currentSelection;for(let d of f){let h=d.parentNode;h&&h.nodeName=="LI"&&(!c||Pv(e,c)!=h)&&d.remove()}}}let a=null;l<0&&i&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Mo(r)&&(a=Ma(e))&&a.eq(F.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Tt(e),this.currentSelection.set(r),e.scrollToSelection()):(l>-1||i)&&(l>-1&&(e.docView.markDirty(l,o),Dv(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,Iv(e,u)),this.handleDOMChange(l,o,s,u),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||Tt(e),this.currentSelection.set(r))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let f=0;f<e.addedNodes.length;f++){let c=e.addedNodes[f];n.push(c),c.nodeType==3&&(this.lastChangedTextNode=c)}if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let i=e.previousSibling,l=e.nextSibling;if(Ae&&tn<=11&&e.addedNodes.length)for(let f=0;f<e.addedNodes.length;f++){let{previousSibling:c,nextSibling:d}=e.addedNodes[f];(!c||Array.prototype.indexOf.call(e.addedNodes,c)<0)&&(i=c),(!d||Array.prototype.indexOf.call(e.addedNodes,d)<0)&&(l=d)}let o=i&&i.parentNode==e.target?fe(i)+1:0,s=r.localPosFromDOM(e.target,o,-1),u=l&&l.parentNode==e.target?fe(l):e.target.childNodes.length,a=r.localPosFromDOM(e.target,u,1);return{from:s,to:a}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:(this.lastChangedTextNode=e.target,{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let Wc=new WeakMap,$c=!1;function Dv(t){if(!Wc.has(t)&&(Wc.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=Ye,$c)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),$c=!0}}function jc(t,e){let n=e.startContainer,r=e.startOffset,i=e.endContainer,l=e.endOffset,o=t.domAtPos(t.state.selection.anchor);return Fn(o.node,o.offset,i,l)&&([n,r,i,l]=[i,l,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:l}}function Rv(t,e){if(e.getComposedRanges){let i=e.getComposedRanges(t.root)[0];if(i)return jc(t,i)}let n;function r(i){i.preventDefault(),i.stopImmediatePropagation(),n=i.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",r,!0),n?jc(t,n):null}function Pv(t,e){for(let n=e.parentNode;n&&n!=t.dom;n=n.parentNode){let r=t.docView.nearestDesc(n,!0);if(r&&r.node.isBlock)return n}return null}function Iv(t,e){var n;let{focusNode:r,focusOffset:i}=t.domSelectionRange();for(let l of e)if(((n=l.parentNode)===null||n===void 0?void 0:n.nodeName)=="TR"){let o=l.nextSibling;for(;o&&o.nodeName!="TD"&&o.nodeName!="TH";)o=o.nextSibling;if(o){let s=o;for(;;){let u=s.firstChild;if(!u||u.nodeType!=1||u.contentEditable=="false"||/^(BR|IMG)$/.test(u.nodeName))break;s=u}s.insertBefore(l,s.firstChild),r==l&&t.domSelection().collapse(l,i)}else l.parentNode.removeChild(l)}}function zv(t,e,n){let{node:r,fromOffset:i,toOffset:l,from:o,to:s}=t.docView.parseRange(e,n),u=t.domSelectionRange(),a,f=u.anchorNode;if(f&&t.dom.contains(f.nodeType==1?f:f.parentNode)&&(a=[{node:f,offset:u.anchorOffset}
vendor: 4,365 bytes, line 48
48],Mo(u)||a.push({node:u.focusNode,offset:u.focusOffset})),de&&t.input.lastKeyCode===8)for(let S=l;S>i;S--){let m=r.childNodes[S-1],g=m.pmViewDesc;if(m.nodeName=="BR"&&!g){l=S;break}if(!g||g.size)break}let c=t.state.doc,d=t.someProp("domParser")||Ci.fromSchema(t.state.schema),h=c.resolve(o),p=null,y=d.parse(r,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:i,to:l,preserveWhitespace:h.parent.type.whitespace=="pre"?"full":!0,findPositions:a,ruleFromNode:Av,context:h});if(a&&a[0].pos!=null){let S=a[0].pos,m=a[1]&&a[1].pos;m==null&&(m=S),p={anchor:S+o,head:m+o}}return{doc:y,sel:p,from:o,to:s}}function Av(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(xe&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||xe&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const Lv=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function Fv(t,e,n,r,i){let l=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let C=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,N=Ma(t,C);if(N&&!t.state.selection.eq(N)){if(de&&Et&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",z=>z(t,gn(13,"Enter"))))return;let L=t.state.tr.setSelection(N);C=="pointer"?L.setMeta("pointer",!0):C=="key"&&L.scrollIntoView(),l&&L.setMeta("composition",l),t.dispatch(L)}return}let o=t.state.doc.resolve(e),s=o.sharedDepth(n);e=o.before(s+1),n=t.state.doc.resolve(n).after(s+1);let u=t.state.selection,a=zv(t,e,n),f=t.state.doc,c=f.slice(a.from,a.to),d,h;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(d=t.state.selection.to,h="end"):(d=t.state.selection.from,h="start"),t.input.lastKeyCode=null;let p=Vv(c.content,a.doc.content,a.from,d,h);if(p&&t.input.domChangeCount++,(kr&&t.input.lastIOSEnter>Date.now()-225||Et)&&i.some(C=>C.nodeType==1&&!Lv.test(C.nodeName))&&(!p||p.endA>=p.endB)&&t.someProp("handleKeyDown",C=>C(t,gn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!p)if(r&&u instanceof _&&!u.empty&&u.$head.sameParent(u.$anchor)&&!t.composing&&!(a.sel&&a.sel.anchor!=a.sel.head))p={start:u.from,endA:u.to,endB:u.to};else{if(a.sel){let C=Uc(t,t.state.doc,a.sel);if(C&&!C.eq(t.state.selection)){let N=t.state.tr.setSelection(C);l&&N.setMeta("composition",l),t.dispatch(N)}}return}t.state.selection.from<t.state.selection.to&&p.start==p.endB&&t.state.selection instanceof _&&(p.start>t.state.selection.from&&p.start<=t.state.selection.from+2&&t.state.selection.from>=a.from?p.start=t.state.selection.from:p.endA<t.state.selection.to&&p.endA>=t.state.selection.to-2&&t.state.selection.to<=a.to&&(p.endB+=t.state.selection.to-p.endA,p.endA=t.state.selection.to)),Ae&&tn<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>a.from&&a.doc.textBetween(p.start-a.from-1,p.start-a.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let y=a.doc.resolveNoCache(p.start-a.from),S=a.doc.resolveNoCache(p.endB-a.from),m=f.resolve(p.start),g=y.sameParent(S)&&y.parent.inlineContent&&m.end()>=p.endA;if((kr&&t.input.lastIOSEnter>Date.now()-225&&(!g||i.some(C=>C.nodeName=="DIV"||C.nodeName=="P"))||!g&&y.pos<a.doc.content.size&&(!y.sameParent(S)||!y.parent.inlineContent)&&y.pos<S.pos&&!/\S/.test(a.doc.textBetween(y.pos,S.pos,"","")))&&t.someProp("handleKeyDown",C=>C(t,gn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>p.start&&_v(f,p.start,p.endA,y,S)&&t.someProp("handleKeyDown",C=>C(t,gn(8,"Backspace")))){Et&&de&&t.domObserver.suppressSelectionUpdates();return}de&&p.endB==p.start&&(t.input.lastChromeDelete=Date.now()),Et&&!g&&y.start()!=S.start()&&S.parentOffset==0&&y.depth==S.depth&&a.sel&&a.sel.anchor==a.sel.head&&a.sel.head==p.endA&&(p.endB-=2,S=a.doc.resolveNoCache(p.endB-a.from),setTimeout(()=>{t.someProp("handleKeyDown",function(C){return C(t,gn(13,"Enter"))})},20));let v=p.start,k=p.endA,E=C=>{let N=C||t.state.tr.replace(v,k,a.doc.slice(p.start-a.from,p.endB-a.from));if(a.sel){let L=Uc(t,N.doc,a.sel);
vendor: 6,735 bytes, line 48
48L&&!(de&&t.composing&&L.empty&&(p.start!=p.endB||t.input.lastChromeDelete<Date.now()-100)&&(L.head==v||L.head==N.mapping.map(k)-1)||Ae&&L.empty&&L.head==v)&&N.setSelection(L)}return l&&N.setMeta("composition",l),N.scrollIntoView()},D;if(g)if(y.pos==S.pos){Ae&&tn<=11&&y.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Tt(t),20));let C=E(t.state.tr.delete(v,k)),N=f.resolve(p.start).marksAcross(f.resolve(p.endA));N&&C.ensureMarks(N),t.dispatch(C)}else if(p.endA==p.endB&&(D=Bv(y.parent.content.cut(y.parentOffset,S.parentOffset),m.parent.content.cut(m.parentOffset,p.endA-m.start())))){let C=E(t.state.tr);D.type=="add"?C.addMark(v,k,D.mark):C.removeMark(v,k,D.mark),t.dispatch(C)}else if(y.parent.child(y.index()).isText&&y.index()==S.index()-(S.textOffset?0:1)){let C=y.parent.textBetween(y.parentOffset,S.parentOffset),N=()=>E(t.state.tr.insertText(C,v,k));t.someProp("handleTextInput",L=>L(t,v,k,C,N))||t.dispatch(N())}else t.dispatch(E());else t.dispatch(E())}function Uc(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:Da(t,e.resolve(n.anchor),e.resolve(n.head))}function Bv(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,i=n,l=r,o,s,u;for(let f=0;f<r.length;f++)i=r[f].removeFromSet(i);for(let f=0;f<n.length;f++)l=n[f].removeFromSet(l);if(i.length==1&&l.length==0)s=i[0],o="add",u=f=>f.mark(s.addToSet(f.marks));else if(i.length==0&&l.length==1)s=l[0],o="remove",u=f=>f.mark(s.removeFromSet(f.marks));else return null;let a=[];for(let f=0;f<e.childCount;f++)a.push(u(e.child(f)));if(w.from(a).eq(t))return{mark:s,type:o}}function _v(t,e,n,r,i){if(n-e<=i.pos-r.pos||vs(r,!0,!1)<i.pos)return!1;let l=t.resolve(e);if(!r.parent.isTextblock){let s=l.nodeAfter;return s!=null&&n==e+s.nodeSize}if(l.parentOffset<l.parent.content.size||!l.parent.isTextblock)return!1;let o=t.resolve(vs(l,!0,!0));return!o.parent.isTextblock||o.pos>n||vs(o,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(o.parent.content)}function vs(t,e,n){let r=t.depth,i=e?t.end():t.pos;for(;r>0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,i++,e=!1;if(n){let l=t.node(r).maybeChild(t.indexAfter(r));for(;l&&!l.isLeaf;)l=l.firstChild,i++}return i}function Vv(t,e,n,r,i){let l=t.findDiffStart(e,n);if(l==null)return null;let{a:o,b:s}=t.findDiffEnd(e,n+t.size,n+e.size);if(i=="end"){let u=Math.max(0,l-Math.min(o,s));r-=o+u-l}if(o<l&&t.size<e.size){let u=r<=l&&r>=o?l-r:0;l-=u,l&&l<e.size&&Hc(e.textBetween(l-1,l+1))&&(l+=u?1:-1),s=l+(s-o),o=l}else if(s<l){let u=r<=l&&r>=s?l-r:0;l-=u,l&&l<t.size&&Hc(t.textBetween(l-1,l+1))&&(l+=u?1:-1),o=l+(o-s),s=l}return{start:l,endA:o,endB:s}}function Hc(t){if(t.length!=2)return!1;let e=t.charCodeAt(0),n=t.charCodeAt(1);return e>=56320&&e<=57343&&n>=55296&&n<=56319}class bv{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new tv,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(Yc),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=Qc(this),Jc(this),this.nodeViews=qc(this),this.docView=Oc(this.state.doc,Kc(this),ys(this),this.dom,this),this.domObserver=new Mv(this,(r,i,l,o)=>Fv(this,r,i,l,o)),this.domObserver.start(),nv(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Mu(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Yc),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in e)n[r]=e[r];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var r;let i=this.state,l=!1,o=!1;e.storedMarks&&this.composing&&(xm(this),o=!0),this.state=e;let s=i.plugins!=e.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let h=qc(this);$v(h,this.nodeViews)&&(this.nodeViews=h,l=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&Mu(this),this.editable=Qc(this),Jc(this);let u=ys(this),a=Kc(this),f=i.plugins!=e.plugins&&!i.doc.eq(e.doc)?"reset":e.scrollToSelection>i.scrollToSelection?"to selection":"preserve",c=l||!this.docView.matchesNode(e.doc,a,u);(c||!e.selection.eq(i.selection))&&(o=!0);let d=f=="preserve"&&o&&this.dom.style.overflowAnchor==null&&g1(this);if(o){this.domObserver.stop();let h=c&&(Ae||de)&&!this.composing&&!i.selection.empty&&!e.selection.empty&&Wv(i.selection,e.selection);if(c){let p=de?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=gv(this)),(l||!this.docView.update(e.doc,a,u,this))&&(this.docView.updateOuterDeco(a),this.docView.destroy(),this.docView=Oc(e.doc,a,u,this.dom,this)),p&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&b1(this))?Tt(this,h):(am(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),!((r=this.dragging)===null||r===void 0)&&r.node&&!i.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,i),f=="reset"?this.dom.scrollTop=0:f=="to selection"?this.scrollToSelection():d&&y1(d)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof R){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&kc(this,n.getBoundingClientRect(),e)}else kc(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let r=this.directPlugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let r=this.state.plugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let r=this.pluginViews[n];r.update&&r.update(this,e)}}updateDraggedNode(e,n){let r=e.node,i=-1;
vendor: 6,060 bytes, line 48
48if(r.from<this.state.doc.content.size&&this.state.doc.nodeAt(r.from)==r.node)i=r.from;else{let l=r.from+(this.state.doc.content.size-n.doc.content.size);(l>0&&l<this.state.doc.content.size&&this.state.doc.nodeAt(l))==r.node&&(i=l)}this.dragging=new Cm(e.slice,e.move,i<0?void 0:R.create(this.state.doc,i))}someProp(e,n){let r=this._props&&this._props[e],i;if(r!=null&&(i=n?n(r):r))return i;for(let o=0;o<this.directPlugins.length;o++){let s=this.directPlugins[o].props[e];if(s!=null&&(i=n?n(s):s))return i}let l=this.state.plugins;if(l)for(let o=0;o<l.length;o++){let s=l[o].props[e];if(s!=null&&(i=n?n(s):s))return i}}hasFocus(){if(Ae){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&v1(this.dom),Tt(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return C1(this,e)}coordsAtPos(e,n=1){return tm(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,r=-1){let i=this.docView.posFromDOM(e,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(e,n){return M1(this,n||this.state,e)}pasteHTML(e,n){return Mi(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Mi(this,e,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(e){return Ra(this,e)}destroy(){this.docView&&(rv(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],ys(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,o1())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return lv(this,e)}domSelectionRange(){let e=this.domSelection();return e?xe&&this.root.nodeType===11&&c1(this.dom.ownerDocument)==this.dom&&Rv(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}bv.prototype.dispatch=function(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))};function Kc(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let r in n)r=="class"?e.class+=" "+n[r]:r=="style"?e.style=(e.style?e.style+";":"")+n[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(n[r]))}),e.translate||(e.translate="no"),[Je.node(0,t.state.doc.content.size,e)]}function Jc(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:Je.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function Qc(t){return!t.someProp("editable",e=>e(t.state)===!1)}function Wv(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function qc(t){let e=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(e,i)||(e[i]=r[i])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function $v(t,e){let n=0,r=0;for(let i in t){if(t[i]!=e[i])return!0;n++}for(let i in e)r++;return n!=r}function Yc(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var sn={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},lo={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},jv=typeof navigator<"u"&&/Mac/.test(navigator.platform),Uv=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var ce=0;ce<10;ce++)sn[48+ce]=sn[96+ce]=String(ce);for(var ce=1;ce<=24;ce++)sn[ce+111]="F"+ce;for(var ce=65;ce<=90;ce++)sn[ce]=String.fromCharCode(ce+32),lo[ce]=String.fromCharCode(ce);for(var Ss in sn)lo.hasOwnProperty(Ss)||(lo[Ss]=sn[Ss]);function Hv(t){var e=jv&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||Uv&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?lo:sn)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const Kv=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),Jv=typeof navigator<"u"&&/Win/.test(navigator.platform);function Qv(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let r,i,l,o;for(let s=0;s<e.length-1;s++){let u=e[s];if(/^(cmd|meta|m)$/i.test(u))o=!0;else if(/^a(lt)?$/i.test(u))r=!0;else if(/^(c|ctrl|control)$/i.test(u))i=!0;else if(/^s(hift)?$/i.test(u))l=!0;else if(/^mod$/i.test(u))Kv?o=!0:i=!0;else throw new Error("Unrecognized modifier name: "+u)}return r&&(n="Alt-"+n),i&&(n="Ctrl-"+n),o&&(n="Meta-"+n),l&&(n="Shift-"+n),n}function qv(t){let e=Object.create(null);for(let n in t)e[Qv(n)]=t[n];return e}
vendor: 16,016 bytes, lines 48-49
48function ks(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function PS(t){return new To({props:{handleKeyDown:Mm(t)}})}function Mm(t){let e=qv(t);return function(n,r){let i=Hv(r),l,o=e[ks(i,r)];if(o&&o(n.state,n.dispatch,n))return!0;if(i.length==1&&i!=" "){if(r.shiftKey){let s=e[ks(i,r,!1)];if(s&&s(n.state,n.dispatch,n))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(Jv&&r.ctrlKey&&r.altKey)&&(l=sn[r.keyCode])&&l!=i){let s=e[ks(l,r)];if(s&&s(n.state,n.dispatch,n))return!0}}return!1}}const Dm=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function Rm(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const Yv=(t,e,n)=>{let r=Rm(t,n);if(!r)return!1;let i=Fa(r);if(!i){let o=r.blockRange(),s=o&&Li(o);return s==null?!1:(e&&e(t.tr.lift(o,s).scrollIntoView()),!0)}let l=i.nodeBefore;if(zm(t,i,e,-1))return!0;if(r.parent.content.size==0&&(xr(l,"end")||R.isSelectable(l)))for(let o=r.depth;;o--){let s=Eo(t.doc,r.before(o),r.after(o),O.empty);if(s&&s.slice.size<s.to-s.from){if(e){let u=t.tr.step(s);u.setSelection(xr(l,"end")?F.findFrom(u.doc.resolve(u.mapping.map(i.pos,-1)),-1):R.create(u.doc,i.pos-l.nodeSize)),e(u.scrollIntoView())}return!0}if(o==1||r.node(o-1).childCount>1)break}return l.isAtom&&i.depth==r.depth-1?(e&&e(t.tr.delete(i.pos-l.nodeSize,i.pos).scrollIntoView()),!0):!1},IS=(t,e,n)=>{let r=Rm(t,n);if(!r)return!1;let i=Fa(r);return i?Pm(t,i,e):!1},zS=(t,e,n)=>{let r=Im(t,n);if(!r)return!1;let i=Ba(r);return i?Pm(t,i,e):!1};function Pm(t,e,n){let r=e.nodeBefore,i=r,l=e.pos-1;for(;!i.isTextblock;l--){if(i.type.spec.isolating)return!1;let f=i.lastChild;if(!f)return!1;i=f}let o=e.nodeAfter,s=o,u=e.pos+1;for(;!s.isTextblock;u++){if(s.type.spec.isolating)return!1;let f=s.firstChild;if(!f)return!1;s=f}let a=Eo(t.doc,l,u,O.empty);if(!a||a.from!=l||a instanceof te&&a.slice.size>=u-l)return!1;if(n){let f=t.tr.step(a);f.setSelection(_.create(f.doc,l)),n(f.scrollIntoView())}return!0}function xr(t,e,n=!1){for(let r=t;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const Gv=(t,e,n)=>{let{$head:r,empty:i}=t.selection,l=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):r.parentOffset>0)return!1;l=Fa(r)}let o=l&&l.nodeBefore;return!o||!R.isSelectable(o)?!1:(e&&e(t.tr.setSelection(R.create(t.doc,l.pos-o.nodeSize)).scrollIntoView()),!0)};function Fa(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function Im(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const Xv=(t,e,n)=>{let r=Im(t,n);if(!r)return!1;let i=Ba(r);if(!i)return!1;let l=i.nodeAfter;if(zm(t,i,e,1))return!0;if(r.parent.content.size==0&&(xr(l,"start")||R.isSelectable(l))){let o=Eo(t.doc,r.before(),r.after(),O.empty);if(o&&o.slice.size<o.to-o.from){if(e){let s=t.tr.step(o);s.setSelection(xr(l,"start")?F.findFrom(s.doc.resolve(s.mapping.map(i.pos)),1):R.create(s.doc,s.mapping.map(i.pos))),e(s.scrollIntoView())}return!0}}return l.isAtom&&i.depth==r.depth-1?(e&&e(t.tr.delete(i.pos,i.pos+l.nodeSize).scrollIntoView()),!0):!1},Zv=(t,e,n)=>{let{$head:r,empty:i}=t.selection,l=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):r.parentOffset<r.parent.content.size)return!1;l=Ba(r)}let o=l&&l.nodeAfter;return!o||!R.isSelectable(o)?!1:(e&&e(t.tr.setSelection(R.create(t.doc,l.pos)).scrollIntoView()),!0)};function Ba(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let n=t.node(e);if(t.index(e)+1<n.childCount)return t.doc.resolve(t.after(e+1));if(n.type.spec.isolating)break}return null}const AS=(t,e)=>{let n=t.selection,r=n instanceof R,i;if(r){if(n.node.isTextblock||!Fi(t.doc,n.from))return!1;i=n.from}else if(i=Vp(t.doc,n.from,-1),i==null)return!1;if(e){let l=t.tr.join(i);r&&l.setSelection(R.create(l.doc,i-t.doc.resolve(i).nodeBefore.nodeSize)),e(l.scrollIntoView())}return!0},LS=(t,e)=>{let n=t.selection,r;if(n instanceof R){if(n.node.isTextblock||!Fi(t.doc,n.to))return!1;r=n.to}else if(r=Vp(t.doc,n.to,1),r==null)return!1;return e&&e(t.tr.join(r).scrollIntoView()),!0},FS=(t,e)=>{let{$from:n,$to:r}=t.selection,i=n.blockRange(r),l=i&&Li(i);return l==null?!1:(e&&e(t.tr.lift(i,l).scrollIntoView()),!0)},eS=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(`
49`).scrollIntoView()),!0)};function _a(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const BS=(t,e)=>{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),l=n.indexAfter(-1),o=_a(i.contentMatchAt(l));if(!o||!i.canReplaceWith(l,l,o))return!1;if(e){let s=n.after(),u=t.tr.replaceWith(s,s,o.createAndFill());u.setSelection(F.near(u.doc.resolve(s),1)),e(u.scrollIntoView())}return!0},tS=(t,e)=>{let n=t.selection,{$from:r,$to:i}=n;if(n instanceof qe||r.parent.inlineContent||i.parent.inlineContent)return!1;let l=_a(i.parent.contentMatchAt(i.indexAfter()));if(!l||!l.isTextblock)return!1;if(e){let o=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,s=t.tr.insert(o,l.createAndFill());s.setSelection(_.create(s.doc,o+1)),e(s.scrollIntoView())}return!0},nS=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let l=n.before();if(ni(t.doc,l))return e&&e(t.tr.split(l).scrollIntoView()),!0}let r=n.blockRange(),i=r&&Li(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)};function rS(t){return(e,n)=>{let{$from:r,$to:i}=e.selection;if(e.selection instanceof R&&e.selection.node.isBlock)return!r.parentOffset||!ni(e.doc,r.pos)?!1:(n&&n(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let l=[],o,s,u=!1,a=!1;for(let h=r.depth;;h--)if(r.node(h).isBlock){u=r.end(h)==r.pos+(r.depth-h),a=r.start(h)==r.pos-(r.depth-h),s=_a(r.node(h-1).contentMatchAt(r.indexAfter(h-1))),l.unshift(u&&s?{type:s}:null),o=h;break}else{if(h==1)return!1;l.unshift(null)}let f=e.tr;(e.selection instanceof _||e.selection instanceof qe)&&f.deleteSelection();let c=f.mapping.map(r.pos),d=ni(f.doc,c,l.length,l);if(d||(l[0]=s?{type:s}:null,d=ni(f.doc,c,l.length,l)),!d)return!1;if(f.split(c,l.length,l),!u&&a&&r.node(o).type!=s){let h=f.mapping.map(r.before(o)),p=f.doc.resolve(h);s&&r.node(o-1).canReplaceWith(p.index(),p.index()+1,s)&&f.setNodeMarkup(f.mapping.map(r.before(o)),s)}return n&&n(f.scrollIntoView()),!0}}const iS=rS(),_S=(t,e)=>{let{$from:n,to:r}=t.selection,i,l=n.sharedDepth(r);return l==0?!1:(i=n.before(l),e&&e(t.tr.setSelection(R.create(t.doc,i))),!0)};function lS(t,e,n){let r=e.nodeBefore,i=e.nodeAfter,l=e.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&e.parent.canReplace(l-1,l)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(l,l+1)||!(i.isTextblock||Fi(t.doc,e.pos))?!1:(n&&n(t.tr.join(e.pos).scrollIntoView()),!0)}function zm(t,e,n,r){let i=e.nodeBefore,l=e.nodeAfter,o,s,u=i.type.spec.isolating||l.type.spec.isolating;if(!u&&lS(t,e,n))return!0;let a=!u&&e.parent.canReplace(e.index(),e.index()+1);if(a&&(o=(s=i.contentMatchAt(i.childCount)).findWrapping(l.type))&&s.matchType(o[0]||l.type).validEnd){if(n){let h=e.pos+l.nodeSize,p=w.empty;for(let m=o.length-1;m>=0;m--)p=w.from(o[m].create(null,p));p=w.from(i.copy(p));let y=t.tr.step(new pe(e.pos-1,h,e.pos,h,new O(p,1,0),o.length,!0)),S=y.doc.resolve(h+2*o.length);S.nodeAfter&&S.nodeAfter.type==i.type&&Fi(y.doc,S.pos)&&y.join(S.pos),n(y.scrollIntoView())}return!0}let f=l.type.spec.isolating||r>0&&u?null:F.findFrom(e,1),c=f&&f.$from.blockRange(f.$to),d=c&&Li(c);if(d!=null&&d>=e.depth)return n&&n(t.tr.lift(c,d).scrollIntoView()),!0;if(a&&xr(l,"start",!0)&&xr(i,"end")){let h=i,p=[];for(;p.push(h),!h.isTextblock;)h=h.lastChild;let y=l,S=1;for(;!y.isTextblock;y=y.firstChild)S++;if(h.canReplace(h.childCount,h.childCount,y.content)){if(n){let m=w.empty;for(let v=p.length-1;v>=0;v--)m=w.from(p[v].copy(m));let g=t.tr.step(new pe(e.pos-p.length,e.pos+l.nodeSize,e.pos+S,e.pos+l.nodeSize-S,new O(m,p.length,0),0,!0));n(g.scrollIntoView())}return!0}}return!1}function Am(t){return function(e,n){let r=e.selection,i=t<0?r.$from:r.$to,l=i.depth;for(;i.node(l).isInline;){if(!l)return!1;l--}return i.node(l).isTextblock?(n&&n(e.tr.setSelection(_.create(e.doc,t<0?i.start(l):i.end(l)))),!0):!1}}const VS=Am(-1),bS=Am(1);function WS(t,e=null){return function(n,r){let{$from:i,$to:l}=n.selection,o=i.blockRange(l),s=o&&Lp(o,t,e);return s?(r&&r(n.tr.wrap(o,s).scrollIntoView()),!0):!1}}function $S(t,e=null){return function(n,r){let i=!1;for(let l=0;l<n.selection.ranges.length&&!i;l++){let{$from:{pos:o},$to:{pos:s}}=n.selection.ranges[l];n.doc.nodesBetween(o,s,(u,a)=>{if(i)return!1;if(!(!u.isTextblock||u.hasMarkup(t,e)))if(u.type==t)i=!0;else{let f=n.doc.resolve(a),c=f.index();i=f.parent.canReplaceWith(c,c+1,t)}})}if(!i)return!1;if(r){let l=n.tr;for(let o=0;o<n.selection.ranges.length;o++){let{$from:{pos:s},$to:{pos:u}}=n.selection.ranges[o];l.setBlockType(s,u,t,e)}r(l.scrollIntoView())}return!0}}function Va(...t){return function(e,n,r){for(let i=0;i<t.length;i++)if(t[i](e,n,r))return!0;return!1}}Va(Dm,Yv,Gv);Va(Dm,Xv,Zv);Va(eS,tS,nS,iS);typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function jS(t,e=null){return function(n,r){let{$from:i,$to:l}=n.selection,o=i.blockRange(l);if(!o)return!1;let s=r?n.tr:null;return oS(s,o,t,e)?(r&&r(s.scrollIntoView()),!0):!1}}function oS(t,e,n,r=null){let i=!1,l=e,o=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(n)&&e.startIndex==0){if(e.$from.index(e.depth-1)==0)return!1;let u=o.resolve(e.start-2);l=new Xl(u,u,e.depth),e.endIndex<e.parent.childCount&&(e=new Xl(e.$from,o.resolve(e.$to.end(e.depth)),e.depth)),i=!0}let s=Lp(l,n,r,e);return s?(t&&sS(t,e,s,i,n),!0):!1}function sS(t,e,n,r,i){let l=w.empty;for(let f=n.length-1;f>=0;f--)l=w.from(n[f].type.create(n[f].attrs,l));t.step(new pe(e.start-(r?2:0),e.end,e.start,e.end,new O(l,0,0),n.length,!0));let o=0;for(let f=0;f<n.length;f++)n[f].type==i&&(o=f+1);let s=n.length-o,u=e.start+n.length-(r?2:0),a=e.parent;for(let f=e.startIndex,c=e.endIndex,d=!0;f<c;f++,d=!1)!d&&ni(t.doc,u,s)&&(t.split(u,s),u+=2*s),u+=a.child(f).nodeSize;return t}function US(t){return function(e,n){let{$from:r,$to:i}=e.selection,l=r.blockRange(i,o=>o.childCount>0&&o.firstChild.type==t);return l?n?r.node(l.depth-1).type==t?uS(e,n,t,l):aS(e,n,l):!0:!1}}function uS(t,e,n,r){let i=t.tr,l=r.end,o=r.$to.end(r.depth);l<o&&(i.step(new pe(l-1,o,l,o,new O(w.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new Xl(i.doc.resolve(r.$from.pos),i.doc.resolve(o),r.depth));const s=Li(r);if(s==null)return!1;i.lift(r,s);let u=i.doc.resolve(i.mapping.map(l,-1)-1);return Fi(i.doc,u.pos)&&u.nodeBefore.type==u.nodeAfter.type&&i.join(u.pos),e(i.scrollIntoView()),!0}function aS(t,e,n){let r=t.tr,i=n.parent;for(let h=n.end,p=n.endIndex-1,y=n.startIndex;p>y;p--)h-=i.child(p).nodeSize,r.delete(h-1,h+1);let l=r.doc.resolve(n.start),o=l.nodeAfter;if(r.mapping.map(n.end)!=n.start+l.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,u=n.endIndex==i.childCount,a=l.node(-1),f=l.index(-1);if(!a.canReplace(f+(s?0:1),f+1,o.content.append(u?w.empty:w.from(i))))return!1;let c=l.pos,d=c+o.nodeSize;return r.step(new pe(c-(s?1:0),d+(u?1:0),c+1,d-1,new O((s?w.empty:w.from(i.copy(w.empty))).append(u?w.empty:w.from(i.copy(w.empty))),s?0:1,u?0:1),s?0:1)),e(r.scrollIntoView()),!0}function HS(t){return function(e,n){let{$from:r,$to:i}=e.selection,l=r.blockRange(i,a=>a.childCount>0&&a.firstChild.type==t);if(!l)return!1;let o=l.startIndex;if(o==0)return!1;let s=l.parent,u=s.child(o-1);if(u.type!=t)return!1;if(n){let a=u.lastChild&&u.lastChild.type==s.type,f=w.from(a?t.create():null),c=new O(w.from(t.create(null,w.from(s.type.create(null,f)))),a?3:1,0),d=l.start,h=l.end;n(e.tr.step(new pe(d-(a?3:1),h,d,h,c,1,!0)).scrollIntoView())}return!0}}function KS(t={}){return new To({view(e){return new fS(e,t)}})}class fS{constructor(e,n){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(i=>{let l=o=>{this[i](o)};return e.dom.addEventListener(i,l),{name:i,handler:l}})}destroy(){this.handlers.forEach(({name:e,handler:n})=>this.editorView.dom.removeEventListener(e,n))}update(e,n){this.cursorPos!=null&&n.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),n=!e.parent.inlineContent,r,i=this.editorView.dom,l=i.getBoundingClientRect(),o=l.width/i.offsetWidth,s=l.height/i.offsetHeight;if(n){let c=e.nodeBefore,d=e.nodeAfter;if(c||d){let h=this.editorView.nodeDOM(this.cursorPos-(c?c.nodeSize:0));if(h){let p=h.getBoundingClientRect(),y=c?p.bottom:p.top;c&&d&&(y=(y+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let S=this.width/2*s;r={left:p.left,right:p.right,top:y-S,bottom:y+S}}}}if(!r){let c=this.editorView.coordsAtPos(this.cursorPos),d=this.width/2*o;r={left:c.left-d,right:c.left+d,top:c.top,bottom:c.bottom}}let u=this.editorView.dom.offsetParent;this.element||(this.element=u.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let a,f;if(!u||u==document.body&&getComputedStyle(u).position=="static")a=-pageXOffset,f=-pageYOffset;else{let c=u.getBoundingClientRect(),d=c.width/u.offsetWidth,h=c.height/u.offsetHeight;a=c.left-u.scrollLeft*d,f=c.top-u.scrollTop*h}this.element.style.left=(r.left-a)/o+"px",this.element.style.top=(r.top-f)/s+"px",this.element.style.width=(r.right-r.left)/o+"px",this.element.style.height=(r.bottom-r.top)/s+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),i=r&&r.type.spec.disableDropCursor,l=typeof i=="function"?i(this.editorView,n,e):i;if(n&&!l){let o=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=bp(this.editorView.state.doc,o,this.editorView.dragging.slice);s!=null&&(o=s)}this.setCursor(o),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}class q extends F{constructor(e){super(e,e)}map(e,n){let r=e.resolve(n.map(this.head));return q.valid(r)?new q(r):F.near(r)}content(){return O.empty}eq(e){return e instanceof q&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new q(e.resolve(n.pos))}getBookmark(){return new ba(this.anchor)}static valid(e){let n=e.parent;if(n.inlineContent||!cS(e)||!dS(e))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let i=n.contentMatchAt(e.index()).defaultType;return i&&i.isTextblock}static findGapCursorFrom(e,n,r=!1){e:for(;;){if(!r&&q.valid(e))return e;let i=e.pos,l=null;for(let o=e.depth;;o--){let s=e.node(o);if(n>
vendor: 10,592 bytes, line 49
490?e.indexAfter(o)<s.childCount:e.index(o)>0){l=s.child(n>0?e.indexAfter(o):e.index(o)-1);break}else if(o==0)return null;i+=n;let u=e.doc.resolve(i);if(q.valid(u))return u}for(;;){let o=n>0?l.firstChild:l.lastChild;if(!o){if(l.isAtom&&!l.isText&&!R.isSelectable(l)){e=e.doc.resolve(i+l.nodeSize*n),r=!1;continue e}break}l=o,i+=n;let s=e.doc.resolve(i);if(q.valid(s))return s}return null}}}q.prototype.visible=!1;q.findFrom=q.findGapCursorFrom;F.jsonID("gapcursor",q);class ba{constructor(e){this.pos=e}map(e){return new ba(e.map(this.pos))}resolve(e){let n=e.resolve(this.pos);return q.valid(n)?new q(n):F.near(n)}}function Lm(t){return t.isAtom||t.spec.isolating||t.spec.createGapCursor}function cS(t){for(let e=t.depth;e>=0;e--){let n=t.index(e),r=t.node(e);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n-1);;i=i.lastChild){if(i.childCount==0&&!i.inlineContent||Lm(i.type))return!0;if(i.inlineContent)return!1}}return!0}function dS(t){for(let e=t.depth;e>=0;e--){let n=t.indexAfter(e),r=t.node(e);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(n);;i=i.firstChild){if(i.childCount==0&&!i.inlineContent||Lm(i.type))return!0;if(i.inlineContent)return!1}}return!0}function JS(){return new To({props:{decorations:gS,createSelectionBetween(t,e,n){return e.pos==n.pos&&q.valid(n)?new q(n):null},handleClick:pS,handleKeyDown:hS,handleDOMEvents:{beforeinput:mS}}})}const hS=Mm({ArrowLeft:al("horiz",-1),ArrowRight:al("horiz",1),ArrowUp:al("vert",-1),ArrowDown:al("vert",1)});function al(t,e){const n=t=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,i,l){let o=r.selection,s=e>0?o.$to:o.$from,u=o.empty;if(o instanceof _){if(!l.endOfTextblock(n)||s.depth==0)return!1;u=!1,s=r.doc.resolve(e>0?s.after():s.before())}let a=q.findGapCursorFrom(s,e,u);return a?(i&&i(r.tr.setSelection(new q(a))),!0):!1}}function pS(t,e,n){if(!t||!t.editable)return!1;let r=t.state.doc.resolve(e);if(!q.valid(r))return!1;let i=t.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&R.isSelectable(t.state.doc.nodeAt(i.inside))?!1:(t.dispatch(t.state.tr.setSelection(new q(r))),!0)}function mS(t,e){if(e.inputType!="insertCompositionText"||!(t.state.selection instanceof q))return!1;let{$from:n}=t.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);if(!r)return!1;let i=w.empty;for(let o=r.length-1;o>=0;o--)i=w.from(r[o].createAndFill(null,i));let l=t.state.tr.replace(n.pos,n.pos,new O(i,0,0));return l.setSelection(_.near(l.doc.resolve(n.pos+1))),t.dispatch(l),!1}function gS(t){if(!(t.selection instanceof q))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",ne.create(t.doc,[Je.widget(t.selection.head,e,{key:"gapcursor"})])}var oo=200,se=function(){};se.prototype.append=function(e){return e.length?(e=se.from(e),!this.length&&e||e.length<oo&&this.leafAppend(e)||this.length<oo&&e.leafPrepend(this)||this.appendInner(e)):this};se.prototype.prepend=function(e){return e.length?se.from(e).append(this):this};se.prototype.appendInner=function(e){return new yS(this,e)};se.prototype.slice=function(e,n){return e===void 0&&(e=0),n===void 0&&(n=this.length),e>=n?se.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,n))};se.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)};se.prototype.forEach=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length),n<=r?this.forEachInner(e,n,r,0):this.forEachInvertedInner(e,n,r,0)};se.prototype.map=function(e,n,r){n===void 0&&(n=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(l,o){return i.push(e(l,o))},n,r),i};se.from=function(e){return e instanceof se?e:e&&e.length?new Fm(e):se.empty};var Fm=function(t){function e(r){t.call(this),this.values=r}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(i,l){return i==0&&l==this.length?this:new e(this.values.slice(i,l))},e.prototype.getInner=function(i){return this.values[i]},e.prototype.forEachInner=function(i,l,o,s){for(var u=l;u<o;u++)if(i(this.values[u],s+u)===!1)return!1},e.prototype.forEachInvertedInner=function(i,l,o,s){for(var u=l-1;u>=o;u--)if(i(this.values[u],s+u)===!1)return!1},e.prototype.leafAppend=function(i){if(this.length+i.length<=oo)return new e(this.values.concat(i.flatten()))},e.prototype.leafPrepend=function(i){if(this.length+i.length<=oo)return new e(i.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(e.prototype,n),e}(se);se.empty=new Fm([]);var yS=function(t){function e(n,r){t.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},e.prototype.forEachInner=function(r,i,l,o){var s=this.left.length;if(i<s&&this.left.forEachInner(r,i,Math.min(l,s),o)===!1||l>s&&this.right.forEachInner(r,Math.max(i-s,0),Math.min(this.length,l)-s,o+s)===!1)return!1},e.prototype.forEachInvertedInner=function(r,i,l,o){var s=this.left.length;if(i>s&&this.right.forEachInvertedInner(r,i-s,Math.max(l,s)-s,o+s)===!1||l<s&&this.left.forEachInvertedInner(r,Math.min(i,s),l,o)===!1)return!1},e.prototype.sliceInner=function(r,i){if(r==0&&i==this.length)return this;var l=this.left.length;return i<=l?this.left.slice(r,i):r>=l?this.right.slice(r-l,i-l):this.left.slice(r,l).append(this.right.slice(0,i-l))},e.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new e(this.left,i)},e.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new e(i,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e}(se);const vS=500;class lt{constructor(e,n){this.items=e,this.eventCount=n}popEvent(e,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,l;n&&(i=this.remapping(r,this.items.length),l=i.maps.length);let o=e.tr,s,u,a=[],f=[];return this.items.forEach((c,d)=>{if(!c.step){i||(i=this.remapping(r,d+1),l=i.maps.length),l--,f.push(c);return}if(i){f.push(new ct(c.map));let h=c.step.map(i.slice(l)),p;h&&o.maybeStep(h).doc&&(p=o.mapping.maps[o.mapping.maps.length-1],a.push(new ct(p,void 0,void 0,a.length+f.length))),l--,p&&i.appendMap(p,l)}else o.maybeStep(c.step);if(c.selection)return s=i?c.selection.map(i.slice(l)):c.selection,u=new lt(this.items.slice(0,r).append(f.reverse().concat(a)),this.eventCount-1),!1},this.items.length,0),{remaining:u,transform:o,selection:s}}addTransform(e,n,r,i){let l=[],o=this.eventCount,s=this.items,u=!i&&s.length?s.get(s.length-1):null;for(let f=0;f<e.steps.length;f++){let c=e.steps[f].invert(e.docs[f]),d=new ct(e.mapping.maps[f],c,n),h;(h=u&&u.merge(d))&&(d=h,f?l.pop():s=s.slice(0,s.length-1)),l.push(d),n&&(o++,n=void 0),i||(u=d)}let a=o-r.depth;return a>kS&&(s=SS(s,a),o-=a),new lt(s.append(l),o)}remapping(e,n){let r=new Ei;return this.items.forEach((i,l)=>{let o=i.mirrorOffset!=null&&l-i.mirrorOffset>=e?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,o)},e,n),r}addMaps(e){return this.eventCount==0?this:new lt(this.items.append(e.map(n=>new ct(n))),this.eventCount)}rebased(e,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),l=e.mapping,o=e.steps.length,s=this.eventCount;this.items.forEach(d=>{d.selection&&s--},i);let u=n;this.items.forEach(d=>{let h=l.getMirror(--u);if(h==null)return;o=Math.min(o,h);let p=l.maps[h];if(d.step){let y=e.steps[h].invert(e.docs[h]),S=d.selection&&d.selection.map(l.slice(u+1,h));S&&s++,r.push(new ct(p,y,S))}else r.push(new ct(p))},i);let a=[];for(let d=n;d<o;d++)a.push(new ct(l.maps[d]));let f=this.items.slice(0,i).append(a).append(r),c=new lt(f,s);return c.emptyItemCount()>vS&&(c=c.compress(this.items.length-r.length)),c}emptyItemCount(){let e=0;return this.items.forEach(n=>{n.step||e++}),e}compress(e=this.items.length){let n=this.remapping(0,e),r=n.maps.length,i=[],l=0;return this.items.forEach((o,s)=>{if(s>=e)i.push(o),o.selection&&l++;else if(o.step){let u=o.step.map(n.slice(r)),a=u&&u.getMap();if(r--,a&&n.appendMap(a,r),u){let f=o.selection&&o.selection.map(n.slice(r));f&&l++;let c=new ct(a.invert(),u,f),d,h=i.length-1;(d=i.length&&i[h].merge(c))?i[h]=d:i.push(c)}}else o.map&&r--},this.items.length,0),new lt(se.from(i.reverse()),l)}}lt.empty=new lt(se.empty,0);function SS(t,e){let n;return t.forEach((r,i)=>{if(r.selection&&e--==0)return n=i,!1}),t.slice(n)}class ct{constructor(e,n,r,i){this.map=e,this.step=n,this.selection=r,this.mirrorOffset=i}merge(e){if(this.step&&e.step&&!e.selection){let n=e.step.merge(this.step);if(n)return new ct(n.getMap().invert(),n,this.selection)}}}class _t{constructor(e,n,r,i,l){this.done=e,this.undone=n,this.prevRanges=r,this.prevTime=i,this.prevComposition=l}}const kS=20;function xS(t,e,n,r){let i=n.getMeta(Mn),l;if(i)return i.historyState;n.getMeta(NS)&&(t=new _t(t.done,t.undone,null,0,-1));let o=n.getMeta("appendedTransaction");if(n.steps.length==0)return t;if(o&&o.getMeta(Mn))return o.getMeta(Mn).redo?new _t(t.done.addTransform(n,void 0,r,Nl(e)),t.undone,Gc(n.mapping.maps),t.prevTime,t.prevComposition):new _t(t.done,t.undone.addTransform(n,void 0,r,Nl(e)),null,t.prevTime,t.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(o&&o.getMeta("addToHistory")===!1)){let s=n.getMeta("composition"),u=t.prevTime==0||!o&&t.prevComposition!=s&&(t.prevTime<(n.time||0)-r.newGroupDelay||!wS(n,t.prevRanges)),a=o?xs(t.prevRanges,n.mapping):Gc(n.mapping.maps);return new _t(t.done.addTransform(n,u?e.selection.getBookmark():void 0,r,Nl(e)),lt.empty,a,n.time,s??t.prevComposition)}else return(l=n.getMeta("rebased"))?new _t(t.done.rebased(n,l),t.undone.rebased(n,l),xs(t.prevRanges,n.mapping),t.prevTime,t.prevComposition):new _t(t.done.addMaps(n.mapping.maps),t.undone.addMaps(n.mapping.maps),xs(t.prevRanges,n.mapping),t.prevTime,t.prevComposition)}function wS(t,e){if(!e)return!1;if(!t.docChanged)return!0;let n=!1;return t.mapping.maps[0].forEach((r,i)=>{for(let l=0;l<e.length;l+=2)r<=e[l+1]&&i>=e[l]&&(n=!0)}),n}function Gc(t){let e=[];for(let n=t.length-1;n>=0&&e.length==0;
vendor: 1,777 bytes, line 49
49n--)t[n].forEach((r,i,l,o)=>e.push(l,o));return e}function xs(t,e){if(!t)return null;let n=[];for(let r=0;r<t.length;r+=2){let i=e.map(t[r],1),l=e.map(t[r+1],-1);i<=l&&n.push(i,l)}return n}function CS(t,e,n){let r=Nl(e),i=Mn.get(e).spec.config,l=(n?t.undone:t.done).popEvent(e,r);if(!l)return null;let o=l.selection.resolve(l.transform.doc),s=(n?t.done:t.undone).addTransform(l.transform,e.selection.getBookmark(),i,r),u=new _t(n?s:l.remaining,n?l.remaining:s,null,0,-1);return l.transform.setSelection(o).setMeta(Mn,{redo:n,historyState:u})}let ws=!1,Xc=null;function Nl(t){let e=t.plugins;if(Xc!=e){ws=!1,Xc=e;for(let n=0;n<e.length;n++)if(e[n].spec.historyPreserveItems){ws=!0;break}}return ws}const Mn=new Jp("history"),NS=new Jp("closeHistory");function QS(t={}){return t={depth:t.depth||100,newGroupDelay:t.newGroupDelay||500},new To({key:Mn,state:{init(){return new _t(lt.empty,lt.empty,null,0,-1)},apply(e,n,r){return xS(n,r,e,t)}},config:t,props:{handleDOMEvents:{beforeinput(e,n){let r=n.inputType,i=r=="historyUndo"?ES:r=="historyRedo"?OS:null;return!i||!e.editable?!1:(n.preventDefault(),i(e.state,e.dispatch))}}}})}function Bm(t,e){return(n,r)=>{let i=Mn.getState(n);if(!i||(t?i.undone:i.done).eventCount==0)return!1;if(r){let l=CS(i,n,t);l&&r(e?l.scrollIntoView():l)}return!0}}const ES=Bm(!1,!0),OS=Bm(!0,!0);export{ES as $,qe as A,zS as B,AS as C,Ci as D,Ur as E,w as F,MS as G,PS as H,FS as I,nS as J,US as K,Li as L,eS as M,gt as N,zu as O,To as P,OS as Q,TS as R,RS as S,_ as T,Gv as U,Zv as V,_S as W,bS as X,VS as Y,$S as Z,HS as _,Er as a,WS as a0,jS as a1,Je as b,ne as c,bv as d,R as e,Jp as f,DS as g,pe as h,te as i,F as j,O as k,Fi as l,ni as m,Ha as n,tS as o,Dm as p,KS as q,BS as r,Lp as s,JS as t,QS as u,Yv as v,LS as w,Xv as x,Vp as y,IS as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.