@tryghost/comments-ui 0.23.0 → 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/umd/comments-ui.min.js +30 -30
- package/umd/comments-ui.min.js.map +1 -1
package/umd/comments-ui.min.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(bt){typeof define=="function"&&define.amd?define(bt):bt()})(function(){"use strict";var gA=Object.defineProperty;var yA=(bt,Ze,Kt)=>Ze in bt?gA(bt,Ze,{enumerable:!0,configurable:!0,writable:!0,value:Kt}):bt[Ze]=Kt;var wr=(bt,Ze,Kt)=>(yA(bt,typeof Ze!="symbol"?Ze+"":Ze,Kt),Kt);function bt(t,e){for(var n=0;n<e.length;n++){const o=e[n];if(typeof o!="string"&&!Array.isArray(o)){for(const r in o)if(r!=="default"&&!(r in t)){const i=Object.getOwnPropertyDescriptor(o,r);i&&Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>o[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}function Ze(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Kt={exports:{}},br={};/*
|
|
2
2
|
object-assign
|
|
3
3
|
(c) Sindre Sorhus
|
|
4
4
|
@license MIT
|
|
5
|
-
*/var gm=Object.getOwnPropertySymbols,
|
|
5
|
+
*/var gm=Object.getOwnPropertySymbols,M1=Object.prototype.hasOwnProperty,T1=Object.prototype.propertyIsEnumerable;function j1(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function P1(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var o=Object.getOwnPropertyNames(e).map(function(i){return e[i]});if(o.join("")!=="0123456789")return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(i){r[i]=i}),Object.keys(Object.assign({},r)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var ym=P1()?Object.assign:function(t,e){for(var n,o=j1(t),r,i=1;i<arguments.length;i++){n=Object(arguments[i]);for(var s in n)M1.call(n,s)&&(o[s]=n[s]);if(gm){r=gm(n);for(var a=0;a<r.length;a++)T1.call(n,r[a])&&(o[r[a]]=n[r[a]])}}return o},wm={exports:{}},K={};/** @license React v17.0.2
|
|
6
6
|
* react.production.min.js
|
|
7
7
|
*
|
|
8
8
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
9
|
*
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/var
|
|
12
|
+
*/var $l=ym,yo=60103,bm=60106;K.Fragment=60107,K.StrictMode=60108,K.Profiler=60114;var vm=60109,Sm=60110,xm=60112;K.Suspense=60113;var km=60115,$m=60116;if(typeof Symbol=="function"&&Symbol.for){var mt=Symbol.for;yo=mt("react.element"),bm=mt("react.portal"),K.Fragment=mt("react.fragment"),K.StrictMode=mt("react.strict_mode"),K.Profiler=mt("react.profiler"),vm=mt("react.provider"),Sm=mt("react.context"),xm=mt("react.forward_ref"),K.Suspense=mt("react.suspense"),km=mt("react.memo"),$m=mt("react.lazy")}var Cm=typeof Symbol=="function"&&Symbol.iterator;function I1(t){return t===null||typeof t!="object"?null:(t=Cm&&t[Cm]||t["@@iterator"],typeof t=="function"?t:null)}function vr(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 Em={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Nm={};function wo(t,e,n){this.props=t,this.context=e,this.refs=Nm,this.updater=n||Em}wo.prototype.isReactComponent={},wo.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error(vr(85));this.updater.enqueueSetState(this,t,e,"setState")},wo.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Dm(){}Dm.prototype=wo.prototype;function Cl(t,e,n){this.props=t,this.context=e,this.refs=Nm,this.updater=n||Em}var El=Cl.prototype=new Dm;El.constructor=Cl,$l(El,wo.prototype),El.isPureReactComponent=!0;var Nl={current:null},Am=Object.prototype.hasOwnProperty,Rm={key:!0,ref:!0,__self:!0,__source:!0};function Om(t,e,n){var o,r={},i=null,s=null;if(e!=null)for(o in e.ref!==void 0&&(s=e.ref),e.key!==void 0&&(i=""+e.key),e)Am.call(e,o)&&!Rm.hasOwnProperty(o)&&(r[o]=e[o]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];r.children=l}if(t&&t.defaultProps)for(o in a=t.defaultProps,a)r[o]===void 0&&(r[o]=a[o]);return{$$typeof:yo,type:t,key:i,ref:s,props:r,_owner:Nl.current}}function L1(t,e){return{$$typeof:yo,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function Dl(t){return typeof t=="object"&&t!==null&&t.$$typeof===yo}function z1(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var Mm=/\/+/g;function Al(t,e){return typeof t=="object"&&t!==null&&t.key!=null?z1(""+t.key):e.toString(36)}function Wi(t,e,n,o,r){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var s=!1;if(t===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case yo:case bm:s=!0}}if(s)return s=t,r=r(s),t=o===""?"."+Al(s,0):o,Array.isArray(r)?(n="",t!=null&&(n=t.replace(Mm,"$&/")+"/"),Wi(r,e,n,"",function(c){return c})):r!=null&&(Dl(r)&&(r=L1(r,n+(!r.key||s&&s.key===r.key?"":(""+r.key).replace(Mm,"$&/")+"/")+t)),e.push(r)),1;if(s=0,o=o===""?".":o+":",Array.isArray(t))for(var a=0;a<t.length;a++){i=t[a];var l=o+Al(i,a);s+=Wi(i,e,n,l,r)}else if(l=I1(t),typeof l=="function")for(t=l.call(t),a=0;!(i=t.next()).done;)i=i.value,l=o+Al(i,a++),s+=Wi(i,e,n,l,r);else if(i==="object")throw e=""+t,Error(vr(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e));return s}function qi(t,e,n){if(t==null)return t;var o=[],r=0;return Wi(t,o,"","",function(i){return e.call(n,i,r++)}),o}function F1(t){if(t._status===-1){var e=t._result;e=e(),t._status=0,t._result=e,e.then(function(n){t._status===0&&(n=n.default,t._status=1,t._result=n)},function(n){t._status===0&&(t._status=2,t._result=n)})}if(t._status===1)return t._result;throw t._result}var Tm={current:null};function jt(){var t=Tm.current;if(t===null)throw Error(vr(321));return t}var H1={ReactCurrentDispatcher:Tm,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:Nl,IsSomeRendererActing:{current:!1},assign:$l};K.Children={map:qi,forEach:function(t,e,n){qi(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return qi(t,function(){e++}),e},toArray:function(t){return qi(t,function(e){return e})||[]},only:function(t){if(!Dl(t))throw Error(vr(143));return t}},K.Component=wo,K.PureComponent=Cl,K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H1,K.cloneElement=function(t,e,n){if(t==null)throw Error(vr(267,t));var o=$l({},t.props),r=t.key,i=t.ref,s=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,s=Nl.current),e.key!==void 0&&(r=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)Am.call(e,l)&&!Rm.hasOwnProperty(l)&&(o[l]=e[l]===void 0&&a!==void 0?a[l]:e[l])}var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];o.children=a}return{$$typeof:yo,type:t.type,key:r,ref:i,props:o,_owner:s}},K.createContext=function(t,e){return e===void 0&&(e=null),t={$$typeof:Sm,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider={$$typeof:vm,_context:t},t.Consumer=t},K.createElement=Om,K.createFactory=function(t){var e=Om.bind(null,t);return e.type=t,e},K.createRef=function(){return{current:null}},K.forwardRef=function(t){return{$$typeof:xm,render:t}},K.isValidElement=Dl,K.lazy=function(t){return{$$typeof:$m,_payload:{_status:-1,_result:t},_init:F1}},K.memo=function(t,e){return{$$typeof:km,type:t,compare:e===void 0?null:e}},K.useCallback=function(t,e){return jt().useCallback(t,e)},K.useContext=function(t,e){return jt().useContext(t,e)},K.useDebugValue=function(){},K.useEffect=function(t,e){return jt().useEffect(t,e)},K.useImperativeHandle=function(t,e,n){return jt().useImperativeHandle(t,e,n)},K.useLayoutEffect=function(t,e){return jt().useLayoutEffect(t,e)},K.useMemo=function(t,e){return jt().useMemo(t,e)},K.useReducer=function(t,e,n){return jt().useReducer(t,e,n)},K.useRef=function(t){return jt().useRef(t)},K.useState=function(t){return jt().useState(t)},K.version="17.0.2",wm.exports=K;var k=wm.exports;const _=Ze(k),jm=bt({__proto__:null,default:_},[k]);/** @license React v17.0.2
|
|
13
13
|
* react-jsx-runtime.production.min.js
|
|
14
14
|
*
|
|
15
15
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
16
|
*
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/var
|
|
20
|
-
`," "),o=o.replace(/\s+/g," "),o=o.trim(),o.substring(0,100)}function _m(){return"w-8 h-8"}const ow=()=>{const t=_m();return w.jsx("figure",{className:`relative ${t}`,children:w.jsx("div",{className:`flex items-center justify-center rounded-full bg-black/10 dark:bg-white/15 ${t}`,children:w.jsx(Hm,{className:"stroke-white opacity-80"})})})},Ol=({comment:t})=>{var y;const{member:e,avatarSaturation:n,t:o}=B(),r=_m(),i=(e==null?void 0:e.name)??((y=t==null?void 0:t.member)==null?void 0:y.name),s=h=>{let g=0;for(let S=0;S<h.length;S++)g=h.charCodeAt(S)+((g<<5)-g);return g=Math.abs(g),g},a=(h,g,S)=>Math.floor(h%(S-g)+g),l=()=>{const h=t?t.member:e;if(!h||!h.name)return[0,0,10];const g=n===void 0||isNaN(n)?50:n,S=[0,360],b=Math.round(g/(100/30))+30,C=[b-20,b],x=s(h.name),$=a(x,S[0],S[1]),O=a(x,C[0],C[1]);return[$,g,O]},c=h=>`hsl(${h[0]}, ${h[1]}%, ${h[2]}%)`,u=t&&ew(t,o)||e&&Bm(e.name||"")||"",m=t?t.member:e,p={background:c(l())},f=w.jsxs(w.Fragment,{children:[i?w.jsx("div",{className:`flex items-center justify-center rounded-full ${r}`,"data-testid":"avatar-background",style:p,children:w.jsx("p",{className:"font-sans text-base font-semibold text-white",children:u})}):w.jsx("div",{className:`flex items-center justify-center rounded-full bg-neutral-900 dark:bg-white/70 ${r}`,"data-testid":"avatar-background",children:w.jsx(Hm,{className:"stroke-white dark:stroke-black/60"})}),m&&w.jsx("img",{alt:"Avatar",className:`absolute left-0 top-0 rounded-full ${r}`,"data-testid":"avatar-image",src:m.avatar_image})]});return w.jsx("figure",{className:`relative ${r}`,"data-testid":"avatar",children:f})},rw=t=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 24 24",...t},k.createElement("g",{strokeLinecap:"round",strokeWidth:2,fill:"none",strokeLinejoin:"round",className:"nc-icon-wrapper"},k.createElement("polygon",{points:"7 21 2 22 3 17 18 2 22 6 7 21"})));function xe(t){this.content=t}xe.prototype={constructor:xe,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 o=n&&n!=t?this.remove(n):this,r=o.find(t),i=o.content.slice();return r==-1?i.push(n||t,e):(i[r+1]=e,n&&(i[r]=n)),new xe(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new xe(n)},addToStart:function(t,e){return new xe([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new xe(n)},addBefore:function(t,e,n){var o=this.remove(e),r=o.content.slice(),i=o.find(t);return r.splice(i==-1?r.length:i,0,e,n),new xe(r)},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=xe.from(t),t.size?new xe(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=xe.from(t),t.size?new xe(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=xe.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}},xe.from=function(t){if(t instanceof xe)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new xe(e)};function Jm(t,e,n){for(let o=0;;o++){if(o==t.childCount||o==e.childCount)return t.childCount==e.childCount?null:n;let r=t.child(o),i=e.child(o);if(r==i){n+=r.nodeSize;continue}if(!r.sameMarkup(i))return n;if(r.isText&&r.text!=i.text){for(let s=0;r.text[s]==i.text[s];s++)n++;return n}if(r.content.size||i.content.size){let s=Jm(r.content,i.content,n+1);if(s!=null)return s}n+=r.nodeSize}}function Ym(t,e,n,o){for(let r=t.childCount,i=e.childCount;;){if(r==0||i==0)return r==i?null:{a:n,b:o};let s=t.child(--r),a=e.child(--i),l=s.nodeSize;if(s==a){n-=l,o-=l;continue}if(!s.sameMarkup(a))return{a:n,b:o};if(s.isText&&s.text!=a.text){let c=0,u=Math.min(s.text.length,a.text.length);for(;c<u&&s.text[s.text.length-c-1]==a.text[a.text.length-c-1];)c++,n--,o--;return{a:n,b:o}}if(s.content.size||a.content.size){let c=Ym(s.content,a.content,n-1,o-1);if(c)return c}n-=l,o-=l}}class N{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let o=0;o<e.length;o++)this.size+=e[o].nodeSize}nodesBetween(e,n,o,r=0,i){for(let s=0,a=0;a<n;s++){let l=this.content[s],c=a+l.nodeSize;if(c>e&&o(l,r+a,i||null,s)!==!1&&l.content.size){let u=a+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,n-u),o,r+u)}a=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,o,r){let i="",s=!0;return this.nodesBetween(e,n,(a,l)=>{let c=a.isText?a.text.slice(Math.max(e,l)-l,n-l):a.isLeaf?r?typeof r=="function"?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&c||a.isTextblock)&&o&&(s?s=!1:i+=o),i+=c},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,o=e.firstChild,r=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(o)&&(r[r.length-1]=n.withText(n.text+o.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new N(r,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let o=[],r=0;if(n>e)for(let i=0,s=0;s<n;i++){let a=this.content[i],l=s+a.nodeSize;l>e&&((s<e||l>n)&&(a.isText?a=a.cut(Math.max(0,e-s),Math.min(a.text.length,n-s)):a=a.cut(Math.max(0,e-s-1),Math.min(a.content.size,n-s-1))),o.push(a),r+=a.nodeSize),s=l}return new N(o,r)}cutByIndex(e,n){return e==n?N.empty:e==0&&n==this.content.length?this:new N(this.content.slice(e,n))}replaceChild(e,n){let o=this.content[e];if(o==n)return this;let r=this.content.slice(),i=this.size+n.nodeSize-o.nodeSize;return r[e]=n,new N(r,i)}addToStart(e){return new N([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new N(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,o=0;n<this.content.length;n++){let r=this.content[n];e(r,o,n),o+=r.nodeSize}}findDiffStart(e,n=0){return Jm(this,e,n)}findDiffEnd(e,n=this.size,o=e.size){return Ym(this,e,n,o)}findIndex(e,n=-1){if(e==0)return Qi(0,e);if(e==this.size)return Qi(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let o=0,r=0;;o++){let i=this.child(o),s=r+i.nodeSize;if(s>=e)return s==e||n>0?Qi(o+1,s):Qi(o,r);r=s}}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 N.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new N(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return N.empty;let n,o=0;for(let r=0;r<e.length;r++){let i=e[r];o+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(n||(n=e.slice(0,r)),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new N(n||e,o)}static from(e){if(!e)return N.empty;if(e instanceof N)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new N([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}N.empty=new N([],0);const Dl={index:0,offset:0};function Qi(t,e){return Dl.index=t,Dl.offset=e,Dl}function Zi(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 o=0;o<t.length;o++)if(!Zi(t[o],e[o]))return!1}else{for(let o in t)if(!(o in e)||!Zi(t[o],e[o]))return!1;for(let o in e)if(!(o in t))return!1}return!0}let q=class pm{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,o=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))n||(n=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!o&&i.type.rank>this.type.rank&&(n||(n=e.slice(0,r)),n.push(this),o=!0),n&&n.push(i)}}return n||(n=e.slice()),o||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&&Zi(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 o=e.marks[n.type];if(!o)throw new RangeError(`There is no mark type ${n.type} in this schema`);let r=o.create(n.attrs);return o.checkAttrs(r.attrs),r}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let o=0;o<e.length;o++)if(!e[o].eq(n[o]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return pm.none;if(e instanceof pm)return[e];let n=e.slice();return n.sort((o,r)=>o.type.rank-r.type.rank),n}};q.none=[];class Xi extends Error{}class M{constructor(e,n,o){this.content=e,this.openStart=n,this.openEnd=o}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let o=Wm(this.content,e+this.openStart,n);return o&&new M(o,this.openStart,this.openEnd)}removeBetween(e,n){return new M(Km(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 M.empty;let o=n.openStart||0,r=n.openEnd||0;if(typeof o!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new M(N.fromJSON(e,n.content),o,r)}static maxOpen(e,n=!0){let o=0,r=0;for(let i=e.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)o++;for(let i=e.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)r++;return new M(e,o,r)}}M.empty=new M(N.empty,0,0);function Km(t,e,n){let{index:o,offset:r}=t.findIndex(e),i=t.maybeChild(o),{index:s,offset:a}=t.findIndex(n);if(r==e||i.isText){if(a!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(o!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(o,i.copy(Km(i.content,e-r-1,n-r-1)))}function Wm(t,e,n,o){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r);if(i==e||s.isText)return o&&!o.canReplace(r,r,n)?null:t.cut(0,e).append(n).append(t.cut(e));let a=Wm(s.content,e-i-1,n);return a&&t.replaceChild(r,s.copy(a))}function iw(t,e,n){if(n.openStart>t.depth)throw new Xi("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Xi("Inconsistent open depths");return qm(t,e,n,0)}function qm(t,e,n,o){let r=t.index(o),i=t.node(o);if(r==e.index(o)&&o<t.depth-n.openStart){let s=qm(t,e,n,o+1);return i.copy(i.content.replaceChild(r,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==o&&e.depth==o){let s=t.parent,a=s.content;return In(s,a.cut(0,t.parentOffset).append(n.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=sw(n,t);return In(i,Qm(t,s,a,e,o))}else return In(i,es(t,e,o))}function Gm(t,e){if(!e.type.compatibleContent(t.type))throw new Xi("Cannot join "+e.type.name+" onto "+t.type.name)}function Ml(t,e,n){let o=t.node(n);return Gm(o,e.node(n)),o}function Pn(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 xr(t,e,n,o){let r=(e||t).node(n),i=0,s=e?e.index(n):r.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(Pn(t.nodeAfter,o),i++));for(let a=i;a<s;a++)Pn(r.child(a),o);e&&e.depth==n&&e.textOffset&&Pn(e.nodeBefore,o)}function In(t,e){return t.type.checkContent(e),t.copy(e)}function Qm(t,e,n,o,r){let i=t.depth>r&&Ml(t,e,r+1),s=o.depth>r&&Ml(n,o,r+1),a=[];return xr(null,t,r,a),i&&s&&e.index(r)==n.index(r)?(Gm(i,s),Pn(In(i,Qm(t,e,n,o,r+1)),a)):(i&&Pn(In(i,es(t,e,r+1)),a),xr(e,n,r,a),s&&Pn(In(s,es(n,o,r+1)),a)),xr(o,null,r,a),new N(a)}function es(t,e,n){let o=[];if(xr(null,t,n,o),t.depth>n){let r=Ml(t,e,n+1);Pn(In(r,es(t,e,n+1)),o)}return xr(e,null,n,o),new N(o)}function sw(t,e){let n=e.depth-t.openStart,r=e.node(n).copy(t.content);for(let i=n-1;i>=0;i--)r=e.node(i).copy(N.from(r));return{start:r.resolveNoCache(t.openStart+n),end:r.resolveNoCache(r.content.size-t.openEnd-n)}}class kr{constructor(e,n,o){this.pos=e,this.path=n,this.parentOffset=o,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 o=this.pos-this.path[this.path.length-1],r=e.child(n);return o?e.child(n).cut(o):r}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 o=this.path[n*3],r=n==0?0:this.path[n*3-1]+1;for(let i=0;i<e;i++)r+=o.child(i).nodeSize;return r}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return q.none;if(this.textOffset)return e.child(n).marks;let o=e.maybeChild(n-1),r=e.maybeChild(n);if(!o){let a=o;o=r,r=a}let i=o.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!r||!i[s].isInSet(r.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let o=n.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<o.length;i++)o[i].type.spec.inclusive===!1&&(!r||!o[i].isInSet(r.marks))&&(o=o[i--].removeFromSet(o));return o}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 o=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);o>=0;o--)if(e.pos<=this.end(o)&&(!n||n(this.node(o))))return new ts(this,e,o);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 o=[],r=0,i=n;for(let s=e;;){let{index:a,offset:l}=s.content.findIndex(i),c=i-l;if(o.push(s,a,r+l),!c||(s=s.child(a),s.isText))break;i=c-1,r+=l+1}return new kr(n,o,i)}static resolveCached(e,n){let o=Zm.get(e);if(o)for(let i=0;i<o.elts.length;i++){let s=o.elts[i];if(s.pos==n)return s}else Zm.set(e,o=new aw);let r=o.elts[o.i]=kr.resolve(e,n);return o.i=(o.i+1)%lw,r}}class aw{constructor(){this.elts=[],this.i=0}}const lw=12,Zm=new WeakMap;class ts{constructor(e,n,o){this.$from=e,this.$to=n,this.depth=o}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 cw=Object.create(null);let Ln=class hm{constructor(e,n,o,r=q.none){this.type=e,this.attrs=n,this.marks=r,this.content=o||N.empty}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,o,r=0){this.content.nodesBetween(e,n,o,r,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,o,r){return this.content.textBetween(e,n,o,r)}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,o){return this.type==e&&Zi(this.attrs,n||e.defaultAttrs||cw)&&q.sameSet(this.marks,o||q.none)}copy(e=null){return e==this.content?this:new hm(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new hm(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,o=!1){if(e==n)return M.empty;let r=this.resolve(e),i=this.resolve(n),s=o?0:r.sharedDepth(n),a=r.start(s),c=r.node(s).content.cut(r.pos-a,i.pos-a);return new M(c,r.depth-s,i.depth-s)}replace(e,n,o){return iw(this.resolve(e),this.resolve(n),o)}nodeAt(e){for(let n=this;;){let{index:o,offset:r}=n.content.findIndex(e);if(n=n.maybeChild(o),!n)return null;if(r==e||n.isText)return n;e-=r+1}}childAfter(e){let{index:n,offset:o}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:o}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:o}=this.content.findIndex(e);if(o<e)return{node:this.content.child(n),index:n,offset:o};let r=this.content.child(n-1);return{node:r,index:n-1,offset:o-r.nodeSize}}resolve(e){return kr.resolveCached(this,e)}resolveNoCache(e){return kr.resolve(this,e)}rangeHasMark(e,n,o){let r=!1;return n>e&&this.nodesBetween(e,n,i=>(o.isInSet(i.marks)&&(r=!0),!r)),r}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()+")"),Xm(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,o=N.empty,r=0,i=o.childCount){let s=this.contentMatchAt(e).matchFragment(o,r,i),a=s&&s.matchFragment(this.content,n);if(!a||!a.validEnd)return!1;for(let l=r;l<i;l++)if(!this.type.allowsMarks(o.child(l).marks))return!1;return!0}canReplaceWith(e,n,o,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(o),s=i&&i.matchFragment(this.content,n);return s?s.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=q.none;for(let n=0;n<this.marks.length;n++){let o=this.marks[n];o.type.checkAttrs(o.attrs),e=o.addToSet(e)}if(!q.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);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 o;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");o=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,o)}let r=N.fromJSON(e,n.content),i=e.nodeType(n.type).create(n.attrs,r,o);return i.type.checkAttrs(i.attrs),i}};Ln.prototype.text=void 0;class ns extends Ln{constructor(e,n,o,r){if(super(e,n,null,r),!o)throw new RangeError("Empty text nodes are not allowed");this.text=o}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Xm(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 ns(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new ns(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 Xm(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class zn{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let o=new uw(e,n);if(o.next==null)return zn.empty;let r=ef(o);o.next&&o.err("Unexpected trailing text");let i=yw(gw(r));return ww(i,o),i}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,o=e.childCount){let r=this;for(let i=n;r&&i<o;i++)r=r.matchType(e.child(i).type);return r}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 o=0;o<e.next.length;o++)if(this.next[n].type==e.next[o].type)return!0;return!1}fillBefore(e,n=!1,o=0){let r=[this];function i(s,a){let l=s.matchFragment(e,o);if(l&&(!n||l.validEnd))return N.from(a.map(c=>c.createAndFill()));for(let c=0;c<s.next.length;c++){let{type:u,next:m}=s.next[c];if(!(u.isText||u.hasRequiredAttrs())&&r.indexOf(m)==-1){r.push(m);let d=i(m,a.concat(u));if(d)return d}}return null}return i(this,[])}findWrapping(e){for(let o=0;o<this.wrapCache.length;o+=2)if(this.wrapCache[o]==e)return this.wrapCache[o+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),o=[{match:this,type:null,via:null}];for(;o.length;){let r=o.shift(),i=r.match;if(i.matchType(e)){let s=[];for(let a=r;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:a,next:l}=i.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in n)&&(!r.type||l.validEnd)&&(o.push({match:a.contentMatch,type:a,via:r}),n[a.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(o){e.push(o);for(let r=0;r<o.next.length;r++)e.indexOf(o.next[r].next)==-1&&n(o.next[r].next)}return n(this),e.map((o,r)=>{let i=r+(o.validEnd?"*":" ")+" ";for(let s=0;s<o.next.length;s++)i+=(s?", ":"")+o.next[s].type.name+"->"+e.indexOf(o.next[s].next);return i}).join(`
|
|
21
|
-
`)}}zn.empty=new zn(!0);class uw{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 ef(t){let e=[];do e.push(dw(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function dw(t){let e=[];do e.push(mw(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function mw(t){let e=hw(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=fw(t,e);else break;return e}function tf(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function fw(t,e){let n=tf(t),o=n;return t.eat(",")&&(t.next!="}"?o=tf(t):o=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:o,expr:e}}function pw(t,e){let n=t.nodeTypes,o=n[e];if(o)return[o];let r=[];for(let i in n){let s=n[i];s.groups.indexOf(e)>-1&&r.push(s)}return r.length==0&&t.err("No node type or group '"+e+"' found"),r}function hw(t){if(t.eat("(")){let e=ef(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=pw(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 gw(t){let e=[[]];return r(i(t,0),n()),e;function n(){return e.push([])-1}function o(s,a,l){let c={term:l,to:a};return e[s].push(c),c}function r(s,a){s.forEach(l=>l.to=a)}function i(s,a){if(s.type=="choice")return s.exprs.reduce((l,c)=>l.concat(i(c,a)),[]);if(s.type=="seq")for(let l=0;;l++){let c=i(s.exprs[l],a);if(l==s.exprs.length-1)return c;r(c,a=n())}else if(s.type=="star"){let l=n();return o(a,l),r(i(s.expr,l),l),[o(l)]}else if(s.type=="plus"){let l=n();return r(i(s.expr,a),l),r(i(s.expr,l),l),[o(l)]}else{if(s.type=="opt")return[o(a)].concat(i(s.expr,a));if(s.type=="range"){let l=a;for(let c=0;c<s.min;c++){let u=n();r(i(s.expr,l),u),l=u}if(s.max==-1)r(i(s.expr,l),l);else for(let c=s.min;c<s.max;c++){let u=n();o(l,u),r(i(s.expr,l),u),l=u}return[o(l)]}else{if(s.type=="name")return[o(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function nf(t,e){return e-t}function of(t,e){let n=[];return o(e),n.sort(nf);function o(r){let i=t[r];if(i.length==1&&!i[0].term)return o(i[0].to);n.push(r);for(let s=0;s<i.length;s++){let{term:a,to:l}=i[s];!a&&n.indexOf(l)==-1&&o(l)}}}function yw(t){let e=Object.create(null);return n(of(t,0));function n(o){let r=[];o.forEach(s=>{t[s].forEach(({term:a,to:l})=>{if(!a)return;let c;for(let u=0;u<r.length;u++)r[u][0]==a&&(c=r[u][1]);of(t,l).forEach(u=>{c||r.push([a,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let i=e[o.join(",")]=new zn(o.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(nf);i.next.push({type:r[s][0],next:e[a.join(",")]||n(a)})}return i}}function ww(t,e){for(let n=0,o=[t];n<o.length;n++){let r=o[n],i=!r.validEnd,s=[];for(let a=0;a<r.next.length;a++){let{type:l,next:c}=r.next[a];s.push(l.name),i&&!(l.isText||l.hasRequiredAttrs())&&(i=!1),o.indexOf(c)==-1&&o.push(c)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function rf(t){let e=Object.create(null);for(let n in t){let o=t[n];if(!o.hasDefault)return null;e[n]=o.default}return e}function sf(t,e){let n=Object.create(null);for(let o in t){let r=e&&e[o];if(r===void 0){let i=t[o];if(i.hasDefault)r=i.default;else throw new RangeError("No value supplied for attribute "+o)}n[o]=r}return n}function af(t,e,n,o){for(let r in e)if(!(r in t))throw new RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let r in t){let i=t[r];i.validate&&i.validate(e[r])}}function lf(t,e){let n=Object.create(null);if(e)for(let o in e)n[o]=new bw(t,o,e[o]);return n}let cf=class O1{constructor(e,n,o){this.name=e,this.schema=n,this.spec=o,this.markSet=null,this.groups=o.group?o.group.split(" "):[],this.attrs=lf(e,o.attrs),this.defaultAttrs=rf(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(o.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==zn.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}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:sf(this.attrs,e)}create(e=null,n,o){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Ln(this,this.computeAttrs(e),N.from(n),q.setFrom(o))}createChecked(e=null,n,o){return n=N.from(n),this.checkContent(n),new Ln(this,this.computeAttrs(e),n,q.setFrom(o))}createAndFill(e=null,n,o){if(e=this.computeAttrs(e),n=N.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let r=this.contentMatch.matchFragment(n),i=r&&r.fillBefore(N.empty,!0);return i?new Ln(this,e,n.append(i),q.setFrom(o)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let o=0;o<e.childCount;o++)if(!this.allowsMarks(e.child(o).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){af(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 o=0;o<e.length;o++)this.allowsMarkType(e[o].type)?n&&n.push(e[o]):n||(n=e.slice(0,o));return n?n.length?n:q.none:e}static compile(e,n){let o=Object.create(null);e.forEach((i,s)=>o[i]=new O1(i,n,s));let r=n.spec.topNode||"doc";if(!o[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!o.text)throw new RangeError("Every schema needs a 'text' type");for(let i in o.text.attrs)throw new RangeError("The text node type should not have attributes");return o}};function Sw(t,e,n){let o=n.split("|");return r=>{let i=r===null?"null":typeof r;if(o.indexOf(i)<0)throw new RangeError(`Expected value of type ${o} for attribute ${e} on type ${t}, got ${i}`)}}class bw{constructor(e,n,o){this.hasDefault=Object.prototype.hasOwnProperty.call(o,"default"),this.default=o.default,this.validate=typeof o.validate=="string"?Sw(e,n,o.validate):o.validate}get isRequired(){return!this.hasDefault}}class rs{constructor(e,n,o,r){this.name=e,this.rank=n,this.schema=o,this.spec=r,this.attrs=lf(e,r.attrs),this.excluded=null;let i=rf(this.attrs);this.instance=i?new q(this,i):null}create(e=null){return!e&&this.instance?this.instance:new q(this,sf(this.attrs,e))}static compile(e,n){let o=Object.create(null),r=0;return e.forEach((i,s)=>o[i]=new rs(i,r++,n,s)),o}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){af(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class uf{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let r in e)n[r]=e[r];n.nodes=xe.from(e.nodes),n.marks=xe.from(e.marks||{}),this.nodes=cf.compile(this.spec.nodes,this),this.marks=rs.compile(this.spec.marks,this);let o=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let i=this.nodes[r],s=i.spec.content||"",a=i.spec.marks;if(i.contentMatch=o[s]||(o[s]=zn.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=a=="_"?null:a?df(this,a.split(" ")):a==""||!i.inlineContent?[]:null}for(let r in this.marks){let i=this.marks[r],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:df(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,o,r){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof cf){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,o,r)}text(e,n){let o=this.nodes.text;return new ns(o,o.defaultAttrs,e,q.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return Ln.fromJSON(this,e)}markFromJSON(e){return q.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function df(t,e){let n=[];for(let o=0;o<e.length;o++){let r=e[o],i=t.marks[r],s=i;if(i)n.push(i);else for(let a in t.marks){let l=t.marks[a];(r=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(r)>-1)&&n.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[o]+"'")}return n}function vw(t){return t.tag!=null}function xw(t){return t.style!=null}class Wt{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let o=this.matchedStyles=[];n.forEach(r=>{if(vw(r))this.tags.push(r);else if(xw(r)){let i=/[^=]*/.exec(r.style)[0];o.indexOf(i)<0&&o.push(i),this.styles.push(r)}}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let i=e.nodes[r.node];return i.contentMatch.matchType(i)})}parse(e,n={}){let o=new hf(this,n,!1);return o.addAll(e,q.none,n.from,n.to),o.finish()}parseSlice(e,n={}){let o=new hf(this,n,!0);return o.addAll(e,q.none,n.from,n.to),M.maxOpen(o.finish())}matchTag(e,n,o){for(let r=o?this.tags.indexOf(o)+1:0;r<this.tags.length;r++){let i=this.tags[r];if(Cw(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||n.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,n,o,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let s=this.styles[i],a=s.style;if(!(a.indexOf(e)!=0||s.context&&!o.matchesContext(s.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=n))){if(s.getAttrs){let l=s.getAttrs(n);if(l===!1)continue;s.attrs=l||void 0}return s}}}static schemaRules(e){let n=[];function o(r){let i=r.priority==null?50:r.priority,s=0;for(;s<n.length;s++){let a=n[s];if((a.priority==null?50:a.priority)<i)break}n.splice(s,0,r)}for(let r in e.marks){let i=e.marks[r].spec.parseDOM;i&&i.forEach(s=>{o(s=gf(s)),s.mark||s.ignore||s.clearMark||(s.mark=r)})}for(let r in e.nodes){let i=e.nodes[r].spec.parseDOM;i&&i.forEach(s=>{o(s=gf(s)),s.node||s.ignore||s.mark||(s.node=r)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Wt(e,Wt.schemaRules(e)))}}const mf={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},kw={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ff={ol:!0,ul:!0},is=1,ss=2,$r=4;function pf(t,e,n){return e!=null?(e?is:0)|(e==="full"?ss:0):t&&t.whitespace=="pre"?is|ss:n&~$r}class as{constructor(e,n,o,r,i,s){this.type=e,this.attrs=n,this.marks=o,this.solid=r,this.options=s,this.content=[],this.activeMarks=q.none,this.match=i||(s&$r?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(N.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let o=this.type.contentMatch,r;return(r=o.findWrapping(e.type))?(this.match=o,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&is)){let o=this.content[this.content.length-1],r;if(o&&o.isText&&(r=/[ \t\r\n\u000c]+$/.exec(o.text))){let i=o;o.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-r[0].length))}}let n=N.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(N.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&&!mf.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class hf{constructor(e,n,o){this.parser=e,this.options=n,this.isOpen=o,this.open=0;let r=n.topNode,i,s=pf(null,n.preserveWhitespace,0)|(o?$r:0);r?i=new as(r.type,r.attrs,q.none,!0,n.topMatch||r.type.contentMatch,s):o?i=new as(null,null,q.none,!0,null,s):i=new as(e.schema.topNodeType,null,q.none,!0,null,s),this.nodes=[i],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 o=e.nodeValue,r=this.top;if(r.options&ss||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(o)){if(r.options&is)r.options&ss?o=o.replace(/\r\n?/g,`
|
|
22
|
-
`):o=o.replace(/\r?\n|\r/g," ");else if(o=o.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(o)&&this.open==this.nodes.length-1){let i=r.content[r.content.length-1],s=e.previousSibling;(!i||s&&s.nodeName=="BR"||i.isText&&/[ \t\r\n\u000c]$/.test(i.text))&&(o=o.slice(1))}o&&this.insertNode(this.parser.schema.text(o),n),this.findInText(e)}else this.findInside(e)}addElement(e,n,o){let r=e.nodeName.toLowerCase(),i;ff.hasOwnProperty(r)&&this.parser.normalizeLists
|
|
23
|
-
`),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n)}readStyles(e,n){let o=e.style;if(o&&o.length)for(let r=0;r<this.parser.matchedStyles.length;r++){let i=this.parser.matchedStyles[r],s=o.getPropertyValue(i);if(s)for(let a=void 0;;){let l=this.parser.matchStyle(i,s,this,a);if(!l)break;if(l.ignore)return null;if(l.clearMark?n=n.filter(c=>!l.clearMark(c)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)a=l;else break}}return n}addElementByRule(e,n,o,r){let i,s;if(n.node)if(s=this.parser.schema.nodes[n.node],s.isLeaf)this.insertNode(s.create(n.attrs),o)||this.leafFallback(e,o);else{let l=this.enter(s,n.attrs||null,o,n.preserveWhitespace);l&&(i=!0,o=l)}else{let l=this.parser.schema.marks[n.mark];o=o.concat(l.create(n.attrs))}let a=this.top;if(s&&s.isLeaf)this.findInside(e);else if(r)this.addElement(e,o,r);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,o));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l,o)}i&&this.sync(a)&&this.open--}addAll(e,n,o,r){let i=o||0;for(let s=o?e.childNodes[o]:e.firstChild,a=r==null?null:e.childNodes[r];s!=a;s=s.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(s,n);this.findAtPoint(e,i)}findPlace(e,n){let o,r;for(let i=this.open;i>=0;i--){let s=this.nodes[i],a=s.findWrapping(e);if(a&&(!o||o.length>a.length)&&(o=a,r=s,!a.length)||s.solid)break}if(!o)return null;this.sync(r);for(let i=0;i<o.length;i++)n=this.enterInner(o[i],null,n,!1);return n}insertNode(e,n){if(e.isInline&&this.needsBlock&&!this.top.type){let r=this.textblockFromContext();r&&(n=this.enterInner(r,null,n))}let o=this.findPlace(e,n);if(o){this.closeExtra();let r=this.top;r.match&&(r.match=r.match.matchType(e.type));let i=q.none;for(let s of o.concat(e.marks))(r.type?r.type.allowsMarkType(s.type):yf(s.type,e.type))&&(i=s.addToSet(i));return r.content.push(e.mark(i)),!0}return!1}enter(e,n,o,r){let i=this.findPlace(e.create(n),o);return i&&(i=this.enterInner(e,n,o,!0,r)),i}enterInner(e,n,o,r=!1,i){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(e);let a=pf(e,i,s.options);s.options&$r&&s.content.length==0&&(a|=$r);let l=q.none;return o=o.filter(c=>(s.type?s.type.allowsMarkType(c.type):yf(c.type,e))?(l=c.addToSet(l),!1):!0),this.nodes.push(new as(e,n,l,r,null,a)),this.open++,o}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;return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let o=this.nodes[n].content;for(let r=o.length-1;r>=0;r--)e+=o[r].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let o=0;o<this.find.length;o++)this.find[o].node==e&&this.find[o].offset==n&&(this.find[o].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,o){if(e!=n&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&n.compareDocumentPosition(this.find[r].node)&(o?2:4)&&(this.find[r].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("/"),o=this.options.context,r=!this.isOpen&&(!o||o.parent.type==this.nodes[0].type),i=-(o?o.depth+1:0)+(r?0:1),s=(a,l)=>{for(;a>=0;a--){let c=n[a];if(c==""){if(a==n.length-1||a==0)continue;for(;l>=i;l--)if(s(a-1,l))return!0;return!1}else{let u=l>0||l==0&&r?this.nodes[l].type:o&&l>=i?o.node(l-i).type:null;if(!u||u.name!=c&&u.groups.indexOf(c)==-1)return!1;l--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let o=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(o&&o.isTextblock&&o.defaultAttrs)return o}for(let n in this.parser.schema.nodes){let o=this.parser.schema.nodes[n];if(o.isTextblock&&o.defaultAttrs)return o}}}function $w(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let o=e.nodeType==1?e.nodeName.toLowerCase():null;o&&ff.hasOwnProperty(o)&&n?(n.appendChild(e),e=n):o=="li"?n=e:o&&(n=null)}}function Cw(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function gf(t){let e={};for(let n in t)e[n]=t[n];return e}function yf(t,e){let n=e.schema.nodes;for(let o in n){let r=n[o];if(!r.allowsMarkType(t))continue;let i=[],s=a=>{i.push(a);for(let l=0;l<a.edgeCount;l++){let{type:c,next:u}=a.edge(l);if(c==e||i.indexOf(u)<0&&s(u))return!0}};if(s(r.contentMatch))return!0}}class Fn{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},o){o||(o=Tl(n).createDocumentFragment());let r=o,i=[];return e.forEach(s=>{if(i.length||s.marks.length){let a=0,l=0;for(;a<i.length&&l<s.marks.length;){let c=s.marks[l];if(!this.marks[c.type.name]){l++;continue}if(!c.eq(i[a][0])||c.type.spec.spanning===!1)break;a++,l++}for(;a<i.length;)r=i.pop()[1];for(;l<s.marks.length;){let c=s.marks[l++],u=this.serializeMark(c,s.isInline,n);u&&(i.push([c,r]),r.appendChild(u.dom),r=u.contentDOM||u.dom)}}r.appendChild(this.serializeNodeInner(s,n))}),o}serializeNodeInner(e,n){let{dom:o,contentDOM:r}=ls(Tl(n),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,r)}return o}serializeNode(e,n={}){let o=this.serializeNodeInner(e,n);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,n);i&&((i.contentDOM||i.dom).appendChild(o),o=i.dom)}return o}serializeMark(e,n,o={}){let r=this.marks[e.type.name];return r&&ls(Tl(o),r(e,n),null,e.attrs)}static renderSpec(e,n,o=null,r){return ls(e,n,o,r)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Fn(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=wf(e.nodes);return n.text||(n.text=o=>o.text),n}static marksFromSchema(e){return wf(e.marks)}}function wf(t){let e={};for(let n in t){let o=t[n].spec.toDOM;o&&(e[n]=o)}return e}function Tl(t){return t.document||window.document}const Sf=new WeakMap;function Ew(t){let e=Sf.get(t);return e===void 0&&Sf.set(t,e=Nw(t)),e}function Nw(t){let e=null;function n(o){if(o&&typeof o=="object")if(Array.isArray(o))if(typeof o[0]=="string")e||(e=[]),e.push(o);else for(let r=0;r<o.length;r++)n(o[r]);else for(let r in o)n(o[r])}return n(t),e}function ls(t,e,n,o){if(typeof e=="string")return{dom:t.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let r=e[0],i;if(typeof r!="string")throw new RangeError("Invalid array passed to renderSpec");if(o&&(i=Ew(o))&&i.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 s=r.indexOf(" ");s>0&&(n=r.slice(0,s),r=r.slice(s+1));let a,l=n?t.createElementNS(n,r):t.createElement(r),c=e[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let m in c)if(c[m]!=null){let d=m.indexOf(" ");d>0?l.setAttributeNS(m.slice(0,d),m.slice(d+1),c[m]):l.setAttribute(m,c[m])}}for(let m=u;m<e.length;m++){let d=e[m];if(d===0){if(m<e.length-1||m>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:p,contentDOM:f}=ls(t,d,n,o);if(l.appendChild(p),f){if(a)throw new RangeError("Multiple content holes");a=f}}}return{dom:l,contentDOM:a}}const bf=65535,vf=Math.pow(2,16);function Aw(t,e){return t+e*vf}function xf(t){return t&bf}function Rw(t){return(t-(t&bf))/vf}const kf=1,$f=2,cs=4,Cf=8;class jl{constructor(e,n,o){this.pos=e,this.delInfo=n,this.recover=o}get deleted(){return(this.delInfo&Cf)>0}get deletedBefore(){return(this.delInfo&(kf|cs))>0}get deletedAfter(){return(this.delInfo&($f|cs))>0}get deletedAcross(){return(this.delInfo&cs)>0}}class qe{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&qe.empty)return qe.empty}recover(e){let n=0,o=xf(e);if(!this.inverted)for(let r=0;r<o;r++)n+=this.ranges[r*3+2]-this.ranges[r*3+1];return this.ranges[o*3]+n+Rw(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,o){let r=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?r:0);if(l>e)break;let c=this.ranges[a+i],u=this.ranges[a+s],m=l+c;if(e<=m){let d=c?e==l?-1:e==m?1:n:n,p=l+r+(d<0?0:u);if(o)return p;let f=e==(n<0?l:m)?null:Aw(a/3,e-l),y=e==l?$f:e==m?kf:cs;return(n<0?e!=l:e!=m)&&(y|=Cf),new jl(p,y,f)}r+=u-c}return o?e+r:new jl(e+r,0,null)}touches(e,n){let o=0,r=xf(n),i=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?o:0);if(l>e)break;let c=this.ranges[a+i],u=l+c;if(e<=u&&a==r*3)return!0;o+=this.ranges[a+s]-c}return!1}forEach(e){let n=this.inverted?2:1,o=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let s=this.ranges[r],a=s-(this.inverted?i:0),l=s+(this.inverted?0:i),c=this.ranges[r+n],u=this.ranges[r+o];e(a,a+c,l,l+u),i+=u-c}}invert(){return new qe(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?qe.empty:new qe(e<0?[0,-e,0]:[0,0,e])}}qe.empty=new qe([]);class Cr{constructor(e=[],n,o=0,r=e.length){this.maps=e,this.mirror=n,this.from=o,this.to=r}slice(e=0,n=this.maps.length){return new Cr(this.maps,this.mirror,e,n)}copy(){return new Cr(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,n){this.to=this.maps.push(e),n!=null&&this.setMirror(this.maps.length-1,n)}appendMapping(e){for(let n=0,o=this.maps.length;n<e.maps.length;n++){let r=e.getMirror(n);this.appendMap(e.maps[n],r!=null&&r<n?o+r: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,o=this.maps.length+e.maps.length;n>=0;n--){let r=e.getMirror(n);this.appendMap(e.maps[n].invert(),r!=null&&r>n?o-r-1:void 0)}}invert(){let e=new Cr;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let o=this.from;o<this.to;o++)e=this.maps[o].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,o){let r=0;for(let i=this.from;i<this.to;i++){let s=this.maps[i],a=s.mapResult(e,n);if(a.recover!=null){let l=this.getMirror(i);if(l!=null&&l>i&&l<this.to){i=l,e=this.maps[l].recover(a.recover);continue}}r|=a.delInfo,e=a.pos}return o?e:new jl(e,r,null)}}const Pl=Object.create(null);class Oe{getMap(){return qe.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let o=Pl[n.stepType];if(!o)throw new RangeError(`No step type ${n.stepType} defined`);return o.fromJSON(e,n)}static jsonID(e,n){if(e in Pl)throw new RangeError("Duplicate use of step JSON ID "+e);return Pl[e]=n,n.prototype.jsonID=e,n}}class ue{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new ue(e,null)}static fail(e){return new ue(null,e)}static fromReplace(e,n,o,r){try{return ue.ok(e.replace(n,o,r))}catch(i){if(i instanceof Xi)return ue.fail(i.message);throw i}}}function Il(t,e,n){let o=[];for(let r=0;r<t.childCount;r++){let i=t.child(r);i.content.size&&(i=i.copy(Il(i.content,e,i))),i.isInline&&(i=e(i,n,r)),o.push(i)}return N.fromArray(o)}class qt extends Oe{constructor(e,n,o){super(),this.from=e,this.to=n,this.mark=o}apply(e){let n=e.slice(this.from,this.to),o=e.resolve(this.from),r=o.node(o.sharedDepth(this.to)),i=new M(Il(n.content,(s,a)=>!s.isAtom||!a.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),r),n.openStart,n.openEnd);return ue.fromReplace(e,this.from,this.to,i)}invert(){return new bt(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return n.deleted&&o.deleted||n.pos>=o.pos?null:new qt(n.pos,o.pos,this.mark)}merge(e){return e instanceof qt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new qt(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 qt(n.from,n.to,e.markFromJSON(n.mark))}}Oe.jsonID("addMark",qt);class bt extends Oe{constructor(e,n,o){super(),this.from=e,this.to=n,this.mark=o}apply(e){let n=e.slice(this.from,this.to),o=new M(Il(n.content,r=>r.mark(this.mark.removeFromSet(r.marks)),e),n.openStart,n.openEnd);return ue.fromReplace(e,this.from,this.to,o)}invert(){return new qt(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return n.deleted&&o.deleted||n.pos>=o.pos?null:new bt(n.pos,o.pos,this.mark)}merge(e){return e instanceof bt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new bt(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 bt(n.from,n.to,e.markFromJSON(n.mark))}}Oe.jsonID("removeMark",bt);class Gt extends Oe{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ue.fail("No node at mark step's position");let o=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return ue.fromReplace(e,this.pos,this.pos+1,new M(N.from(o),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let o=this.mark.addToSet(n.marks);if(o.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(o))return new Gt(this.pos,n.marks[r]);return new Gt(this.pos,this.mark)}}return new So(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Gt(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 Gt(n.pos,e.markFromJSON(n.mark))}}Oe.jsonID("addNodeMark",Gt);class So extends Oe{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ue.fail("No node at mark step's position");let o=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return ue.fromReplace(e,this.pos,this.pos+1,new M(N.from(o),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Gt(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new So(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 So(n.pos,e.markFromJSON(n.mark))}}Oe.jsonID("removeNodeMark",So);class he extends Oe{constructor(e,n,o,r=!1){super(),this.from=e,this.to=n,this.slice=o,this.structure=r}apply(e){return this.structure&&Ll(e,this.from,this.to)?ue.fail("Structure replace would overwrite content"):ue.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new qe([this.from,this.to-this.from,this.slice.size])}invert(e){return new he(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return n.deletedAcross&&o.deletedAcross?null:new he(n.pos,Math.max(n.pos,o.pos),this.slice)}merge(e){if(!(e instanceof he)||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?M.empty:new M(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new he(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?M.empty:new M(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new he(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 he(n.from,n.to,M.fromJSON(e,n.slice),!!n.structure)}}Oe.jsonID("replace",he);class ge extends Oe{constructor(e,n,o,r,i,s,a=!1){super(),this.from=e,this.to=n,this.gapFrom=o,this.gapTo=r,this.slice=i,this.insert=s,this.structure=a}apply(e){if(this.structure&&(Ll(e,this.from,this.gapFrom)||Ll(e,this.gapTo,this.to)))return ue.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return ue.fail("Gap is not a flat range");let o=this.slice.insertAt(this.insert,n.content);return o?ue.fromReplace(e,this.from,this.to,o):ue.fail("Content does not fit in gap")}getMap(){return new qe([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 ge(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),o=e.mapResult(this.to,-1),r=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?o.pos:e.map(this.gapTo,1);return n.deletedAcross&&o.deletedAcross||r<n.pos||i>o.pos?null:new ge(n.pos,o.pos,r,i,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 ge(n.from,n.to,n.gapFrom,n.gapTo,M.fromJSON(e,n.slice),n.insert,!!n.structure)}}Oe.jsonID("replaceAround",ge);function Ll(t,e,n){let o=t.resolve(e),r=n-e,i=o.depth;for(;r>0&&i>0&&o.indexAfter(i)==o.node(i).childCount;)i--,r--;if(r>0){let s=o.node(i).maybeChild(o.indexAfter(i));for(;r>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,r--}}return!1}function Ow(t,e,n,o){let r=[],i=[],s,a;t.doc.nodesBetween(e,n,(l,c,u)=>{if(!l.isInline)return;let m=l.marks;if(!o.isInSet(m)&&u.type.allowsMarkType(o.type)){let d=Math.max(c,e),p=Math.min(c+l.nodeSize,n),f=o.addToSet(m);for(let y=0;y<m.length;y++)m[y].isInSet(f)||(s&&s.to==d&&s.mark.eq(m[y])?s.to=p:r.push(s=new bt(d,p,m[y])));a&&a.to==d?a.to=p:i.push(a=new qt(d,p,o))}}),r.forEach(l=>t.step(l)),i.forEach(l=>t.step(l))}function Dw(t,e,n,o){let r=[],i=0;t.doc.nodesBetween(e,n,(s,a)=>{if(!s.isInline)return;i++;let l=null;if(o instanceof rs){let c=s.marks,u;for(;u=o.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else o?o.isInSet(s.marks)&&(l=[o]):l=s.marks;if(l&&l.length){let c=Math.min(a+s.nodeSize,n);for(let u=0;u<l.length;u++){let m=l[u],d;for(let p=0;p<r.length;p++){let f=r[p];f.step==i-1&&m.eq(r[p].style)&&(d=f)}d?(d.to=c,d.step=i):r.push({style:m,from:Math.max(a,e),to:c,step:i})}}}),r.forEach(s=>t.step(new bt(s.from,s.to,s.style)))}function Ef(t,e,n,o=n.contentMatch,r=!0){let i=t.doc.nodeAt(e),s=[],a=e+1;for(let l=0;l<i.childCount;l++){let c=i.child(l),u=a+c.nodeSize,m=o.matchType(c.type);if(!m)s.push(new he(a,u,M.empty));else{o=m;for(let d=0;d<c.marks.length;d++)n.allowsMarkType(c.marks[d].type)||t.step(new bt(a,u,c.marks[d]));if(r&&c.isText&&n.whitespace!="pre"){let d,p=/\r?\n|\r/g,f;for(;d=p.exec(c.text);)f||(f=new M(N.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),s.push(new he(a+d.index,a+d.index+d[0].length,f))}}a=u}if(!o.validEnd){let l=o.fillBefore(N.empty,!0);t.replace(a,a,new M(l,0,0))}for(let l=s.length-1;l>=0;l--)t.step(s[l])}function Mw(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function bo(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let o=t.depth;;--o){let r=t.$from.node(o),i=t.$from.index(o),s=t.$to.indexAfter(o);if(o<t.depth&&r.canReplace(i,s,n))return o;if(o==0||r.type.spec.isolating||!Mw(r,i,s))break}return null}function Tw(t,e,n){let{$from:o,$to:r,depth:i}=e,s=o.before(i+1),a=r.after(i+1),l=s,c=a,u=N.empty,m=0;for(let f=i,y=!1;f>n;f--)y||o.index(f)>0?(y=!0,u=N.from(o.node(f).copy(u)),m++):l--;let d=N.empty,p=0;for(let f=i,y=!1;f>n;f--)y||r.after(f+1)<r.end(f)?(y=!0,d=N.from(r.node(f).copy(d)),p++):c++;t.step(new ge(l,c,s,a,new M(u.append(d),m,p),u.size-m,!0))}function zl(t,e,n=null,o=t){let r=jw(t,e),i=r&&Pw(o,e);return i?r.map(Nf).concat({type:e,attrs:n}).concat(i.map(Nf)):null}function Nf(t){return{type:t,attrs:null}}function jw(t,e){let{parent:n,startIndex:o,endIndex:r}=t,i=n.contentMatchAt(o).findWrapping(e);if(!i)return null;let s=i.length?i[0]:e;return n.canReplaceWith(o,r,s)?i:null}function Pw(t,e){let{parent:n,startIndex:o,endIndex:r}=t,i=n.child(o),s=e.contentMatch.findWrapping(i.type);if(!s)return null;let l=(s.length?s[s.length-1]:e).contentMatch;for(let c=o;l&&c<r;c++)l=l.matchType(n.child(c).type);return!l||!l.validEnd?null:s}function Iw(t,e,n){let o=N.empty;for(let s=n.length-1;s>=0;s--){if(o.size){let a=n[s].type.contentMatch.matchFragment(o);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}o=N.from(n[s].type.create(n[s].attrs,o))}let r=e.start,i=e.end;t.step(new ge(r,i,r,i,new M(o,0,0),n.length,!0))}function Lw(t,e,n,o,r){if(!o.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(e,n,(s,a)=>{let l=typeof r=="function"?r(s):r;if(s.isTextblock&&!s.hasMarkup(o,l)&&Hw(t.doc,t.mapping.slice(i).map(a),o)){let c=null;if(o.schema.linebreakReplacement){let p=o.whitespace=="pre",f=!!o.contentMatch.matchType(o.schema.linebreakReplacement);p&&!f?c=!1:!p&&f&&(c=!0)}c===!1&&Fw(t,s,a,i),Ef(t,t.mapping.slice(i).map(a,1),o,void 0,c===null);let u=t.mapping.slice(i),m=u.map(a,1),d=u.map(a+s.nodeSize,1);return t.step(new ge(m,d,m+1,d-1,new M(N.from(o.create(l,null,s.marks)),0,0),1,!0)),c===!0&&zw(t,s,a,i),!1}})}function zw(t,e,n,o){e.forEach((r,i)=>{if(r.isText){let s,a=/\r?\n|\r/g;for(;s=a.exec(r.text);){let l=t.mapping.slice(o).map(n+1+i+s.index);t.replaceWith(l,l+1,e.type.schema.linebreakReplacement.create())}}})}function Fw(t,e,n,o){e.forEach((r,i)=>{if(r.type==r.type.schema.linebreakReplacement){let s=t.mapping.slice(o).map(n+1+i);t.replaceWith(s,s+1,e.type.schema.text(`
|
|
24
|
-
`))}})}function Hw(t,e,n){let o=t.resolve(e),r=o.index();return o.parent.canReplaceWith(r,r+1,n)}function Bw(t,e,n,o,r){let i=t.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");n||(n=i.type);let s=n.create(o,null,r||i.marks);if(i.isLeaf)return t.replaceWith(e,e+i.nodeSize,s);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new ge(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new M(N.from(s),0,0),1,!0))}function vo(t,e,n=1,o){let r=t.resolve(e),i=r.depth-n,s=o&&o[o.length-1]||r.parent;if(i<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!s.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(let c=r.depth-1,u=n-2;c>i;c--,u--){let m=r.node(c),d=r.index(c);if(m.type.spec.isolating)return!1;let p=m.content.cutByIndex(d,m.childCount),f=o&&o[u+1];f&&(p=p.replaceChild(0,f.type.create(f.attrs)));let y=o&&o[u]||m;if(!m.canReplace(d+1,m.childCount)||!y.type.validContent(p))return!1}let a=r.indexAfter(i),l=o&&o[0];return r.node(i).canReplaceWith(a,a,l?l.type:r.node(i+1).type)}function Vw(t,e,n=1,o){let r=t.doc.resolve(e),i=N.empty,s=N.empty;for(let a=r.depth,l=r.depth-n,c=n-1;a>l;a--,c--){i=N.from(r.node(a).copy(i));let u=o&&o[c];s=N.from(u?u.type.create(u.attrs,s):r.node(a).copy(s))}t.step(new he(e,e,new M(i.append(s),n,n),!0))}function Qt(t,e){let n=t.resolve(e),o=n.index();return Af(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(o,o+1)}function Af(t,e){return!!(t&&e&&!t.isLeaf&&t.canAppend(e))}function us(t,e,n=-1){let o=t.resolve(e);for(let r=o.depth;;r--){let i,s,a=o.index(r);if(r==o.depth?(i=o.nodeBefore,s=o.nodeAfter):n>0?(i=o.node(r+1),a++,s=o.node(r).maybeChild(a)):(i=o.node(r).maybeChild(a-1),s=o.node(r+1)),i&&!i.isTextblock&&Af(i,s)&&o.node(r).canReplace(a,a+1))return e;if(r==0)break;e=n<0?o.before(r):o.after(r)}}function Uw(t,e,n){let o=new he(e-n,e+n,M.empty,!0);t.step(o)}function _w(t,e,n){let o=t.resolve(e);if(o.parent.canReplaceWith(o.index(),o.index(),n))return e;if(o.parentOffset==0)for(let r=o.depth-1;r>=0;r--){let i=o.index(r);if(o.node(r).canReplaceWith(i,i,n))return o.before(r+1);if(i>0)return null}if(o.parentOffset==o.parent.content.size)for(let r=o.depth-1;r>=0;r--){let i=o.indexAfter(r);if(o.node(r).canReplaceWith(i,i,n))return o.after(r+1);if(i<o.node(r).childCount)return null}return null}function Jw(t,e,n){let o=t.resolve(e);if(!n.content.size)return e;let r=n.content;for(let i=0;i<n.openStart;i++)r=r.firstChild.content;for(let i=1;i<=(n.openStart==0&&n.size?2:1);i++)for(let s=o.depth;s>=0;s--){let a=s==o.depth?0:o.pos<=(o.start(s+1)+o.end(s+1))/2?-1:1,l=o.index(s)+(a>0?1:0),c=o.node(s),u=!1;if(i==1)u=c.canReplace(l,l,r);else{let m=c.contentMatchAt(l).findWrapping(r.firstChild.type);u=m&&c.canReplaceWith(l,l,m[0])}if(u)return a==0?o.pos:a<0?o.before(s+1):o.after(s+1)}return null}function ds(t,e,n=e,o=M.empty){if(e==n&&!o.size)return null;let r=t.resolve(e),i=t.resolve(n);return Rf(r,i,o)?new he(e,n,o):new Yw(r,i,o).fit()}function Rf(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class Yw{constructor(e,n,o){this.$from=e,this.$to=n,this.unplaced=o,this.frontier=[],this.placed=N.empty;for(let r=0;r<=e.depth;r++){let i=e.node(r);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(r))})}for(let r=e.depth;r>0;r--)this.placed=N.from(e.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,o=this.$from,r=this.close(e<0?this.$to:o.doc.resolve(e));if(!r)return null;let i=this.placed,s=o.depth,a=r.depth;for(;s&&a&&i.childCount==1;)i=i.firstChild.content,s--,a--;let l=new M(i,s,a);return e>-1?new ge(o.pos,e,this.$to.pos,this.$to.end(),l,n):l.size||o.pos!=this.$to.pos?new he(o.pos,r.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,o=0,r=this.unplaced.openEnd;o<e;o++){let i=n.firstChild;if(n.childCount>1&&(r=0),i.type.spec.isolating&&r<=o){e=o;break}n=i.content}for(let n=1;n<=2;n++)for(let o=n==1?e:this.unplaced.openStart;o>=0;o--){let r,i=null;o?(i=Fl(this.unplaced.content,o-1).firstChild,r=i.content):r=this.unplaced.content;let s=r.firstChild;for(let a=this.depth;a>=0;a--){let{type:l,match:c}=this.frontier[a],u,m=null;if(n==1&&(s?c.matchType(s.type)||(m=c.fillBefore(N.from(s),!1)):i&&l.compatibleContent(i.type)))return{sliceDepth:o,frontierDepth:a,parent:i,inject:m};if(n==2&&s&&(u=c.findWrapping(s.type)))return{sliceDepth:o,frontierDepth:a,parent:i,wrap:u};if(i&&c.matchType(i.type))break}}}openMore(){let{content:e,openStart:n,openEnd:o}=this.unplaced,r=Fl(e,n);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new M(e,n+1,Math.max(o,r.size+n>=e.size-o?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:o}=this.unplaced,r=Fl(e,n);if(r.childCount<=1&&n>0){let i=e.size-n<=n+r.size;this.unplaced=new M(Er(e,n-1,1),n-1,i?n-1:o)}else this.unplaced=new M(Er(e,n,1),n,o)}placeNodes({sliceDepth:e,frontierDepth:n,parent:o,inject:r,wrap:i}){for(;this.depth>n;)this.closeFrontierNode();if(i)for(let y=0;y<i.length;y++)this.openFrontierNode(i[y]);let s=this.unplaced,a=o?o.content:s.content,l=s.openStart-e,c=0,u=[],{match:m,type:d}=this.frontier[n];if(r){for(let y=0;y<r.childCount;y++)u.push(r.child(y));m=m.matchFragment(r)}let p=a.size+e-(s.content.size-s.openEnd);for(;c<a.childCount;){let y=a.child(c),h=m.matchType(y.type);if(!h)break;c++,(c>1||l==0||y.content.size)&&(m=h,u.push(Of(y.mark(d.allowedMarks(y.marks)),c==1?l:0,c==a.childCount?p:-1)))}let f=c==a.childCount;f||(p=-1),this.placed=Nr(this.placed,n,N.from(u)),this.frontier[n].match=m,f&&p<0&&o&&o.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let y=0,h=a;y<p;y++){let g=h.lastChild;this.frontier.push({type:g.type,match:g.contentMatchAt(g.childCount)}),h=g.content}this.unplaced=f?e==0?M.empty:new M(Er(s.content,e-1,1),e-1,p<0?s.openEnd:e-1):new M(Er(s.content,e,c),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!Hl(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:o}=this.$to,r=this.$to.after(o);for(;o>1&&r==this.$to.end(--o);)++r;return r}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:o,type:r}=this.frontier[n],i=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),s=Hl(e,n,r,o,i);if(s){for(let a=n-1;a>=0;a--){let{match:l,type:c}=this.frontier[a],u=Hl(e,a,c,l,!0);if(!u||u.childCount)continue e}return{depth:n,fit:s,move:i?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=Nr(this.placed,n.depth,n.fit)),e=n.move;for(let o=n.depth+1;o<=e.depth;o++){let r=e.node(o),i=r.type.contentMatch.fillBefore(r.content,!0,e.index(o));this.openFrontierNode(r.type,r.attrs,i)}return e}openFrontierNode(e,n=null,o){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=Nr(this.placed,this.depth,N.from(e.create(n,o))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(N.empty,!0);n.childCount&&(this.placed=Nr(this.placed,this.frontier.length,n))}}function Er(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Er(t.firstChild.content,e-1,n)))}function Nr(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Nr(t.lastChild.content,e-1,n)))}function Fl(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function Of(t,e,n){if(e<=0)return t;let o=t.content;return e>1&&(o=o.replaceChild(0,Of(o.firstChild,e-1,o.childCount==1?n-1:0))),e>0&&(o=t.type.contentMatch.fillBefore(o).append(o),n<=0&&(o=o.append(t.type.contentMatch.matchFragment(o).fillBefore(N.empty,!0)))),t.copy(o)}function Hl(t,e,n,o,r){let i=t.node(e),s=r?t.indexAfter(e):t.index(e);if(s==i.childCount&&!n.compatibleContent(i.type))return null;let a=o.fillBefore(i.content,!0,s);return a&&!Kw(n,i.content,s)?a:null}function Kw(t,e,n){for(let o=n;o<e.childCount;o++)if(!t.allowsMarks(e.child(o).marks))return!0;return!1}function Ww(t){return t.spec.defining||t.spec.definingForContent}function qw(t,e,n,o){if(!o.size)return t.deleteRange(e,n);let r=t.doc.resolve(e),i=t.doc.resolve(n);if(Rf(r,i,o))return t.step(new he(e,n,o));let s=Mf(r,t.doc.resolve(n));s[s.length-1]==0&&s.pop();let a=-(r.depth+1);s.unshift(a);for(let d=r.depth,p=r.pos-1;d>0;d--,p--){let f=r.node(d).type.spec;if(f.defining||f.definingAsContext||f.isolating)break;s.indexOf(d)>-1?a=d:r.before(d)==p&&s.splice(1,0,-d)}let l=s.indexOf(a),c=[],u=o.openStart;for(let d=o.content,p=0;;p++){let f=d.firstChild;if(c.push(f),p==o.openStart)break;d=f.content}for(let d=u-1;d>=0;d--){let p=c[d],f=Ww(p.type);if(f&&!p.sameMarkup(r.node(Math.abs(a)-1)))u=d;else if(f||!p.type.isTextblock)break}for(let d=o.openStart;d>=0;d--){let p=(d+u+1)%(o.openStart+1),f=c[p];if(f)for(let y=0;y<s.length;y++){let h=s[(y+l)%s.length],g=!0;h<0&&(g=!1,h=-h);let S=r.node(h-1),b=r.index(h-1);if(S.canReplaceWith(b,b,f.type,f.marks))return t.replace(r.before(h),g?i.after(h):n,new M(Df(o.content,0,o.openStart,p),p,o.openEnd))}}let m=t.steps.length;for(let d=s.length-1;d>=0&&(t.replace(e,n,o),!(t.steps.length>m));d--){let p=s[d];p<0||(e=r.before(p),n=i.after(p))}}function Df(t,e,n,o,r){if(e<n){let i=t.firstChild;t=t.replaceChild(0,i.copy(Df(i.content,e+1,n,o,i)))}if(e>o){let i=r.contentMatchAt(0),s=i.fillBefore(t).append(t);t=s.append(i.matchFragment(s).fillBefore(N.empty,!0))}return t}function Gw(t,e,n,o){if(!o.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let r=_w(t.doc,e,o.type);r!=null&&(e=n=r)}t.replaceRange(e,n,new M(N.from(o),0,0))}function Qw(t,e,n){let o=t.doc.resolve(e),r=t.doc.resolve(n),i=Mf(o,r);for(let s=0;s<i.length;s++){let a=i[s],l=s==i.length-1;if(l&&a==0||o.node(a).type.contentMatch.validEnd)return t.delete(o.start(a),r.end(a));if(a>0&&(l||o.node(a-1).canReplace(o.index(a-1),r.indexAfter(a-1))))return t.delete(o.before(a),r.after(a))}for(let s=1;s<=o.depth&&s<=r.depth;s++)if(e-o.start(s)==o.depth-s&&n>o.end(s)&&r.end(s)-n!=r.depth-s)return t.delete(o.before(s),n);t.delete(e,n)}function Mf(t,e){let n=[],o=Math.min(t.depth,e.depth);for(let r=o;r>=0;r--){let i=t.start(r);if(i<t.pos-(t.depth-r)||e.end(r)>e.pos+(e.depth-r)||t.node(r).type.spec.isolating||e.node(r).type.spec.isolating)break;(i==e.start(r)||r==t.depth&&r==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&r&&e.start(r-1)==i-1)&&n.push(r)}return n}class xo extends Oe{constructor(e,n,o){super(),this.pos=e,this.attr=n,this.value=o}apply(e){let n=e.nodeAt(this.pos);if(!n)return ue.fail("No node at attribute step's position");let o=Object.create(null);for(let i in n.attrs)o[i]=n.attrs[i];o[this.attr]=this.value;let r=n.type.create(o,null,n.marks);return ue.fromReplace(e,this.pos,this.pos+1,new M(N.from(r),0,n.isLeaf?0:1))}getMap(){return qe.empty}invert(e){return new xo(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 xo(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 xo(n.pos,n.attr,n.value)}}Oe.jsonID("attr",xo);class Ar extends Oe{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let r in e.attrs)n[r]=e.attrs[r];n[this.attr]=this.value;let o=e.type.create(n,e.content,e.marks);return ue.ok(o)}getMap(){return qe.empty}invert(e){return new Ar(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 Ar(n.attr,n.value)}}Oe.jsonID("docAttr",Ar);let ko=class extends Error{};ko=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},ko.prototype=Object.create(Error.prototype),ko.prototype.constructor=ko,ko.prototype.name="TransformError";class Tf{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Cr}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new ko(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}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,o=M.empty){let r=ds(this.doc,e,n,o);return r&&this.step(r),this}replaceWith(e,n,o){return this.replace(e,n,new M(N.from(o),0,0))}delete(e,n){return this.replace(e,n,M.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,o){return qw(this,e,n,o),this}replaceRangeWith(e,n,o){return Gw(this,e,n,o),this}deleteRange(e,n){return Qw(this,e,n),this}lift(e,n){return Tw(this,e,n),this}join(e,n=1){return Uw(this,e,n),this}wrap(e,n){return Iw(this,e,n),this}setBlockType(e,n=e,o,r=null){return Lw(this,e,n,o,r),this}setNodeMarkup(e,n,o=null,r){return Bw(this,e,n,o,r),this}setNodeAttribute(e,n,o){return this.step(new xo(e,n,o)),this}setDocAttribute(e,n){return this.step(new Ar(e,n)),this}addNodeMark(e,n){return this.step(new Gt(e,n)),this}removeNodeMark(e,n){if(!(n instanceof q)){let o=this.doc.nodeAt(e);if(!o)throw new RangeError("No node at position "+e);if(n=n.isInSet(o.marks),!n)return this}return this.step(new So(e,n)),this}split(e,n=1,o){return Vw(this,e,n,o),this}addMark(e,n,o){return Ow(this,e,n,o),this}removeMark(e,n,o){return Dw(this,e,n,o),this}clearIncompatible(e,n,o){return Ef(this,e,n,o),this}}const Bl=Object.create(null);class J{constructor(e,n,o){this.$anchor=e,this.$head=n,this.ranges=o||[new Zw(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=M.empty){let o=n.content.lastChild,r=null;for(let a=0;a<n.openEnd;a++)r=o,o=o.lastChild;let i=e.steps.length,s=this.ranges;for(let a=0;a<s.length;a++){let{$from:l,$to:c}=s[a],u=e.mapping.slice(i);e.replaceRange(u.map(l.pos),u.map(c.pos),a?M.empty:n),a==0&&If(e,i,(o?o.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,n){let o=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:s,$to:a}=r[i],l=e.mapping.slice(o),c=l.map(s.pos),u=l.map(a.pos);i?e.deleteRange(c,u):(e.replaceRangeWith(c,u,n),If(e,o,n.isInline?-1:1))}}static findFrom(e,n,o=!1){let r=e.parent.inlineContent?new V(e):$o(e.node(0),e.parent,e.pos,e.index(),n,o);if(r)return r;for(let i=e.depth-1;i>=0;i--){let s=n<0?$o(e.node(0),e.node(i),e.before(i+1),e.index(i),n,o):$o(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,n,o);if(s)return s}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new ft(e.node(0))}static atStart(e){return $o(e,e,0,0,1)||new ft(e)}static atEnd(e){return $o(e,e,e.content.size,e.childCount,-1)||new ft(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let o=Bl[n.type];if(!o)throw new RangeError(`No selection type ${n.type} defined`);return o.fromJSON(e,n)}static jsonID(e,n){if(e in Bl)throw new RangeError("Duplicate use of selection JSON ID "+e);return Bl[e]=n,n.prototype.jsonID=e,n}getBookmark(){return V.between(this.$anchor,this.$head).getBookmark()}}J.prototype.visible=!0;class Zw{constructor(e,n){this.$from=e,this.$to=n}}let jf=!1;function Pf(t){!jf&&!t.parent.inlineContent&&(jf=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class V extends J{constructor(e,n=e){Pf(e),Pf(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let o=e.resolve(n.map(this.head));if(!o.parent.inlineContent)return J.near(o);let r=e.resolve(n.map(this.anchor));return new V(r.parent.inlineContent?r:o,o)}replace(e,n=M.empty){if(super.replace(e,n),n==M.empty){let o=this.$from.marksAcross(this.$to);o&&e.ensureMarks(o)}}eq(e){return e instanceof V&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new ms(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 V(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,o=n){let r=e.resolve(n);return new this(r,o==n?r:e.resolve(o))}static between(e,n,o){let r=e.pos-n.pos;if((!o||r)&&(o=r>=0?1:-1),!n.parent.inlineContent){let i=J.findFrom(n,o,!0)||J.findFrom(n,-o,!0);if(i)n=i.$head;else return J.near(n,o)}return e.parent.inlineContent||(r==0?e=n:(e=(J.findFrom(e,-o,!0)||J.findFrom(e,o,!0)).$anchor,e.pos<n.pos!=r<0&&(e=n))),new V(e,n)}}J.jsonID("text",V);class ms{constructor(e,n){this.anchor=e,this.head=n}map(e){return new ms(e.map(this.anchor),e.map(this.head))}resolve(e){return V.between(e.resolve(this.anchor),e.resolve(this.head))}}class L extends J{constructor(e){let n=e.nodeAfter,o=e.node(0).resolve(e.pos+n.nodeSize);super(e,o),this.node=n}map(e,n){let{deleted:o,pos:r}=n.mapResult(this.anchor),i=e.resolve(r);return o?J.near(i):new L(i)}content(){return new M(N.from(this.node),0,0)}eq(e){return e instanceof L&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Vl(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new L(e.resolve(n.anchor))}static create(e,n){return new L(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}L.prototype.visible=!1,J.jsonID("node",L);class Vl{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:o}=e.mapResult(this.anchor);return n?new ms(o,o):new Vl(o)}resolve(e){let n=e.resolve(this.anchor),o=n.nodeAfter;return o&&L.isSelectable(o)?new L(n):J.near(n)}}class ft extends J{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=M.empty){if(n==M.empty){e.delete(0,e.doc.content.size);let o=J.atStart(e.doc);o.eq(e.selection)||e.setSelection(o)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new ft(e)}map(e){return new ft(e)}eq(e){return e instanceof ft}getBookmark(){return Xw}}J.jsonID("all",ft);const Xw={map(){return this},resolve(t){return new ft(t)}};function $o(t,e,n,o,r,i=!1){if(e.inlineContent)return V.create(t,n);for(let s=o-(r>0?0:1);r>0?s<e.childCount:s>=0;s+=r){let a=e.child(s);if(a.isAtom){if(!i&&L.isSelectable(a))return L.create(t,n-(r<0?a.nodeSize:0))}else{let l=$o(t,a,n+r,r<0?a.childCount:0,r,i);if(l)return l}n+=a.nodeSize*r}return null}function If(t,e,n){let o=t.steps.length-1;if(o<e)return;let r=t.steps[o];if(!(r instanceof he||r instanceof ge))return;let i=t.mapping.maps[o],s;i.forEach((a,l,c,u)=>{s==null&&(s=u)}),t.setSelection(J.near(t.doc.resolve(s),n))}const Lf=1,fs=2,zf=4;class eS extends Tf{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|Lf)&~fs,this.storedMarks=null,this}get selectionSet(){return(this.updated&Lf)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=fs,this}ensureMarks(e){return q.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&fs)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~fs,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let o=this.selection;return n&&(e=e.mark(this.storedMarks||(o.empty?o.$from.marks():o.$from.marksAcross(o.$to)||q.none))),o.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,o){let r=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(o==null&&(o=n),o=o??n,!e)return this.deleteRange(n,o);let i=this.storedMarks;if(!i){let s=this.doc.resolve(n);i=o==n?s.marks():s.marksAcross(this.doc.resolve(o))}return this.replaceRangeWith(n,o,r.text(e,i)),this.selection.empty||this.setSelection(J.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|=zf,this}get scrolledIntoView(){return(this.updated&zf)>0}}function Ff(t,e){return!e||!t?t:t.bind(e)}class Rr{constructor(e,n,o){this.name=e,this.init=Ff(n.init,o),this.apply=Ff(n.apply,o)}}const tS=[new Rr("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Rr("selection",{init(t,e){return t.selection||J.atStart(e.doc)},apply(t){return t.selection}}),new Rr("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,o){return o.selection.$cursor?t.storedMarks:null}}),new Rr("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class Ul{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=tS.slice(),n&&n.forEach(o=>{if(this.pluginsByKey[o.key])throw new RangeError("Adding different instances of a keyed plugin ("+o.key+")");this.plugins.push(o),this.pluginsByKey[o.key]=o,o.spec.state&&this.fields.push(new Rr(o.key,o.spec.state,o))})}}class Co{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 o=0;o<this.config.plugins.length;o++)if(o!=n){let r=this.config.plugins[o];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],o=this.applyInner(e),r=null;for(;;){let i=!1;for(let s=0;s<this.config.plugins.length;s++){let a=this.config.plugins[s];if(a.spec.appendTransaction){let l=r?r[s].n:0,c=r?r[s].state:this,u=l<n.length&&a.spec.appendTransaction.call(a,l?n.slice(l):n,c,o);if(u&&o.filterTransaction(u,s)){if(u.setMeta("appendedTransaction",e),!r){r=[];for(let m=0;m<this.config.plugins.length;m++)r.push(m<s?{state:o,n:n.length}:{state:this,n:0})}n.push(u),o=o.applyInner(u),i=!0}r&&(r[s]={state:o,n:n.length})}}if(!i)return{state:o,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new Co(this.config),o=this.config.fields;for(let r=0;r<o.length;r++){let i=o[r];n[i.name]=i.apply(e,this[i.name],this,n)}return n}get tr(){return new eS(this)}static create(e){let n=new Ul(e.doc?e.doc.type.schema:e.schema,e.plugins),o=new Co(n);for(let r=0;r<n.fields.length;r++)o[n.fields[r].name]=n.fields[r].init(e,o);return o}reconfigure(e){let n=new Ul(this.schema,e.plugins),o=n.fields,r=new Co(n);for(let i=0;i<o.length;i++){let s=o[i].name;r[s]=this.hasOwnProperty(s)?this[s]:o[i].init(e,r)}return r}toJSON(e){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(o=>o.toJSON())),e&&typeof e=="object")for(let o in e){if(o=="doc"||o=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[o],i=r.spec.state;i&&i.toJSON&&(n[o]=i.toJSON.call(r,this[r.key]))}return n}static fromJSON(e,n,o){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let r=new Ul(e.schema,e.plugins),i=new Co(r);return r.fields.forEach(s=>{if(s.name=="doc")i.doc=Ln.fromJSON(e.schema,n.doc);else if(s.name=="selection")i.selection=J.fromJSON(i.doc,n.selection);else if(s.name=="storedMarks")n.storedMarks&&(i.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(o)for(let a in o){let l=o[a],c=l.spec.state;if(l.key==s.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,a)){i[s.name]=c.fromJSON.call(l,e,n[a],i);return}}i[s.name]=s.init(e,i)}}),i}}function Hf(t,e,n){for(let o in t){let r=t[o];r instanceof Function?r=r.bind(e):o=="handleDOMEvents"&&(r=Hf(r,e,{})),n[o]=r}return n}class Ve{constructor(e){this.spec=e,this.props={},e.props&&Hf(e.props,this,this.props),this.key=e.key?e.key.key:Bf("plugin")}getState(e){return e[this.key]}}const _l=Object.create(null);function Bf(t){return t in _l?t+"$"+ ++_l[t]:(_l[t]=0,t+"$")}class pt{constructor(e="key"){this.key=Bf(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const ke=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Or=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let Jl=null;const Pt=function(t,e,n){let o=Jl||(Jl=document.createRange());return o.setEnd(t,n??t.nodeValue.length),o.setStart(t,e||0),o},nS=function(){Jl=null},Hn=function(t,e,n,o){return n&&(Vf(t,e,n,o,-1)||Vf(t,e,n,o,1))},oS=/^(img|br|input|textarea|hr)$/i;function Vf(t,e,n,o,r){for(;;){if(t==n&&e==o)return!0;if(e==(r<0?0:Xe(t))){let i=t.parentNode;if(!i||i.nodeType!=1||Dr(t)||oS.test(t.nodeName)||t.contentEditable=="false")return!1;e=ke(t)+(r<0?0:1),t=i}else if(t.nodeType==1){if(t=t.childNodes[e+(r<0?-1:0)],t.contentEditable=="false")return!1;e=r<0?Xe(t):0}else return!1}}function Xe(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function rS(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=Xe(t)}else if(t.parentNode&&!Dr(t))e=ke(t),t=t.parentNode;else return null}}function iS(t,e){for(;;){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&&!Dr(t))e=ke(t)+1,t=t.parentNode;else return null}}function sS(t,e,n){for(let o=e==0,r=e==Xe(t);o||r;){if(t==n)return!0;let i=ke(t);if(t=t.parentNode,!t)return!1;o=o&&i==0,r=r&&i==Xe(t)}}function Dr(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 ps=function(t){return t.focusNode&&Hn(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function Bn(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function aS(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function lS(t,e,n){if(t.caretPositionFromPoint)try{let o=t.caretPositionFromPoint(e,n);if(o)return{node:o.offsetNode,offset:Math.min(Xe(o.offsetNode),o.offset)}}catch{}if(t.caretRangeFromPoint){let o=t.caretRangeFromPoint(e,n);if(o)return{node:o.startContainer,offset:Math.min(Xe(o.startContainer),o.startOffset)}}}const vt=typeof navigator<"u"?navigator:null,Uf=typeof document<"u"?document:null,Zt=vt&&vt.userAgent||"",Yl=/Edge\/(\d+)/.exec(Zt),_f=/MSIE \d/.exec(Zt),Kl=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Zt),Ue=!!(_f||Kl||Yl),Xt=_f?document.documentMode:Kl?+Kl[1]:Yl?+Yl[1]:0,ht=!Ue&&/gecko\/(\d+)/i.test(Zt);ht&&+(/Firefox\/(\d+)/.exec(Zt)||[0,0])[1];const Wl=!Ue&&/Chrome\/(\d+)/.exec(Zt),De=!!Wl,Jf=Wl?+Wl[1]:0,Le=!Ue&&!!vt&&/Apple Computer/.test(vt.vendor),Eo=Le&&(/Mobile\/\w+/.test(Zt)||!!vt&&vt.maxTouchPoints>2),et=Eo||(vt?/Mac/.test(vt.platform):!1),cS=vt?/Win/.test(vt.platform):!1,gt=/Android \d/.test(Zt),Mr=!!Uf&&"webkitFontSmoothing"in Uf.documentElement.style,uS=Mr?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function dS(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 It(t,e){return typeof t=="number"?t:t[e]}function mS(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,o=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*o}}function Yf(t,e,n){let o=t.someProp("scrollThreshold")||0,r=t.someProp("scrollMargin")||5,i=t.dom.ownerDocument;for(let s=n||t.dom;s;s=Or(s)){if(s.nodeType!=1)continue;let a=s,l=a==i.body,c=l?dS(i):mS(a),u=0,m=0;if(e.top<c.top+It(o,"top")?m=-(c.top-e.top+It(r,"top")):e.bottom>c.bottom-It(o,"bottom")&&(m=e.bottom-e.top>c.bottom-c.top?e.top+It(r,"top")-c.top:e.bottom-c.bottom+It(r,"bottom")),e.left<c.left+It(o,"left")?u=-(c.left-e.left+It(r,"left")):e.right>c.right-It(o,"right")&&(u=e.right-c.right+It(r,"right")),u||m)if(l)i.defaultView.scrollBy(u,m);else{let d=a.scrollLeft,p=a.scrollTop;m&&(a.scrollTop+=m),u&&(a.scrollLeft+=u);let f=a.scrollLeft-d,y=a.scrollTop-p;e={left:e.left-f,top:e.top-y,right:e.right-f,bottom:e.bottom-y}}if(l||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function fS(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),o,r;for(let i=(e.left+e.right)/2,s=n+1;s<Math.min(innerHeight,e.bottom);s+=5){let a=t.root.elementFromPoint(i,s);if(!a||a==t.dom||!t.dom.contains(a))continue;let l=a.getBoundingClientRect();if(l.top>=n-20){o=a,r=l.top;break}}return{refDOM:o,refTop:r,stack:Kf(t.dom)}}function Kf(t){let e=[],n=t.ownerDocument;for(let o=t;o&&(e.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),t!=n);o=Or(o));return e}function pS({refDOM:t,refTop:e,stack:n}){let o=t?t.getBoundingClientRect().top:0;Wf(n,o==0?0:o-e)}function Wf(t,e){for(let n=0;n<t.length;n++){let{dom:o,top:r,left:i}=t[n];o.scrollTop!=r+e&&(o.scrollTop=r+e),o.scrollLeft!=i&&(o.scrollLeft=i)}}let No=null;function hS(t){if(t.setActive)return t.setActive();if(No)return t.focus(No);let e=Kf(t);t.focus(No==null?{get preventScroll(){return No={preventScroll:!0},!0}}:void 0),No||(No=!1,Wf(e,0))}function qf(t,e){let n,o=2e8,r,i=0,s=e.top,a=e.top,l,c;for(let u=t.firstChild,m=0;u;u=u.nextSibling,m++){let d;if(u.nodeType==1)d=u.getClientRects();else if(u.nodeType==3)d=Pt(u).getClientRects();else continue;for(let p=0;p<d.length;p++){let f=d[p];if(f.top<=s&&f.bottom>=a){s=Math.max(f.bottom,s),a=Math.min(f.top,a);let y=f.left>e.left?f.left-e.left:f.right<e.left?e.left-f.right:0;if(y<o){n=u,o=y,r=y&&n.nodeType==3?{left:f.right<e.left?f.right:f.left,top:e.top}:e,u.nodeType==1&&y&&(i=m+(e.left>=(f.left+f.right)/2?1:0));continue}}else f.top>e.top&&!l&&f.left<=e.left&&f.right>=e.left&&(l=u,c={left:Math.max(f.left,Math.min(f.right,e.left)),top:f.top});!n&&(e.left>=f.right&&e.top>=f.top||e.left>=f.left&&e.top>=f.bottom)&&(i=m+1)}}return!n&&l&&(n=l,r=c,o=0),n&&n.nodeType==3?gS(n,r):!n||o&&n.nodeType==1?{node:t,offset:i}:qf(n,r)}function gS(t,e){let n=t.nodeValue.length,o=document.createRange();for(let r=0;r<n;r++){o.setEnd(t,r+1),o.setStart(t,r);let i=en(o,1);if(i.top!=i.bottom&&ql(e,i))return{node:t,offset:r+(e.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function ql(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function yS(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function wS(t,e,n){let{node:o,offset:r}=qf(e,n),i=-1;if(o.nodeType==1&&!o.firstChild){let s=o.getBoundingClientRect();i=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return t.docView.posFromDOM(o,r,i)}function SS(t,e,n,o){let r=-1;for(let i=e,s=!1;i!=t.dom;){let a=t.docView.nearestDesc(i,!0);if(!a)return null;if(a.dom.nodeType==1&&(a.node.isBlock&&a.parent||!a.contentDOM)){let l=a.dom.getBoundingClientRect();if(a.node.isBlock&&a.parent&&(!s&&l.left>o.left||l.top>o.top?r=a.posBefore:(!s&&l.right<o.left||l.bottom<o.top)&&(r=a.posAfter),s=!0),!a.contentDOM&&r<0&&!a.node.isText)return(a.node.isBlock?o.top<(l.top+l.bottom)/2:o.left<(l.left+l.right)/2)?a.posBefore:a.posAfter}i=a.dom.parentNode}return r>-1?r:t.docView.posFromDOM(e,n,-1)}function Gf(t,e,n){let o=t.childNodes.length;if(o&&n.top<n.bottom)for(let r=Math.max(0,Math.min(o-1,Math.floor(o*(e.top-n.top)/(n.bottom-n.top))-2)),i=r;;){let s=t.childNodes[i];if(s.nodeType==1){let a=s.getClientRects();for(let l=0;l<a.length;l++){let c=a[l];if(ql(e,c))return Gf(s,e,c)}}if((i=(i+1)%o)==r)break}return t}function bS(t,e){let n=t.dom.ownerDocument,o,r=0,i=lS(n,e.left,e.top);i&&({node:o,offset:r}=i);let s=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),a;if(!s||!t.dom.contains(s.nodeType!=1?s.parentNode:s)){let c=t.dom.getBoundingClientRect();if(!ql(e,c)||(s=Gf(t.dom,e,c),!s))return null}if(Le)for(let c=s;o&&c;c=Or(c))c.draggable&&(o=void 0);if(s=yS(s,e),o){if(ht&&o.nodeType==1&&(r=Math.min(r,o.childNodes.length),r<o.childNodes.length)){let u=o.childNodes[r],m;u.nodeName=="IMG"&&(m=u.getBoundingClientRect()).right<=e.left&&m.bottom>e.top&&r++}let c;Mr&&r&&o.nodeType==1&&(c=o.childNodes[r-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=e.top&&r--,o==t.dom&&r==o.childNodes.length-1&&o.lastChild.nodeType==1&&e.top>o.lastChild.getBoundingClientRect().bottom?a=t.state.doc.content.size:(r==0||o.nodeType!=1||o.childNodes[r-1].nodeName!="BR")&&(a=SS(t,o,r,e))}a==null&&(a=wS(t,s,e));let l=t.docView.nearestDesc(s,!0);return{pos:a,inside:l?l.posAtStart-l.border:-1}}function Qf(t){return t.top<t.bottom||t.left<t.right}function en(t,e){let n=t.getClientRects();if(n.length){let o=n[e<0?0:n.length-1];if(Qf(o))return o}return Array.prototype.find.call(n,Qf)||t.getBoundingClientRect()}const vS=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Zf(t,e,n){let{node:o,offset:r,atom:i}=t.docView.domFromPos(e,n<0?-1:1),s=Mr||ht;if(o.nodeType==3)if(s&&(vS.test(o.nodeValue)||(n<0?!r:r==o.nodeValue.length))){let l=en(Pt(o,r,r),n);if(ht&&r&&/\s/.test(o.nodeValue[r-1])&&r<o.nodeValue.length){let c=en(Pt(o,r-1,r-1),-1);if(c.top==l.top){let u=en(Pt(o,r,r+1),-1);if(u.top!=l.top)return Tr(u,u.left<c.left)}}return l}else{let l=r,c=r,u=n<0?1:-1;return n<0&&!r?(c++,u=-1):n>=0&&r==o.nodeValue.length?(l--,u=1):n<0?l--:c++,Tr(en(Pt(o,l,c),u),u<0)}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&r&&(n<0||r==Xe(o))){let l=o.childNodes[r-1];if(l.nodeType==1)return Gl(l.getBoundingClientRect(),!1)}if(i==null&&r<Xe(o)){let l=o.childNodes[r];if(l.nodeType==1)return Gl(l.getBoundingClientRect(),!0)}return Gl(o.getBoundingClientRect(),n>=0)}if(i==null&&r&&(n<0||r==Xe(o))){let l=o.childNodes[r-1],c=l.nodeType==3?Pt(l,Xe(l)-(s?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(c)return Tr(en(c,1),!1)}if(i==null&&r<Xe(o)){let l=o.childNodes[r];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let c=l?l.nodeType==3?Pt(l,0,s?0:1):l.nodeType==1?l:null:null;if(c)return Tr(en(c,-1),!0)}return Tr(en(o.nodeType==3?Pt(o):o,-n),n>=0)}function Tr(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 Gl(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 Xf(t,e,n){let o=t.state,r=t.root.activeElement;o!=e&&t.updateState(e),r!=t.dom&&t.focus();try{return n()}finally{o!=e&&t.updateState(o),r!=t.dom&&r&&r.focus()}}function xS(t,e,n){let o=e.selection,r=n=="up"?o.$from:o.$to;return Xf(t,e,()=>{let{node:i}=t.docView.domFromPos(r.pos,n=="up"?-1:1);for(;;){let a=t.docView.nearestDesc(i,!0);if(!a)break;if(a.node.isBlock){i=a.contentDOM||a.dom;break}i=a.dom.parentNode}let s=Zf(t,r.pos,1);for(let a=i.firstChild;a;a=a.nextSibling){let l;if(a.nodeType==1)l=a.getClientRects();else if(a.nodeType==3)l=Pt(a,0,a.nodeValue.length).getClientRects();else continue;for(let c=0;c<l.length;c++){let u=l[c];if(u.bottom>u.top+1&&(n=="up"?s.top-u.top>(u.bottom-s.top)*2:u.bottom-s.bottom>(s.bottom-u.top)*2))return!1}}return!0})}const kS=/[\u0590-\u08ac]/;function $S(t,e,n){let{$head:o}=e.selection;if(!o.parent.isTextblock)return!1;let r=o.parentOffset,i=!r,s=r==o.parent.content.size,a=t.domSelection();return a?!kS.test(o.parent.textContent)||!a.modify?n=="left"||n=="backward"?i:s:Xf(t,e,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,anchorOffset:m}=t.domSelectionRange(),d=a.caretBidiLevel;a.modify("move",n,"character");let p=o.depth?t.docView.domAfterPos(o.before()):t.dom,{focusNode:f,focusOffset:y}=t.domSelectionRange(),h=f&&!p.contains(f.nodeType==1?f:f.parentNode)||l==f&&c==y;try{a.collapse(u,m),l&&(l!=u||c!=m)&&a.extend&&a.extend(l,c)}catch{}return d!=null&&(a.caretBidiLevel=d),h}):o.pos==o.start()||o.pos==o.end()}let ep=null,tp=null,np=!1;function CS(t,e,n){return ep==e&&tp==n?np:(ep=e,tp=n,np=n=="up"||n=="down"?xS(t,e,n):$S(t,e,n))}const tt=0,op=1,Vn=2,xt=3;class jr{constructor(e,n,o,r){this.parent=e,this.children=n,this.dom=o,this.contentDOM=r,this.dirty=tt,o.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,o){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,o=this.posAtStart;;n++){let r=this.children[n];if(r==e)return o;o+=r.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,o){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(o<0){let i,s;if(e==this.contentDOM)i=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(s)+s.size:this.posAtStart}else{let i,s;if(e==this.contentDOM)i=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(s):this.posAtEnd}let r;if(e==this.dom&&this.contentDOM)r=n>ke(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let i=e;;i=i.parentNode){if(i==this.dom){r=!1;break}if(i.previousSibling)break}if(r==null&&n==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){r=!0;break}if(i.nextSibling)break}}return r??o>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let o=!0,r=e;r;r=r.parentNode){let i=this.getDesc(r),s;if(i&&(!n||i.node))if(o&&(s=i.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))o=!1;else return i}}getDesc(e){let n=e.pmViewDesc;for(let o=n;o;o=o.parent)if(o==this)return n}posFromDOM(e,n,o){for(let r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,n,o)}return-1}descAt(e){for(let n=0,o=0;n<this.children.length;n++){let r=this.children[n],i=o+r.size;if(o==e&&i!=o){for(;!r.border&&r.children.length;)r=r.children[0];return r}if(e<i)return r.descAt(e-o-r.border);o=i}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let o=0,r=0;for(let i=0;o<this.children.length;o++){let s=this.children[o],a=i+s.size;if(a>e||s instanceof sp){r=e-i;break}i=a}if(r)return this.children[o].domFromPos(r-this.children[o].border,n);for(let i;o&&!(i=this.children[o-1]).size&&i instanceof rp&&i.side>=0;o--);if(n<=0){let i,s=!0;for(;i=o?this.children[o-1]:null,!(!i||i.dom.parentNode==this.contentDOM);o--,s=!1);return i&&n&&s&&!i.border&&!i.domAtom?i.domFromPos(i.size,n):{node:this.contentDOM,offset:i?ke(i.dom)+1:0}}else{let i,s=!0;for(;i=o<this.children.length?this.children[o]:null,!(!i||i.dom.parentNode==this.contentDOM);o++,s=!1);return i&&s&&!i.border&&!i.domAtom?i.domFromPos(0,n):{node:this.contentDOM,offset:i?ke(i.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,o=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,i=-1;for(let s=o,a=0;;a++){let l=this.children[a],c=s+l.size;if(r==-1&&e<=c){let u=s+l.border;if(e>=u&&n<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,u);e=s;for(let m=a;m>0;m--){let d=this.children[m-1];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(1)){r=ke(d.dom)+1;break}e-=d.size}r==-1&&(r=0)}if(r>-1&&(c>n||a==this.children.length-1)){n=c;for(let u=a+1;u<this.children.length;u++){let m=this.children[u];if(m.size&&m.dom.parentNode==this.contentDOM&&!m.emptyChildAt(-1)){i=ke(m.dom);break}n+=m.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=c}return{node:this.contentDOM,from:e,to:n,fromOffset:r,toOffset:i}}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:o}=this.domFromPos(e,0);if(n.nodeType!=1||o==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[o]}setSelection(e,n,o,r=!1){let i=Math.min(e,n),s=Math.max(e,n);for(let d=0,p=0;d<this.children.length;d++){let f=this.children[d],y=p+f.size;if(i>p&&s<y)return f.setSelection(e-p-f.border,n-p-f.border,o,r);p=y}let a=this.domFromPos(e,e?-1:1),l=n==e?a:this.domFromPos(n,n?-1:1),c=o.getSelection(),u=!1;if((ht||Le)&&e==n){let{node:d,offset:p}=a;if(d.nodeType==3){if(u=!!(p&&d.nodeValue[p-1]==`
|
|
25
|
-
`),u&&p==d.nodeValue.length)for(let f=d,y;f;f=f.parentNode){if(y=f.nextSibling){y.nodeName=="BR"&&(a=l={node:y.parentNode,offset:ke(y)+1});break}let h=f.pmViewDesc;if(h&&h.node&&h.node.isBlock)break}}else{let f=d.childNodes[p-1];u=f&&(f.nodeName=="BR"||f.contentEditable=="false")}}if(ht&&c.focusNode&&c.focusNode!=l.node&&c.focusNode.nodeType==1){let d=c.focusNode.childNodes[c.focusOffset];d&&d.contentEditable=="false"&&(r=!0)}if(!(r||u&&Le)&&Hn(a.node,a.offset,c.anchorNode,c.anchorOffset)&&Hn(l.node,l.offset,c.focusNode,c.focusOffset))return;let m=!1;if((c.extend||e==n)&&!u){c.collapse(a.node,a.offset);try{e!=n&&c.extend(l.node,l.offset),m=!0}catch{}}if(!m){if(e>n){let p=a;a=l,l=p}let d=document.createRange();d.setEnd(l.node,l.offset),d.setStart(a.node,a.offset),c.removeAllRanges(),c.addRange(d)}}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 o=0,r=0;r<this.children.length;r++){let i=this.children[r],s=o+i.size;if(o==s?e<=s&&n>=o:e<s&&n>o){let a=o+i.border,l=s-i.border;if(e>=a&&n<=l){this.dirty=e==o||n==s?Vn:op,e==a&&n==l&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=xt:i.markDirty(e-a,n-a);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Vn:xt}o=s}this.dirty=Vn}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let o=e==1?Vn:op;n.dirty<o&&(n.dirty=o)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText(e){return!1}}class rp extends jr{constructor(e,n,o,r){let i,s=n.type.toDOM;if(typeof s=="function"&&(s=s(o,()=>{if(!i)return r;if(i.parent)return i.parent.posBeforeChild(i)})),!n.type.spec.raw){if(s.nodeType!=1){let a=document.createElement("span");a.appendChild(s),s=a}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=n,this.widget=n,i=this}matchesWidget(e){return this.dirty==tt&&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 side(){return this.widget.type.side}}class ES extends jr{constructor(e,n,o,r){super(e,[],n,null),this.textDOM=o,this.text=r}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 Un extends jr{constructor(e,n,o,r){super(e,[],o,r),this.mark=n}static create(e,n,o,r){let i=r.nodeViews[n.type.name],s=i&&i(n,r,o);return(!s||!s.dom)&&(s=Fn.renderSpec(document,n.type.spec.toDOM(n,o),null,n.attrs)),new Un(e,n,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&xt||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=xt&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=tt){let o=this.parent;for(;!o.node;)o=o.parent;o.dirty<this.dirty&&(o.dirty=this.dirty),this.dirty=tt}}slice(e,n,o){let r=Un.create(this.parent,this.mark,!0,o),i=this.children,s=this.size;n<s&&(i=Zl(i,n,s,o)),e>0&&(i=Zl(i,0,e,o));for(let a=0;a<i.length;a++)i[a].parent=r;return r.children=i,r}}class tn extends jr{constructor(e,n,o,r,i,s,a,l,c){super(e,[],i,s),this.node=n,this.outerDeco=o,this.innerDeco=r,this.nodeDOM=a}static create(e,n,o,r,i,s){let a=i.nodeViews[n.type.name],l,c=a&&a(n,i,()=>{if(!l)return s;if(l.parent)return l.parent.posBeforeChild(l)},o,r),u=c&&c.dom,m=c&&c.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:m}=Fn.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!m&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let d=u;return u=cp(u,o,n),c?l=new NS(e,n,o,r,u,m||null,d,c,i,s+1):n.isText?new hs(e,n,o,r,u,d,i):new tn(e,n,o,r,u,m||null,d,i,s+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 o=this.children[n];if(this.dom.contains(o.dom.parentNode)){e.contentElement=o.dom.parentNode;break}}e.contentElement||(e.getContent=()=>N.empty)}return e}matchesNode(e,n,o){return this.dirty==tt&&e.eq(this.node)&&gs(n,this.outerDeco)&&o.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let o=this.node.inlineContent,r=n,i=e.composing?this.localCompositionInfo(e,n):null,s=i&&i.pos>-1?i:null,a=i&&i.pos<0,l=new RS(this,s&&s.node,e);MS(this.node,this.innerDeco,(c,u,m)=>{c.spec.marks?l.syncToMarks(c.spec.marks,o,e):c.type.side>=0&&!m&&l.syncToMarks(u==this.node.childCount?q.none:this.node.child(u).marks,o,e),l.placeWidget(c,e,r)},(c,u,m,d)=>{l.syncToMarks(c.marks,o,e);let p;l.findNodeMatch(c,u,m,d)||a&&e.state.selection.from>r&&e.state.selection.to<r+c.nodeSize&&(p=l.findIndexWithChild(i.node))>-1&&l.updateNodeAt(c,u,m,p,e)||l.updateNextNode(c,u,m,e,d,r)||l.addNode(c,u,m,e,r),r+=c.nodeSize}),l.syncToMarks([],o,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==Vn)&&(s&&this.protectLocalComposition(e,s),ap(this.contentDOM,this.children,e),Eo&&TS(this.dom))}localCompositionInfo(e,n){let{from:o,to:r}=e.state.selection;if(!(e.state.selection instanceof V)||o<n||r>n+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let s=i.nodeValue,a=jS(this.node.content,s,o-n,r-n);return a<0?null:{node:i,pos:a,text:s}}else return{node:i,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:o,text:r}){if(this.getDesc(n))return;let i=n;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let s=new ES(this,i,n,r);e.input.compositionNodes.push(s),this.children=Zl(this.children,o,o+r.length,e,s)}update(e,n,o,r){return this.dirty==xt||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,o,r),!0)}updateInner(e,n,o,r){this.updateOuterDeco(n),this.node=e,this.innerDeco=o,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=tt}updateOuterDeco(e){if(gs(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,o=this.dom;this.dom=lp(this.dom,this.nodeDOM,Ql(this.outerDeco,this.node,n),Ql(e,this.node,n)),this.dom!=o&&(o.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.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function ip(t,e,n,o,r){cp(o,e,t);let i=new tn(void 0,t,e,n,o,o,o,r,0);return i.contentDOM&&i.updateChildren(r,0),i}class hs extends tn{constructor(e,n,o,r,i,s,a){super(e,n,o,r,i,null,s,a,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,o,r){return this.dirty==xt||this.dirty!=tt&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=tt||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=tt,!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,o){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,o)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,o){let r=this.node.cut(e,n),i=document.createTextNode(r.text);return new hs(this.parent,r,this.outerDeco,this.innerDeco,i,i,o)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=xt)}get domAtom(){return!1}isText(e){return this.node.text==e}}class sp extends jr{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==tt&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class NS extends tn{constructor(e,n,o,r,i,s,a,l,c,u){super(e,n,o,r,i,s,a,c,u),this.spec=l}update(e,n,o,r){if(this.dirty==xt)return!1;if(this.spec.update){let i=this.spec.update(e,n,o);return i&&this.updateInner(e,n,o,r),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,o,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,o,r){this.spec.setSelection?this.spec.setSelection(e,n,o):super.setSelection(e,n,o,r)}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 ap(t,e,n){let o=t.firstChild,r=!1;for(let i=0;i<e.length;i++){let s=e[i],a=s.dom;if(a.parentNode==t){for(;a!=o;)o=up(o),r=!0;o=o.nextSibling}else r=!0,t.insertBefore(a,o);if(s instanceof Un){let l=o?o.previousSibling:t.lastChild;ap(s.contentDOM,s.children,n),o=l?l.nextSibling:t.firstChild}}for(;o;)o=up(o),r=!0;r&&n.trackWrites==t&&(n.trackWrites=null)}const Pr=function(t){t&&(this.nodeName=t)};Pr.prototype=Object.create(null);const _n=[new Pr];function Ql(t,e,n){if(t.length==0)return _n;let o=n?_n[0]:new Pr,r=[o];for(let i=0;i<t.length;i++){let s=t[i].type.attrs;if(s){s.nodeName&&r.push(o=new Pr(s.nodeName));for(let a in s){let l=s[a];l!=null&&(n&&r.length==1&&r.push(o=new Pr(e.isInline?"span":"div")),a=="class"?o.class=(o.class?o.class+" ":"")+l:a=="style"?o.style=(o.style?o.style+";":"")+l:a!="nodeName"&&(o[a]=l))}}}return r}function lp(t,e,n,o){if(n==_n&&o==_n)return e;let r=e;for(let i=0;i<o.length;i++){let s=o[i],a=n[i];if(i){let l;a&&a.nodeName==s.nodeName&&r!=t&&(l=r.parentNode)&&l.nodeName.toLowerCase()==s.nodeName||(l=document.createElement(s.nodeName),l.pmIsDeco=!0,l.appendChild(r),a=_n[0]),r=l}AS(r,a||_n[0],s)}return r}function AS(t,e,n){for(let o in e)o!="class"&&o!="style"&&o!="nodeName"&&!(o in n)&&t.removeAttribute(o);for(let o in n)o!="class"&&o!="style"&&o!="nodeName"&&n[o]!=e[o]&&t.setAttribute(o,n[o]);if(e.class!=n.class){let o=e.class?e.class.split(" ").filter(Boolean):[],r=n.class?n.class.split(" ").filter(Boolean):[];for(let i=0;i<o.length;i++)r.indexOf(o[i])==-1&&t.classList.remove(o[i]);for(let i=0;i<r.length;i++)o.indexOf(r[i])==-1&&t.classList.add(r[i]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let o=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=o.exec(e.style);)t.style.removeProperty(r[1])}n.style&&(t.style.cssText+=n.style)}}function cp(t,e,n){return lp(t,t,_n,Ql(e,n,t.nodeType!=1))}function gs(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 up(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class RS{constructor(e,n,o){this.lock=n,this.view=o,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=OS(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let o=e;o<n;o++)this.top.children[o].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,o){let r=0,i=this.stack.length>>1,s=Math.min(i,e.length);for(;r<s&&(r==i-1?this.top:this.stack[r+1<<1]).matchesMark(e[r])&&e[r].type.spec.spanning!==!1;)r++;for(;r<i;)this.destroyRest(),this.top.dirty=tt,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<e.length;){this.stack.push(this.top,this.index+1);let a=-1;for(let l=this.index;l<Math.min(this.index+3,this.top.children.length);l++){let c=this.top.children[l];if(c.matchesMark(e[i])&&!this.isLocked(c.dom)){a=l;break}}if(a>-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let l=Un.create(this.top,e[i],n,o);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,i++}}findNodeMatch(e,n,o,r){let i=-1,s;if(r>=this.preMatch.index&&(s=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&s.matchesNode(e,n,o))i=this.top.children.indexOf(s,this.index);else for(let a=this.index,l=Math.min(this.top.children.length,a+5);a<l;a++){let c=this.top.children[a];if(c.matchesNode(e,n,o)&&!this.preMatch.matched.has(c)){i=a;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,n,o,r,i){let s=this.top.children[r];return s.dirty==xt&&s.dom==s.contentDOM&&(s.dirty=Vn),s.update(e,n,o,i)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(e){for(;;){let n=e.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let o=e.pmViewDesc;if(o){for(let r=this.index;r<this.top.children.length;r++)if(this.top.children[r]==o)return r}return-1}e=n}}updateNextNode(e,n,o,r,i,s){for(let a=this.index;a<this.top.children.length;a++){let l=this.top.children[a];if(l instanceof tn){let c=this.preMatch.matched.get(l);if(c!=null&&c!=i)return!1;let u=l.dom,m,d=this.isLocked(u)&&!(e.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==e.text&&l.dirty!=xt&&gs(n,l.outerDeco));if(!d&&l.update(e,n,o,r))return this.destroyBetween(this.index,a),l.dom!=u&&(this.changed=!0),this.index++,!0;if(!d&&(m=this.recreateWrapper(l,e,n,o,r,s)))return this.destroyBetween(this.index,a),this.top.children[this.index]=m,m.contentDOM&&(m.dirty=Vn,m.updateChildren(r,s+1),m.dirty=tt),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,o,r,i,s){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content)||!gs(o,e.outerDeco)||!r.eq(e.innerDeco))return null;let a=tn.create(this.top,n,o,r,i,s);if(a.contentDOM){a.children=e.children,e.children=[];for(let l of a.children)l.parent=a}return e.destroy(),a}addNode(e,n,o,r,i){let s=tn.create(this.top,e,n,o,r,i);s.contentDOM&&s.updateChildren(r,i+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(e,n,o){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(r&&r.matchesWidget(e)&&(e==r.widget||!r.widget.type.toDOM.parentNode))this.index++;else{let i=new rp(this.top,e,n,o);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof Un;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof hs)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Le||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 o=document.createElement(e);e=="IMG"&&(o.className="ProseMirror-separator",o.alt=""),e=="BR"&&(o.className="ProseMirror-trailingBreak");let r=new sp(this.top,[],o,null);n!=this.top?n.children.push(r):n.children.splice(this.index++,0,r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function OS(t,e){let n=e,o=n.children.length,r=t.childCount,i=new Map,s=[];e:for(;r>0;){let a;for(;;)if(o){let c=n.children[o-1];if(c instanceof Un)n=c,o=c.children.length;else{a=c,o--;break}}else{if(n==e)break e;o=n.parent.children.indexOf(n),n=n.parent}let l=a.node;if(l){if(l!=t.child(r-1))break;--r,i.set(a,r),s.push(a)}}return{index:r,matched:i,matches:s.reverse()}}function DS(t,e){return t.type.side-e.type.side}function MS(t,e,n,o){let r=e.locals(t),i=0;if(r.length==0){for(let c=0;c<t.childCount;c++){let u=t.child(c);o(u,r,e.forChild(i,u),c),i+=u.nodeSize}return}let s=0,a=[],l=null;for(let c=0;;){let u,m;for(;s<r.length&&r[s].to==i;){let h=r[s++];h.widget&&(u?(m||(m=[u])).push(h):u=h)}if(u)if(m){m.sort(DS);for(let h=0;h<m.length;h++)n(m[h],c,!!l)}else n(u,c,!!l);let d,p;if(l)p=-1,d=l,l=null;else if(c<t.childCount)p=c,d=t.child(c++);else break;for(let h=0;h<a.length;h++)a[h].to<=i&&a.splice(h--,1);for(;s<r.length&&r[s].from<=i&&r[s].to>i;)a.push(r[s++]);let f=i+d.nodeSize;if(d.isText){let h=f;s<r.length&&r[s].from<h&&(h=r[s].from);for(let g=0;g<a.length;g++)a[g].to<h&&(h=a[g].to);h<f&&(l=d.cut(h-i),d=d.cut(0,h-i),f=h,p=-1)}else for(;s<r.length&&r[s].to<f;)s++;let y=d.isInline&&!d.isLeaf?a.filter(h=>!h.inline):a.slice();o(d,y,e.forChild(i,d),p),i=f}}function TS(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 jS(t,e,n,o){for(let r=0,i=0;r<t.childCount&&i<=o;){let s=t.child(r++),a=i;if(i+=s.nodeSize,!s.isText)continue;let l=s.text;for(;r<t.childCount;){let c=t.child(r++);if(i+=c.nodeSize,!c.isText)break;l+=c.text}if(i>=n){if(i>=o&&l.slice(o-e.length-a,o-a)==e)return o-e.length;let c=a<o?l.lastIndexOf(e,o-a-1):-1;if(c>=0&&c+e.length+a>=n)return a+c;if(n==o&&l.length>=o+e.length-a&&l.slice(o-a,o-a+e.length)==e)return o}}return-1}function Zl(t,e,n,o,r){let i=[];for(let s=0,a=0;s<t.length;s++){let l=t[s],c=a,u=a+=l.size;c>=n||u<=e?i.push(l):(c<e&&i.push(l.slice(0,e-c,o)),r&&(i.push(r),r=void 0),u>n&&i.push(l.slice(n-c,l.size,o)))}return i}function Xl(t,e=null){let n=t.domSelectionRange(),o=t.state.doc;if(!n.focusNode)return null;let r=t.docView.nearestDesc(n.focusNode),i=r&&r.size==0,s=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let a=o.resolve(s),l,c;if(ps(n)){for(l=s;r&&!r.node;)r=r.parent;let m=r.node;if(r&&m.isAtom&&L.isSelectable(m)&&r.parent&&!(m.isInline&&sS(n.focusNode,n.focusOffset,r.dom))){let d=r.posBefore;c=new L(s==d?a:o.resolve(d))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let m=s,d=s;for(let p=0;p<n.rangeCount;p++){let f=n.getRangeAt(p);m=Math.min(m,t.docView.posFromDOM(f.startContainer,f.startOffset,1)),d=Math.max(d,t.docView.posFromDOM(f.endContainer,f.endOffset,-1))}if(m<0)return null;[l,s]=d==t.state.selection.anchor?[d,m]:[m,d],a=o.resolve(s)}else l=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}let u=o.resolve(l);if(!c){let m=e=="pointer"||t.state.selection.head<a.pos&&!i?1:-1;c=tc(t,u,a,m)}return c}function dp(t){return t.editable?t.hasFocus():wp(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Lt(t,e=!1){let n=t.state.selection;if(hp(t,n),!!dp(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&De){let o=t.domSelectionRange(),r=t.domObserver.currentSelection;if(o.anchorNode&&r.anchorNode&&Hn(o.anchorNode,o.anchorOffset,r.anchorNode,r.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)IS(t);else{let{anchor:o,head:r}=n,i,s;mp&&!(n instanceof V)&&(n.$from.parent.inlineContent||(i=fp(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=fp(t,n.to))),t.docView.setSelection(o,r,t.root,e),mp&&(i&&pp(i),s&&pp(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&PS(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const mp=Le||De&&Jf<63;function fp(t,e){let{node:n,offset:o}=t.docView.domFromPos(e,0),r=o<n.childNodes.length?n.childNodes[o]:null,i=o?n.childNodes[o-1]:null;if(Le&&r&&r.contentEditable=="false")return ec(r);if((!r||r.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(r)return ec(r);if(i)return ec(i)}}function ec(t){return t.contentEditable="true",Le&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function pp(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function PS(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),o=n.anchorNode,r=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(n.anchorNode!=o||n.anchorOffset!=r)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!dp(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function IS(t){let e=t.domSelection(),n=document.createRange();if(!e)return;let o=t.cursorWrapper.dom,r=o.nodeName=="IMG";r?n.setStart(o.parentNode,ke(o)+1):n.setStart(o,0),n.collapse(!0),e.removeAllRanges(),e.addRange(n),!r&&!t.state.selection.visible&&Ue&&Xt<=11&&(o.disabled=!0,o.disabled=!1)}function hp(t,e){if(e instanceof L){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(gp(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else gp(t)}function gp(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function tc(t,e,n,o){return t.someProp("createSelectionBetween",r=>r(t,e,n))||V.between(e,n,o)}function yp(t){return t.editable&&!t.hasFocus()?!1:wp(t)}function wp(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 LS(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return Hn(e.node,e.offset,n.anchorNode,n.anchorOffset)}function nc(t,e){let{$anchor:n,$head:o}=t.selection,r=e>0?n.max(o):n.min(o),i=r.parent.inlineContent?r.depth?t.doc.resolve(e>0?r.after():r.before()):null:r;return i&&J.findFrom(i,e)}function nn(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function Sp(t,e,n){let o=t.state.selection;if(o instanceof V)if(n.indexOf("s")>-1){let{$head:r}=o,i=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let s=t.state.doc.resolve(r.pos+i.nodeSize*(e<0?-1:1));return nn(t,new V(o.$anchor,s))}else if(o.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let r=nc(t.state,e);return r&&r instanceof L?nn(t,r):!1}else if(!(et&&n.indexOf("m")>-1)){let r=o.$head,i=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter,s;if(!i||i.isText)return!1;let a=e<0?r.pos-i.nodeSize:r.pos;return i.isAtom||(s=t.docView.descAt(a))&&!s.contentDOM?L.isSelectable(i)?nn(t,new L(e<0?t.state.doc.resolve(r.pos-i.nodeSize):r)):Mr?nn(t,new V(t.state.doc.resolve(e<0?a:a+i.nodeSize))):!1:!1}}else return!1;else{if(o instanceof L&&o.node.isInline)return nn(t,new V(e>0?o.$to:o.$from));{let r=nc(t.state,e);return r?nn(t,r):!1}}}function ys(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Ir(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function Ao(t,e){return e<0?zS(t):FS(t)}function zS(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let r,i,s=!1;for(ht&&n.nodeType==1&&o<ys(n)&&Ir(n.childNodes[o],-1)&&(s=!0);;)if(o>0){if(n.nodeType!=1)break;{let a=n.childNodes[o-1];if(Ir(a,-1))r=n,i=--o;else if(a.nodeType==3)n=a,o=n.nodeValue.length;else break}}else{if(bp(n))break;{let a=n.previousSibling;for(;a&&Ir(a,-1);)r=n.parentNode,i=ke(a),a=a.previousSibling;if(a)n=a,o=ys(n);else{if(n=n.parentNode,n==t.dom)break;o=0}}}s?oc(t,n,o):r&&oc(t,r,i)}function FS(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let r=ys(n),i,s;for(;;)if(o<r){if(n.nodeType!=1)break;let a=n.childNodes[o];if(Ir(a,1))i=n,s=++o;else break}else{if(bp(n))break;{let a=n.nextSibling;for(;a&&Ir(a,1);)i=a.parentNode,s=ke(a)+1,a=a.nextSibling;if(a)n=a,o=0,r=ys(n);else{if(n=n.parentNode,n==t.dom)break;o=r=0}}}i&&oc(t,i,s)}function bp(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function HS(t,e){for(;t&&e==t.childNodes.length&&!Dr(t);)e=ke(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 BS(t,e){for(;t&&!e&&!Dr(t);)e=ke(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 oc(t,e,n){if(e.nodeType!=3){let i,s;(s=HS(e,n))?(e=s,n=0):(i=BS(e,n))&&(e=i,n=i.nodeValue.length)}let o=t.domSelection();if(!o)return;if(ps(o)){let i=document.createRange();i.setEnd(e,n),i.setStart(e,n),o.removeAllRanges(),o.addRange(i)}else o.extend&&o.extend(e,n);t.domObserver.setCurSelection();let{state:r}=t;setTimeout(()=>{t.state==r&&Lt(t)},50)}function vp(t,e){let n=t.state.doc.resolve(e);if(!(De||cS)&&n.parent.inlineContent){let r=t.coordsAtPos(e);if(e>n.start()){let i=t.coordsAtPos(e-1),s=(i.top+i.bottom)/2;if(s>r.top&&s<r.bottom&&Math.abs(i.left-r.left)>1)return i.left<r.left?"ltr":"rtl"}if(e<n.end()){let i=t.coordsAtPos(e+1),s=(i.top+i.bottom)/2;if(s>r.top&&s<r.bottom&&Math.abs(i.left-r.left)>1)return i.left>r.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function xp(t,e,n){let o=t.state.selection;if(o instanceof V&&!o.empty||n.indexOf("s")>-1||et&&n.indexOf("m")>-1)return!1;let{$from:r,$to:i}=o;if(!r.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=nc(t.state,e);if(s&&s instanceof L)return nn(t,s)}if(!r.parent.inlineContent){let s=e<0?r:i,a=o instanceof ft?J.near(s,e):J.findFrom(s,e);return a?nn(t,a):!1}return!1}function kp(t,e){if(!(t.state.selection instanceof V))return!0;let{$head:n,$anchor:o,empty:r}=t.state.selection;if(!n.sameParent(o))return!0;if(!r)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let s=t.state.tr;return e<0?s.delete(n.pos-i.nodeSize,n.pos):s.delete(n.pos,n.pos+i.nodeSize),t.dispatch(s),!0}return!1}function $p(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function VS(t){if(!Le||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 o=e.firstChild;$p(t,o,"true"),setTimeout(()=>$p(t,o,"false"),20)}return!1}function US(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function _S(t,e){let n=e.keyCode,o=US(e);if(n==8||et&&n==72&&o=="c")return kp(t,-1)||Ao(t,-1);if(n==46&&!e.shiftKey||et&&n==68&&o=="c")return kp(t,1)||Ao(t,1);if(n==13||n==27)return!0;if(n==37||et&&n==66&&o=="c"){let r=n==37?vp(t,t.state.selection.from)=="ltr"?-1:1:-1;return Sp(t,r,o)||Ao(t,r)}else if(n==39||et&&n==70&&o=="c"){let r=n==39?vp(t,t.state.selection.from)=="ltr"?1:-1:1;return Sp(t,r,o)||Ao(t,r)}else{if(n==38||et&&n==80&&o=="c")return xp(t,-1,o)||Ao(t,-1);if(n==40||et&&n==78&&o=="c")return VS(t)||xp(t,1,o)||Ao(t,1);if(o==(et?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Cp(t,e){t.someProp("transformCopied",p=>{e=p(e,t)});let n=[],{content:o,openStart:r,openEnd:i}=e;for(;r>1&&i>1&&o.childCount==1&&o.firstChild.childCount==1;){r--,i--;let p=o.firstChild;n.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),o=p.content}let s=t.someProp("clipboardSerializer")||Fn.fromSchema(t.state.schema),a=Tp(),l=a.createElement("div");l.appendChild(s.serializeFragment(o,{document:a}));let c=l.firstChild,u,m=0;for(;c&&c.nodeType==1&&(u=Dp[c.nodeName.toLowerCase()]);){for(let p=u.length-1;p>=0;p--){let f=a.createElement(u[p]);for(;l.firstChild;)f.appendChild(l.firstChild);l.appendChild(f),m++}c=l.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${r} ${i}${m?` -${m}`:""} ${JSON.stringify(n)}`);let d=t.someProp("clipboardTextSerializer",p=>p(e,t))||e.content.textBetween(0,e.content.size,`
|
|
19
|
+
*/var B1=k,Pm=60103;if(br.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Im=Symbol.for;Pm=Im("react.element"),br.Fragment=Im("react.fragment")}var V1=B1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,U1=Object.prototype.hasOwnProperty,_1={key:!0,ref:!0,__self:!0,__source:!0};function Lm(t,e,n){var o,r={},i=null,s=null;n!==void 0&&(i=""+n),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(s=e.ref);for(o in e)U1.call(e,o)&&!_1.hasOwnProperty(o)&&(r[o]=e[o]);if(t&&t.defaultProps)for(o in e=t.defaultProps,e)r[o]===void 0&&(r[o]=e[o]);return{$$typeof:Pm,type:t,key:i,ref:s,props:r,_owner:V1.current}}br.jsx=Lm,br.jsxs=Lm,Kt.exports=br;var w=Kt.exports;const J1=({adminUrl:t,onLoad:e})=>{const n={display:"none"};return w.jsx("iframe",{"data-frame":"admin-auth",src:t+"auth-frame/",style:n,title:"auth-frame",onLoad:e})};var Y1=function(t){return t instanceof RegExp},K1=function(e){var n=/[\\^$.*+?()[\]{}|]/g,o=RegExp(n.source);return e&&o.test(e)?e.replace(n,"\\$&"):e},zm=function(t){return typeof t=="string"},W1=function(t){var e=[];return t.forEach(function(n){Array.isArray(n)?e=e.concat(n):e.push(n)}),e};function q1(t,e,n){var o=0,r=0;if(t==="")return t;if(!t||!zm(t))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var i=e;Y1(i)||(i=new RegExp("("+K1(i)+")","gi"));for(var s=t.split(i),a=1,l=s.length;a<l;a+=2){if(s[a]===void 0||s[a-1]===void 0){console.warn("reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.");continue}r=s[a].length,o+=s[a-1].length,s[a]=n(s[a],a,o),o+=r}return s}var G1=function(e,n,o){return Array.isArray(e)||(e=[e]),W1(e.map(function(r){return zm(r)?q1(r,n,o):r}))};const Fm=Ze(G1),Rl=_.createContext({});Rl.Provider;const B=()=>k.useContext(Rl),Q1=()=>{const e=B().dispatchAction;return n=>{e("setOrder",{order:n})}},Xe=()=>{try{return B().labs||{}}catch{return{}}},Gi=({isFirst:t,isPaid:e})=>{const{accentColor:n,publication:o,member:r,t:i,commentCount:s}=B(),a={backgroundColor:n},l={color:n},c=i(s===0?"Start the conversation":"Join the discussion"),u=()=>{window.location.href=e&&r?"#/portal/account/plans":"#/portal/signup"},m=()=>{window.location.href="#/portal/signin"},d=Fm(i(e?"Become a paid member of {{publication}} to start commenting.":"Become a member of {{publication}} to start commenting."),"{{publication}}",()=>w.jsx("span",{className:"font-semibold",children:o}));return w.jsxs(w.Fragment,{children:[w.jsx("h1",{className:`mb-[8px] text-center font-sans text-2xl tracking-tight text-black dark:text-[rgba(255,255,255,0.85)] ${t?"font-semibold":"font-bold"}`,children:c}),w.jsx("p",{className:"mb-[28px] w-full px-0 text-center font-sans text-lg leading-normal text-neutral-600 sm:max-w-screen-sm sm:px-8 dark:text-[rgba(255,255,255,0.85)]",children:d}),w.jsx("button",{className:"text-md mb-[12px] inline-block rounded px-5 py-[14px] font-sans font-medium leading-none text-white transition-all hover:opacity-90","data-testid":"signup-button",style:a,type:"button",onClick:u,children:i(e&&r?"Upgrade now":"Sign up now")}),!r&&w.jsxs("p",{className:"text-md text-center font-sans text-[rgba(0,0,0,0.4)] dark:text-[rgba(255,255,255,0.5)]",children:[w.jsx("span",{className:"mr-1 inline-block text-[15px]",children:i("Already a member?")}),w.jsx("button",{className:"rounded-md text-sm font-semibold transition-all hover:opacity-90","data-testid":"signin-button",style:l,type:"button",onClick:m,children:i("Sign in")})]})]})},Hm=t=>k.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},k.createElement("path",{d:"M7 9.5C7 10.1566 7.12933 10.8068 7.3806 11.4134C7.63188 12.02 8.00017 12.5712 8.46447 13.0355C8.92876 13.4998 9.47995 13.8681 10.0866 14.1194C10.6932 14.3707 11.3434 14.5 12 14.5C12.6566 14.5 13.3068 14.3707 13.9134 14.1194C14.52 13.8681 15.0712 13.4998 15.5355 13.0355C15.9998 12.5712 16.3681 12.02 16.6194 11.4134C16.8707 10.8068 17 10.1566 17 9.5C17 8.84339 16.8707 8.19321 16.6194 7.58658C16.3681 6.97995 15.9998 6.42876 15.5355 5.96447C15.0712 5.50017 14.52 5.13188 13.9134 4.8806C13.3068 4.62933 12.6566 4.5 12 4.5C11.3434 4.5 10.6932 4.62933 10.0866 4.8806C9.47995 5.13188 8.92876 5.50017 8.46447 5.96447C8.00017 6.42876 7.63188 6.97995 7.3806 7.58658C7.12933 8.19321 7 8.84339 7 9.5V9.5Z",stroke:"white",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),k.createElement("circle",{cx:12,cy:12,r:11.375,stroke:"white",strokeWidth:1.25}),k.createElement("path",{d:"M19.5 20C19.092 19.6069 18.4941 19.2498 17.7403 18.9489C16.9864 18.6481 16.0915 18.4094 15.1066 18.2466C14.1217 18.0838 13.0661 18 12 18C10.9339 18 9.87831 18.0838 8.8934 18.2466C7.90848 18.4094 7.01357 18.6481 6.25975 18.9489C5.50593 19.2498 4.90796 19.6069 4.5 20",stroke:"white",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}));function Sr(t){return t!==0&&!t?"":t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function Z1(t,e){const n=new Date(t),o=new Date;if(isNaN(n.getTime()))return e("Just now");const r=Math.round((o.getTime()-n.getTime())/1e3);if(r<60)return e("Just now");const i=Math.round(r/60);if(i===1)return e("One min ago");if(i<60)return e("{{amount}} mins ago",{amount:i});const s=Math.round(i/60);if(s===1)return e("One hour ago");const a=new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate())),l=new Date(Date.UTC(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate())),c=Math.floor((l.getTime()-a.getTime())/(1e3*60*60*24));if(c===1)return e("Yesterday");if(c>1){const u=n.getDate(),m=n.toLocaleString("en-us",{month:"short"});return n.getFullYear()!==o.getFullYear()?`${u} ${m} ${n.getFullYear()}`:`${u} ${m}`}return e("{{amount}} hrs ago",{amount:s})}function X1(t){const e=new Date(t),n=e.toLocaleDateString("en-us",{day:"2-digit"}),o=e.toLocaleString("en-us",{month:"short"}),r=e.getFullYear(),i=(e.getHours()<10?"0":"")+e.getHours(),s=(e.getMinutes()<10?"0":"")+e.getMinutes();return`${n} ${o} ${r} ${i}:${s}`}function Bm(t){if(!t)return"";const e=t.split(" ");return e.length===0?"":e.length===1?e[0].substring(0,1).toLocaleUpperCase():e[0].substring(0,1).toLocaleUpperCase()+e[e.length-1].substring(0,1).toLocaleUpperCase()}function Vm(t,e){return t?t.name?t.name:e("Anonymous"):e("Deleted member")}function ew(t,e){return Vm(t.member,e)}function tw(t,e){return Bm(Vm(t.member,e))}function Ol(){return Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<480}const nw=t=>{let e=0,n=t.ownerDocument.defaultView;for(;n&&n!==window;){const r=n.parent;for(let i=0;i<r.frames.length;i++)if(r.frames[i]===n){for(const s of r.document.getElementsByTagName("iframe"))if(s.contentWindow===n){const a=s.getBoundingClientRect();e+=a.top+n.pageYOffset}n=r;break}}return t.getBoundingClientRect().top+window.pageYOffset+e},Um=t=>{const e=t.offsetHeight,n=nw(t),o=n+e,r=64,i=window.innerHeight,s=window.scrollY,a=s+i;if(n-r<s||o+r>a){const l=(n+o)/2;window.scrollTo({top:l-i/2,left:0,behavior:"smooth"})}};function ow(t){const{html:e=""}=t,n=document.createElement("div");n.innerHTML=e,n.querySelectorAll("script, style, link, meta, noscript, title").forEach(r=>r.remove()),n.querySelectorAll("blockquote").forEach(r=>r.remove());let o=n.textContent||"";return o=o.replace(`
|
|
20
|
+
`," "),o=o.replace(/\s+/g," "),o=o.trim(),o.substring(0,100)}function _m(){return"w-8 h-8"}const rw=()=>{const t=_m();return w.jsx("figure",{className:`relative ${t}`,children:w.jsx("div",{className:`flex items-center justify-center rounded-full bg-black/10 dark:bg-white/15 ${t}`,children:w.jsx(Hm,{className:"stroke-white opacity-80"})})})},Ml=({comment:t})=>{var y;const{member:e,avatarSaturation:n,t:o}=B(),r=_m(),i=(e==null?void 0:e.name)??((y=t==null?void 0:t.member)==null?void 0:y.name),s=h=>{let g=0;for(let b=0;b<h.length;b++)g=h.charCodeAt(b)+((g<<5)-g);return g=Math.abs(g),g},a=(h,g,b)=>Math.floor(h%(b-g)+g),l=()=>{const h=t?t.member:e;if(!h||!h.name)return[0,0,10];const g=n===void 0||isNaN(n)?50:n,b=[0,360],v=Math.round(g/(100/30))+30,C=[v-20,v],x=s(h.name),$=a(x,b[0],b[1]),R=a(x,C[0],C[1]);return[$,g,R]},c=h=>`hsl(${h[0]}, ${h[1]}%, ${h[2]}%)`,u=t&&tw(t,o)||e&&Bm(e.name||"")||"",m=t?t.member:e,p={background:c(l())},f=w.jsxs(w.Fragment,{children:[i?w.jsx("div",{className:`flex items-center justify-center rounded-full ${r}`,"data-testid":"avatar-background",style:p,children:w.jsx("p",{className:"font-sans text-base font-semibold text-white",children:u})}):w.jsx("div",{className:`flex items-center justify-center rounded-full bg-neutral-900 dark:bg-white/70 ${r}`,"data-testid":"avatar-background",children:w.jsx(Hm,{className:"stroke-white dark:stroke-black/60"})}),m&&w.jsx("img",{alt:"Avatar",className:`absolute left-0 top-0 rounded-full ${r}`,"data-testid":"avatar-image",src:m.avatar_image})]});return w.jsx("figure",{className:`relative ${r}`,"data-testid":"avatar",children:f})},iw=t=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 24 24",...t},k.createElement("g",{strokeLinecap:"round",strokeWidth:2,fill:"none",strokeLinejoin:"round",className:"nc-icon-wrapper"},k.createElement("polygon",{points:"7 21 2 22 3 17 18 2 22 6 7 21"})));function xe(t){this.content=t}xe.prototype={constructor:xe,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 o=n&&n!=t?this.remove(n):this,r=o.find(t),i=o.content.slice();return r==-1?i.push(n||t,e):(i[r+1]=e,n&&(i[r]=n)),new xe(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new xe(n)},addToStart:function(t,e){return new xe([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new xe(n)},addBefore:function(t,e,n){var o=this.remove(e),r=o.content.slice(),i=o.find(t);return r.splice(i==-1?r.length:i,0,e,n),new xe(r)},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=xe.from(t),t.size?new xe(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=xe.from(t),t.size?new xe(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=xe.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}},xe.from=function(t){if(t instanceof xe)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new xe(e)};function Jm(t,e,n){for(let o=0;;o++){if(o==t.childCount||o==e.childCount)return t.childCount==e.childCount?null:n;let r=t.child(o),i=e.child(o);if(r==i){n+=r.nodeSize;continue}if(!r.sameMarkup(i))return n;if(r.isText&&r.text!=i.text){for(let s=0;r.text[s]==i.text[s];s++)n++;return n}if(r.content.size||i.content.size){let s=Jm(r.content,i.content,n+1);if(s!=null)return s}n+=r.nodeSize}}function Ym(t,e,n,o){for(let r=t.childCount,i=e.childCount;;){if(r==0||i==0)return r==i?null:{a:n,b:o};let s=t.child(--r),a=e.child(--i),l=s.nodeSize;if(s==a){n-=l,o-=l;continue}if(!s.sameMarkup(a))return{a:n,b:o};if(s.isText&&s.text!=a.text){let c=0,u=Math.min(s.text.length,a.text.length);for(;c<u&&s.text[s.text.length-c-1]==a.text[a.text.length-c-1];)c++,n--,o--;return{a:n,b:o}}if(s.content.size||a.content.size){let c=Ym(s.content,a.content,n-1,o-1);if(c)return c}n-=l,o-=l}}class N{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let o=0;o<e.length;o++)this.size+=e[o].nodeSize}nodesBetween(e,n,o,r=0,i){for(let s=0,a=0;a<n;s++){let l=this.content[s],c=a+l.nodeSize;if(c>e&&o(l,r+a,i||null,s)!==!1&&l.content.size){let u=a+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,n-u),o,r+u)}a=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,o,r){let i="",s=!0;return this.nodesBetween(e,n,(a,l)=>{let c=a.isText?a.text.slice(Math.max(e,l)-l,n-l):a.isLeaf?r?typeof r=="function"?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&c||a.isTextblock)&&o&&(s?s=!1:i+=o),i+=c},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,o=e.firstChild,r=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(o)&&(r[r.length-1]=n.withText(n.text+o.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new N(r,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let o=[],r=0;if(n>e)for(let i=0,s=0;s<n;i++){let a=this.content[i],l=s+a.nodeSize;l>e&&((s<e||l>n)&&(a.isText?a=a.cut(Math.max(0,e-s),Math.min(a.text.length,n-s)):a=a.cut(Math.max(0,e-s-1),Math.min(a.content.size,n-s-1))),o.push(a),r+=a.nodeSize),s=l}return new N(o,r)}cutByIndex(e,n){return e==n?N.empty:e==0&&n==this.content.length?this:new N(this.content.slice(e,n))}replaceChild(e,n){let o=this.content[e];if(o==n)return this;let r=this.content.slice(),i=this.size+n.nodeSize-o.nodeSize;return r[e]=n,new N(r,i)}addToStart(e){return new N([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new N(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,o=0;n<this.content.length;n++){let r=this.content[n];e(r,o,n),o+=r.nodeSize}}findDiffStart(e,n=0){return Jm(this,e,n)}findDiffEnd(e,n=this.size,o=e.size){return Ym(this,e,n,o)}findIndex(e,n=-1){if(e==0)return Qi(0,e);if(e==this.size)return Qi(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let o=0,r=0;;o++){let i=this.child(o),s=r+i.nodeSize;if(s>=e)return s==e||n>0?Qi(o+1,s):Qi(o,r);r=s}}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 N.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new N(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return N.empty;let n,o=0;for(let r=0;r<e.length;r++){let i=e[r];o+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(n||(n=e.slice(0,r)),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new N(n||e,o)}static from(e){if(!e)return N.empty;if(e instanceof N)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new N([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}N.empty=new N([],0);const Tl={index:0,offset:0};function Qi(t,e){return Tl.index=t,Tl.offset=e,Tl}function Zi(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 o=0;o<t.length;o++)if(!Zi(t[o],e[o]))return!1}else{for(let o in t)if(!(o in e)||!Zi(t[o],e[o]))return!1;for(let o in e)if(!(o in t))return!1}return!0}let q=class pm{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,o=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))n||(n=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!o&&i.type.rank>this.type.rank&&(n||(n=e.slice(0,r)),n.push(this),o=!0),n&&n.push(i)}}return n||(n=e.slice()),o||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&&Zi(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 o=e.marks[n.type];if(!o)throw new RangeError(`There is no mark type ${n.type} in this schema`);let r=o.create(n.attrs);return o.checkAttrs(r.attrs),r}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let o=0;o<e.length;o++)if(!e[o].eq(n[o]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return pm.none;if(e instanceof pm)return[e];let n=e.slice();return n.sort((o,r)=>o.type.rank-r.type.rank),n}};q.none=[];class Xi extends Error{}class M{constructor(e,n,o){this.content=e,this.openStart=n,this.openEnd=o}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let o=Wm(this.content,e+this.openStart,n);return o&&new M(o,this.openStart,this.openEnd)}removeBetween(e,n){return new M(Km(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 M.empty;let o=n.openStart||0,r=n.openEnd||0;if(typeof o!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new M(N.fromJSON(e,n.content),o,r)}static maxOpen(e,n=!0){let o=0,r=0;for(let i=e.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)o++;for(let i=e.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)r++;return new M(e,o,r)}}M.empty=new M(N.empty,0,0);function Km(t,e,n){let{index:o,offset:r}=t.findIndex(e),i=t.maybeChild(o),{index:s,offset:a}=t.findIndex(n);if(r==e||i.isText){if(a!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(o!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(o,i.copy(Km(i.content,e-r-1,n-r-1)))}function Wm(t,e,n,o){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r);if(i==e||s.isText)return o&&!o.canReplace(r,r,n)?null:t.cut(0,e).append(n).append(t.cut(e));let a=Wm(s.content,e-i-1,n);return a&&t.replaceChild(r,s.copy(a))}function sw(t,e,n){if(n.openStart>t.depth)throw new Xi("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Xi("Inconsistent open depths");return qm(t,e,n,0)}function qm(t,e,n,o){let r=t.index(o),i=t.node(o);if(r==e.index(o)&&o<t.depth-n.openStart){let s=qm(t,e,n,o+1);return i.copy(i.content.replaceChild(r,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==o&&e.depth==o){let s=t.parent,a=s.content;return In(s,a.cut(0,t.parentOffset).append(n.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=aw(n,t);return In(i,Qm(t,s,a,e,o))}else return In(i,es(t,e,o))}function Gm(t,e){if(!e.type.compatibleContent(t.type))throw new Xi("Cannot join "+e.type.name+" onto "+t.type.name)}function jl(t,e,n){let o=t.node(n);return Gm(o,e.node(n)),o}function Pn(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 xr(t,e,n,o){let r=(e||t).node(n),i=0,s=e?e.index(n):r.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(Pn(t.nodeAfter,o),i++));for(let a=i;a<s;a++)Pn(r.child(a),o);e&&e.depth==n&&e.textOffset&&Pn(e.nodeBefore,o)}function In(t,e){return t.type.checkContent(e),t.copy(e)}function Qm(t,e,n,o,r){let i=t.depth>r&&jl(t,e,r+1),s=o.depth>r&&jl(n,o,r+1),a=[];return xr(null,t,r,a),i&&s&&e.index(r)==n.index(r)?(Gm(i,s),Pn(In(i,Qm(t,e,n,o,r+1)),a)):(i&&Pn(In(i,es(t,e,r+1)),a),xr(e,n,r,a),s&&Pn(In(s,es(n,o,r+1)),a)),xr(o,null,r,a),new N(a)}function es(t,e,n){let o=[];if(xr(null,t,n,o),t.depth>n){let r=jl(t,e,n+1);Pn(In(r,es(t,e,n+1)),o)}return xr(e,null,n,o),new N(o)}function aw(t,e){let n=e.depth-t.openStart,r=e.node(n).copy(t.content);for(let i=n-1;i>=0;i--)r=e.node(i).copy(N.from(r));return{start:r.resolveNoCache(t.openStart+n),end:r.resolveNoCache(r.content.size-t.openEnd-n)}}class kr{constructor(e,n,o){this.pos=e,this.path=n,this.parentOffset=o,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 o=this.pos-this.path[this.path.length-1],r=e.child(n);return o?e.child(n).cut(o):r}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 o=this.path[n*3],r=n==0?0:this.path[n*3-1]+1;for(let i=0;i<e;i++)r+=o.child(i).nodeSize;return r}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return q.none;if(this.textOffset)return e.child(n).marks;let o=e.maybeChild(n-1),r=e.maybeChild(n);if(!o){let a=o;o=r,r=a}let i=o.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!r||!i[s].isInSet(r.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let o=n.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<o.length;i++)o[i].type.spec.inclusive===!1&&(!r||!o[i].isInSet(r.marks))&&(o=o[i--].removeFromSet(o));return o}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 o=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);o>=0;o--)if(e.pos<=this.end(o)&&(!n||n(this.node(o))))return new ts(this,e,o);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 o=[],r=0,i=n;for(let s=e;;){let{index:a,offset:l}=s.content.findIndex(i),c=i-l;if(o.push(s,a,r+l),!c||(s=s.child(a),s.isText))break;i=c-1,r+=l+1}return new kr(n,o,i)}static resolveCached(e,n){let o=Zm.get(e);if(o)for(let i=0;i<o.elts.length;i++){let s=o.elts[i];if(s.pos==n)return s}else Zm.set(e,o=new lw);let r=o.elts[o.i]=kr.resolve(e,n);return o.i=(o.i+1)%cw,r}}class lw{constructor(){this.elts=[],this.i=0}}const cw=12,Zm=new WeakMap;class ts{constructor(e,n,o){this.$from=e,this.$to=n,this.depth=o}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 uw=Object.create(null);let Ln=class hm{constructor(e,n,o,r=q.none){this.type=e,this.attrs=n,this.marks=r,this.content=o||N.empty}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,o,r=0){this.content.nodesBetween(e,n,o,r,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,o,r){return this.content.textBetween(e,n,o,r)}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,o){return this.type==e&&Zi(this.attrs,n||e.defaultAttrs||uw)&&q.sameSet(this.marks,o||q.none)}copy(e=null){return e==this.content?this:new hm(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new hm(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,o=!1){if(e==n)return M.empty;let r=this.resolve(e),i=this.resolve(n),s=o?0:r.sharedDepth(n),a=r.start(s),c=r.node(s).content.cut(r.pos-a,i.pos-a);return new M(c,r.depth-s,i.depth-s)}replace(e,n,o){return sw(this.resolve(e),this.resolve(n),o)}nodeAt(e){for(let n=this;;){let{index:o,offset:r}=n.content.findIndex(e);if(n=n.maybeChild(o),!n)return null;if(r==e||n.isText)return n;e-=r+1}}childAfter(e){let{index:n,offset:o}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:o}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:o}=this.content.findIndex(e);if(o<e)return{node:this.content.child(n),index:n,offset:o};let r=this.content.child(n-1);return{node:r,index:n-1,offset:o-r.nodeSize}}resolve(e){return kr.resolveCached(this,e)}resolveNoCache(e){return kr.resolve(this,e)}rangeHasMark(e,n,o){let r=!1;return n>e&&this.nodesBetween(e,n,i=>(o.isInSet(i.marks)&&(r=!0),!r)),r}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()+")"),Xm(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,o=N.empty,r=0,i=o.childCount){let s=this.contentMatchAt(e).matchFragment(o,r,i),a=s&&s.matchFragment(this.content,n);if(!a||!a.validEnd)return!1;for(let l=r;l<i;l++)if(!this.type.allowsMarks(o.child(l).marks))return!1;return!0}canReplaceWith(e,n,o,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(o),s=i&&i.matchFragment(this.content,n);return s?s.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=q.none;for(let n=0;n<this.marks.length;n++){let o=this.marks[n];o.type.checkAttrs(o.attrs),e=o.addToSet(e)}if(!q.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);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 o;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");o=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,o)}let r=N.fromJSON(e,n.content),i=e.nodeType(n.type).create(n.attrs,r,o);return i.type.checkAttrs(i.attrs),i}};Ln.prototype.text=void 0;class ns extends Ln{constructor(e,n,o,r){if(super(e,n,null,r),!o)throw new RangeError("Empty text nodes are not allowed");this.text=o}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Xm(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 ns(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new ns(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 Xm(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class zn{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let o=new dw(e,n);if(o.next==null)return zn.empty;let r=ef(o);o.next&&o.err("Unexpected trailing text");let i=ww(yw(r));return bw(i,o),i}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,o=e.childCount){let r=this;for(let i=n;r&&i<o;i++)r=r.matchType(e.child(i).type);return r}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 o=0;o<e.next.length;o++)if(this.next[n].type==e.next[o].type)return!0;return!1}fillBefore(e,n=!1,o=0){let r=[this];function i(s,a){let l=s.matchFragment(e,o);if(l&&(!n||l.validEnd))return N.from(a.map(c=>c.createAndFill()));for(let c=0;c<s.next.length;c++){let{type:u,next:m}=s.next[c];if(!(u.isText||u.hasRequiredAttrs())&&r.indexOf(m)==-1){r.push(m);let d=i(m,a.concat(u));if(d)return d}}return null}return i(this,[])}findWrapping(e){for(let o=0;o<this.wrapCache.length;o+=2)if(this.wrapCache[o]==e)return this.wrapCache[o+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),o=[{match:this,type:null,via:null}];for(;o.length;){let r=o.shift(),i=r.match;if(i.matchType(e)){let s=[];for(let a=r;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:a,next:l}=i.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in n)&&(!r.type||l.validEnd)&&(o.push({match:a.contentMatch,type:a,via:r}),n[a.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(o){e.push(o);for(let r=0;r<o.next.length;r++)e.indexOf(o.next[r].next)==-1&&n(o.next[r].next)}return n(this),e.map((o,r)=>{let i=r+(o.validEnd?"*":" ")+" ";for(let s=0;s<o.next.length;s++)i+=(s?", ":"")+o.next[s].type.name+"->"+e.indexOf(o.next[s].next);return i}).join(`
|
|
21
|
+
`)}}zn.empty=new zn(!0);class dw{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 ef(t){let e=[];do e.push(mw(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function mw(t){let e=[];do e.push(fw(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function fw(t){let e=gw(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=pw(t,e);else break;return e}function tf(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function pw(t,e){let n=tf(t),o=n;return t.eat(",")&&(t.next!="}"?o=tf(t):o=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:o,expr:e}}function hw(t,e){let n=t.nodeTypes,o=n[e];if(o)return[o];let r=[];for(let i in n){let s=n[i];s.groups.indexOf(e)>-1&&r.push(s)}return r.length==0&&t.err("No node type or group '"+e+"' found"),r}function gw(t){if(t.eat("(")){let e=ef(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=hw(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 yw(t){let e=[[]];return r(i(t,0),n()),e;function n(){return e.push([])-1}function o(s,a,l){let c={term:l,to:a};return e[s].push(c),c}function r(s,a){s.forEach(l=>l.to=a)}function i(s,a){if(s.type=="choice")return s.exprs.reduce((l,c)=>l.concat(i(c,a)),[]);if(s.type=="seq")for(let l=0;;l++){let c=i(s.exprs[l],a);if(l==s.exprs.length-1)return c;r(c,a=n())}else if(s.type=="star"){let l=n();return o(a,l),r(i(s.expr,l),l),[o(l)]}else if(s.type=="plus"){let l=n();return r(i(s.expr,a),l),r(i(s.expr,l),l),[o(l)]}else{if(s.type=="opt")return[o(a)].concat(i(s.expr,a));if(s.type=="range"){let l=a;for(let c=0;c<s.min;c++){let u=n();r(i(s.expr,l),u),l=u}if(s.max==-1)r(i(s.expr,l),l);else for(let c=s.min;c<s.max;c++){let u=n();o(l,u),r(i(s.expr,l),u),l=u}return[o(l)]}else{if(s.type=="name")return[o(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function nf(t,e){return e-t}function of(t,e){let n=[];return o(e),n.sort(nf);function o(r){let i=t[r];if(i.length==1&&!i[0].term)return o(i[0].to);n.push(r);for(let s=0;s<i.length;s++){let{term:a,to:l}=i[s];!a&&n.indexOf(l)==-1&&o(l)}}}function ww(t){let e=Object.create(null);return n(of(t,0));function n(o){let r=[];o.forEach(s=>{t[s].forEach(({term:a,to:l})=>{if(!a)return;let c;for(let u=0;u<r.length;u++)r[u][0]==a&&(c=r[u][1]);of(t,l).forEach(u=>{c||r.push([a,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let i=e[o.join(",")]=new zn(o.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(nf);i.next.push({type:r[s][0],next:e[a.join(",")]||n(a)})}return i}}function bw(t,e){for(let n=0,o=[t];n<o.length;n++){let r=o[n],i=!r.validEnd,s=[];for(let a=0;a<r.next.length;a++){let{type:l,next:c}=r.next[a];s.push(l.name),i&&!(l.isText||l.hasRequiredAttrs())&&(i=!1),o.indexOf(c)==-1&&o.push(c)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function rf(t){let e=Object.create(null);for(let n in t){let o=t[n];if(!o.hasDefault)return null;e[n]=o.default}return e}function sf(t,e){let n=Object.create(null);for(let o in t){let r=e&&e[o];if(r===void 0){let i=t[o];if(i.hasDefault)r=i.default;else throw new RangeError("No value supplied for attribute "+o)}n[o]=r}return n}function af(t,e,n,o){for(let r in e)if(!(r in t))throw new RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let r in t){let i=t[r];i.validate&&i.validate(e[r])}}function lf(t,e){let n=Object.create(null);if(e)for(let o in e)n[o]=new Sw(t,o,e[o]);return n}let cf=class O1{constructor(e,n,o){this.name=e,this.schema=n,this.spec=o,this.markSet=null,this.groups=o.group?o.group.split(" "):[],this.attrs=lf(e,o.attrs),this.defaultAttrs=rf(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(o.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==zn.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}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:sf(this.attrs,e)}create(e=null,n,o){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Ln(this,this.computeAttrs(e),N.from(n),q.setFrom(o))}createChecked(e=null,n,o){return n=N.from(n),this.checkContent(n),new Ln(this,this.computeAttrs(e),n,q.setFrom(o))}createAndFill(e=null,n,o){if(e=this.computeAttrs(e),n=N.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let r=this.contentMatch.matchFragment(n),i=r&&r.fillBefore(N.empty,!0);return i?new Ln(this,e,n.append(i),q.setFrom(o)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let o=0;o<e.childCount;o++)if(!this.allowsMarks(e.child(o).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){af(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 o=0;o<e.length;o++)this.allowsMarkType(e[o].type)?n&&n.push(e[o]):n||(n=e.slice(0,o));return n?n.length?n:q.none:e}static compile(e,n){let o=Object.create(null);e.forEach((i,s)=>o[i]=new O1(i,n,s));let r=n.spec.topNode||"doc";if(!o[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!o.text)throw new RangeError("Every schema needs a 'text' type");for(let i in o.text.attrs)throw new RangeError("The text node type should not have attributes");return o}};function vw(t,e,n){let o=n.split("|");return r=>{let i=r===null?"null":typeof r;if(o.indexOf(i)<0)throw new RangeError(`Expected value of type ${o} for attribute ${e} on type ${t}, got ${i}`)}}class Sw{constructor(e,n,o){this.hasDefault=Object.prototype.hasOwnProperty.call(o,"default"),this.default=o.default,this.validate=typeof o.validate=="string"?vw(e,n,o.validate):o.validate}get isRequired(){return!this.hasDefault}}class rs{constructor(e,n,o,r){this.name=e,this.rank=n,this.schema=o,this.spec=r,this.attrs=lf(e,r.attrs),this.excluded=null;let i=rf(this.attrs);this.instance=i?new q(this,i):null}create(e=null){return!e&&this.instance?this.instance:new q(this,sf(this.attrs,e))}static compile(e,n){let o=Object.create(null),r=0;return e.forEach((i,s)=>o[i]=new rs(i,r++,n,s)),o}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){af(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class uf{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let r in e)n[r]=e[r];n.nodes=xe.from(e.nodes),n.marks=xe.from(e.marks||{}),this.nodes=cf.compile(this.spec.nodes,this),this.marks=rs.compile(this.spec.marks,this);let o=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let i=this.nodes[r],s=i.spec.content||"",a=i.spec.marks;if(i.contentMatch=o[s]||(o[s]=zn.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=a=="_"?null:a?df(this,a.split(" ")):a==""||!i.inlineContent?[]:null}for(let r in this.marks){let i=this.marks[r],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:df(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,o,r){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof cf){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,o,r)}text(e,n){let o=this.nodes.text;return new ns(o,o.defaultAttrs,e,q.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return Ln.fromJSON(this,e)}markFromJSON(e){return q.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function df(t,e){let n=[];for(let o=0;o<e.length;o++){let r=e[o],i=t.marks[r],s=i;if(i)n.push(i);else for(let a in t.marks){let l=t.marks[a];(r=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(r)>-1)&&n.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[o]+"'")}return n}function xw(t){return t.tag!=null}function kw(t){return t.style!=null}class Wt{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let o=this.matchedStyles=[];n.forEach(r=>{if(xw(r))this.tags.push(r);else if(kw(r)){let i=/[^=]*/.exec(r.style)[0];o.indexOf(i)<0&&o.push(i),this.styles.push(r)}}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let i=e.nodes[r.node];return i.contentMatch.matchType(i)})}parse(e,n={}){let o=new hf(this,n,!1);return o.addAll(e,q.none,n.from,n.to),o.finish()}parseSlice(e,n={}){let o=new hf(this,n,!0);return o.addAll(e,q.none,n.from,n.to),M.maxOpen(o.finish())}matchTag(e,n,o){for(let r=o?this.tags.indexOf(o)+1:0;r<this.tags.length;r++){let i=this.tags[r];if(Ew(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||n.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,n,o,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let s=this.styles[i],a=s.style;if(!(a.indexOf(e)!=0||s.context&&!o.matchesContext(s.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=n))){if(s.getAttrs){let l=s.getAttrs(n);if(l===!1)continue;s.attrs=l||void 0}return s}}}static schemaRules(e){let n=[];function o(r){let i=r.priority==null?50:r.priority,s=0;for(;s<n.length;s++){let a=n[s];if((a.priority==null?50:a.priority)<i)break}n.splice(s,0,r)}for(let r in e.marks){let i=e.marks[r].spec.parseDOM;i&&i.forEach(s=>{o(s=gf(s)),s.mark||s.ignore||s.clearMark||(s.mark=r)})}for(let r in e.nodes){let i=e.nodes[r].spec.parseDOM;i&&i.forEach(s=>{o(s=gf(s)),s.node||s.ignore||s.mark||(s.node=r)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Wt(e,Wt.schemaRules(e)))}}const mf={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},$w={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ff={ol:!0,ul:!0},is=1,ss=2,$r=4;function pf(t,e,n){return e!=null?(e?is:0)|(e==="full"?ss:0):t&&t.whitespace=="pre"?is|ss:n&~$r}class as{constructor(e,n,o,r,i,s){this.type=e,this.attrs=n,this.marks=o,this.solid=r,this.options=s,this.content=[],this.activeMarks=q.none,this.match=i||(s&$r?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(N.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let o=this.type.contentMatch,r;return(r=o.findWrapping(e.type))?(this.match=o,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&is)){let o=this.content[this.content.length-1],r;if(o&&o.isText&&(r=/[ \t\r\n\u000c]+$/.exec(o.text))){let i=o;o.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-r[0].length))}}let n=N.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(N.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&&!mf.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class hf{constructor(e,n,o){this.parser=e,this.options=n,this.isOpen=o,this.open=0;let r=n.topNode,i,s=pf(null,n.preserveWhitespace,0)|(o?$r:0);r?i=new as(r.type,r.attrs,q.none,!0,n.topMatch||r.type.contentMatch,s):o?i=new as(null,null,q.none,!0,null,s):i=new as(e.schema.topNodeType,null,q.none,!0,null,s),this.nodes=[i],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 o=e.nodeValue,r=this.top;if(r.options&ss||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(o)){if(r.options&is)r.options&ss?o=o.replace(/\r\n?/g,`
|
|
22
|
+
`):o=o.replace(/\r?\n|\r/g," ");else if(o=o.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(o)&&this.open==this.nodes.length-1){let i=r.content[r.content.length-1],s=e.previousSibling;(!i||s&&s.nodeName=="BR"||i.isText&&/[ \t\r\n\u000c]$/.test(i.text))&&(o=o.slice(1))}o&&this.insertNode(this.parser.schema.text(o),n),this.findInText(e)}else this.findInside(e)}addElement(e,n,o){let r=e.nodeName.toLowerCase(),i;ff.hasOwnProperty(r)&&this.parser.normalizeLists&&Cw(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(i=this.parser.matchTag(e,this,o));if(s?s.ignore:$w.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e,n);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let a,l=this.top,c=this.needsBlock;if(mf.hasOwnProperty(r))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);return}let u=s&&s.skip?n:this.readStyles(e,n);u&&this.addAll(e,u),a&&this.sync(l),this.needsBlock=c}else{let a=this.readStyles(e,n);a&&this.addElementByRule(e,s,a,s.consuming===!1?i:void 0)}}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
|
23
|
+
`),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n)}readStyles(e,n){let o=e.style;if(o&&o.length)for(let r=0;r<this.parser.matchedStyles.length;r++){let i=this.parser.matchedStyles[r],s=o.getPropertyValue(i);if(s)for(let a=void 0;;){let l=this.parser.matchStyle(i,s,this,a);if(!l)break;if(l.ignore)return null;if(l.clearMark?n=n.filter(c=>!l.clearMark(c)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)a=l;else break}}return n}addElementByRule(e,n,o,r){let i,s;if(n.node)if(s=this.parser.schema.nodes[n.node],s.isLeaf)this.insertNode(s.create(n.attrs),o)||this.leafFallback(e,o);else{let l=this.enter(s,n.attrs||null,o,n.preserveWhitespace);l&&(i=!0,o=l)}else{let l=this.parser.schema.marks[n.mark];o=o.concat(l.create(n.attrs))}let a=this.top;if(s&&s.isLeaf)this.findInside(e);else if(r)this.addElement(e,o,r);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,o));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l,o)}i&&this.sync(a)&&this.open--}addAll(e,n,o,r){let i=o||0;for(let s=o?e.childNodes[o]:e.firstChild,a=r==null?null:e.childNodes[r];s!=a;s=s.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(s,n);this.findAtPoint(e,i)}findPlace(e,n){let o,r;for(let i=this.open;i>=0;i--){let s=this.nodes[i],a=s.findWrapping(e);if(a&&(!o||o.length>a.length)&&(o=a,r=s,!a.length)||s.solid)break}if(!o)return null;this.sync(r);for(let i=0;i<o.length;i++)n=this.enterInner(o[i],null,n,!1);return n}insertNode(e,n){if(e.isInline&&this.needsBlock&&!this.top.type){let r=this.textblockFromContext();r&&(n=this.enterInner(r,null,n))}let o=this.findPlace(e,n);if(o){this.closeExtra();let r=this.top;r.match&&(r.match=r.match.matchType(e.type));let i=q.none;for(let s of o.concat(e.marks))(r.type?r.type.allowsMarkType(s.type):yf(s.type,e.type))&&(i=s.addToSet(i));return r.content.push(e.mark(i)),!0}return!1}enter(e,n,o,r){let i=this.findPlace(e.create(n),o);return i&&(i=this.enterInner(e,n,o,!0,r)),i}enterInner(e,n,o,r=!1,i){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(e);let a=pf(e,i,s.options);s.options&$r&&s.content.length==0&&(a|=$r);let l=q.none;return o=o.filter(c=>(s.type?s.type.allowsMarkType(c.type):yf(c.type,e))?(l=c.addToSet(l),!1):!0),this.nodes.push(new as(e,n,l,r,null,a)),this.open++,o}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;return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let o=this.nodes[n].content;for(let r=o.length-1;r>=0;r--)e+=o[r].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let o=0;o<this.find.length;o++)this.find[o].node==e&&this.find[o].offset==n&&(this.find[o].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,o){if(e!=n&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&n.compareDocumentPosition(this.find[r].node)&(o?2:4)&&(this.find[r].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("/"),o=this.options.context,r=!this.isOpen&&(!o||o.parent.type==this.nodes[0].type),i=-(o?o.depth+1:0)+(r?0:1),s=(a,l)=>{for(;a>=0;a--){let c=n[a];if(c==""){if(a==n.length-1||a==0)continue;for(;l>=i;l--)if(s(a-1,l))return!0;return!1}else{let u=l>0||l==0&&r?this.nodes[l].type:o&&l>=i?o.node(l-i).type:null;if(!u||u.name!=c&&u.groups.indexOf(c)==-1)return!1;l--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let o=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(o&&o.isTextblock&&o.defaultAttrs)return o}for(let n in this.parser.schema.nodes){let o=this.parser.schema.nodes[n];if(o.isTextblock&&o.defaultAttrs)return o}}}function Cw(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let o=e.nodeType==1?e.nodeName.toLowerCase():null;o&&ff.hasOwnProperty(o)&&n?(n.appendChild(e),e=n):o=="li"?n=e:o&&(n=null)}}function Ew(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function gf(t){let e={};for(let n in t)e[n]=t[n];return e}function yf(t,e){let n=e.schema.nodes;for(let o in n){let r=n[o];if(!r.allowsMarkType(t))continue;let i=[],s=a=>{i.push(a);for(let l=0;l<a.edgeCount;l++){let{type:c,next:u}=a.edge(l);if(c==e||i.indexOf(u)<0&&s(u))return!0}};if(s(r.contentMatch))return!0}}class Fn{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},o){o||(o=Pl(n).createDocumentFragment());let r=o,i=[];return e.forEach(s=>{if(i.length||s.marks.length){let a=0,l=0;for(;a<i.length&&l<s.marks.length;){let c=s.marks[l];if(!this.marks[c.type.name]){l++;continue}if(!c.eq(i[a][0])||c.type.spec.spanning===!1)break;a++,l++}for(;a<i.length;)r=i.pop()[1];for(;l<s.marks.length;){let c=s.marks[l++],u=this.serializeMark(c,s.isInline,n);u&&(i.push([c,r]),r.appendChild(u.dom),r=u.contentDOM||u.dom)}}r.appendChild(this.serializeNodeInner(s,n))}),o}serializeNodeInner(e,n){let{dom:o,contentDOM:r}=ls(Pl(n),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,r)}return o}serializeNode(e,n={}){let o=this.serializeNodeInner(e,n);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,n);i&&((i.contentDOM||i.dom).appendChild(o),o=i.dom)}return o}serializeMark(e,n,o={}){let r=this.marks[e.type.name];return r&&ls(Pl(o),r(e,n),null,e.attrs)}static renderSpec(e,n,o=null,r){return ls(e,n,o,r)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Fn(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=wf(e.nodes);return n.text||(n.text=o=>o.text),n}static marksFromSchema(e){return wf(e.marks)}}function wf(t){let e={};for(let n in t){let o=t[n].spec.toDOM;o&&(e[n]=o)}return e}function Pl(t){return t.document||window.document}const bf=new WeakMap;function Nw(t){let e=bf.get(t);return e===void 0&&bf.set(t,e=Dw(t)),e}function Dw(t){let e=null;function n(o){if(o&&typeof o=="object")if(Array.isArray(o))if(typeof o[0]=="string")e||(e=[]),e.push(o);else for(let r=0;r<o.length;r++)n(o[r]);else for(let r in o)n(o[r])}return n(t),e}function ls(t,e,n,o){if(typeof e=="string")return{dom:t.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let r=e[0],i;if(typeof r!="string")throw new RangeError("Invalid array passed to renderSpec");if(o&&(i=Nw(o))&&i.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 s=r.indexOf(" ");s>0&&(n=r.slice(0,s),r=r.slice(s+1));let a,l=n?t.createElementNS(n,r):t.createElement(r),c=e[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let m in c)if(c[m]!=null){let d=m.indexOf(" ");d>0?l.setAttributeNS(m.slice(0,d),m.slice(d+1),c[m]):l.setAttribute(m,c[m])}}for(let m=u;m<e.length;m++){let d=e[m];if(d===0){if(m<e.length-1||m>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:p,contentDOM:f}=ls(t,d,n,o);if(l.appendChild(p),f){if(a)throw new RangeError("Multiple content holes");a=f}}}return{dom:l,contentDOM:a}}const vf=65535,Sf=Math.pow(2,16);function Aw(t,e){return t+e*Sf}function xf(t){return t&vf}function Rw(t){return(t-(t&vf))/Sf}const kf=1,$f=2,cs=4,Cf=8;class Il{constructor(e,n,o){this.pos=e,this.delInfo=n,this.recover=o}get deleted(){return(this.delInfo&Cf)>0}get deletedBefore(){return(this.delInfo&(kf|cs))>0}get deletedAfter(){return(this.delInfo&($f|cs))>0}get deletedAcross(){return(this.delInfo&cs)>0}}class qe{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&qe.empty)return qe.empty}recover(e){let n=0,o=xf(e);if(!this.inverted)for(let r=0;r<o;r++)n+=this.ranges[r*3+2]-this.ranges[r*3+1];return this.ranges[o*3]+n+Rw(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,o){let r=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?r:0);if(l>e)break;let c=this.ranges[a+i],u=this.ranges[a+s],m=l+c;if(e<=m){let d=c?e==l?-1:e==m?1:n:n,p=l+r+(d<0?0:u);if(o)return p;let f=e==(n<0?l:m)?null:Aw(a/3,e-l),y=e==l?$f:e==m?kf:cs;return(n<0?e!=l:e!=m)&&(y|=Cf),new Il(p,y,f)}r+=u-c}return o?e+r:new Il(e+r,0,null)}touches(e,n){let o=0,r=xf(n),i=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?o:0);if(l>e)break;let c=this.ranges[a+i],u=l+c;if(e<=u&&a==r*3)return!0;o+=this.ranges[a+s]-c}return!1}forEach(e){let n=this.inverted?2:1,o=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let s=this.ranges[r],a=s-(this.inverted?i:0),l=s+(this.inverted?0:i),c=this.ranges[r+n],u=this.ranges[r+o];e(a,a+c,l,l+u),i+=u-c}}invert(){return new qe(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?qe.empty:new qe(e<0?[0,-e,0]:[0,0,e])}}qe.empty=new qe([]);class Cr{constructor(e=[],n,o=0,r=e.length){this.maps=e,this.mirror=n,this.from=o,this.to=r}slice(e=0,n=this.maps.length){return new Cr(this.maps,this.mirror,e,n)}copy(){return new Cr(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,n){this.to=this.maps.push(e),n!=null&&this.setMirror(this.maps.length-1,n)}appendMapping(e){for(let n=0,o=this.maps.length;n<e.maps.length;n++){let r=e.getMirror(n);this.appendMap(e.maps[n],r!=null&&r<n?o+r: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,o=this.maps.length+e.maps.length;n>=0;n--){let r=e.getMirror(n);this.appendMap(e.maps[n].invert(),r!=null&&r>n?o-r-1:void 0)}}invert(){let e=new Cr;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let o=this.from;o<this.to;o++)e=this.maps[o].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,o){let r=0;for(let i=this.from;i<this.to;i++){let s=this.maps[i],a=s.mapResult(e,n);if(a.recover!=null){let l=this.getMirror(i);if(l!=null&&l>i&&l<this.to){i=l,e=this.maps[l].recover(a.recover);continue}}r|=a.delInfo,e=a.pos}return o?e:new Il(e,r,null)}}const Ll=Object.create(null);class Re{getMap(){return qe.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let o=Ll[n.stepType];if(!o)throw new RangeError(`No step type ${n.stepType} defined`);return o.fromJSON(e,n)}static jsonID(e,n){if(e in Ll)throw new RangeError("Duplicate use of step JSON ID "+e);return Ll[e]=n,n.prototype.jsonID=e,n}}class ue{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new ue(e,null)}static fail(e){return new ue(null,e)}static fromReplace(e,n,o,r){try{return ue.ok(e.replace(n,o,r))}catch(i){if(i instanceof Xi)return ue.fail(i.message);throw i}}}function zl(t,e,n){let o=[];for(let r=0;r<t.childCount;r++){let i=t.child(r);i.content.size&&(i=i.copy(zl(i.content,e,i))),i.isInline&&(i=e(i,n,r)),o.push(i)}return N.fromArray(o)}class qt extends Re{constructor(e,n,o){super(),this.from=e,this.to=n,this.mark=o}apply(e){let n=e.slice(this.from,this.to),o=e.resolve(this.from),r=o.node(o.sharedDepth(this.to)),i=new M(zl(n.content,(s,a)=>!s.isAtom||!a.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),r),n.openStart,n.openEnd);return ue.fromReplace(e,this.from,this.to,i)}invert(){return new vt(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return n.deleted&&o.deleted||n.pos>=o.pos?null:new qt(n.pos,o.pos,this.mark)}merge(e){return e instanceof qt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new qt(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 qt(n.from,n.to,e.markFromJSON(n.mark))}}Re.jsonID("addMark",qt);class vt extends Re{constructor(e,n,o){super(),this.from=e,this.to=n,this.mark=o}apply(e){let n=e.slice(this.from,this.to),o=new M(zl(n.content,r=>r.mark(this.mark.removeFromSet(r.marks)),e),n.openStart,n.openEnd);return ue.fromReplace(e,this.from,this.to,o)}invert(){return new qt(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return n.deleted&&o.deleted||n.pos>=o.pos?null:new vt(n.pos,o.pos,this.mark)}merge(e){return e instanceof vt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new vt(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 vt(n.from,n.to,e.markFromJSON(n.mark))}}Re.jsonID("removeMark",vt);class Gt extends Re{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ue.fail("No node at mark step's position");let o=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return ue.fromReplace(e,this.pos,this.pos+1,new M(N.from(o),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let o=this.mark.addToSet(n.marks);if(o.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(o))return new Gt(this.pos,n.marks[r]);return new Gt(this.pos,this.mark)}}return new bo(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Gt(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 Gt(n.pos,e.markFromJSON(n.mark))}}Re.jsonID("addNodeMark",Gt);class bo extends Re{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ue.fail("No node at mark step's position");let o=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return ue.fromReplace(e,this.pos,this.pos+1,new M(N.from(o),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Gt(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new bo(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 bo(n.pos,e.markFromJSON(n.mark))}}Re.jsonID("removeNodeMark",bo);class he extends Re{constructor(e,n,o,r=!1){super(),this.from=e,this.to=n,this.slice=o,this.structure=r}apply(e){return this.structure&&Fl(e,this.from,this.to)?ue.fail("Structure replace would overwrite content"):ue.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new qe([this.from,this.to-this.from,this.slice.size])}invert(e){return new he(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return n.deletedAcross&&o.deletedAcross?null:new he(n.pos,Math.max(n.pos,o.pos),this.slice)}merge(e){if(!(e instanceof he)||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?M.empty:new M(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new he(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?M.empty:new M(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new he(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 he(n.from,n.to,M.fromJSON(e,n.slice),!!n.structure)}}Re.jsonID("replace",he);class ge extends Re{constructor(e,n,o,r,i,s,a=!1){super(),this.from=e,this.to=n,this.gapFrom=o,this.gapTo=r,this.slice=i,this.insert=s,this.structure=a}apply(e){if(this.structure&&(Fl(e,this.from,this.gapFrom)||Fl(e,this.gapTo,this.to)))return ue.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return ue.fail("Gap is not a flat range");let o=this.slice.insertAt(this.insert,n.content);return o?ue.fromReplace(e,this.from,this.to,o):ue.fail("Content does not fit in gap")}getMap(){return new qe([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 ge(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),o=e.mapResult(this.to,-1),r=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?o.pos:e.map(this.gapTo,1);return n.deletedAcross&&o.deletedAcross||r<n.pos||i>o.pos?null:new ge(n.pos,o.pos,r,i,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 ge(n.from,n.to,n.gapFrom,n.gapTo,M.fromJSON(e,n.slice),n.insert,!!n.structure)}}Re.jsonID("replaceAround",ge);function Fl(t,e,n){let o=t.resolve(e),r=n-e,i=o.depth;for(;r>0&&i>0&&o.indexAfter(i)==o.node(i).childCount;)i--,r--;if(r>0){let s=o.node(i).maybeChild(o.indexAfter(i));for(;r>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,r--}}return!1}function Ow(t,e,n,o){let r=[],i=[],s,a;t.doc.nodesBetween(e,n,(l,c,u)=>{if(!l.isInline)return;let m=l.marks;if(!o.isInSet(m)&&u.type.allowsMarkType(o.type)){let d=Math.max(c,e),p=Math.min(c+l.nodeSize,n),f=o.addToSet(m);for(let y=0;y<m.length;y++)m[y].isInSet(f)||(s&&s.to==d&&s.mark.eq(m[y])?s.to=p:r.push(s=new vt(d,p,m[y])));a&&a.to==d?a.to=p:i.push(a=new qt(d,p,o))}}),r.forEach(l=>t.step(l)),i.forEach(l=>t.step(l))}function Mw(t,e,n,o){let r=[],i=0;t.doc.nodesBetween(e,n,(s,a)=>{if(!s.isInline)return;i++;let l=null;if(o instanceof rs){let c=s.marks,u;for(;u=o.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else o?o.isInSet(s.marks)&&(l=[o]):l=s.marks;if(l&&l.length){let c=Math.min(a+s.nodeSize,n);for(let u=0;u<l.length;u++){let m=l[u],d;for(let p=0;p<r.length;p++){let f=r[p];f.step==i-1&&m.eq(r[p].style)&&(d=f)}d?(d.to=c,d.step=i):r.push({style:m,from:Math.max(a,e),to:c,step:i})}}}),r.forEach(s=>t.step(new vt(s.from,s.to,s.style)))}function Ef(t,e,n,o=n.contentMatch,r=!0){let i=t.doc.nodeAt(e),s=[],a=e+1;for(let l=0;l<i.childCount;l++){let c=i.child(l),u=a+c.nodeSize,m=o.matchType(c.type);if(!m)s.push(new he(a,u,M.empty));else{o=m;for(let d=0;d<c.marks.length;d++)n.allowsMarkType(c.marks[d].type)||t.step(new vt(a,u,c.marks[d]));if(r&&c.isText&&n.whitespace!="pre"){let d,p=/\r?\n|\r/g,f;for(;d=p.exec(c.text);)f||(f=new M(N.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),s.push(new he(a+d.index,a+d.index+d[0].length,f))}}a=u}if(!o.validEnd){let l=o.fillBefore(N.empty,!0);t.replace(a,a,new M(l,0,0))}for(let l=s.length-1;l>=0;l--)t.step(s[l])}function Tw(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function vo(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let o=t.depth;;--o){let r=t.$from.node(o),i=t.$from.index(o),s=t.$to.indexAfter(o);if(o<t.depth&&r.canReplace(i,s,n))return o;if(o==0||r.type.spec.isolating||!Tw(r,i,s))break}return null}function jw(t,e,n){let{$from:o,$to:r,depth:i}=e,s=o.before(i+1),a=r.after(i+1),l=s,c=a,u=N.empty,m=0;for(let f=i,y=!1;f>n;f--)y||o.index(f)>0?(y=!0,u=N.from(o.node(f).copy(u)),m++):l--;let d=N.empty,p=0;for(let f=i,y=!1;f>n;f--)y||r.after(f+1)<r.end(f)?(y=!0,d=N.from(r.node(f).copy(d)),p++):c++;t.step(new ge(l,c,s,a,new M(u.append(d),m,p),u.size-m,!0))}function Hl(t,e,n=null,o=t){let r=Pw(t,e),i=r&&Iw(o,e);return i?r.map(Nf).concat({type:e,attrs:n}).concat(i.map(Nf)):null}function Nf(t){return{type:t,attrs:null}}function Pw(t,e){let{parent:n,startIndex:o,endIndex:r}=t,i=n.contentMatchAt(o).findWrapping(e);if(!i)return null;let s=i.length?i[0]:e;return n.canReplaceWith(o,r,s)?i:null}function Iw(t,e){let{parent:n,startIndex:o,endIndex:r}=t,i=n.child(o),s=e.contentMatch.findWrapping(i.type);if(!s)return null;let l=(s.length?s[s.length-1]:e).contentMatch;for(let c=o;l&&c<r;c++)l=l.matchType(n.child(c).type);return!l||!l.validEnd?null:s}function Lw(t,e,n){let o=N.empty;for(let s=n.length-1;s>=0;s--){if(o.size){let a=n[s].type.contentMatch.matchFragment(o);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}o=N.from(n[s].type.create(n[s].attrs,o))}let r=e.start,i=e.end;t.step(new ge(r,i,r,i,new M(o,0,0),n.length,!0))}function zw(t,e,n,o,r){if(!o.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(e,n,(s,a)=>{let l=typeof r=="function"?r(s):r;if(s.isTextblock&&!s.hasMarkup(o,l)&&Bw(t.doc,t.mapping.slice(i).map(a),o)){let c=null;if(o.schema.linebreakReplacement){let p=o.whitespace=="pre",f=!!o.contentMatch.matchType(o.schema.linebreakReplacement);p&&!f?c=!1:!p&&f&&(c=!0)}c===!1&&Hw(t,s,a,i),Ef(t,t.mapping.slice(i).map(a,1),o,void 0,c===null);let u=t.mapping.slice(i),m=u.map(a,1),d=u.map(a+s.nodeSize,1);return t.step(new ge(m,d,m+1,d-1,new M(N.from(o.create(l,null,s.marks)),0,0),1,!0)),c===!0&&Fw(t,s,a,i),!1}})}function Fw(t,e,n,o){e.forEach((r,i)=>{if(r.isText){let s,a=/\r?\n|\r/g;for(;s=a.exec(r.text);){let l=t.mapping.slice(o).map(n+1+i+s.index);t.replaceWith(l,l+1,e.type.schema.linebreakReplacement.create())}}})}function Hw(t,e,n,o){e.forEach((r,i)=>{if(r.type==r.type.schema.linebreakReplacement){let s=t.mapping.slice(o).map(n+1+i);t.replaceWith(s,s+1,e.type.schema.text(`
|
|
24
|
+
`))}})}function Bw(t,e,n){let o=t.resolve(e),r=o.index();return o.parent.canReplaceWith(r,r+1,n)}function Vw(t,e,n,o,r){let i=t.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");n||(n=i.type);let s=n.create(o,null,r||i.marks);if(i.isLeaf)return t.replaceWith(e,e+i.nodeSize,s);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new ge(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new M(N.from(s),0,0),1,!0))}function So(t,e,n=1,o){let r=t.resolve(e),i=r.depth-n,s=o&&o[o.length-1]||r.parent;if(i<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!s.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(let c=r.depth-1,u=n-2;c>i;c--,u--){let m=r.node(c),d=r.index(c);if(m.type.spec.isolating)return!1;let p=m.content.cutByIndex(d,m.childCount),f=o&&o[u+1];f&&(p=p.replaceChild(0,f.type.create(f.attrs)));let y=o&&o[u]||m;if(!m.canReplace(d+1,m.childCount)||!y.type.validContent(p))return!1}let a=r.indexAfter(i),l=o&&o[0];return r.node(i).canReplaceWith(a,a,l?l.type:r.node(i+1).type)}function Uw(t,e,n=1,o){let r=t.doc.resolve(e),i=N.empty,s=N.empty;for(let a=r.depth,l=r.depth-n,c=n-1;a>l;a--,c--){i=N.from(r.node(a).copy(i));let u=o&&o[c];s=N.from(u?u.type.create(u.attrs,s):r.node(a).copy(s))}t.step(new he(e,e,new M(i.append(s),n,n),!0))}function Qt(t,e){let n=t.resolve(e),o=n.index();return Df(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(o,o+1)}function Df(t,e){return!!(t&&e&&!t.isLeaf&&t.canAppend(e))}function us(t,e,n=-1){let o=t.resolve(e);for(let r=o.depth;;r--){let i,s,a=o.index(r);if(r==o.depth?(i=o.nodeBefore,s=o.nodeAfter):n>0?(i=o.node(r+1),a++,s=o.node(r).maybeChild(a)):(i=o.node(r).maybeChild(a-1),s=o.node(r+1)),i&&!i.isTextblock&&Df(i,s)&&o.node(r).canReplace(a,a+1))return e;if(r==0)break;e=n<0?o.before(r):o.after(r)}}function _w(t,e,n){let o=new he(e-n,e+n,M.empty,!0);t.step(o)}function Jw(t,e,n){let o=t.resolve(e);if(o.parent.canReplaceWith(o.index(),o.index(),n))return e;if(o.parentOffset==0)for(let r=o.depth-1;r>=0;r--){let i=o.index(r);if(o.node(r).canReplaceWith(i,i,n))return o.before(r+1);if(i>0)return null}if(o.parentOffset==o.parent.content.size)for(let r=o.depth-1;r>=0;r--){let i=o.indexAfter(r);if(o.node(r).canReplaceWith(i,i,n))return o.after(r+1);if(i<o.node(r).childCount)return null}return null}function Yw(t,e,n){let o=t.resolve(e);if(!n.content.size)return e;let r=n.content;for(let i=0;i<n.openStart;i++)r=r.firstChild.content;for(let i=1;i<=(n.openStart==0&&n.size?2:1);i++)for(let s=o.depth;s>=0;s--){let a=s==o.depth?0:o.pos<=(o.start(s+1)+o.end(s+1))/2?-1:1,l=o.index(s)+(a>0?1:0),c=o.node(s),u=!1;if(i==1)u=c.canReplace(l,l,r);else{let m=c.contentMatchAt(l).findWrapping(r.firstChild.type);u=m&&c.canReplaceWith(l,l,m[0])}if(u)return a==0?o.pos:a<0?o.before(s+1):o.after(s+1)}return null}function ds(t,e,n=e,o=M.empty){if(e==n&&!o.size)return null;let r=t.resolve(e),i=t.resolve(n);return Af(r,i,o)?new he(e,n,o):new Kw(r,i,o).fit()}function Af(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class Kw{constructor(e,n,o){this.$from=e,this.$to=n,this.unplaced=o,this.frontier=[],this.placed=N.empty;for(let r=0;r<=e.depth;r++){let i=e.node(r);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(r))})}for(let r=e.depth;r>0;r--)this.placed=N.from(e.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,o=this.$from,r=this.close(e<0?this.$to:o.doc.resolve(e));if(!r)return null;let i=this.placed,s=o.depth,a=r.depth;for(;s&&a&&i.childCount==1;)i=i.firstChild.content,s--,a--;let l=new M(i,s,a);return e>-1?new ge(o.pos,e,this.$to.pos,this.$to.end(),l,n):l.size||o.pos!=this.$to.pos?new he(o.pos,r.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,o=0,r=this.unplaced.openEnd;o<e;o++){let i=n.firstChild;if(n.childCount>1&&(r=0),i.type.spec.isolating&&r<=o){e=o;break}n=i.content}for(let n=1;n<=2;n++)for(let o=n==1?e:this.unplaced.openStart;o>=0;o--){let r,i=null;o?(i=Bl(this.unplaced.content,o-1).firstChild,r=i.content):r=this.unplaced.content;let s=r.firstChild;for(let a=this.depth;a>=0;a--){let{type:l,match:c}=this.frontier[a],u,m=null;if(n==1&&(s?c.matchType(s.type)||(m=c.fillBefore(N.from(s),!1)):i&&l.compatibleContent(i.type)))return{sliceDepth:o,frontierDepth:a,parent:i,inject:m};if(n==2&&s&&(u=c.findWrapping(s.type)))return{sliceDepth:o,frontierDepth:a,parent:i,wrap:u};if(i&&c.matchType(i.type))break}}}openMore(){let{content:e,openStart:n,openEnd:o}=this.unplaced,r=Bl(e,n);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new M(e,n+1,Math.max(o,r.size+n>=e.size-o?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:o}=this.unplaced,r=Bl(e,n);if(r.childCount<=1&&n>0){let i=e.size-n<=n+r.size;this.unplaced=new M(Er(e,n-1,1),n-1,i?n-1:o)}else this.unplaced=new M(Er(e,n,1),n,o)}placeNodes({sliceDepth:e,frontierDepth:n,parent:o,inject:r,wrap:i}){for(;this.depth>n;)this.closeFrontierNode();if(i)for(let y=0;y<i.length;y++)this.openFrontierNode(i[y]);let s=this.unplaced,a=o?o.content:s.content,l=s.openStart-e,c=0,u=[],{match:m,type:d}=this.frontier[n];if(r){for(let y=0;y<r.childCount;y++)u.push(r.child(y));m=m.matchFragment(r)}let p=a.size+e-(s.content.size-s.openEnd);for(;c<a.childCount;){let y=a.child(c),h=m.matchType(y.type);if(!h)break;c++,(c>1||l==0||y.content.size)&&(m=h,u.push(Rf(y.mark(d.allowedMarks(y.marks)),c==1?l:0,c==a.childCount?p:-1)))}let f=c==a.childCount;f||(p=-1),this.placed=Nr(this.placed,n,N.from(u)),this.frontier[n].match=m,f&&p<0&&o&&o.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let y=0,h=a;y<p;y++){let g=h.lastChild;this.frontier.push({type:g.type,match:g.contentMatchAt(g.childCount)}),h=g.content}this.unplaced=f?e==0?M.empty:new M(Er(s.content,e-1,1),e-1,p<0?s.openEnd:e-1):new M(Er(s.content,e,c),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!Vl(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:o}=this.$to,r=this.$to.after(o);for(;o>1&&r==this.$to.end(--o);)++r;return r}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:o,type:r}=this.frontier[n],i=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),s=Vl(e,n,r,o,i);if(s){for(let a=n-1;a>=0;a--){let{match:l,type:c}=this.frontier[a],u=Vl(e,a,c,l,!0);if(!u||u.childCount)continue e}return{depth:n,fit:s,move:i?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=Nr(this.placed,n.depth,n.fit)),e=n.move;for(let o=n.depth+1;o<=e.depth;o++){let r=e.node(o),i=r.type.contentMatch.fillBefore(r.content,!0,e.index(o));this.openFrontierNode(r.type,r.attrs,i)}return e}openFrontierNode(e,n=null,o){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=Nr(this.placed,this.depth,N.from(e.create(n,o))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(N.empty,!0);n.childCount&&(this.placed=Nr(this.placed,this.frontier.length,n))}}function Er(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Er(t.firstChild.content,e-1,n)))}function Nr(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Nr(t.lastChild.content,e-1,n)))}function Bl(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function Rf(t,e,n){if(e<=0)return t;let o=t.content;return e>1&&(o=o.replaceChild(0,Rf(o.firstChild,e-1,o.childCount==1?n-1:0))),e>0&&(o=t.type.contentMatch.fillBefore(o).append(o),n<=0&&(o=o.append(t.type.contentMatch.matchFragment(o).fillBefore(N.empty,!0)))),t.copy(o)}function Vl(t,e,n,o,r){let i=t.node(e),s=r?t.indexAfter(e):t.index(e);if(s==i.childCount&&!n.compatibleContent(i.type))return null;let a=o.fillBefore(i.content,!0,s);return a&&!Ww(n,i.content,s)?a:null}function Ww(t,e,n){for(let o=n;o<e.childCount;o++)if(!t.allowsMarks(e.child(o).marks))return!0;return!1}function qw(t){return t.spec.defining||t.spec.definingForContent}function Gw(t,e,n,o){if(!o.size)return t.deleteRange(e,n);let r=t.doc.resolve(e),i=t.doc.resolve(n);if(Af(r,i,o))return t.step(new he(e,n,o));let s=Mf(r,t.doc.resolve(n));s[s.length-1]==0&&s.pop();let a=-(r.depth+1);s.unshift(a);for(let d=r.depth,p=r.pos-1;d>0;d--,p--){let f=r.node(d).type.spec;if(f.defining||f.definingAsContext||f.isolating)break;s.indexOf(d)>-1?a=d:r.before(d)==p&&s.splice(1,0,-d)}let l=s.indexOf(a),c=[],u=o.openStart;for(let d=o.content,p=0;;p++){let f=d.firstChild;if(c.push(f),p==o.openStart)break;d=f.content}for(let d=u-1;d>=0;d--){let p=c[d],f=qw(p.type);if(f&&!p.sameMarkup(r.node(Math.abs(a)-1)))u=d;else if(f||!p.type.isTextblock)break}for(let d=o.openStart;d>=0;d--){let p=(d+u+1)%(o.openStart+1),f=c[p];if(f)for(let y=0;y<s.length;y++){let h=s[(y+l)%s.length],g=!0;h<0&&(g=!1,h=-h);let b=r.node(h-1),v=r.index(h-1);if(b.canReplaceWith(v,v,f.type,f.marks))return t.replace(r.before(h),g?i.after(h):n,new M(Of(o.content,0,o.openStart,p),p,o.openEnd))}}let m=t.steps.length;for(let d=s.length-1;d>=0&&(t.replace(e,n,o),!(t.steps.length>m));d--){let p=s[d];p<0||(e=r.before(p),n=i.after(p))}}function Of(t,e,n,o,r){if(e<n){let i=t.firstChild;t=t.replaceChild(0,i.copy(Of(i.content,e+1,n,o,i)))}if(e>o){let i=r.contentMatchAt(0),s=i.fillBefore(t).append(t);t=s.append(i.matchFragment(s).fillBefore(N.empty,!0))}return t}function Qw(t,e,n,o){if(!o.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let r=Jw(t.doc,e,o.type);r!=null&&(e=n=r)}t.replaceRange(e,n,new M(N.from(o),0,0))}function Zw(t,e,n){let o=t.doc.resolve(e),r=t.doc.resolve(n),i=Mf(o,r);for(let s=0;s<i.length;s++){let a=i[s],l=s==i.length-1;if(l&&a==0||o.node(a).type.contentMatch.validEnd)return t.delete(o.start(a),r.end(a));if(a>0&&(l||o.node(a-1).canReplace(o.index(a-1),r.indexAfter(a-1))))return t.delete(o.before(a),r.after(a))}for(let s=1;s<=o.depth&&s<=r.depth;s++)if(e-o.start(s)==o.depth-s&&n>o.end(s)&&r.end(s)-n!=r.depth-s)return t.delete(o.before(s),n);t.delete(e,n)}function Mf(t,e){let n=[],o=Math.min(t.depth,e.depth);for(let r=o;r>=0;r--){let i=t.start(r);if(i<t.pos-(t.depth-r)||e.end(r)>e.pos+(e.depth-r)||t.node(r).type.spec.isolating||e.node(r).type.spec.isolating)break;(i==e.start(r)||r==t.depth&&r==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&r&&e.start(r-1)==i-1)&&n.push(r)}return n}class xo extends Re{constructor(e,n,o){super(),this.pos=e,this.attr=n,this.value=o}apply(e){let n=e.nodeAt(this.pos);if(!n)return ue.fail("No node at attribute step's position");let o=Object.create(null);for(let i in n.attrs)o[i]=n.attrs[i];o[this.attr]=this.value;let r=n.type.create(o,null,n.marks);return ue.fromReplace(e,this.pos,this.pos+1,new M(N.from(r),0,n.isLeaf?0:1))}getMap(){return qe.empty}invert(e){return new xo(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 xo(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 xo(n.pos,n.attr,n.value)}}Re.jsonID("attr",xo);class Dr extends Re{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let r in e.attrs)n[r]=e.attrs[r];n[this.attr]=this.value;let o=e.type.create(n,e.content,e.marks);return ue.ok(o)}getMap(){return qe.empty}invert(e){return new Dr(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 Dr(n.attr,n.value)}}Re.jsonID("docAttr",Dr);let ko=class extends Error{};ko=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},ko.prototype=Object.create(Error.prototype),ko.prototype.constructor=ko,ko.prototype.name="TransformError";class Tf{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Cr}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new ko(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}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,o=M.empty){let r=ds(this.doc,e,n,o);return r&&this.step(r),this}replaceWith(e,n,o){return this.replace(e,n,new M(N.from(o),0,0))}delete(e,n){return this.replace(e,n,M.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,o){return Gw(this,e,n,o),this}replaceRangeWith(e,n,o){return Qw(this,e,n,o),this}deleteRange(e,n){return Zw(this,e,n),this}lift(e,n){return jw(this,e,n),this}join(e,n=1){return _w(this,e,n),this}wrap(e,n){return Lw(this,e,n),this}setBlockType(e,n=e,o,r=null){return zw(this,e,n,o,r),this}setNodeMarkup(e,n,o=null,r){return Vw(this,e,n,o,r),this}setNodeAttribute(e,n,o){return this.step(new xo(e,n,o)),this}setDocAttribute(e,n){return this.step(new Dr(e,n)),this}addNodeMark(e,n){return this.step(new Gt(e,n)),this}removeNodeMark(e,n){if(!(n instanceof q)){let o=this.doc.nodeAt(e);if(!o)throw new RangeError("No node at position "+e);if(n=n.isInSet(o.marks),!n)return this}return this.step(new bo(e,n)),this}split(e,n=1,o){return Uw(this,e,n,o),this}addMark(e,n,o){return Ow(this,e,n,o),this}removeMark(e,n,o){return Mw(this,e,n,o),this}clearIncompatible(e,n,o){return Ef(this,e,n,o),this}}const Ul=Object.create(null);class J{constructor(e,n,o){this.$anchor=e,this.$head=n,this.ranges=o||[new Xw(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=M.empty){let o=n.content.lastChild,r=null;for(let a=0;a<n.openEnd;a++)r=o,o=o.lastChild;let i=e.steps.length,s=this.ranges;for(let a=0;a<s.length;a++){let{$from:l,$to:c}=s[a],u=e.mapping.slice(i);e.replaceRange(u.map(l.pos),u.map(c.pos),a?M.empty:n),a==0&&If(e,i,(o?o.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,n){let o=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:s,$to:a}=r[i],l=e.mapping.slice(o),c=l.map(s.pos),u=l.map(a.pos);i?e.deleteRange(c,u):(e.replaceRangeWith(c,u,n),If(e,o,n.isInline?-1:1))}}static findFrom(e,n,o=!1){let r=e.parent.inlineContent?new V(e):$o(e.node(0),e.parent,e.pos,e.index(),n,o);if(r)return r;for(let i=e.depth-1;i>=0;i--){let s=n<0?$o(e.node(0),e.node(i),e.before(i+1),e.index(i),n,o):$o(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,n,o);if(s)return s}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new ft(e.node(0))}static atStart(e){return $o(e,e,0,0,1)||new ft(e)}static atEnd(e){return $o(e,e,e.content.size,e.childCount,-1)||new ft(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let o=Ul[n.type];if(!o)throw new RangeError(`No selection type ${n.type} defined`);return o.fromJSON(e,n)}static jsonID(e,n){if(e in Ul)throw new RangeError("Duplicate use of selection JSON ID "+e);return Ul[e]=n,n.prototype.jsonID=e,n}getBookmark(){return V.between(this.$anchor,this.$head).getBookmark()}}J.prototype.visible=!0;class Xw{constructor(e,n){this.$from=e,this.$to=n}}let jf=!1;function Pf(t){!jf&&!t.parent.inlineContent&&(jf=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class V extends J{constructor(e,n=e){Pf(e),Pf(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let o=e.resolve(n.map(this.head));if(!o.parent.inlineContent)return J.near(o);let r=e.resolve(n.map(this.anchor));return new V(r.parent.inlineContent?r:o,o)}replace(e,n=M.empty){if(super.replace(e,n),n==M.empty){let o=this.$from.marksAcross(this.$to);o&&e.ensureMarks(o)}}eq(e){return e instanceof V&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new ms(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 V(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,o=n){let r=e.resolve(n);return new this(r,o==n?r:e.resolve(o))}static between(e,n,o){let r=e.pos-n.pos;if((!o||r)&&(o=r>=0?1:-1),!n.parent.inlineContent){let i=J.findFrom(n,o,!0)||J.findFrom(n,-o,!0);if(i)n=i.$head;else return J.near(n,o)}return e.parent.inlineContent||(r==0?e=n:(e=(J.findFrom(e,-o,!0)||J.findFrom(e,o,!0)).$anchor,e.pos<n.pos!=r<0&&(e=n))),new V(e,n)}}J.jsonID("text",V);class ms{constructor(e,n){this.anchor=e,this.head=n}map(e){return new ms(e.map(this.anchor),e.map(this.head))}resolve(e){return V.between(e.resolve(this.anchor),e.resolve(this.head))}}class L extends J{constructor(e){let n=e.nodeAfter,o=e.node(0).resolve(e.pos+n.nodeSize);super(e,o),this.node=n}map(e,n){let{deleted:o,pos:r}=n.mapResult(this.anchor),i=e.resolve(r);return o?J.near(i):new L(i)}content(){return new M(N.from(this.node),0,0)}eq(e){return e instanceof L&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new _l(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new L(e.resolve(n.anchor))}static create(e,n){return new L(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}L.prototype.visible=!1,J.jsonID("node",L);class _l{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:o}=e.mapResult(this.anchor);return n?new ms(o,o):new _l(o)}resolve(e){let n=e.resolve(this.anchor),o=n.nodeAfter;return o&&L.isSelectable(o)?new L(n):J.near(n)}}class ft extends J{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=M.empty){if(n==M.empty){e.delete(0,e.doc.content.size);let o=J.atStart(e.doc);o.eq(e.selection)||e.setSelection(o)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new ft(e)}map(e){return new ft(e)}eq(e){return e instanceof ft}getBookmark(){return eb}}J.jsonID("all",ft);const eb={map(){return this},resolve(t){return new ft(t)}};function $o(t,e,n,o,r,i=!1){if(e.inlineContent)return V.create(t,n);for(let s=o-(r>0?0:1);r>0?s<e.childCount:s>=0;s+=r){let a=e.child(s);if(a.isAtom){if(!i&&L.isSelectable(a))return L.create(t,n-(r<0?a.nodeSize:0))}else{let l=$o(t,a,n+r,r<0?a.childCount:0,r,i);if(l)return l}n+=a.nodeSize*r}return null}function If(t,e,n){let o=t.steps.length-1;if(o<e)return;let r=t.steps[o];if(!(r instanceof he||r instanceof ge))return;let i=t.mapping.maps[o],s;i.forEach((a,l,c,u)=>{s==null&&(s=u)}),t.setSelection(J.near(t.doc.resolve(s),n))}const Lf=1,fs=2,zf=4;class tb extends Tf{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|Lf)&~fs,this.storedMarks=null,this}get selectionSet(){return(this.updated&Lf)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=fs,this}ensureMarks(e){return q.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&fs)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~fs,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let o=this.selection;return n&&(e=e.mark(this.storedMarks||(o.empty?o.$from.marks():o.$from.marksAcross(o.$to)||q.none))),o.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,o){let r=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(o==null&&(o=n),o=o??n,!e)return this.deleteRange(n,o);let i=this.storedMarks;if(!i){let s=this.doc.resolve(n);i=o==n?s.marks():s.marksAcross(this.doc.resolve(o))}return this.replaceRangeWith(n,o,r.text(e,i)),this.selection.empty||this.setSelection(J.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|=zf,this}get scrolledIntoView(){return(this.updated&zf)>0}}function Ff(t,e){return!e||!t?t:t.bind(e)}class Ar{constructor(e,n,o){this.name=e,this.init=Ff(n.init,o),this.apply=Ff(n.apply,o)}}const nb=[new Ar("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Ar("selection",{init(t,e){return t.selection||J.atStart(e.doc)},apply(t){return t.selection}}),new Ar("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,o){return o.selection.$cursor?t.storedMarks:null}}),new Ar("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class Jl{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=nb.slice(),n&&n.forEach(o=>{if(this.pluginsByKey[o.key])throw new RangeError("Adding different instances of a keyed plugin ("+o.key+")");this.plugins.push(o),this.pluginsByKey[o.key]=o,o.spec.state&&this.fields.push(new Ar(o.key,o.spec.state,o))})}}class Co{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 o=0;o<this.config.plugins.length;o++)if(o!=n){let r=this.config.plugins[o];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],o=this.applyInner(e),r=null;for(;;){let i=!1;for(let s=0;s<this.config.plugins.length;s++){let a=this.config.plugins[s];if(a.spec.appendTransaction){let l=r?r[s].n:0,c=r?r[s].state:this,u=l<n.length&&a.spec.appendTransaction.call(a,l?n.slice(l):n,c,o);if(u&&o.filterTransaction(u,s)){if(u.setMeta("appendedTransaction",e),!r){r=[];for(let m=0;m<this.config.plugins.length;m++)r.push(m<s?{state:o,n:n.length}:{state:this,n:0})}n.push(u),o=o.applyInner(u),i=!0}r&&(r[s]={state:o,n:n.length})}}if(!i)return{state:o,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new Co(this.config),o=this.config.fields;for(let r=0;r<o.length;r++){let i=o[r];n[i.name]=i.apply(e,this[i.name],this,n)}return n}get tr(){return new tb(this)}static create(e){let n=new Jl(e.doc?e.doc.type.schema:e.schema,e.plugins),o=new Co(n);for(let r=0;r<n.fields.length;r++)o[n.fields[r].name]=n.fields[r].init(e,o);return o}reconfigure(e){let n=new Jl(this.schema,e.plugins),o=n.fields,r=new Co(n);for(let i=0;i<o.length;i++){let s=o[i].name;r[s]=this.hasOwnProperty(s)?this[s]:o[i].init(e,r)}return r}toJSON(e){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(o=>o.toJSON())),e&&typeof e=="object")for(let o in e){if(o=="doc"||o=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[o],i=r.spec.state;i&&i.toJSON&&(n[o]=i.toJSON.call(r,this[r.key]))}return n}static fromJSON(e,n,o){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let r=new Jl(e.schema,e.plugins),i=new Co(r);return r.fields.forEach(s=>{if(s.name=="doc")i.doc=Ln.fromJSON(e.schema,n.doc);else if(s.name=="selection")i.selection=J.fromJSON(i.doc,n.selection);else if(s.name=="storedMarks")n.storedMarks&&(i.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(o)for(let a in o){let l=o[a],c=l.spec.state;if(l.key==s.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,a)){i[s.name]=c.fromJSON.call(l,e,n[a],i);return}}i[s.name]=s.init(e,i)}}),i}}function Hf(t,e,n){for(let o in t){let r=t[o];r instanceof Function?r=r.bind(e):o=="handleDOMEvents"&&(r=Hf(r,e,{})),n[o]=r}return n}class Ve{constructor(e){this.spec=e,this.props={},e.props&&Hf(e.props,this,this.props),this.key=e.key?e.key.key:Bf("plugin")}getState(e){return e[this.key]}}const Yl=Object.create(null);function Bf(t){return t in Yl?t+"$"+ ++Yl[t]:(Yl[t]=0,t+"$")}class pt{constructor(e="key"){this.key=Bf(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const ke=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Rr=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let Kl=null;const Pt=function(t,e,n){let o=Kl||(Kl=document.createRange());return o.setEnd(t,n??t.nodeValue.length),o.setStart(t,e||0),o},ob=function(){Kl=null},Hn=function(t,e,n,o){return n&&(Vf(t,e,n,o,-1)||Vf(t,e,n,o,1))},rb=/^(img|br|input|textarea|hr)$/i;function Vf(t,e,n,o,r){for(;;){if(t==n&&e==o)return!0;if(e==(r<0?0:et(t))){let i=t.parentNode;if(!i||i.nodeType!=1||Or(t)||rb.test(t.nodeName)||t.contentEditable=="false")return!1;e=ke(t)+(r<0?0:1),t=i}else if(t.nodeType==1){if(t=t.childNodes[e+(r<0?-1:0)],t.contentEditable=="false")return!1;e=r<0?et(t):0}else return!1}}function et(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function ib(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=et(t)}else if(t.parentNode&&!Or(t))e=ke(t),t=t.parentNode;else return null}}function sb(t,e){for(;;){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&&!Or(t))e=ke(t)+1,t=t.parentNode;else return null}}function ab(t,e,n){for(let o=e==0,r=e==et(t);o||r;){if(t==n)return!0;let i=ke(t);if(t=t.parentNode,!t)return!1;o=o&&i==0,r=r&&i==et(t)}}function Or(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 ps=function(t){return t.focusNode&&Hn(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function Bn(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function lb(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function cb(t,e,n){if(t.caretPositionFromPoint)try{let o=t.caretPositionFromPoint(e,n);if(o)return{node:o.offsetNode,offset:Math.min(et(o.offsetNode),o.offset)}}catch{}if(t.caretRangeFromPoint){let o=t.caretRangeFromPoint(e,n);if(o)return{node:o.startContainer,offset:Math.min(et(o.startContainer),o.startOffset)}}}const St=typeof navigator<"u"?navigator:null,Uf=typeof document<"u"?document:null,Zt=St&&St.userAgent||"",Wl=/Edge\/(\d+)/.exec(Zt),_f=/MSIE \d/.exec(Zt),ql=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Zt),Ue=!!(_f||ql||Wl),Xt=_f?document.documentMode:ql?+ql[1]:Wl?+Wl[1]:0,ht=!Ue&&/gecko\/(\d+)/i.test(Zt);ht&&+(/Firefox\/(\d+)/.exec(Zt)||[0,0])[1];const Gl=!Ue&&/Chrome\/(\d+)/.exec(Zt),Oe=!!Gl,Jf=Gl?+Gl[1]:0,Le=!Ue&&!!St&&/Apple Computer/.test(St.vendor),Eo=Le&&(/Mobile\/\w+/.test(Zt)||!!St&&St.maxTouchPoints>2),tt=Eo||(St?/Mac/.test(St.platform):!1),ub=St?/Win/.test(St.platform):!1,gt=/Android \d/.test(Zt),Mr=!!Uf&&"webkitFontSmoothing"in Uf.documentElement.style,db=Mr?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function mb(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 It(t,e){return typeof t=="number"?t:t[e]}function fb(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,o=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*o}}function Yf(t,e,n){let o=t.someProp("scrollThreshold")||0,r=t.someProp("scrollMargin")||5,i=t.dom.ownerDocument;for(let s=n||t.dom;s;s=Rr(s)){if(s.nodeType!=1)continue;let a=s,l=a==i.body,c=l?mb(i):fb(a),u=0,m=0;if(e.top<c.top+It(o,"top")?m=-(c.top-e.top+It(r,"top")):e.bottom>c.bottom-It(o,"bottom")&&(m=e.bottom-e.top>c.bottom-c.top?e.top+It(r,"top")-c.top:e.bottom-c.bottom+It(r,"bottom")),e.left<c.left+It(o,"left")?u=-(c.left-e.left+It(r,"left")):e.right>c.right-It(o,"right")&&(u=e.right-c.right+It(r,"right")),u||m)if(l)i.defaultView.scrollBy(u,m);else{let d=a.scrollLeft,p=a.scrollTop;m&&(a.scrollTop+=m),u&&(a.scrollLeft+=u);let f=a.scrollLeft-d,y=a.scrollTop-p;e={left:e.left-f,top:e.top-y,right:e.right-f,bottom:e.bottom-y}}if(l||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function pb(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),o,r;for(let i=(e.left+e.right)/2,s=n+1;s<Math.min(innerHeight,e.bottom);s+=5){let a=t.root.elementFromPoint(i,s);if(!a||a==t.dom||!t.dom.contains(a))continue;let l=a.getBoundingClientRect();if(l.top>=n-20){o=a,r=l.top;break}}return{refDOM:o,refTop:r,stack:Kf(t.dom)}}function Kf(t){let e=[],n=t.ownerDocument;for(let o=t;o&&(e.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),t!=n);o=Rr(o));return e}function hb({refDOM:t,refTop:e,stack:n}){let o=t?t.getBoundingClientRect().top:0;Wf(n,o==0?0:o-e)}function Wf(t,e){for(let n=0;n<t.length;n++){let{dom:o,top:r,left:i}=t[n];o.scrollTop!=r+e&&(o.scrollTop=r+e),o.scrollLeft!=i&&(o.scrollLeft=i)}}let No=null;function gb(t){if(t.setActive)return t.setActive();if(No)return t.focus(No);let e=Kf(t);t.focus(No==null?{get preventScroll(){return No={preventScroll:!0},!0}}:void 0),No||(No=!1,Wf(e,0))}function qf(t,e){let n,o=2e8,r,i=0,s=e.top,a=e.top,l,c;for(let u=t.firstChild,m=0;u;u=u.nextSibling,m++){let d;if(u.nodeType==1)d=u.getClientRects();else if(u.nodeType==3)d=Pt(u).getClientRects();else continue;for(let p=0;p<d.length;p++){let f=d[p];if(f.top<=s&&f.bottom>=a){s=Math.max(f.bottom,s),a=Math.min(f.top,a);let y=f.left>e.left?f.left-e.left:f.right<e.left?e.left-f.right:0;if(y<o){n=u,o=y,r=y&&n.nodeType==3?{left:f.right<e.left?f.right:f.left,top:e.top}:e,u.nodeType==1&&y&&(i=m+(e.left>=(f.left+f.right)/2?1:0));continue}}else f.top>e.top&&!l&&f.left<=e.left&&f.right>=e.left&&(l=u,c={left:Math.max(f.left,Math.min(f.right,e.left)),top:f.top});!n&&(e.left>=f.right&&e.top>=f.top||e.left>=f.left&&e.top>=f.bottom)&&(i=m+1)}}return!n&&l&&(n=l,r=c,o=0),n&&n.nodeType==3?yb(n,r):!n||o&&n.nodeType==1?{node:t,offset:i}:qf(n,r)}function yb(t,e){let n=t.nodeValue.length,o=document.createRange();for(let r=0;r<n;r++){o.setEnd(t,r+1),o.setStart(t,r);let i=en(o,1);if(i.top!=i.bottom&&Ql(e,i))return{node:t,offset:r+(e.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function Ql(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function wb(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function bb(t,e,n){let{node:o,offset:r}=qf(e,n),i=-1;if(o.nodeType==1&&!o.firstChild){let s=o.getBoundingClientRect();i=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return t.docView.posFromDOM(o,r,i)}function vb(t,e,n,o){let r=-1;for(let i=e,s=!1;i!=t.dom;){let a=t.docView.nearestDesc(i,!0);if(!a)return null;if(a.dom.nodeType==1&&(a.node.isBlock&&a.parent||!a.contentDOM)){let l=a.dom.getBoundingClientRect();if(a.node.isBlock&&a.parent&&(!s&&l.left>o.left||l.top>o.top?r=a.posBefore:(!s&&l.right<o.left||l.bottom<o.top)&&(r=a.posAfter),s=!0),!a.contentDOM&&r<0&&!a.node.isText)return(a.node.isBlock?o.top<(l.top+l.bottom)/2:o.left<(l.left+l.right)/2)?a.posBefore:a.posAfter}i=a.dom.parentNode}return r>-1?r:t.docView.posFromDOM(e,n,-1)}function Gf(t,e,n){let o=t.childNodes.length;if(o&&n.top<n.bottom)for(let r=Math.max(0,Math.min(o-1,Math.floor(o*(e.top-n.top)/(n.bottom-n.top))-2)),i=r;;){let s=t.childNodes[i];if(s.nodeType==1){let a=s.getClientRects();for(let l=0;l<a.length;l++){let c=a[l];if(Ql(e,c))return Gf(s,e,c)}}if((i=(i+1)%o)==r)break}return t}function Sb(t,e){let n=t.dom.ownerDocument,o,r=0,i=cb(n,e.left,e.top);i&&({node:o,offset:r}=i);let s=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),a;if(!s||!t.dom.contains(s.nodeType!=1?s.parentNode:s)){let c=t.dom.getBoundingClientRect();if(!Ql(e,c)||(s=Gf(t.dom,e,c),!s))return null}if(Le)for(let c=s;o&&c;c=Rr(c))c.draggable&&(o=void 0);if(s=wb(s,e),o){if(ht&&o.nodeType==1&&(r=Math.min(r,o.childNodes.length),r<o.childNodes.length)){let u=o.childNodes[r],m;u.nodeName=="IMG"&&(m=u.getBoundingClientRect()).right<=e.left&&m.bottom>e.top&&r++}let c;Mr&&r&&o.nodeType==1&&(c=o.childNodes[r-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=e.top&&r--,o==t.dom&&r==o.childNodes.length-1&&o.lastChild.nodeType==1&&e.top>o.lastChild.getBoundingClientRect().bottom?a=t.state.doc.content.size:(r==0||o.nodeType!=1||o.childNodes[r-1].nodeName!="BR")&&(a=vb(t,o,r,e))}a==null&&(a=bb(t,s,e));let l=t.docView.nearestDesc(s,!0);return{pos:a,inside:l?l.posAtStart-l.border:-1}}function Qf(t){return t.top<t.bottom||t.left<t.right}function en(t,e){let n=t.getClientRects();if(n.length){let o=n[e<0?0:n.length-1];if(Qf(o))return o}return Array.prototype.find.call(n,Qf)||t.getBoundingClientRect()}const xb=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Zf(t,e,n){let{node:o,offset:r,atom:i}=t.docView.domFromPos(e,n<0?-1:1),s=Mr||ht;if(o.nodeType==3)if(s&&(xb.test(o.nodeValue)||(n<0?!r:r==o.nodeValue.length))){let l=en(Pt(o,r,r),n);if(ht&&r&&/\s/.test(o.nodeValue[r-1])&&r<o.nodeValue.length){let c=en(Pt(o,r-1,r-1),-1);if(c.top==l.top){let u=en(Pt(o,r,r+1),-1);if(u.top!=l.top)return Tr(u,u.left<c.left)}}return l}else{let l=r,c=r,u=n<0?1:-1;return n<0&&!r?(c++,u=-1):n>=0&&r==o.nodeValue.length?(l--,u=1):n<0?l--:c++,Tr(en(Pt(o,l,c),u),u<0)}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&r&&(n<0||r==et(o))){let l=o.childNodes[r-1];if(l.nodeType==1)return Zl(l.getBoundingClientRect(),!1)}if(i==null&&r<et(o)){let l=o.childNodes[r];if(l.nodeType==1)return Zl(l.getBoundingClientRect(),!0)}return Zl(o.getBoundingClientRect(),n>=0)}if(i==null&&r&&(n<0||r==et(o))){let l=o.childNodes[r-1],c=l.nodeType==3?Pt(l,et(l)-(s?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(c)return Tr(en(c,1),!1)}if(i==null&&r<et(o)){let l=o.childNodes[r];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let c=l?l.nodeType==3?Pt(l,0,s?0:1):l.nodeType==1?l:null:null;if(c)return Tr(en(c,-1),!0)}return Tr(en(o.nodeType==3?Pt(o):o,-n),n>=0)}function Tr(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 Zl(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 Xf(t,e,n){let o=t.state,r=t.root.activeElement;o!=e&&t.updateState(e),r!=t.dom&&t.focus();try{return n()}finally{o!=e&&t.updateState(o),r!=t.dom&&r&&r.focus()}}function kb(t,e,n){let o=e.selection,r=n=="up"?o.$from:o.$to;return Xf(t,e,()=>{let{node:i}=t.docView.domFromPos(r.pos,n=="up"?-1:1);for(;;){let a=t.docView.nearestDesc(i,!0);if(!a)break;if(a.node.isBlock){i=a.contentDOM||a.dom;break}i=a.dom.parentNode}let s=Zf(t,r.pos,1);for(let a=i.firstChild;a;a=a.nextSibling){let l;if(a.nodeType==1)l=a.getClientRects();else if(a.nodeType==3)l=Pt(a,0,a.nodeValue.length).getClientRects();else continue;for(let c=0;c<l.length;c++){let u=l[c];if(u.bottom>u.top+1&&(n=="up"?s.top-u.top>(u.bottom-s.top)*2:u.bottom-s.bottom>(s.bottom-u.top)*2))return!1}}return!0})}const $b=/[\u0590-\u08ac]/;function Cb(t,e,n){let{$head:o}=e.selection;if(!o.parent.isTextblock)return!1;let r=o.parentOffset,i=!r,s=r==o.parent.content.size,a=t.domSelection();return a?!$b.test(o.parent.textContent)||!a.modify?n=="left"||n=="backward"?i:s:Xf(t,e,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,anchorOffset:m}=t.domSelectionRange(),d=a.caretBidiLevel;a.modify("move",n,"character");let p=o.depth?t.docView.domAfterPos(o.before()):t.dom,{focusNode:f,focusOffset:y}=t.domSelectionRange(),h=f&&!p.contains(f.nodeType==1?f:f.parentNode)||l==f&&c==y;try{a.collapse(u,m),l&&(l!=u||c!=m)&&a.extend&&a.extend(l,c)}catch{}return d!=null&&(a.caretBidiLevel=d),h}):o.pos==o.start()||o.pos==o.end()}let ep=null,tp=null,np=!1;function Eb(t,e,n){return ep==e&&tp==n?np:(ep=e,tp=n,np=n=="up"||n=="down"?kb(t,e,n):Cb(t,e,n))}const nt=0,op=1,Vn=2,xt=3;class jr{constructor(e,n,o,r){this.parent=e,this.children=n,this.dom=o,this.contentDOM=r,this.dirty=nt,o.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,o){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,o=this.posAtStart;;n++){let r=this.children[n];if(r==e)return o;o+=r.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,o){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(o<0){let i,s;if(e==this.contentDOM)i=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(s)+s.size:this.posAtStart}else{let i,s;if(e==this.contentDOM)i=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(s):this.posAtEnd}let r;if(e==this.dom&&this.contentDOM)r=n>ke(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let i=e;;i=i.parentNode){if(i==this.dom){r=!1;break}if(i.previousSibling)break}if(r==null&&n==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){r=!0;break}if(i.nextSibling)break}}return r??o>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let o=!0,r=e;r;r=r.parentNode){let i=this.getDesc(r),s;if(i&&(!n||i.node))if(o&&(s=i.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))o=!1;else return i}}getDesc(e){let n=e.pmViewDesc;for(let o=n;o;o=o.parent)if(o==this)return n}posFromDOM(e,n,o){for(let r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,n,o)}return-1}descAt(e){for(let n=0,o=0;n<this.children.length;n++){let r=this.children[n],i=o+r.size;if(o==e&&i!=o){for(;!r.border&&r.children.length;)r=r.children[0];return r}if(e<i)return r.descAt(e-o-r.border);o=i}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let o=0,r=0;for(let i=0;o<this.children.length;o++){let s=this.children[o],a=i+s.size;if(a>e||s instanceof sp){r=e-i;break}i=a}if(r)return this.children[o].domFromPos(r-this.children[o].border,n);for(let i;o&&!(i=this.children[o-1]).size&&i instanceof rp&&i.side>=0;o--);if(n<=0){let i,s=!0;for(;i=o?this.children[o-1]:null,!(!i||i.dom.parentNode==this.contentDOM);o--,s=!1);return i&&n&&s&&!i.border&&!i.domAtom?i.domFromPos(i.size,n):{node:this.contentDOM,offset:i?ke(i.dom)+1:0}}else{let i,s=!0;for(;i=o<this.children.length?this.children[o]:null,!(!i||i.dom.parentNode==this.contentDOM);o++,s=!1);return i&&s&&!i.border&&!i.domAtom?i.domFromPos(0,n):{node:this.contentDOM,offset:i?ke(i.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,o=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,i=-1;for(let s=o,a=0;;a++){let l=this.children[a],c=s+l.size;if(r==-1&&e<=c){let u=s+l.border;if(e>=u&&n<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,u);e=s;for(let m=a;m>0;m--){let d=this.children[m-1];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(1)){r=ke(d.dom)+1;break}e-=d.size}r==-1&&(r=0)}if(r>-1&&(c>n||a==this.children.length-1)){n=c;for(let u=a+1;u<this.children.length;u++){let m=this.children[u];if(m.size&&m.dom.parentNode==this.contentDOM&&!m.emptyChildAt(-1)){i=ke(m.dom);break}n+=m.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=c}return{node:this.contentDOM,from:e,to:n,fromOffset:r,toOffset:i}}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:o}=this.domFromPos(e,0);if(n.nodeType!=1||o==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[o]}setSelection(e,n,o,r=!1){let i=Math.min(e,n),s=Math.max(e,n);for(let d=0,p=0;d<this.children.length;d++){let f=this.children[d],y=p+f.size;if(i>p&&s<y)return f.setSelection(e-p-f.border,n-p-f.border,o,r);p=y}let a=this.domFromPos(e,e?-1:1),l=n==e?a:this.domFromPos(n,n?-1:1),c=o.getSelection(),u=!1;if((ht||Le)&&e==n){let{node:d,offset:p}=a;if(d.nodeType==3){if(u=!!(p&&d.nodeValue[p-1]==`
|
|
25
|
+
`),u&&p==d.nodeValue.length)for(let f=d,y;f;f=f.parentNode){if(y=f.nextSibling){y.nodeName=="BR"&&(a=l={node:y.parentNode,offset:ke(y)+1});break}let h=f.pmViewDesc;if(h&&h.node&&h.node.isBlock)break}}else{let f=d.childNodes[p-1];u=f&&(f.nodeName=="BR"||f.contentEditable=="false")}}if(ht&&c.focusNode&&c.focusNode!=l.node&&c.focusNode.nodeType==1){let d=c.focusNode.childNodes[c.focusOffset];d&&d.contentEditable=="false"&&(r=!0)}if(!(r||u&&Le)&&Hn(a.node,a.offset,c.anchorNode,c.anchorOffset)&&Hn(l.node,l.offset,c.focusNode,c.focusOffset))return;let m=!1;if((c.extend||e==n)&&!u){c.collapse(a.node,a.offset);try{e!=n&&c.extend(l.node,l.offset),m=!0}catch{}}if(!m){if(e>n){let p=a;a=l,l=p}let d=document.createRange();d.setEnd(l.node,l.offset),d.setStart(a.node,a.offset),c.removeAllRanges(),c.addRange(d)}}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 o=0,r=0;r<this.children.length;r++){let i=this.children[r],s=o+i.size;if(o==s?e<=s&&n>=o:e<s&&n>o){let a=o+i.border,l=s-i.border;if(e>=a&&n<=l){this.dirty=e==o||n==s?Vn:op,e==a&&n==l&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=xt:i.markDirty(e-a,n-a);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Vn:xt}o=s}this.dirty=Vn}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let o=e==1?Vn:op;n.dirty<o&&(n.dirty=o)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText(e){return!1}}class rp extends jr{constructor(e,n,o,r){let i,s=n.type.toDOM;if(typeof s=="function"&&(s=s(o,()=>{if(!i)return r;if(i.parent)return i.parent.posBeforeChild(i)})),!n.type.spec.raw){if(s.nodeType!=1){let a=document.createElement("span");a.appendChild(s),s=a}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=n,this.widget=n,i=this}matchesWidget(e){return this.dirty==nt&&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 side(){return this.widget.type.side}}class Nb extends jr{constructor(e,n,o,r){super(e,[],n,null),this.textDOM=o,this.text=r}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 Un extends jr{constructor(e,n,o,r){super(e,[],o,r),this.mark=n}static create(e,n,o,r){let i=r.nodeViews[n.type.name],s=i&&i(n,r,o);return(!s||!s.dom)&&(s=Fn.renderSpec(document,n.type.spec.toDOM(n,o),null,n.attrs)),new Un(e,n,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&xt||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=xt&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=nt){let o=this.parent;for(;!o.node;)o=o.parent;o.dirty<this.dirty&&(o.dirty=this.dirty),this.dirty=nt}}slice(e,n,o){let r=Un.create(this.parent,this.mark,!0,o),i=this.children,s=this.size;n<s&&(i=ec(i,n,s,o)),e>0&&(i=ec(i,0,e,o));for(let a=0;a<i.length;a++)i[a].parent=r;return r.children=i,r}}class tn extends jr{constructor(e,n,o,r,i,s,a,l,c){super(e,[],i,s),this.node=n,this.outerDeco=o,this.innerDeco=r,this.nodeDOM=a}static create(e,n,o,r,i,s){let a=i.nodeViews[n.type.name],l,c=a&&a(n,i,()=>{if(!l)return s;if(l.parent)return l.parent.posBeforeChild(l)},o,r),u=c&&c.dom,m=c&&c.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:m}=Fn.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!m&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let d=u;return u=cp(u,o,n),c?l=new Db(e,n,o,r,u,m||null,d,c,i,s+1):n.isText?new hs(e,n,o,r,u,d,i):new tn(e,n,o,r,u,m||null,d,i,s+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 o=this.children[n];if(this.dom.contains(o.dom.parentNode)){e.contentElement=o.dom.parentNode;break}}e.contentElement||(e.getContent=()=>N.empty)}return e}matchesNode(e,n,o){return this.dirty==nt&&e.eq(this.node)&&gs(n,this.outerDeco)&&o.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let o=this.node.inlineContent,r=n,i=e.composing?this.localCompositionInfo(e,n):null,s=i&&i.pos>-1?i:null,a=i&&i.pos<0,l=new Rb(this,s&&s.node,e);Tb(this.node,this.innerDeco,(c,u,m)=>{c.spec.marks?l.syncToMarks(c.spec.marks,o,e):c.type.side>=0&&!m&&l.syncToMarks(u==this.node.childCount?q.none:this.node.child(u).marks,o,e),l.placeWidget(c,e,r)},(c,u,m,d)=>{l.syncToMarks(c.marks,o,e);let p;l.findNodeMatch(c,u,m,d)||a&&e.state.selection.from>r&&e.state.selection.to<r+c.nodeSize&&(p=l.findIndexWithChild(i.node))>-1&&l.updateNodeAt(c,u,m,p,e)||l.updateNextNode(c,u,m,e,d,r)||l.addNode(c,u,m,e,r),r+=c.nodeSize}),l.syncToMarks([],o,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==Vn)&&(s&&this.protectLocalComposition(e,s),ap(this.contentDOM,this.children,e),Eo&&jb(this.dom))}localCompositionInfo(e,n){let{from:o,to:r}=e.state.selection;if(!(e.state.selection instanceof V)||o<n||r>n+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let s=i.nodeValue,a=Pb(this.node.content,s,o-n,r-n);return a<0?null:{node:i,pos:a,text:s}}else return{node:i,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:o,text:r}){if(this.getDesc(n))return;let i=n;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let s=new Nb(this,i,n,r);e.input.compositionNodes.push(s),this.children=ec(this.children,o,o+r.length,e,s)}update(e,n,o,r){return this.dirty==xt||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,o,r),!0)}updateInner(e,n,o,r){this.updateOuterDeco(n),this.node=e,this.innerDeco=o,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=nt}updateOuterDeco(e){if(gs(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,o=this.dom;this.dom=lp(this.dom,this.nodeDOM,Xl(this.outerDeco,this.node,n),Xl(e,this.node,n)),this.dom!=o&&(o.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.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function ip(t,e,n,o,r){cp(o,e,t);let i=new tn(void 0,t,e,n,o,o,o,r,0);return i.contentDOM&&i.updateChildren(r,0),i}class hs extends tn{constructor(e,n,o,r,i,s,a){super(e,n,o,r,i,null,s,a,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,o,r){return this.dirty==xt||this.dirty!=nt&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=nt||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=nt,!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,o){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,o)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,o){let r=this.node.cut(e,n),i=document.createTextNode(r.text);return new hs(this.parent,r,this.outerDeco,this.innerDeco,i,i,o)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=xt)}get domAtom(){return!1}isText(e){return this.node.text==e}}class sp extends jr{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==nt&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class Db extends tn{constructor(e,n,o,r,i,s,a,l,c,u){super(e,n,o,r,i,s,a,c,u),this.spec=l}update(e,n,o,r){if(this.dirty==xt)return!1;if(this.spec.update){let i=this.spec.update(e,n,o);return i&&this.updateInner(e,n,o,r),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,o,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,o,r){this.spec.setSelection?this.spec.setSelection(e,n,o):super.setSelection(e,n,o,r)}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 ap(t,e,n){let o=t.firstChild,r=!1;for(let i=0;i<e.length;i++){let s=e[i],a=s.dom;if(a.parentNode==t){for(;a!=o;)o=up(o),r=!0;o=o.nextSibling}else r=!0,t.insertBefore(a,o);if(s instanceof Un){let l=o?o.previousSibling:t.lastChild;ap(s.contentDOM,s.children,n),o=l?l.nextSibling:t.firstChild}}for(;o;)o=up(o),r=!0;r&&n.trackWrites==t&&(n.trackWrites=null)}const Pr=function(t){t&&(this.nodeName=t)};Pr.prototype=Object.create(null);const _n=[new Pr];function Xl(t,e,n){if(t.length==0)return _n;let o=n?_n[0]:new Pr,r=[o];for(let i=0;i<t.length;i++){let s=t[i].type.attrs;if(s){s.nodeName&&r.push(o=new Pr(s.nodeName));for(let a in s){let l=s[a];l!=null&&(n&&r.length==1&&r.push(o=new Pr(e.isInline?"span":"div")),a=="class"?o.class=(o.class?o.class+" ":"")+l:a=="style"?o.style=(o.style?o.style+";":"")+l:a!="nodeName"&&(o[a]=l))}}}return r}function lp(t,e,n,o){if(n==_n&&o==_n)return e;let r=e;for(let i=0;i<o.length;i++){let s=o[i],a=n[i];if(i){let l;a&&a.nodeName==s.nodeName&&r!=t&&(l=r.parentNode)&&l.nodeName.toLowerCase()==s.nodeName||(l=document.createElement(s.nodeName),l.pmIsDeco=!0,l.appendChild(r),a=_n[0]),r=l}Ab(r,a||_n[0],s)}return r}function Ab(t,e,n){for(let o in e)o!="class"&&o!="style"&&o!="nodeName"&&!(o in n)&&t.removeAttribute(o);for(let o in n)o!="class"&&o!="style"&&o!="nodeName"&&n[o]!=e[o]&&t.setAttribute(o,n[o]);if(e.class!=n.class){let o=e.class?e.class.split(" ").filter(Boolean):[],r=n.class?n.class.split(" ").filter(Boolean):[];for(let i=0;i<o.length;i++)r.indexOf(o[i])==-1&&t.classList.remove(o[i]);for(let i=0;i<r.length;i++)o.indexOf(r[i])==-1&&t.classList.add(r[i]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let o=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=o.exec(e.style);)t.style.removeProperty(r[1])}n.style&&(t.style.cssText+=n.style)}}function cp(t,e,n){return lp(t,t,_n,Xl(e,n,t.nodeType!=1))}function gs(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 up(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class Rb{constructor(e,n,o){this.lock=n,this.view=o,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=Ob(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let o=e;o<n;o++)this.top.children[o].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,o){let r=0,i=this.stack.length>>1,s=Math.min(i,e.length);for(;r<s&&(r==i-1?this.top:this.stack[r+1<<1]).matchesMark(e[r])&&e[r].type.spec.spanning!==!1;)r++;for(;r<i;)this.destroyRest(),this.top.dirty=nt,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<e.length;){this.stack.push(this.top,this.index+1);let a=-1;for(let l=this.index;l<Math.min(this.index+3,this.top.children.length);l++){let c=this.top.children[l];if(c.matchesMark(e[i])&&!this.isLocked(c.dom)){a=l;break}}if(a>-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let l=Un.create(this.top,e[i],n,o);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,i++}}findNodeMatch(e,n,o,r){let i=-1,s;if(r>=this.preMatch.index&&(s=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&s.matchesNode(e,n,o))i=this.top.children.indexOf(s,this.index);else for(let a=this.index,l=Math.min(this.top.children.length,a+5);a<l;a++){let c=this.top.children[a];if(c.matchesNode(e,n,o)&&!this.preMatch.matched.has(c)){i=a;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,n,o,r,i){let s=this.top.children[r];return s.dirty==xt&&s.dom==s.contentDOM&&(s.dirty=Vn),s.update(e,n,o,i)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(e){for(;;){let n=e.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let o=e.pmViewDesc;if(o){for(let r=this.index;r<this.top.children.length;r++)if(this.top.children[r]==o)return r}return-1}e=n}}updateNextNode(e,n,o,r,i,s){for(let a=this.index;a<this.top.children.length;a++){let l=this.top.children[a];if(l instanceof tn){let c=this.preMatch.matched.get(l);if(c!=null&&c!=i)return!1;let u=l.dom,m,d=this.isLocked(u)&&!(e.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==e.text&&l.dirty!=xt&&gs(n,l.outerDeco));if(!d&&l.update(e,n,o,r))return this.destroyBetween(this.index,a),l.dom!=u&&(this.changed=!0),this.index++,!0;if(!d&&(m=this.recreateWrapper(l,e,n,o,r,s)))return this.destroyBetween(this.index,a),this.top.children[this.index]=m,m.contentDOM&&(m.dirty=Vn,m.updateChildren(r,s+1),m.dirty=nt),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,o,r,i,s){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content)||!gs(o,e.outerDeco)||!r.eq(e.innerDeco))return null;let a=tn.create(this.top,n,o,r,i,s);if(a.contentDOM){a.children=e.children,e.children=[];for(let l of a.children)l.parent=a}return e.destroy(),a}addNode(e,n,o,r,i){let s=tn.create(this.top,e,n,o,r,i);s.contentDOM&&s.updateChildren(r,i+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(e,n,o){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(r&&r.matchesWidget(e)&&(e==r.widget||!r.widget.type.toDOM.parentNode))this.index++;else{let i=new rp(this.top,e,n,o);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof Un;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof hs)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Le||Oe)&&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 o=document.createElement(e);e=="IMG"&&(o.className="ProseMirror-separator",o.alt=""),e=="BR"&&(o.className="ProseMirror-trailingBreak");let r=new sp(this.top,[],o,null);n!=this.top?n.children.push(r):n.children.splice(this.index++,0,r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function Ob(t,e){let n=e,o=n.children.length,r=t.childCount,i=new Map,s=[];e:for(;r>0;){let a;for(;;)if(o){let c=n.children[o-1];if(c instanceof Un)n=c,o=c.children.length;else{a=c,o--;break}}else{if(n==e)break e;o=n.parent.children.indexOf(n),n=n.parent}let l=a.node;if(l){if(l!=t.child(r-1))break;--r,i.set(a,r),s.push(a)}}return{index:r,matched:i,matches:s.reverse()}}function Mb(t,e){return t.type.side-e.type.side}function Tb(t,e,n,o){let r=e.locals(t),i=0;if(r.length==0){for(let c=0;c<t.childCount;c++){let u=t.child(c);o(u,r,e.forChild(i,u),c),i+=u.nodeSize}return}let s=0,a=[],l=null;for(let c=0;;){let u,m;for(;s<r.length&&r[s].to==i;){let h=r[s++];h.widget&&(u?(m||(m=[u])).push(h):u=h)}if(u)if(m){m.sort(Mb);for(let h=0;h<m.length;h++)n(m[h],c,!!l)}else n(u,c,!!l);let d,p;if(l)p=-1,d=l,l=null;else if(c<t.childCount)p=c,d=t.child(c++);else break;for(let h=0;h<a.length;h++)a[h].to<=i&&a.splice(h--,1);for(;s<r.length&&r[s].from<=i&&r[s].to>i;)a.push(r[s++]);let f=i+d.nodeSize;if(d.isText){let h=f;s<r.length&&r[s].from<h&&(h=r[s].from);for(let g=0;g<a.length;g++)a[g].to<h&&(h=a[g].to);h<f&&(l=d.cut(h-i),d=d.cut(0,h-i),f=h,p=-1)}else for(;s<r.length&&r[s].to<f;)s++;let y=d.isInline&&!d.isLeaf?a.filter(h=>!h.inline):a.slice();o(d,y,e.forChild(i,d),p),i=f}}function jb(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 Pb(t,e,n,o){for(let r=0,i=0;r<t.childCount&&i<=o;){let s=t.child(r++),a=i;if(i+=s.nodeSize,!s.isText)continue;let l=s.text;for(;r<t.childCount;){let c=t.child(r++);if(i+=c.nodeSize,!c.isText)break;l+=c.text}if(i>=n){if(i>=o&&l.slice(o-e.length-a,o-a)==e)return o-e.length;let c=a<o?l.lastIndexOf(e,o-a-1):-1;if(c>=0&&c+e.length+a>=n)return a+c;if(n==o&&l.length>=o+e.length-a&&l.slice(o-a,o-a+e.length)==e)return o}}return-1}function ec(t,e,n,o,r){let i=[];for(let s=0,a=0;s<t.length;s++){let l=t[s],c=a,u=a+=l.size;c>=n||u<=e?i.push(l):(c<e&&i.push(l.slice(0,e-c,o)),r&&(i.push(r),r=void 0),u>n&&i.push(l.slice(n-c,l.size,o)))}return i}function tc(t,e=null){let n=t.domSelectionRange(),o=t.state.doc;if(!n.focusNode)return null;let r=t.docView.nearestDesc(n.focusNode),i=r&&r.size==0,s=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let a=o.resolve(s),l,c;if(ps(n)){for(l=s;r&&!r.node;)r=r.parent;let m=r.node;if(r&&m.isAtom&&L.isSelectable(m)&&r.parent&&!(m.isInline&&ab(n.focusNode,n.focusOffset,r.dom))){let d=r.posBefore;c=new L(s==d?a:o.resolve(d))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let m=s,d=s;for(let p=0;p<n.rangeCount;p++){let f=n.getRangeAt(p);m=Math.min(m,t.docView.posFromDOM(f.startContainer,f.startOffset,1)),d=Math.max(d,t.docView.posFromDOM(f.endContainer,f.endOffset,-1))}if(m<0)return null;[l,s]=d==t.state.selection.anchor?[d,m]:[m,d],a=o.resolve(s)}else l=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}let u=o.resolve(l);if(!c){let m=e=="pointer"||t.state.selection.head<a.pos&&!i?1:-1;c=oc(t,u,a,m)}return c}function dp(t){return t.editable?t.hasFocus():wp(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Lt(t,e=!1){let n=t.state.selection;if(hp(t,n),!!dp(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&Oe){let o=t.domSelectionRange(),r=t.domObserver.currentSelection;if(o.anchorNode&&r.anchorNode&&Hn(o.anchorNode,o.anchorOffset,r.anchorNode,r.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)Lb(t);else{let{anchor:o,head:r}=n,i,s;mp&&!(n instanceof V)&&(n.$from.parent.inlineContent||(i=fp(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=fp(t,n.to))),t.docView.setSelection(o,r,t.root,e),mp&&(i&&pp(i),s&&pp(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&Ib(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const mp=Le||Oe&&Jf<63;function fp(t,e){let{node:n,offset:o}=t.docView.domFromPos(e,0),r=o<n.childNodes.length?n.childNodes[o]:null,i=o?n.childNodes[o-1]:null;if(Le&&r&&r.contentEditable=="false")return nc(r);if((!r||r.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(r)return nc(r);if(i)return nc(i)}}function nc(t){return t.contentEditable="true",Le&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function pp(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function Ib(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),o=n.anchorNode,r=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(n.anchorNode!=o||n.anchorOffset!=r)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!dp(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function Lb(t){let e=t.domSelection(),n=document.createRange();if(!e)return;let o=t.cursorWrapper.dom,r=o.nodeName=="IMG";r?n.setStart(o.parentNode,ke(o)+1):n.setStart(o,0),n.collapse(!0),e.removeAllRanges(),e.addRange(n),!r&&!t.state.selection.visible&&Ue&&Xt<=11&&(o.disabled=!0,o.disabled=!1)}function hp(t,e){if(e instanceof L){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(gp(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else gp(t)}function gp(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function oc(t,e,n,o){return t.someProp("createSelectionBetween",r=>r(t,e,n))||V.between(e,n,o)}function yp(t){return t.editable&&!t.hasFocus()?!1:wp(t)}function wp(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 zb(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return Hn(e.node,e.offset,n.anchorNode,n.anchorOffset)}function rc(t,e){let{$anchor:n,$head:o}=t.selection,r=e>0?n.max(o):n.min(o),i=r.parent.inlineContent?r.depth?t.doc.resolve(e>0?r.after():r.before()):null:r;return i&&J.findFrom(i,e)}function nn(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function bp(t,e,n){let o=t.state.selection;if(o instanceof V)if(n.indexOf("s")>-1){let{$head:r}=o,i=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let s=t.state.doc.resolve(r.pos+i.nodeSize*(e<0?-1:1));return nn(t,new V(o.$anchor,s))}else if(o.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let r=rc(t.state,e);return r&&r instanceof L?nn(t,r):!1}else if(!(tt&&n.indexOf("m")>-1)){let r=o.$head,i=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter,s;if(!i||i.isText)return!1;let a=e<0?r.pos-i.nodeSize:r.pos;return i.isAtom||(s=t.docView.descAt(a))&&!s.contentDOM?L.isSelectable(i)?nn(t,new L(e<0?t.state.doc.resolve(r.pos-i.nodeSize):r)):Mr?nn(t,new V(t.state.doc.resolve(e<0?a:a+i.nodeSize))):!1:!1}}else return!1;else{if(o instanceof L&&o.node.isInline)return nn(t,new V(e>0?o.$to:o.$from));{let r=rc(t.state,e);return r?nn(t,r):!1}}}function ys(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Ir(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function Do(t,e){return e<0?Fb(t):Hb(t)}function Fb(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let r,i,s=!1;for(ht&&n.nodeType==1&&o<ys(n)&&Ir(n.childNodes[o],-1)&&(s=!0);;)if(o>0){if(n.nodeType!=1)break;{let a=n.childNodes[o-1];if(Ir(a,-1))r=n,i=--o;else if(a.nodeType==3)n=a,o=n.nodeValue.length;else break}}else{if(vp(n))break;{let a=n.previousSibling;for(;a&&Ir(a,-1);)r=n.parentNode,i=ke(a),a=a.previousSibling;if(a)n=a,o=ys(n);else{if(n=n.parentNode,n==t.dom)break;o=0}}}s?ic(t,n,o):r&&ic(t,r,i)}function Hb(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let r=ys(n),i,s;for(;;)if(o<r){if(n.nodeType!=1)break;let a=n.childNodes[o];if(Ir(a,1))i=n,s=++o;else break}else{if(vp(n))break;{let a=n.nextSibling;for(;a&&Ir(a,1);)i=a.parentNode,s=ke(a)+1,a=a.nextSibling;if(a)n=a,o=0,r=ys(n);else{if(n=n.parentNode,n==t.dom)break;o=r=0}}}i&&ic(t,i,s)}function vp(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function Bb(t,e){for(;t&&e==t.childNodes.length&&!Or(t);)e=ke(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 Vb(t,e){for(;t&&!e&&!Or(t);)e=ke(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 ic(t,e,n){if(e.nodeType!=3){let i,s;(s=Bb(e,n))?(e=s,n=0):(i=Vb(e,n))&&(e=i,n=i.nodeValue.length)}let o=t.domSelection();if(!o)return;if(ps(o)){let i=document.createRange();i.setEnd(e,n),i.setStart(e,n),o.removeAllRanges(),o.addRange(i)}else o.extend&&o.extend(e,n);t.domObserver.setCurSelection();let{state:r}=t;setTimeout(()=>{t.state==r&&Lt(t)},50)}function Sp(t,e){let n=t.state.doc.resolve(e);if(!(Oe||ub)&&n.parent.inlineContent){let r=t.coordsAtPos(e);if(e>n.start()){let i=t.coordsAtPos(e-1),s=(i.top+i.bottom)/2;if(s>r.top&&s<r.bottom&&Math.abs(i.left-r.left)>1)return i.left<r.left?"ltr":"rtl"}if(e<n.end()){let i=t.coordsAtPos(e+1),s=(i.top+i.bottom)/2;if(s>r.top&&s<r.bottom&&Math.abs(i.left-r.left)>1)return i.left>r.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function xp(t,e,n){let o=t.state.selection;if(o instanceof V&&!o.empty||n.indexOf("s")>-1||tt&&n.indexOf("m")>-1)return!1;let{$from:r,$to:i}=o;if(!r.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=rc(t.state,e);if(s&&s instanceof L)return nn(t,s)}if(!r.parent.inlineContent){let s=e<0?r:i,a=o instanceof ft?J.near(s,e):J.findFrom(s,e);return a?nn(t,a):!1}return!1}function kp(t,e){if(!(t.state.selection instanceof V))return!0;let{$head:n,$anchor:o,empty:r}=t.state.selection;if(!n.sameParent(o))return!0;if(!r)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let s=t.state.tr;return e<0?s.delete(n.pos-i.nodeSize,n.pos):s.delete(n.pos,n.pos+i.nodeSize),t.dispatch(s),!0}return!1}function $p(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function Ub(t){if(!Le||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 o=e.firstChild;$p(t,o,"true"),setTimeout(()=>$p(t,o,"false"),20)}return!1}function _b(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function Jb(t,e){let n=e.keyCode,o=_b(e);if(n==8||tt&&n==72&&o=="c")return kp(t,-1)||Do(t,-1);if(n==46&&!e.shiftKey||tt&&n==68&&o=="c")return kp(t,1)||Do(t,1);if(n==13||n==27)return!0;if(n==37||tt&&n==66&&o=="c"){let r=n==37?Sp(t,t.state.selection.from)=="ltr"?-1:1:-1;return bp(t,r,o)||Do(t,r)}else if(n==39||tt&&n==70&&o=="c"){let r=n==39?Sp(t,t.state.selection.from)=="ltr"?1:-1:1;return bp(t,r,o)||Do(t,r)}else{if(n==38||tt&&n==80&&o=="c")return xp(t,-1,o)||Do(t,-1);if(n==40||tt&&n==78&&o=="c")return Ub(t)||xp(t,1,o)||Do(t,1);if(o==(tt?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Cp(t,e){t.someProp("transformCopied",p=>{e=p(e,t)});let n=[],{content:o,openStart:r,openEnd:i}=e;for(;r>1&&i>1&&o.childCount==1&&o.firstChild.childCount==1;){r--,i--;let p=o.firstChild;n.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),o=p.content}let s=t.someProp("clipboardSerializer")||Fn.fromSchema(t.state.schema),a=Tp(),l=a.createElement("div");l.appendChild(s.serializeFragment(o,{document:a}));let c=l.firstChild,u,m=0;for(;c&&c.nodeType==1&&(u=Op[c.nodeName.toLowerCase()]);){for(let p=u.length-1;p>=0;p--){let f=a.createElement(u[p]);for(;l.firstChild;)f.appendChild(l.firstChild);l.appendChild(f),m++}c=l.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${r} ${i}${m?` -${m}`:""} ${JSON.stringify(n)}`);let d=t.someProp("clipboardTextSerializer",p=>p(e,t))||e.content.textBetween(0,e.content.size,`
|
|
26
26
|
|
|
27
27
|
`);return{dom:l,text:d,slice:e}}function Ep(t,e,n,o,r){let i=r.parent.type.spec.code,s,a;if(!n&&!e)return null;let l=e&&(o||i||!n);if(l){if(t.someProp("transformPastedText",d=>{e=d(e,i||o,t)}),i)return e?new M(N.from(t.state.schema.text(e.replace(/\r\n?/g,`
|
|
28
|
-
`))),0,0):M.empty;let m=t.someProp("clipboardTextParser",d=>d(e,r,o,t));if(m)a=m;else{let d=r.marks(),{schema:p}=t.state,f=Fn.fromSchema(p);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(y=>{let h=s.appendChild(document.createElement("p"));y&&h.appendChild(f.serializeNode(p.text(y,d)))})}}else t.someProp("transformPastedHTML",m=>{n=m(n,t)}),s=WS(n),Mr&&qS(s);let c=s&&s.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let m=+u[3];m>0;m--){let d=s.firstChild;for(;d&&d.nodeType!=1;)d=d.nextSibling;if(!d)break;s=d}if(a||(a=(t.someProp("clipboardParser")||t.someProp("domParser")||Wt.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(l||u),context:r,ruleFromNode(d){return d.nodeName=="BR"&&!d.nextSibling&&d.parentNode&&!JS.test(d.parentNode.nodeName)?{ignore:!0}:null}})),u)a=GS(Op(a,+u[1],+u[2]),u[4]);else if(a=M.maxOpen(YS(a.content,r),!0),a.openStart||a.openEnd){let m=0,d=0;for(let p=a.content.firstChild;m<a.openStart&&!p.type.spec.isolating;m++,p=p.firstChild);for(let p=a.content.lastChild;d<a.openEnd&&!p.type.spec.isolating;d++,p=p.lastChild);a=Op(a,m,d)}return t.someProp("transformPasted",m=>{a=m(a,t)}),a}const JS=/^(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 YS(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.index(n)),i,s=[];if(t.forEach(a=>{if(!s)return;let l=r.findWrapping(a.type),c;if(!l)return s=null;if(c=s.length&&i.length&&Ap(l,i,a,s[s.length-1],0))s[s.length-1]=c;else{s.length&&(s[s.length-1]=Rp(s[s.length-1],i.length));let u=Np(a,l);s.push(u),r=r.matchType(u.type),i=l}}),s)return N.from(s)}return t}function Np(t,e,n=0){for(let o=e.length-1;o>=n;o--)t=e[o].create(null,N.from(t));return t}function Ap(t,e,n,o,r){if(r<t.length&&r<e.length&&t[r]==e[r]){let i=Ap(t,e,n,o.lastChild,r+1);if(i)return o.copy(o.content.replaceChild(o.childCount-1,i));if(o.contentMatchAt(o.childCount).matchType(r==t.length-1?n.type:t[r+1]))return o.copy(o.content.append(N.from(Np(n,t,r+1))))}}function Rp(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,Rp(t.lastChild,e-1)),o=t.contentMatchAt(t.childCount).fillBefore(N.empty,!0);return t.copy(n.append(o))}function rc(t,e,n,o,r,i){let s=e<0?t.firstChild:t.lastChild,a=s.content;return t.childCount>1&&(i=0),r<o-1&&(a=rc(a,e,n,o,r+1,i)),r>=n&&(a=e<0?s.contentMatchAt(0).fillBefore(a,i<=r).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(N.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(a))}function Op(t,e,n){return e<t.openStart&&(t=new M(rc(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new M(rc(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const Dp={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 Mp=null;function Tp(){return Mp||(Mp=document.implementation.createHTMLDocument("title"))}function KS(t){let e=window.trustedTypes;return e?e.createPolicy("detachedDocument",{createHTML:n=>n}).createHTML(t):t}function WS(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=Tp().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(t),r;if((r=o&&Dp[o[1].toLowerCase()])&&(t=r.map(i=>"<"+i+">").join("")+t+r.map(i=>"</"+i+">").reverse().join("")),n.innerHTML=KS(t),r)for(let i=0;i<r.length;i++)n=n.querySelector(r[i])||n;return n}function qS(t){let e=t.querySelectorAll(De?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let o=e[n];o.childNodes.length==1&&o.textContent==" "&&o.parentNode&&o.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),o)}}function GS(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,o;try{o=JSON.parse(e)}catch{return t}let{content:r,openStart:i,openEnd:s}=t;for(let a=o.length-2;a>=0;a-=2){let l=n.nodes[o[a]];if(!l||l.hasRequiredAttrs())break;r=N.from(l.create(o[a+1],r)),i++,s++}return new M(r,i,s)}const ze={},Fe={},QS={touchstart:!0,touchmove:!0};class ZS{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function XS(t){for(let e in ze){let n=ze[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=o=>{tb(t,o)&&!sc(t,o)&&(t.editable||!(o.type in Fe))&&n(t,o)},QS[e]?{passive:!0}:void 0)}Le&&t.dom.addEventListener("input",()=>null),ic(t)}function on(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function eb(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 ic(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=o=>sc(t,o))})}function sc(t,e){return t.someProp("handleDOMEvents",n=>{let o=n[e.type];return o?o(t,e)||e.defaultPrevented:!1})}function tb(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 nb(t,e){!sc(t,e)&&ze[e.type]&&(t.editable||!(e.type in Fe))&&ze[e.type](t,e)}Fe.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!Pp(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(gt&&De&&n.keyCode==13)))if(t.domObserver.selectionChanged(t.domSelectionRange())?t.domObserver.flush():n.keyCode!=229&&t.domObserver.forceFlush(),Eo&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let o=Date.now();t.input.lastIOSEnter=o,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==o&&(t.someProp("handleKeyDown",r=>r(t,Bn(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",o=>o(t,n))||_S(t,n)?n.preventDefault():on(t,"key")},Fe.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},Fe.keypress=(t,e)=>{let n=e;if(Pp(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||et&&n.metaKey)return;if(t.someProp("handleKeyPress",r=>r(t,n))){n.preventDefault();return}let o=t.state.selection;if(!(o instanceof V)||!o.$from.sameParent(o.$to)){let r=String.fromCharCode(n.charCode);!/[\r\n]/.test(r)&&!t.someProp("handleTextInput",i=>i(t,o.$from.pos,o.$to.pos,r))&&t.dispatch(t.state.tr.insertText(r).scrollIntoView()),n.preventDefault()}};function ws(t){return{left:t.clientX,top:t.clientY}}function ob(t,e){let n=e.x-t.clientX,o=e.y-t.clientY;return n*n+o*o<100}function ac(t,e,n,o,r){if(o==-1)return!1;let i=t.state.doc.resolve(o);for(let s=i.depth+1;s>0;s--)if(t.someProp(e,a=>s>i.depth?a(t,n,i.nodeAfter,i.before(s),r,!0):a(t,n,i.node(s),i.before(s),r,!1)))return!0;return!1}function Ro(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let o=t.state.tr.setSelection(e);n=="pointer"&&o.setMeta("pointer",!0),t.dispatch(o)}function rb(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),o=n.nodeAfter;return o&&o.isAtom&&L.isSelectable(o)?(Ro(t,new L(n),"pointer"),!0):!1}function ib(t,e){if(e==-1)return!1;let n=t.state.selection,o,r;n instanceof L&&(o=n.node);let i=t.state.doc.resolve(e);for(let s=i.depth+1;s>0;s--){let a=s>i.depth?i.nodeAfter:i.node(s);if(L.isSelectable(a)){o&&n.$from.depth>0&&s>=n.$from.depth&&i.before(n.$from.depth+1)==n.$from.pos?r=i.before(n.$from.depth):r=i.before(s);break}}return r!=null?(Ro(t,L.create(t.state.doc,r),"pointer"),!0):!1}function sb(t,e,n,o,r){return ac(t,"handleClickOn",e,n,o)||t.someProp("handleClick",i=>i(t,e,o))||(r?ib(t,n):rb(t,n))}function ab(t,e,n,o){return ac(t,"handleDoubleClickOn",e,n,o)||t.someProp("handleDoubleClick",r=>r(t,e,o))}function lb(t,e,n,o){return ac(t,"handleTripleClickOn",e,n,o)||t.someProp("handleTripleClick",r=>r(t,e,o))||cb(t,n,o)}function cb(t,e,n){if(n.button!=0)return!1;let o=t.state.doc;if(e==-1)return o.inlineContent?(Ro(t,V.create(o,0,o.content.size),"pointer"),!0):!1;let r=o.resolve(e);for(let i=r.depth+1;i>0;i--){let s=i>r.depth?r.nodeAfter:r.node(i),a=r.before(i);if(s.inlineContent)Ro(t,V.create(o,a+1,a+1+s.content.size),"pointer");else if(L.isSelectable(s))Ro(t,L.create(o,a),"pointer");else continue;return!0}}function lc(t){return Ss(t)}const jp=et?"metaKey":"ctrlKey";ze.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let o=lc(t),r=Date.now(),i="singleClick";r-t.input.lastClick.time<500&&ob(n,t.input.lastClick)&&!n[jp]&&(t.input.lastClick.type=="singleClick"?i="doubleClick":t.input.lastClick.type=="doubleClick"&&(i="tripleClick")),t.input.lastClick={time:r,x:n.clientX,y:n.clientY,type:i};let s=t.posAtCoords(ws(n));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new ub(t,s,n,!!o)):(i=="doubleClick"?ab:lb)(t,s.pos,s.inside,n)?n.preventDefault():on(t,"pointer"))};class ub{constructor(e,n,o,r){this.view=e,this.pos=n,this.event=o,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!o[jp],this.allowDefault=o.shiftKey;let i,s;if(n.inside>-1)i=e.state.doc.nodeAt(n.inside),s=n.inside;else{let u=e.state.doc.resolve(n.pos);i=u.parent,s=u.depth?u.before():0}const a=r?null:o.target,l=a?e.docView.nearestDesc(a,!0):null;this.target=l&&l.dom.nodeType==1?l.dom:null;let{selection:c}=e.state;(o.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||c instanceof L&&c.from<=s&&c.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&ht&&!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)),on(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(()=>Lt(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(ws(e))),this.updateAllowDefault(e),this.allowDefault||!n?on(this.view,"pointer"):sb(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Le&&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)?(Ro(this.view,J.near(this.view.state.doc.resolve(n.pos)),"pointer"),e.preventDefault()):on(this.view,"pointer")}move(e){this.updateAllowDefault(e),on(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)}}ze.touchstart=t=>{t.input.lastTouch=Date.now(),lc(t),on(t,"pointer")},ze.touchmove=t=>{t.input.lastTouch=Date.now(),on(t,"pointer")},ze.contextmenu=t=>lc(t);function Pp(t,e){return t.composing?!0:Le&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const db=gt?5e3:-1;Fe.compositionstart=Fe.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof V&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(o=>o.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),Ss(t,!0),t.markCursor=null;else if(Ss(t,!e.selection.empty),ht&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let o=t.domSelectionRange();for(let r=o.focusNode,i=o.focusOffset;r&&r.nodeType==1&&i!=0;){let s=i<0?r.lastChild:r.childNodes[i-1];if(!s)break;if(s.nodeType==3){let a=t.domSelection();a&&a.collapse(s,s.nodeValue.length);break}else r=s,i=-1}}t.input.composing=!0}Ip(t,db)},Fe.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.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,Ip(t,20))};function Ip(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>Ss(t),e))}function Lp(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=fb());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function mb(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=rS(e.focusNode,e.focusOffset),o=iS(e.focusNode,e.focusOffset);if(n&&o&&n!=o){let r=o.pmViewDesc,i=t.domObserver.lastChangedTextNode;if(n==i||o==i)return i;if(!r||!r.isText(o.nodeValue))return o;if(t.input.compositionNode==o){let s=n.pmViewDesc;if(!(!s||!s.isText(n.nodeValue)))return o}}return n||o}function fb(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function Ss(t,e=!1){if(!(gt&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),Lp(t),e||t.docView&&t.docView.dirty){let n=Xl(t);return n&&!n.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!t.state.selection.empty?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function pb(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 o=getSelection(),r=document.createRange();r.selectNodeContents(e),t.dom.blur(),o.removeAllRanges(),o.addRange(r),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const Lr=Ue&&Xt<15||Eo&&uS<604;ze.copy=Fe.cut=(t,e)=>{let n=e,o=t.state.selection,r=n.type=="cut";if(o.empty)return;let i=Lr?null:n.clipboardData,s=o.content(),{dom:a,text:l}=Cp(t,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",l)):pb(t,a),r&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function hb(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function gb(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,o=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(o.contentEditable="true"),o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus();let r=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),o.parentNode&&o.parentNode.removeChild(o),n?zr(t,o.value,null,r,e):zr(t,o.textContent,o.innerHTML,r,e)},50)}function zr(t,e,n,o,r){let i=Ep(t,e,n,o,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,r,i||M.empty)))return!0;if(!i)return!1;let s=hb(i),a=s?t.state.tr.replaceSelectionWith(s,o):t.state.tr.replaceSelection(i);return t.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function zp(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," "):""}Fe.paste=(t,e)=>{let n=e;if(t.composing&&!gt)return;let o=Lr?null:n.clipboardData,r=t.input.shiftKey&&t.input.lastKeyCode!=45;o&&zr(t,zp(o),o.getData("text/html"),r,n)?n.preventDefault():gb(t,n)};class Fp{constructor(e,n,o){this.slice=e,this.move=n,this.node=o}}const Hp=et?"altKey":"ctrlKey";ze.dragstart=(t,e)=>{let n=e,o=t.input.mouseDown;if(o&&o.done(),!n.dataTransfer)return;let r=t.state.selection,i=r.empty?null:t.posAtCoords(ws(n)),s;if(!(i&&i.pos>=r.from&&i.pos<=(r instanceof L?r.to-1:r.to))){if(o&&o.mightDrag)s=L.create(t.state.doc,o.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let m=t.docView.nearestDesc(n.target,!0);m&&m.node.type.spec.draggable&&m!=t.docView&&(s=L.create(t.state.doc,m.posBefore))}}let a=(s||t.state.selection).content(),{dom:l,text:c,slice:u}=Cp(t,a);(!n.dataTransfer.files.length||!De||Jf>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Lr?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",Lr||n.dataTransfer.setData("text/plain",c),t.dragging=new Fp(u,!n[Hp],s)},ze.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},Fe.dragover=Fe.dragenter=(t,e)=>e.preventDefault(),Fe.drop=(t,e)=>{let n=e,o=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let r=t.posAtCoords(ws(n));if(!r)return;let i=t.state.doc.resolve(r.pos),s=o&&o.slice;s?t.someProp("transformPasted",f=>{s=f(s,t)}):s=Ep(t,zp(n.dataTransfer),Lr?null:n.dataTransfer.getData("text/html"),!1,i);let a=!!(o&&!n[Hp]);if(t.someProp("handleDrop",f=>f(t,n,s||M.empty,a))){n.preventDefault();return}if(!s)return;n.preventDefault();let l=s?Jw(t.state.doc,i.pos,s):i.pos;l==null&&(l=i.pos);let c=t.state.tr;if(a){let{node:f}=o;f?f.replace(c):c.deleteSelection()}let u=c.mapping.map(l),m=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,d=c.doc;if(m?c.replaceRangeWith(u,u,s.content.firstChild):c.replaceRange(u,u,s),c.doc.eq(d))return;let p=c.doc.resolve(u);if(m&&L.isSelectable(s.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(s.content.firstChild))c.setSelection(new L(p));else{let f=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach((y,h,g,S)=>f=S),c.setSelection(tc(t,p,c.doc.resolve(f)))}t.focus(),t.dispatch(c.setMeta("uiEvent","drop"))},ze.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())&&Lt(t)},20))},ze.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)},ze.beforeinput=(t,e)=>{if(De&>&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:o}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=o||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",i=>i(t,Bn(8,"Backspace")))))return;let{$cursor:r}=t.state.selection;r&&r.pos>0&&t.dispatch(t.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let t in Fe)ze[t]=Fe[t];function Fr(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 bs{constructor(e,n){this.toDOM=e,this.spec=n||Jn,this.side=this.spec.side||0}map(e,n,o,r){let{pos:i,deleted:s}=e.mapResult(n.from+r,this.side<0?-1:1);return s?null:new nt(i-o,i-o,this)}valid(){return!0}eq(e){return this==e||e instanceof bs&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Fr(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class rn{constructor(e,n){this.attrs=e,this.spec=n||Jn}map(e,n,o,r){let i=e.map(n.from+r,this.spec.inclusiveStart?-1:1)-o,s=e.map(n.to+r,this.spec.inclusiveEnd?1:-1)-o;return i>=s?null:new nt(i,s,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof rn&&Fr(this.attrs,e.attrs)&&Fr(this.spec,e.spec)}static is(e){return e.type instanceof rn}destroy(){}}class cc{constructor(e,n){this.attrs=e,this.spec=n||Jn}map(e,n,o,r){let i=e.mapResult(n.from+r,1);if(i.deleted)return null;let s=e.mapResult(n.to+r,-1);return s.deleted||s.pos<=i.pos?null:new nt(i.pos-o,s.pos-o,this)}valid(e,n){let{index:o,offset:r}=e.content.findIndex(n.from),i;return r==n.from&&!(i=e.child(o)).isText&&r+i.nodeSize==n.to}eq(e){return this==e||e instanceof cc&&Fr(this.attrs,e.attrs)&&Fr(this.spec,e.spec)}destroy(){}}class nt{constructor(e,n,o){this.from=e,this.to=n,this.type=o}copy(e,n){return new nt(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,o){return this.type.map(e,this,n,o)}static widget(e,n,o){return new nt(e,e,new bs(n,o))}static inline(e,n,o,r){return new nt(e,n,new rn(o,r))}static node(e,n,o,r){return new nt(e,n,new cc(o,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof rn}get widget(){return this.type instanceof bs}}const Oo=[],Jn={};class me{constructor(e,n){this.local=e.length?e:Oo,this.children=n.length?n:Oo}static create(e,n){return n.length?vs(n,e,0,Jn):Me}find(e,n,o){let r=[];return this.findInner(e??0,n??1e9,r,0,o),r}findInner(e,n,o,r,i){for(let s=0;s<this.local.length;s++){let a=this.local[s];a.from<=n&&a.to>=e&&(!i||i(a.spec))&&o.push(a.copy(a.from+r,a.to+r))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<n&&this.children[s+1]>e){let a=this.children[s]+1;this.children[s+2].findInner(e-a,n-a,o,r+a,i)}}map(e,n,o){return this==Me||e.maps.length==0?this:this.mapInner(e,n,0,0,o||Jn)}mapInner(e,n,o,r,i){let s;for(let a=0;a<this.local.length;a++){let l=this.local[a].map(e,o,r);l&&l.type.valid(n,l)?(s||(s=[])).push(l):i.onRemove&&i.onRemove(this.local[a].spec)}return this.children.length?yb(this.children,s||[],e,n,o,r,i):s?new me(s.sort(Yn),Oo):Me}add(e,n){return n.length?this==Me?me.create(e,n):this.addInner(e,n,0):this}addInner(e,n,o){let r,i=0;e.forEach((a,l)=>{let c=l+o,u;if(u=Vp(n,a,c)){for(r||(r=this.children.slice());i<r.length&&r[i]<l;)i+=3;r[i]==l?r[i+2]=r[i+2].addInner(a,u,c+1):r.splice(i,0,l,l+a.nodeSize,vs(u,a,c+1,Jn)),i+=3}});let s=Bp(i?Up(n):n,-o);for(let a=0;a<s.length;a++)s[a].type.valid(e,s[a])||s.splice(a--,1);return new me(s.length?this.local.concat(s).sort(Yn):this.local,r||this.children)}remove(e){return e.length==0||this==Me?this:this.removeInner(e,0)}removeInner(e,n){let o=this.children,r=this.local;for(let i=0;i<o.length;i+=3){let s,a=o[i]+n,l=o[i+1]+n;for(let u=0,m;u<e.length;u++)(m=e[u])&&m.from>a&&m.to<l&&(e[u]=null,(s||(s=[])).push(m));if(!s)continue;o==this.children&&(o=this.children.slice());let c=o[i+2].removeInner(s,a+1);c!=Me?o[i+2]=c:(o.splice(i,3),i-=3)}if(r.length){for(let i=0,s;i<e.length;i++)if(s=e[i])for(let a=0;a<r.length;a++)r[a].eq(s,n)&&(r==this.local&&(r=this.local.slice()),r.splice(a--,1))}return o==this.children&&r==this.local?this:r.length||o.length?new me(r,o):Me}forChild(e,n){if(this==Me)return this;if(n.isLeaf)return me.empty;let o,r;for(let a=0;a<this.children.length;a+=3)if(this.children[a]>=e){this.children[a]==e&&(o=this.children[a+2]);break}let i=e+1,s=i+n.content.size;for(let a=0;a<this.local.length;a++){let l=this.local[a];if(l.from<s&&l.to>i&&l.type instanceof rn){let c=Math.max(i,l.from)-i,u=Math.min(s,l.to)-i;c<u&&(r||(r=[])).push(l.copy(c,u))}}if(r){let a=new me(r.sort(Yn),Oo);return o?new sn([a,o]):a}return o||Me}eq(e){if(this==e)return!0;if(!(e instanceof me)||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 uc(this.localsInner(e))}localsInner(e){if(this==Me)return Oo;if(e.inlineContent||!this.local.some(rn.is))return this.local;let n=[];for(let o=0;o<this.local.length;o++)this.local[o].type instanceof rn||n.push(this.local[o]);return n}forEachSet(e){e(this)}}me.empty=new me([],[]),me.removeOverlap=uc;const Me=me.empty;class sn{constructor(e){this.members=e}map(e,n){const o=this.members.map(r=>r.map(e,n,Jn));return sn.from(o)}forChild(e,n){if(n.isLeaf)return me.empty;let o=[];for(let r=0;r<this.members.length;r++){let i=this.members[r].forChild(e,n);i!=Me&&(i instanceof sn?o=o.concat(i.members):o.push(i))}return sn.from(o)}eq(e){if(!(e instanceof sn)||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,o=!0;for(let r=0;r<this.members.length;r++){let i=this.members[r].localsInner(e);if(i.length)if(!n)n=i;else{o&&(n=n.slice(),o=!1);for(let s=0;s<i.length;s++)n.push(i[s])}}return n?uc(o?n:n.sort(Yn)):Oo}static from(e){switch(e.length){case 0:return Me;case 1:return e[0];default:return new sn(e.every(n=>n instanceof me)?e:e.reduce((n,o)=>n.concat(o instanceof me?o:o.members),[]))}}forEachSet(e){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(e)}}function yb(t,e,n,o,r,i,s){let a=t.slice();for(let c=0,u=i;c<n.maps.length;c++){let m=0;n.maps[c].forEach((d,p,f,y)=>{let h=y-f-(p-d);for(let g=0;g<a.length;g+=3){let S=a[g+1];if(S<0||d>S+u-m)continue;let b=a[g]+u-m;p>=b?a[g+1]=d<=b?-2:-1:d>=u&&h&&(a[g]+=h,a[g+1]+=h)}m+=h}),u=n.maps[c].map(u,-1)}let l=!1;for(let c=0;c<a.length;c+=3)if(a[c+1]<0){if(a[c+1]==-2){l=!0,a[c+1]=-1;continue}let u=n.map(t[c]+i),m=u-r;if(m<0||m>=o.content.size){l=!0;continue}let d=n.map(t[c+1]+i,-1),p=d-r,{index:f,offset:y}=o.content.findIndex(m),h=o.maybeChild(f);if(h&&y==m&&y+h.nodeSize==p){let g=a[c+2].mapInner(n,h,u+1,t[c]+i+1,s);g!=Me?(a[c]=m,a[c+1]=p,a[c+2]=g):(a[c+1]=-2,l=!0)}else l=!0}if(l){let c=wb(a,t,e,n,r,i,s),u=vs(c,o,0,s);e=u.local;for(let m=0;m<a.length;m+=3)a[m+1]<0&&(a.splice(m,3),m-=3);for(let m=0,d=0;m<u.children.length;m+=3){let p=u.children[m];for(;d<a.length&&a[d]<p;)d+=3;a.splice(d,0,u.children[m],u.children[m+1],u.children[m+2])}}return new me(e.sort(Yn),a)}function Bp(t,e){if(!e||!t.length)return t;let n=[];for(let o=0;o<t.length;o++){let r=t[o];n.push(new nt(r.from+e,r.to+e,r.type))}return n}function wb(t,e,n,o,r,i,s){function a(l,c){for(let u=0;u<l.local.length;u++){let m=l.local[u].map(o,r,c);m?n.push(m):s.onRemove&&s.onRemove(l.local[u].spec)}for(let u=0;u<l.children.length;u+=3)a(l.children[u+2],l.children[u]+c+1)}for(let l=0;l<t.length;l+=3)t[l+1]==-1&&a(t[l+2],e[l]+i+1);return n}function Vp(t,e,n){if(e.isLeaf)return null;let o=n+e.nodeSize,r=null;for(let i=0,s;i<t.length;i++)(s=t[i])&&s.from>n&&s.to<o&&((r||(r=[])).push(s),t[i]=null);return r}function Up(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function vs(t,e,n,o){let r=[],i=!1;e.forEach((a,l)=>{let c=Vp(t,a,l+n);if(c){i=!0;let u=vs(c,a,n+l+1,o);u!=Me&&r.push(l,l+a.nodeSize,u)}});let s=Bp(i?Up(t):t,-n).sort(Yn);for(let a=0;a<s.length;a++)s[a].type.valid(e,s[a])||(o.onRemove&&o.onRemove(s[a].spec),s.splice(a--,1));return s.length||r.length?new me(s,r):Me}function Yn(t,e){return t.from-e.from||t.to-e.to}function uc(t){let e=t;for(let n=0;n<e.length-1;n++){let o=e[n];if(o.from!=o.to)for(let r=n+1;r<e.length;r++){let i=e[r];if(i.from==o.from){i.to!=o.to&&(e==t&&(e=t.slice()),e[r]=i.copy(i.from,o.to),_p(e,r+1,i.copy(o.to,i.to)));continue}else{i.from<o.to&&(e==t&&(e=t.slice()),e[n]=o.copy(o.from,i.from),_p(e,r,o.copy(i.from,o.to)));break}}}return e}function _p(t,e,n){for(;e<t.length&&Yn(n,t[e])>0;)e++;t.splice(e,0,n)}function dc(t){let e=[];return t.someProp("decorations",n=>{let o=n(t.state);o&&o!=Me&&e.push(o)}),t.cursorWrapper&&e.push(me.create(t.state.doc,[t.cursorWrapper.deco])),sn.from(e)}const Sb={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},bb=Ue&&Xt<=11;class vb{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 xb{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new vb,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(o=>{for(let r=0;r<o.length;r++)this.queue.push(o[r]);Ue&&Xt<=11&&o.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),bb&&(this.onCharData=o=>{this.queue.push({target:o.target,type:"characterData",oldValue:o.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,Sb)),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(yp(this.view)){if(this.suppressingSelectionUpdates)return Lt(this.view);if(Ue&&Xt<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Hn(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,o;for(let i=e.focusNode;i;i=Or(i))n.add(i);for(let i=e.anchorNode;i;i=Or(i))if(n.has(i)){o=i;break}let r=o&&this.view.docView.nearestDesc(o);if(r&&r.ignoreMutation({type:"selection",target:o.nodeType==3?o.parentNode:o}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}selectionChanged(e){return!this.suppressingSelectionUpdates&&!this.currentSelection.eq(e)&&yp(this.view)&&!this.ignoreSelectionChange(e)}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let o=e.domSelectionRange(),r=this.selectionChanged(o),i=-1,s=-1,a=!1,l=[];if(e.editable)for(let u=0;u<n.length;u++){let m=this.registerMutation(n[u],l);m&&(i=i<0?m.from:Math.min(m.from,i),s=s<0?m.to:Math.max(m.to,s),m.typeOver&&(a=!0))}if(ht&&l.length){let u=l.filter(m=>m.nodeName=="BR");if(u.length==2){let[m,d]=u;m.parentNode&&m.parentNode.parentNode==d.parentNode?d.remove():m.remove()}else{let{focusNode:m}=this.currentSelection;for(let d of u){let p=d.parentNode;p&&p.nodeName=="LI"&&(!m||Cb(e,m)!=p)&&d.remove()}}}let c=null;i<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&ps(o)&&(c=Xl(e))&&c.eq(J.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Lt(e),this.currentSelection.set(o),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,s),kb(e)),this.handleDOMChange(i,s,a,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(o)||Lt(e),this.currentSelection.set(o))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let o=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(o==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!o||o.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;u<e.addedNodes.length;u++){let m=e.addedNodes[u];n.push(m),m.nodeType==3&&(this.lastChangedTextNode=m)}if(o.contentDOM&&o.contentDOM!=o.dom&&!o.contentDOM.contains(e.target))return{from:o.posBefore,to:o.posAfter};let r=e.previousSibling,i=e.nextSibling;if(Ue&&Xt<=11&&e.addedNodes.length)for(let u=0;u<e.addedNodes.length;u++){let{previousSibling:m,nextSibling:d}=e.addedNodes[u];(!m||Array.prototype.indexOf.call(e.addedNodes,m)<0)&&(r=m),(!d||Array.prototype.indexOf.call(e.addedNodes,d)<0)&&(i=d)}let s=r&&r.parentNode==e.target?ke(r)+1:0,a=o.localPosFromDOM(e.target,s,-1),l=i&&i.parentNode==e.target?ke(i):e.target.childNodes.length,c=o.localPosFromDOM(e.target,l,1);return{from:a,to:c}}else return e.type=="attributes"?{from:o.posAtStart-o.border,to:o.posAtEnd+o.border}:(this.lastChangedTextNode=e.target,{from:o.posAtStart,to:o.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let Jp=new WeakMap,Yp=!1;function kb(t){if(!Jp.has(t)&&(Jp.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=ht,Yp)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."),Yp=!0}}function Kp(t,e){let n=e.startContainer,o=e.startOffset,r=e.endContainer,i=e.endOffset,s=t.domAtPos(t.state.selection.anchor);return Hn(s.node,s.offset,r,i)&&([n,o,r,i]=[r,i,n,o]),{anchorNode:n,anchorOffset:o,focusNode:r,focusOffset:i}}function $b(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return Kp(t,r)}let n;function o(r){r.preventDefault(),r.stopImmediatePropagation(),n=r.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",o,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",o,!0),n?Kp(t,n):null}function Cb(t,e){for(let n=e.parentNode;n&&n!=t.dom;n=n.parentNode){let o=t.docView.nearestDesc(n,!0);if(o&&o.node.isBlock)return n}return null}function Eb(t,e,n){let{node:o,fromOffset:r,toOffset:i,from:s,to:a}=t.docView.parseRange(e,n),l=t.domSelectionRange(),c,u=l.anchorNode;if(u&&t.dom.contains(u.nodeType==1?u:u.parentNode)&&(c=[{node:u,offset:l.anchorOffset}],ps(l)||c.push({node:l.focusNode,offset:l.focusOffset})),De&&t.input.lastKeyCode===8)for(let h=i;h>r;h--){let g=o.childNodes[h-1],S=g.pmViewDesc;if(g.nodeName=="BR"&&!S){i=h;break}if(!S||S.size)break}let m=t.state.doc,d=t.someProp("domParser")||Wt.fromSchema(t.state.schema),p=m.resolve(s),f=null,y=d.parse(o,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:r,to:i,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:Nb,context:p});if(c&&c[0].pos!=null){let h=c[0].pos,g=c[1]&&c[1].pos;g==null&&(g=h),f={anchor:h+s,head:g+s}}return{doc:y,sel:f,from:s,to:a}}function Nb(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(Le&&/^(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||Le&&/^(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 Ab=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function Rb(t,e,n,o,r){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let E=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,U=Xl(t,E);if(U&&!t.state.selection.eq(U)){if(De&>&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",X=>X(t,Bn(13,"Enter"))))return;let se=t.state.tr.setSelection(U);E=="pointer"?se.setMeta("pointer",!0):E=="key"&&se.scrollIntoView(),i&&se.setMeta("composition",i),t.dispatch(se)}return}let s=t.state.doc.resolve(e),a=s.sharedDepth(n);e=s.before(a+1),n=t.state.doc.resolve(n).after(a+1);let l=t.state.selection,c=Eb(t,e,n),u=t.state.doc,m=u.slice(c.from,c.to),d,p;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(d=t.state.selection.to,p="end"):(d=t.state.selection.from,p="start"),t.input.lastKeyCode=null;let f=Mb(m.content,c.doc.content,c.from,d,p);if(f&&t.input.domChangeCount++,(Eo&&t.input.lastIOSEnter>Date.now()-225||gt)&&r.some(E=>E.nodeType==1&&!Ab.test(E.nodeName))&&(!f||f.endA>=f.endB)&&t.someProp("handleKeyDown",E=>E(t,Bn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!f)if(o&&l instanceof V&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))f={start:l.from,endA:l.to,endB:l.to};else{if(c.sel){let E=Wp(t,t.state.doc,c.sel);if(E&&!E.eq(t.state.selection)){let U=t.state.tr.setSelection(E);i&&U.setMeta("composition",i),t.dispatch(U)}}return}t.state.selection.from<t.state.selection.to&&f.start==f.endB&&t.state.selection instanceof V&&(f.start>t.state.selection.from&&f.start<=t.state.selection.from+2&&t.state.selection.from>=c.from?f.start=t.state.selection.from:f.endA<t.state.selection.to&&f.endA>=t.state.selection.to-2&&t.state.selection.to<=c.to&&(f.endB+=t.state.selection.to-f.endA,f.endA=t.state.selection.to)),Ue&&Xt<=11&&f.endB==f.start+1&&f.endA==f.start&&f.start>c.from&&c.doc.textBetween(f.start-c.from-1,f.start-c.from+1)==" "&&(f.start--,f.endA--,f.endB--);let y=c.doc.resolveNoCache(f.start-c.from),h=c.doc.resolveNoCache(f.endB-c.from),g=u.resolve(f.start),S=y.sameParent(h)&&y.parent.inlineContent&&g.end()>=f.endA,b;if((Eo&&t.input.lastIOSEnter>Date.now()-225&&(!S||r.some(E=>E.nodeName=="DIV"||E.nodeName=="P"))||!S&&y.pos<c.doc.content.size&&!y.sameParent(h)&&(b=J.findFrom(c.doc.resolve(y.pos+1),1,!0))&&b.head==h.pos)&&t.someProp("handleKeyDown",E=>E(t,Bn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>f.start&&Db(u,f.start,f.endA,y,h)&&t.someProp("handleKeyDown",E=>E(t,Bn(8,"Backspace")))){gt&&De&&t.domObserver.suppressSelectionUpdates();return}De&>&&f.endB==f.start&&(t.input.lastAndroidDelete=Date.now()),gt&&!S&&y.start()!=h.start()&&h.parentOffset==0&&y.depth==h.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==f.endA&&(f.endB-=2,h=c.doc.resolveNoCache(f.endB-c.from),setTimeout(()=>{t.someProp("handleKeyDown",function(E){return E(t,Bn(13,"Enter"))})},20));let v=f.start,C=f.endA,x,$,O;if(S){if(y.pos==h.pos)Ue&&Xt<=11&&y.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Lt(t),20)),x=t.state.tr.delete(v,C),$=u.resolve(f.start).marksAcross(u.resolve(f.endA));else if(f.endA==f.endB&&(O=Ob(y.parent.content.cut(y.parentOffset,h.parentOffset),g.parent.content.cut(g.parentOffset,f.endA-g.start()))))x=t.state.tr,O.type=="add"?x.addMark(v,C,O.mark):x.removeMark(v,C,O.mark);else if(y.parent.child(y.index()).isText&&y.index()==h.index()-(h.textOffset?0:1)){let E=y.parent.textBetween(y.parentOffset,h.parentOffset);if(t.someProp("handleTextInput",U=>U(t,v,C,E)))return;x=t.state.tr.insertText(E,v,C)}}if(x||(x=t.state.tr.replace(v,C,c.doc.slice(f.start-c.from,f.endB-c.from))),c.sel){let E=Wp(t,x.doc,c.sel);E&&!(De&>&&t.composing&&E.empty&&(f.start!=f.endB||t.input.lastAndroidDelete<Date.now()-100)&&(E.head==v||E.head==x.mapping.map(C)-1)||Ue&&E.empty&&E.head==v)&&x.setSelection(E)}$&&x.ensureMarks($),i&&x.setMeta("composition",i),t.dispatch(x.scrollIntoView())}function Wp(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:tc(t,e.resolve(n.anchor),e.resolve(n.head))}function Ob(t,e){let n=t.firstChild.marks,o=e.firstChild.marks,r=n,i=o,s,a,l;for(let u=0;u<o.length;u++)r=o[u].removeFromSet(r);for(let u=0;u<n.length;u++)i=n[u].removeFromSet(i);if(r.length==1&&i.length==0)a=r[0],s="add",l=u=>u.mark(a.addToSet(u.marks));else if(r.length==0&&i.length==1)a=i[0],s="remove",l=u=>u.mark(a.removeFromSet(u.marks));else return null;let c=[];for(let u=0;u<e.childCount;u++)c.push(l(e.child(u)));if(N.from(c).eq(t))return{mark:a,type:s}}function Db(t,e,n,o,r){if(n-e<=r.pos-o.pos||mc(o,!0,!1)<r.pos)return!1;let i=t.resolve(e);if(!o.parent.isTextblock){let a=i.nodeAfter;return a!=null&&n==e+a.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=t.resolve(mc(i,!0,!0));return!s.parent.isTextblock||s.pos>n||mc(s,!0,!1)<n?!1:o.parent.content.cut(o.parentOffset).eq(s.parent.content)}function mc(t,e,n){let o=t.depth,r=e?t.end():t.pos;for(;o>0&&(e||t.indexAfter(o)==t.node(o).childCount);)o--,r++,e=!1;if(n){let i=t.node(o).maybeChild(t.indexAfter(o));for(;i&&!i.isLeaf;)i=i.firstChild,r++}return r}function Mb(t,e,n,o,r){let i=t.findDiffStart(e,n);if(i==null)return null;let{a:s,b:a}=t.findDiffEnd(e,n+t.size,n+e.size);if(r=="end"){let l=Math.max(0,i-Math.min(s,a));o-=s+l-i}if(s<i&&t.size<e.size){let l=o<=i&&o>=s?i-o:0;i-=l,i&&i<e.size&&qp(e.textBetween(i-1,i+1))&&(i+=l?1:-1),a=i+(a-s),s=i}else if(a<i){let l=o<=i&&o>=a?i-o:0;i-=l,i&&i<t.size&&qp(t.textBetween(i-1,i+1))&&(i+=l?1:-1),s=i+(s-a),a=i}return{start:i,endA:s,endB:a}}function qp(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 Tb{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 ZS,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(eh),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=Zp(this),Qp(this),this.nodeViews=Xp(this),this.docView=ip(this.state.doc,Gp(this),dc(this),this.dom,this),this.domObserver=new xb(this,(o,r,i,s)=>Rb(this,o,r,i,s)),this.domObserver.start(),XS(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&&ic(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(eh),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let o in this._props)n[o]=this._props[o];n.state=this.state;for(let o in e)n[o]=e[o];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var o;let r=this.state,i=!1,s=!1;e.storedMarks&&this.composing&&(Lp(this),s=!0),this.state=e;let a=r.plugins!=e.plugins||this._props.plugins!=n.plugins;if(a||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let p=Xp(this);Pb(p,this.nodeViews)&&(this.nodeViews=p,i=!0)}(a||n.handleDOMEvents!=this._props.handleDOMEvents)&&ic(this),this.editable=Zp(this),Qp(this);let l=dc(this),c=Gp(this),u=r.plugins!=e.plugins&&!r.doc.eq(e.doc)?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",m=i||!this.docView.matchesNode(e.doc,c,l);(m||!e.selection.eq(r.selection))&&(s=!0);let d=u=="preserve"&&s&&this.dom.style.overflowAnchor==null&&fS(this);if(s){this.domObserver.stop();let p=m&&(Ue||De)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&jb(r.selection,e.selection);if(m){let f=De?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=mb(this)),(i||!this.docView.update(e.doc,c,l,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=ip(e.doc,c,l,this.dom,this)),f&&!this.trackWrites&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&LS(this))?Lt(this,p):(hp(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),!((o=this.dragging)===null||o===void 0)&&o.node&&!r.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,r),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():d&&pS(d)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof L){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&Yf(this,n.getBoundingClientRect(),e)}else Yf(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 o=this.directPlugins[n];o.spec.view&&this.pluginViews.push(o.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let o=this.state.plugins[n];o.spec.view&&this.pluginViews.push(o.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let o=this.pluginViews[n];o.update&&o.update(this,e)}}updateDraggedNode(e,n){let o=e.node,r=-1;if(this.state.doc.nodeAt(o.from)==o.node)r=o.from;else{let i=o.from+(this.state.doc.content.size-n.doc.content.size);(i>0&&this.state.doc.nodeAt(i))==o.node&&(r=i)}this.dragging=new Fp(e.slice,e.move,r<0?void 0:L.create(this.state.doc,r))}someProp(e,n){let o=this._props&&this._props[e],r;if(o!=null&&(r=n?n(o):o))return r;for(let s=0;s<this.directPlugins.length;s++){let a=this.directPlugins[s].props[e];if(a!=null&&(r=n?n(a):a))return r}let i=this.state.plugins;if(i)for(let s=0;s<i.length;s++){let a=i[s].props[e];if(a!=null&&(r=n?n(a):a))return r}}hasFocus(){if(Ue){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&&hS(this.dom),Lt(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 bS(this,e)}coordsAtPos(e,n=1){return Zf(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,o=-1){let r=this.docView.posFromDOM(e,n,o);if(r==null)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,n){return CS(this,n||this.state,e)}pasteHTML(e,n){return zr(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return zr(this,e,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(eb(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],dc(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,nS())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return nb(this,e)}dispatch(e){let n=this._props.dispatchTransaction;n?n.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){let e=this.domSelection();return e?Le&&this.root.nodeType===11&&aS(this.dom.ownerDocument)==this.dom&&$b(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function Gp(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 o in n)o=="class"?e.class+=" "+n[o]:o=="style"?e.style=(e.style?e.style+";":"")+n[o]:!e[o]&&o!="contenteditable"&&o!="nodeName"&&(e[o]=String(n[o]))}),e.translate||(e.translate="no"),[nt.node(0,t.state.doc.content.size,e)]}function Qp(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:nt.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function Zp(t){return!t.someProp("editable",e=>e(t.state)===!1)}function jb(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 Xp(t){let e=Object.create(null);function n(o){for(let r in o)Object.prototype.hasOwnProperty.call(e,r)||(e[r]=o[r])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function Pb(t,e){let n=0,o=0;for(let r in t){if(t[r]!=e[r])return!0;n++}for(let r in e)o++;return n!=o}function eh(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")}for(var an={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:"'"},xs={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Ib=typeof navigator<"u"&&/Mac/.test(navigator.platform),Lb=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),$e=0;$e<10;$e++)an[48+$e]=an[96+$e]=String($e);for(var $e=1;$e<=24;$e++)an[$e+111]="F"+$e;for(var $e=65;$e<=90;$e++)an[$e]=String.fromCharCode($e+32),xs[$e]=String.fromCharCode($e);for(var fc in an)xs.hasOwnProperty(fc)||(xs[fc]=an[fc]);function zb(t){var e=Ib&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||Lb&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?xs:an)[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 Fb=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function Hb(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let o,r,i,s;for(let a=0;a<e.length-1;a++){let l=e[a];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))o=!0;else if(/^(c|ctrl|control)$/i.test(l))r=!0;else if(/^s(hift)?$/i.test(l))i=!0;else if(/^mod$/i.test(l))Fb?s=!0:r=!0;else throw new Error("Unrecognized modifier name: "+l)}return o&&(n="Alt-"+n),r&&(n="Ctrl-"+n),s&&(n="Meta-"+n),i&&(n="Shift-"+n),n}function Bb(t){let e=Object.create(null);for(let n in t)e[Hb(n)]=t[n];return e}function pc(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 Vb(t){return new Ve({props:{handleKeyDown:Ub(t)}})}function Ub(t){let e=Bb(t);return function(n,o){let r=zb(o),i,s=e[pc(r,o)];if(s&&s(n.state,n.dispatch,n))return!0;if(r.length==1&&r!=" "){if(o.shiftKey){let a=e[pc(r,o,!1)];if(a&&a(n.state,n.dispatch,n))return!0}if((o.shiftKey||o.altKey||o.metaKey||r.charCodeAt(0)>127)&&(i=an[o.keyCode])&&i!=r){let a=e[pc(i,o)];if(a&&a(n.state,n.dispatch,n))return!0}}return!1}}const _b=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function th(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const Jb=(t,e,n)=>{let o=th(t,n);if(!o)return!1;let r=hc(o);if(!r){let s=o.blockRange(),a=s&&bo(s);return a==null?!1:(e&&e(t.tr.lift(s,a).scrollIntoView()),!0)}let i=r.nodeBefore;if(ih(t,r,e,-1))return!0;if(o.parent.content.size==0&&(Do(i,"end")||L.isSelectable(i)))for(let s=o.depth;;s--){let a=ds(t.doc,o.before(s),o.after(s),M.empty);if(a&&a.slice.size<a.to-a.from){if(e){let l=t.tr.step(a);l.setSelection(Do(i,"end")?J.findFrom(l.doc.resolve(l.mapping.map(r.pos,-1)),-1):L.create(l.doc,r.pos-i.nodeSize)),e(l.scrollIntoView())}return!0}if(s==1||o.node(s-1).childCount>1)break}return i.isAtom&&r.depth==o.depth-1?(e&&e(t.tr.delete(r.pos-i.nodeSize,r.pos).scrollIntoView()),!0):!1},Yb=(t,e,n)=>{let o=th(t,n);if(!o)return!1;let r=hc(o);return r?nh(t,r,e):!1},Kb=(t,e,n)=>{let o=oh(t,n);if(!o)return!1;let r=gc(o);return r?nh(t,r,e):!1};function nh(t,e,n){let o=e.nodeBefore,r=o,i=e.pos-1;for(;!r.isTextblock;i--){if(r.type.spec.isolating)return!1;let u=r.lastChild;if(!u)return!1;r=u}let s=e.nodeAfter,a=s,l=e.pos+1;for(;!a.isTextblock;l++){if(a.type.spec.isolating)return!1;let u=a.firstChild;if(!u)return!1;a=u}let c=ds(t.doc,i,l,M.empty);if(!c||c.from!=i||c instanceof he&&c.slice.size>=l-i)return!1;if(n){let u=t.tr.step(c);u.setSelection(V.create(u.doc,i)),n(u.scrollIntoView())}return!0}function Do(t,e,n=!1){for(let o=t;o;o=e=="start"?o.firstChild:o.lastChild){if(o.isTextblock)return!0;if(n&&o.childCount!=1)return!1}return!1}const Wb=(t,e,n)=>{let{$head:o,empty:r}=t.selection,i=o;if(!r)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):o.parentOffset>0)return!1;i=hc(o)}let s=i&&i.nodeBefore;return!s||!L.isSelectable(s)?!1:(e&&e(t.tr.setSelection(L.create(t.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function hc(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 oh(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const qb=(t,e,n)=>{let o=oh(t,n);if(!o)return!1;let r=gc(o);if(!r)return!1;let i=r.nodeAfter;if(ih(t,r,e,1))return!0;if(o.parent.content.size==0&&(Do(i,"start")||L.isSelectable(i))){let s=ds(t.doc,o.before(),o.after(),M.empty);if(s&&s.slice.size<s.to-s.from){if(e){let a=t.tr.step(s);a.setSelection(Do(i,"start")?J.findFrom(a.doc.resolve(a.mapping.map(r.pos)),1):L.create(a.doc,a.mapping.map(r.pos))),e(a.scrollIntoView())}return!0}}return i.isAtom&&r.depth==o.depth-1?(e&&e(t.tr.delete(r.pos,r.pos+i.nodeSize).scrollIntoView()),!0):!1},Gb=(t,e,n)=>{let{$head:o,empty:r}=t.selection,i=o;if(!r)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):o.parentOffset<o.parent.content.size)return!1;i=gc(o)}let s=i&&i.nodeAfter;return!s||!L.isSelectable(s)?!1:(e&&e(t.tr.setSelection(L.create(t.doc,i.pos)).scrollIntoView()),!0)};function gc(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 Qb=(t,e)=>{let n=t.selection,o=n instanceof L,r;if(o){if(n.node.isTextblock||!Qt(t.doc,n.from))return!1;r=n.from}else if(r=us(t.doc,n.from,-1),r==null)return!1;if(e){let i=t.tr.join(r);o&&i.setSelection(L.create(i.doc,r-t.doc.resolve(r).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},Zb=(t,e)=>{let n=t.selection,o;if(n instanceof L){if(n.node.isTextblock||!Qt(t.doc,n.to))return!1;o=n.to}else if(o=us(t.doc,n.to,1),o==null)return!1;return e&&e(t.tr.join(o).scrollIntoView()),!0},Xb=(t,e)=>{let{$from:n,$to:o}=t.selection,r=n.blockRange(o),i=r&&bo(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)},ev=(t,e)=>{let{$head:n,$anchor:o}=t.selection;return!n.parent.type.spec.code||!n.sameParent(o)?!1:(e&&e(t.tr.insertText(`
|
|
29
|
-
`).scrollIntoView()),!0)};function rh(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 tv=(t,e)=>{let{$head:n,$anchor:o}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(o))return!1;let r=n.node(-1),i=n.indexAfter(-1),s=rh(r.contentMatchAt(i));if(!s||!r.canReplaceWith(i,i,s))return!1;if(e){let a=n.after(),l=t.tr.replaceWith(a,a,s.createAndFill());l.setSelection(J.near(l.doc.resolve(a),1)),e(l.scrollIntoView())}return!0},nv=(t,e)=>{let n=t.selection,{$from:o,$to:r}=n;if(n instanceof ft||o.parent.inlineContent||r.parent.inlineContent)return!1;let i=rh(r.parent.contentMatchAt(r.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let s=(!o.parentOffset&&r.index()<r.parent.childCount?o:r).pos,a=t.tr.insert(s,i.createAndFill());a.setSelection(V.create(a.doc,s+1)),e(a.scrollIntoView())}return!0},ov=(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 i=n.before();if(vo(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let o=n.blockRange(),r=o&&bo(o);return r==null?!1:(e&&e(t.tr.lift(o,r).scrollIntoView()),!0)},rv=(t,e)=>{let{$from:n,to:o}=t.selection,r,i=n.sharedDepth(o);return i==0?!1:(r=n.before(i),e&&e(t.tr.setSelection(L.create(t.doc,r))),!0)};function iv(t,e,n){let o=e.nodeBefore,r=e.nodeAfter,i=e.index();return!o||!r||!o.type.compatibleContent(r.type)?!1:!o.content.size&&e.parent.canReplace(i-1,i)?(n&&n(t.tr.delete(e.pos-o.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(r.isTextblock||Qt(t.doc,e.pos))?!1:(n&&n(t.tr.clearIncompatible(e.pos,o.type,o.contentMatchAt(o.childCount)).join(e.pos).scrollIntoView()),!0)}function ih(t,e,n,o){let r=e.nodeBefore,i=e.nodeAfter,s,a,l=r.type.spec.isolating||i.type.spec.isolating;if(!l&&iv(t,e,n))return!0;let c=!l&&e.parent.canReplace(e.index(),e.index()+1);if(c&&(s=(a=r.contentMatchAt(r.childCount)).findWrapping(i.type))&&a.matchType(s[0]||i.type).validEnd){if(n){let p=e.pos+i.nodeSize,f=N.empty;for(let g=s.length-1;g>=0;g--)f=N.from(s[g].create(null,f));f=N.from(r.copy(f));let y=t.tr.step(new ge(e.pos-1,p,e.pos,p,new M(f,1,0),s.length,!0)),h=p+2*s.length;Qt(y.doc,h)&&y.join(h),n(y.scrollIntoView())}return!0}let u=i.type.spec.isolating||o>0&&l?null:J.findFrom(e,1),m=u&&u.$from.blockRange(u.$to),d=m&&bo(m);if(d!=null&&d>=e.depth)return n&&n(t.tr.lift(m,d).scrollIntoView()),!0;if(c&&Do(i,"start",!0)&&Do(r,"end")){let p=r,f=[];for(;f.push(p),!p.isTextblock;)p=p.lastChild;let y=i,h=1;for(;!y.isTextblock;y=y.firstChild)h++;if(p.canReplace(p.childCount,p.childCount,y.content)){if(n){let g=N.empty;for(let b=f.length-1;b>=0;b--)g=N.from(f[b].copy(g));let S=t.tr.step(new ge(e.pos-f.length,e.pos+i.nodeSize,e.pos+h,e.pos+i.nodeSize-h,new M(g,f.length,0),0,!0));n(S.scrollIntoView())}return!0}}return!1}function sh(t){return function(e,n){let o=e.selection,r=t<0?o.$from:o.$to,i=r.depth;for(;r.node(i).isInline;){if(!i)return!1;i--}return r.node(i).isTextblock?(n&&n(e.tr.setSelection(V.create(e.doc,t<0?r.start(i):r.end(i)))),!0):!1}}const sv=sh(-1),av=sh(1);function lv(t,e=null){return function(n,o){let{$from:r,$to:i}=n.selection,s=r.blockRange(i),a=s&&zl(s,t,e);return a?(o&&o(n.tr.wrap(s,a).scrollIntoView()),!0):!1}}function ah(t,e=null){return function(n,o){let r=!1;for(let i=0;i<n.selection.ranges.length&&!r;i++){let{$from:{pos:s},$to:{pos:a}}=n.selection.ranges[i];n.doc.nodesBetween(s,a,(l,c)=>{if(r)return!1;if(!(!l.isTextblock||l.hasMarkup(t,e)))if(l.type==t)r=!0;else{let u=n.doc.resolve(c),m=u.index();r=u.parent.canReplaceWith(m,m+1,t)}})}if(!r)return!1;if(o){let i=n.tr;for(let s=0;s<n.selection.ranges.length;s++){let{$from:{pos:a},$to:{pos:l}}=n.selection.ranges[s];i.setBlockType(a,l,t,e)}o(i.scrollIntoView())}return!0}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function cv(t,e=null){return function(n,o){let{$from:r,$to:i}=n.selection,s=r.blockRange(i),a=!1,l=s;if(!s)return!1;if(s.depth>=2&&r.node(s.depth-1).type.compatibleContent(t)&&s.startIndex==0){if(r.index(s.depth-1)==0)return!1;let u=n.doc.resolve(s.start-2);l=new ts(u,u,s.depth),s.endIndex<s.parent.childCount&&(s=new ts(r,n.doc.resolve(i.end(s.depth)),s.depth)),a=!0}let c=zl(l,t,e,s);return c?(o&&o(uv(n.tr,s,c,a,t).scrollIntoView()),!0):!1}}function uv(t,e,n,o,r){let i=N.empty;for(let u=n.length-1;u>=0;u--)i=N.from(n[u].type.create(n[u].attrs,i));t.step(new ge(e.start-(o?2:0),e.end,e.start,e.end,new M(i,0,0),n.length,!0));let s=0;for(let u=0;u<n.length;u++)n[u].type==r&&(s=u+1);let a=n.length-s,l=e.start+n.length-(o?2:0),c=e.parent;for(let u=e.startIndex,m=e.endIndex,d=!0;u<m;u++,d=!1)!d&&vo(t.doc,l,a)&&(t.split(l,a),l+=2*a),l+=c.child(u).nodeSize;return t}function dv(t){return function(e,n){let{$from:o,$to:r}=e.selection,i=o.blockRange(r,s=>s.childCount>0&&s.firstChild.type==t);return i?n?o.node(i.depth-1).type==t?mv(e,n,t,i):fv(e,n,i):!0:!1}}function mv(t,e,n,o){let r=t.tr,i=o.end,s=o.$to.end(o.depth);i<s&&(r.step(new ge(i-1,s,i,s,new M(N.from(n.create(null,o.parent.copy())),1,0),1,!0)),o=new ts(r.doc.resolve(o.$from.pos),r.doc.resolve(s),o.depth));const a=bo(o);if(a==null)return!1;r.lift(o,a);let l=r.mapping.map(i,-1)-1;return Qt(r.doc,l)&&r.join(l),e(r.scrollIntoView()),!0}function fv(t,e,n){let o=t.tr,r=n.parent;for(let p=n.end,f=n.endIndex-1,y=n.startIndex;f>y;f--)p-=r.child(f).nodeSize,o.delete(p-1,p+1);let i=o.doc.resolve(n.start),s=i.nodeAfter;if(o.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let a=n.startIndex==0,l=n.endIndex==r.childCount,c=i.node(-1),u=i.index(-1);if(!c.canReplace(u+(a?0:1),u+1,s.content.append(l?N.empty:N.from(r))))return!1;let m=i.pos,d=m+s.nodeSize;return o.step(new ge(m-(a?1:0),d+(l?1:0),m+1,d-1,new M((a?N.empty:N.from(r.copy(N.empty))).append(l?N.empty:N.from(r.copy(N.empty))),a?0:1,l?0:1),a?0:1)),e(o.scrollIntoView()),!0}function pv(t){return function(e,n){let{$from:o,$to:r}=e.selection,i=o.blockRange(r,c=>c.childCount>0&&c.firstChild.type==t);if(!i)return!1;let s=i.startIndex;if(s==0)return!1;let a=i.parent,l=a.child(s-1);if(l.type!=t)return!1;if(n){let c=l.lastChild&&l.lastChild.type==a.type,u=N.from(c?t.create():null),m=new M(N.from(t.create(null,N.from(a.type.create(null,u)))),c?3:1,0),d=i.start,p=i.end;n(e.tr.step(new ge(d-(c?3:1),p,d,p,m,1,!0)).scrollIntoView())}return!0}}function ks(t){const{state:e,transaction:n}=t;let{selection:o}=n,{doc:r}=n,{storedMarks:i}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return i},get selection(){return o},get doc(){return r},get tr(){return o=n.selection,r=n.doc,i=n.storedMarks,n}}}class $s{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:n,state:o}=this,{view:r}=n,{tr:i}=o,s=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([a,l])=>[a,(...u)=>{const m=l(...u)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(i),m}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,n=!0){const{rawCommands:o,editor:r,state:i}=this,{view:s}=r,a=[],l=!!e,c=e||i.tr,u=()=>(!l&&n&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(c),a.every(d=>d===!0)),m={...Object.fromEntries(Object.entries(o).map(([d,p])=>[d,(...y)=>{const h=this.buildProps(c,n),g=p(...y)(h);return a.push(g),m}])),run:u};return m}createCan(e){const{rawCommands:n,state:o}=this,r=!1,i=e||o.tr,s=this.buildProps(i,r);return{...Object.fromEntries(Object.entries(n).map(([l,c])=>[l,(...u)=>c(...u)({...s,dispatch:void 0})])),chain:()=>this.createChain(i,r)}}buildProps(e,n=!0){const{rawCommands:o,editor:r,state:i}=this,{view:s}=r,a={tr:e,editor:r,view:s,state:ks({state:i,transaction:e}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(e,n),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(o).map(([l,c])=>[l,(...u)=>c(...u)(a)]))}};return a}}let hv=class{constructor(){this.callbacks={}}on(e,n){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(n),this}emit(e,...n){const o=this.callbacks[e];return o&&o.forEach(r=>r.apply(this,n)),this}off(e,n){const o=this.callbacks[e];return o&&(n?this.callbacks[e]=o.filter(r=>r!==n):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}};function j(t,e,n){return t.config[e]===void 0&&t.parent?j(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?j(t.parent,e,n):null}):t.config[e]}function Cs(t){const e=t.filter(r=>r.type==="extension"),n=t.filter(r=>r.type==="node"),o=t.filter(r=>r.type==="mark");return{baseExtensions:e,nodeExtensions:n,markExtensions:o}}function lh(t){const e=[],{nodeExtensions:n,markExtensions:o}=Cs(t),r=[...n,...o],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(s=>{const a={name:s.name,options:s.options,storage:s.storage,extensions:r},l=j(s,"addGlobalAttributes",a);if(!l)return;l().forEach(u=>{u.types.forEach(m=>{Object.entries(u.attributes).forEach(([d,p])=>{e.push({type:m,name:d,attribute:{...i,...p}})})})})}),r.forEach(s=>{const a={name:s.name,options:s.options,storage:s.storage},l=j(s,"addAttributes",a);if(!l)return;const c=l();Object.entries(c).forEach(([u,m])=>{const d={...i,...m};typeof(d==null?void 0:d.default)=="function"&&(d.default=d.default()),d!=null&&d.isRequired&&(d==null?void 0:d.default)===void 0&&delete d.default,e.push({type:s.name,name:u,attribute:d})})}),e}function ye(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function Mo(...t){return t.filter(e=>!!e).reduce((e,n)=>{const o={...e};return Object.entries(n).forEach(([r,i])=>{if(!o[r]){o[r]=i;return}if(r==="class"){const a=i?i.split(" "):[],l=o[r]?o[r].split(" "):[],c=a.filter(u=>!l.includes(u));o[r]=[...l,...c].join(" ")}else if(r==="style"){const a=i?i.split(";").map(u=>u.trim()).filter(Boolean):[],l=o[r]?o[r].split(";").map(u=>u.trim()).filter(Boolean):[],c=new Map;l.forEach(u=>{const[m,d]=u.split(":").map(p=>p.trim());c.set(m,d)}),a.forEach(u=>{const[m,d]=u.split(":").map(p=>p.trim());c.set(m,d)}),o[r]=Array.from(c.entries()).map(([u,m])=>`${u}: ${m}`).join("; ")}else o[r]=i}),o},{})}function yc(t,e){return e.filter(n=>n.type===t.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,o)=>Mo(n,o),{})}function ch(t){return typeof t=="function"}function Y(t,e=void 0,...n){return ch(t)?e?t.bind(e)(...n):t(...n):t}function gv(t={}){return Object.keys(t).length===0&&t.constructor===Object}function yv(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function uh(t,e){return"style"in t?t:{...t,getAttrs:n=>{const o=t.getAttrs?t.getAttrs(n):t.attrs;if(o===!1)return!1;const r=e.reduce((i,s)=>{const a=s.attribute.parseHTML?s.attribute.parseHTML(n):yv(n.getAttribute(s.name));return a==null?i:{...i,[s.name]:a}},{});return{...o,...r}}}}function dh(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&gv(n)?!1:n!=null))}function wv(t,e){var n;const o=lh(t),{nodeExtensions:r,markExtensions:i}=Cs(t),s=(n=r.find(c=>j(c,"topNode")))===null||n===void 0?void 0:n.name,a=Object.fromEntries(r.map(c=>{const u=o.filter(g=>g.type===c.name),m={name:c.name,options:c.options,storage:c.storage,editor:e},d=t.reduce((g,S)=>{const b=j(S,"extendNodeSchema",m);return{...g,...b?b(c):{}}},{}),p=dh({...d,content:Y(j(c,"content",m)),marks:Y(j(c,"marks",m)),group:Y(j(c,"group",m)),inline:Y(j(c,"inline",m)),atom:Y(j(c,"atom",m)),selectable:Y(j(c,"selectable",m)),draggable:Y(j(c,"draggable",m)),code:Y(j(c,"code",m)),whitespace:Y(j(c,"whitespace",m)),defining:Y(j(c,"defining",m)),isolating:Y(j(c,"isolating",m)),attrs:Object.fromEntries(u.map(g=>{var S;return[g.name,{default:(S=g==null?void 0:g.attribute)===null||S===void 0?void 0:S.default}]}))}),f=Y(j(c,"parseHTML",m));f&&(p.parseDOM=f.map(g=>uh(g,u)));const y=j(c,"renderHTML",m);y&&(p.toDOM=g=>y({node:g,HTMLAttributes:yc(g,u)}));const h=j(c,"renderText",m);return h&&(p.toText=h),[c.name,p]})),l=Object.fromEntries(i.map(c=>{const u=o.filter(h=>h.type===c.name),m={name:c.name,options:c.options,storage:c.storage,editor:e},d=t.reduce((h,g)=>{const S=j(g,"extendMarkSchema",m);return{...h,...S?S(c):{}}},{}),p=dh({...d,inclusive:Y(j(c,"inclusive",m)),excludes:Y(j(c,"excludes",m)),group:Y(j(c,"group",m)),spanning:Y(j(c,"spanning",m)),code:Y(j(c,"code",m)),attrs:Object.fromEntries(u.map(h=>{var g;return[h.name,{default:(g=h==null?void 0:h.attribute)===null||g===void 0?void 0:g.default}]}))}),f=Y(j(c,"parseHTML",m));f&&(p.parseDOM=f.map(h=>uh(h,u)));const y=j(c,"renderHTML",m);return y&&(p.toDOM=h=>y({mark:h,HTMLAttributes:yc(h,u)})),[c.name,p]}));return new uf({topNode:s,nodes:a,marks:l})}function wc(t,e){return e.nodes[t]||e.marks[t]||null}function mh(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}const Sv=(t,e=500)=>{let n="";const o=t.parentOffset;return t.parent.nodesBetween(Math.max(0,o-e),o,(r,i,s,a)=>{var l,c;const u=((c=(l=r.type.spec).toText)===null||c===void 0?void 0:c.call(l,{node:r,pos:i,parent:s,index:a}))||r.textContent||"%leaf%";n+=r.isAtom&&!r.isText?u:u.slice(0,Math.max(0,o-i))}),n};function Sc(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class bv{constructor(e){this.find=e.find,this.handler=e.handler}}const vv=(t,e)=>{if(Sc(e))return e.exec(t);const n=e(t);if(!n)return null;const o=[n.text];return o.index=n.index,o.input=t,o.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),o.push(n.replaceWith)),o};function Es(t){var e;const{editor:n,from:o,to:r,text:i,rules:s,plugin:a}=t,{view:l}=n;if(l.composing)return!1;const c=l.state.doc.resolve(o);if(c.parent.type.spec.code||!((e=c.nodeBefore||c.nodeAfter)===null||e===void 0)&&e.marks.find(d=>d.type.spec.code))return!1;let u=!1;const m=Sv(c)+i;return s.forEach(d=>{if(u)return;const p=vv(m,d.find);if(!p)return;const f=l.state.tr,y=ks({state:l.state,transaction:f}),h={from:o-(p[0].length-i.length),to:r},{commands:g,chain:S,can:b}=new $s({editor:n,state:y});d.handler({state:y,range:h,match:p,commands:g,chain:S,can:b})===null||!f.steps.length||(f.setMeta(a,{transform:f,from:o,to:r,text:i}),l.dispatch(f),u=!0)}),u}function xv(t){const{editor:e,rules:n}=t,o=new Ve({state:{init(){return null},apply(r,i){const s=r.getMeta(o);if(s)return s;const a=r.getMeta("applyInputRules");return!!a&&setTimeout(()=>{const{from:c,text:u}=a,m=c+u.length;Es({editor:e,from:c,to:m,text:u,rules:n,plugin:o})}),r.selectionSet||r.docChanged?null:i}},props:{handleTextInput(r,i,s,a){return Es({editor:e,from:i,to:s,text:a,rules:n,plugin:o})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:i}=r.state.selection;i&&Es({editor:e,from:i.pos,to:i.pos,text:"",rules:n,plugin:o})}),!1)},handleKeyDown(r,i){if(i.key!=="Enter")return!1;const{$cursor:s}=r.state.selection;return s?Es({editor:e,from:s.pos,to:s.pos,text:`
|
|
30
|
-
`,rules:n,plugin:o}):!1}},isInputRules:!0});return o}function
|
|
28
|
+
`))),0,0):M.empty;let m=t.someProp("clipboardTextParser",d=>d(e,r,o,t));if(m)a=m;else{let d=r.marks(),{schema:p}=t.state,f=Fn.fromSchema(p);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(y=>{let h=s.appendChild(document.createElement("p"));y&&h.appendChild(f.serializeNode(p.text(y,d)))})}}else t.someProp("transformPastedHTML",m=>{n=m(n,t)}),s=qb(n),Mr&&Gb(s);let c=s&&s.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let m=+u[3];m>0;m--){let d=s.firstChild;for(;d&&d.nodeType!=1;)d=d.nextSibling;if(!d)break;s=d}if(a||(a=(t.someProp("clipboardParser")||t.someProp("domParser")||Wt.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(l||u),context:r,ruleFromNode(d){return d.nodeName=="BR"&&!d.nextSibling&&d.parentNode&&!Yb.test(d.parentNode.nodeName)?{ignore:!0}:null}})),u)a=Qb(Rp(a,+u[1],+u[2]),u[4]);else if(a=M.maxOpen(Kb(a.content,r),!0),a.openStart||a.openEnd){let m=0,d=0;for(let p=a.content.firstChild;m<a.openStart&&!p.type.spec.isolating;m++,p=p.firstChild);for(let p=a.content.lastChild;d<a.openEnd&&!p.type.spec.isolating;d++,p=p.lastChild);a=Rp(a,m,d)}return t.someProp("transformPasted",m=>{a=m(a,t)}),a}const Yb=/^(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 Kb(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.index(n)),i,s=[];if(t.forEach(a=>{if(!s)return;let l=r.findWrapping(a.type),c;if(!l)return s=null;if(c=s.length&&i.length&&Dp(l,i,a,s[s.length-1],0))s[s.length-1]=c;else{s.length&&(s[s.length-1]=Ap(s[s.length-1],i.length));let u=Np(a,l);s.push(u),r=r.matchType(u.type),i=l}}),s)return N.from(s)}return t}function Np(t,e,n=0){for(let o=e.length-1;o>=n;o--)t=e[o].create(null,N.from(t));return t}function Dp(t,e,n,o,r){if(r<t.length&&r<e.length&&t[r]==e[r]){let i=Dp(t,e,n,o.lastChild,r+1);if(i)return o.copy(o.content.replaceChild(o.childCount-1,i));if(o.contentMatchAt(o.childCount).matchType(r==t.length-1?n.type:t[r+1]))return o.copy(o.content.append(N.from(Np(n,t,r+1))))}}function Ap(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,Ap(t.lastChild,e-1)),o=t.contentMatchAt(t.childCount).fillBefore(N.empty,!0);return t.copy(n.append(o))}function sc(t,e,n,o,r,i){let s=e<0?t.firstChild:t.lastChild,a=s.content;return t.childCount>1&&(i=0),r<o-1&&(a=sc(a,e,n,o,r+1,i)),r>=n&&(a=e<0?s.contentMatchAt(0).fillBefore(a,i<=r).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(N.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(a))}function Rp(t,e,n){return e<t.openStart&&(t=new M(sc(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new M(sc(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const Op={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 Mp=null;function Tp(){return Mp||(Mp=document.implementation.createHTMLDocument("title"))}function Wb(t){let e=window.trustedTypes;return e?e.createPolicy("detachedDocument",{createHTML:n=>n}).createHTML(t):t}function qb(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=Tp().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(t),r;if((r=o&&Op[o[1].toLowerCase()])&&(t=r.map(i=>"<"+i+">").join("")+t+r.map(i=>"</"+i+">").reverse().join("")),n.innerHTML=Wb(t),r)for(let i=0;i<r.length;i++)n=n.querySelector(r[i])||n;return n}function Gb(t){let e=t.querySelectorAll(Oe?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let o=e[n];o.childNodes.length==1&&o.textContent==" "&&o.parentNode&&o.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),o)}}function Qb(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,o;try{o=JSON.parse(e)}catch{return t}let{content:r,openStart:i,openEnd:s}=t;for(let a=o.length-2;a>=0;a-=2){let l=n.nodes[o[a]];if(!l||l.hasRequiredAttrs())break;r=N.from(l.create(o[a+1],r)),i++,s++}return new M(r,i,s)}const ze={},Fe={},Zb={touchstart:!0,touchmove:!0};class Xb{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function ev(t){for(let e in ze){let n=ze[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=o=>{nv(t,o)&&!lc(t,o)&&(t.editable||!(o.type in Fe))&&n(t,o)},Zb[e]?{passive:!0}:void 0)}Le&&t.dom.addEventListener("input",()=>null),ac(t)}function on(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function tv(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 ac(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=o=>lc(t,o))})}function lc(t,e){return t.someProp("handleDOMEvents",n=>{let o=n[e.type];return o?o(t,e)||e.defaultPrevented:!1})}function nv(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 ov(t,e){!lc(t,e)&&ze[e.type]&&(t.editable||!(e.type in Fe))&&ze[e.type](t,e)}Fe.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!Pp(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(gt&&Oe&&n.keyCode==13)))if(t.domObserver.selectionChanged(t.domSelectionRange())?t.domObserver.flush():n.keyCode!=229&&t.domObserver.forceFlush(),Eo&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let o=Date.now();t.input.lastIOSEnter=o,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==o&&(t.someProp("handleKeyDown",r=>r(t,Bn(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",o=>o(t,n))||Jb(t,n)?n.preventDefault():on(t,"key")},Fe.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},Fe.keypress=(t,e)=>{let n=e;if(Pp(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||tt&&n.metaKey)return;if(t.someProp("handleKeyPress",r=>r(t,n))){n.preventDefault();return}let o=t.state.selection;if(!(o instanceof V)||!o.$from.sameParent(o.$to)){let r=String.fromCharCode(n.charCode);!/[\r\n]/.test(r)&&!t.someProp("handleTextInput",i=>i(t,o.$from.pos,o.$to.pos,r))&&t.dispatch(t.state.tr.insertText(r).scrollIntoView()),n.preventDefault()}};function ws(t){return{left:t.clientX,top:t.clientY}}function rv(t,e){let n=e.x-t.clientX,o=e.y-t.clientY;return n*n+o*o<100}function cc(t,e,n,o,r){if(o==-1)return!1;let i=t.state.doc.resolve(o);for(let s=i.depth+1;s>0;s--)if(t.someProp(e,a=>s>i.depth?a(t,n,i.nodeAfter,i.before(s),r,!0):a(t,n,i.node(s),i.before(s),r,!1)))return!0;return!1}function Ao(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let o=t.state.tr.setSelection(e);n=="pointer"&&o.setMeta("pointer",!0),t.dispatch(o)}function iv(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),o=n.nodeAfter;return o&&o.isAtom&&L.isSelectable(o)?(Ao(t,new L(n),"pointer"),!0):!1}function sv(t,e){if(e==-1)return!1;let n=t.state.selection,o,r;n instanceof L&&(o=n.node);let i=t.state.doc.resolve(e);for(let s=i.depth+1;s>0;s--){let a=s>i.depth?i.nodeAfter:i.node(s);if(L.isSelectable(a)){o&&n.$from.depth>0&&s>=n.$from.depth&&i.before(n.$from.depth+1)==n.$from.pos?r=i.before(n.$from.depth):r=i.before(s);break}}return r!=null?(Ao(t,L.create(t.state.doc,r),"pointer"),!0):!1}function av(t,e,n,o,r){return cc(t,"handleClickOn",e,n,o)||t.someProp("handleClick",i=>i(t,e,o))||(r?sv(t,n):iv(t,n))}function lv(t,e,n,o){return cc(t,"handleDoubleClickOn",e,n,o)||t.someProp("handleDoubleClick",r=>r(t,e,o))}function cv(t,e,n,o){return cc(t,"handleTripleClickOn",e,n,o)||t.someProp("handleTripleClick",r=>r(t,e,o))||uv(t,n,o)}function uv(t,e,n){if(n.button!=0)return!1;let o=t.state.doc;if(e==-1)return o.inlineContent?(Ao(t,V.create(o,0,o.content.size),"pointer"),!0):!1;let r=o.resolve(e);for(let i=r.depth+1;i>0;i--){let s=i>r.depth?r.nodeAfter:r.node(i),a=r.before(i);if(s.inlineContent)Ao(t,V.create(o,a+1,a+1+s.content.size),"pointer");else if(L.isSelectable(s))Ao(t,L.create(o,a),"pointer");else continue;return!0}}function uc(t){return bs(t)}const jp=tt?"metaKey":"ctrlKey";ze.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let o=uc(t),r=Date.now(),i="singleClick";r-t.input.lastClick.time<500&&rv(n,t.input.lastClick)&&!n[jp]&&(t.input.lastClick.type=="singleClick"?i="doubleClick":t.input.lastClick.type=="doubleClick"&&(i="tripleClick")),t.input.lastClick={time:r,x:n.clientX,y:n.clientY,type:i};let s=t.posAtCoords(ws(n));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new dv(t,s,n,!!o)):(i=="doubleClick"?lv:cv)(t,s.pos,s.inside,n)?n.preventDefault():on(t,"pointer"))};class dv{constructor(e,n,o,r){this.view=e,this.pos=n,this.event=o,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!o[jp],this.allowDefault=o.shiftKey;let i,s;if(n.inside>-1)i=e.state.doc.nodeAt(n.inside),s=n.inside;else{let u=e.state.doc.resolve(n.pos);i=u.parent,s=u.depth?u.before():0}const a=r?null:o.target,l=a?e.docView.nearestDesc(a,!0):null;this.target=l&&l.dom.nodeType==1?l.dom:null;let{selection:c}=e.state;(o.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||c instanceof L&&c.from<=s&&c.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&ht&&!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)),on(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(()=>Lt(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(ws(e))),this.updateAllowDefault(e),this.allowDefault||!n?on(this.view,"pointer"):av(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Le&&this.mightDrag&&!this.mightDrag.node.isAtom||Oe&&!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)?(Ao(this.view,J.near(this.view.state.doc.resolve(n.pos)),"pointer"),e.preventDefault()):on(this.view,"pointer")}move(e){this.updateAllowDefault(e),on(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)}}ze.touchstart=t=>{t.input.lastTouch=Date.now(),uc(t),on(t,"pointer")},ze.touchmove=t=>{t.input.lastTouch=Date.now(),on(t,"pointer")},ze.contextmenu=t=>uc(t);function Pp(t,e){return t.composing?!0:Le&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const mv=gt?5e3:-1;Fe.compositionstart=Fe.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof V&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(o=>o.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),bs(t,!0),t.markCursor=null;else if(bs(t,!e.selection.empty),ht&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let o=t.domSelectionRange();for(let r=o.focusNode,i=o.focusOffset;r&&r.nodeType==1&&i!=0;){let s=i<0?r.lastChild:r.childNodes[i-1];if(!s)break;if(s.nodeType==3){let a=t.domSelection();a&&a.collapse(s,s.nodeValue.length);break}else r=s,i=-1}}t.input.composing=!0}Ip(t,mv)},Fe.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.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,Ip(t,20))};function Ip(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>bs(t),e))}function Lp(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=pv());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function fv(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=ib(e.focusNode,e.focusOffset),o=sb(e.focusNode,e.focusOffset);if(n&&o&&n!=o){let r=o.pmViewDesc,i=t.domObserver.lastChangedTextNode;if(n==i||o==i)return i;if(!r||!r.isText(o.nodeValue))return o;if(t.input.compositionNode==o){let s=n.pmViewDesc;if(!(!s||!s.isText(n.nodeValue)))return o}}return n||o}function pv(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function bs(t,e=!1){if(!(gt&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),Lp(t),e||t.docView&&t.docView.dirty){let n=tc(t);return n&&!n.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!t.state.selection.empty?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function hv(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 o=getSelection(),r=document.createRange();r.selectNodeContents(e),t.dom.blur(),o.removeAllRanges(),o.addRange(r),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const Lr=Ue&&Xt<15||Eo&&db<604;ze.copy=Fe.cut=(t,e)=>{let n=e,o=t.state.selection,r=n.type=="cut";if(o.empty)return;let i=Lr?null:n.clipboardData,s=o.content(),{dom:a,text:l}=Cp(t,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",l)):hv(t,a),r&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function gv(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function yv(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,o=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(o.contentEditable="true"),o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus();let r=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),o.parentNode&&o.parentNode.removeChild(o),n?zr(t,o.value,null,r,e):zr(t,o.textContent,o.innerHTML,r,e)},50)}function zr(t,e,n,o,r){let i=Ep(t,e,n,o,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,r,i||M.empty)))return!0;if(!i)return!1;let s=gv(i),a=s?t.state.tr.replaceSelectionWith(s,o):t.state.tr.replaceSelection(i);return t.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function zp(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," "):""}Fe.paste=(t,e)=>{let n=e;if(t.composing&&!gt)return;let o=Lr?null:n.clipboardData,r=t.input.shiftKey&&t.input.lastKeyCode!=45;o&&zr(t,zp(o),o.getData("text/html"),r,n)?n.preventDefault():yv(t,n)};class Fp{constructor(e,n,o){this.slice=e,this.move=n,this.node=o}}const Hp=tt?"altKey":"ctrlKey";ze.dragstart=(t,e)=>{let n=e,o=t.input.mouseDown;if(o&&o.done(),!n.dataTransfer)return;let r=t.state.selection,i=r.empty?null:t.posAtCoords(ws(n)),s;if(!(i&&i.pos>=r.from&&i.pos<=(r instanceof L?r.to-1:r.to))){if(o&&o.mightDrag)s=L.create(t.state.doc,o.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let m=t.docView.nearestDesc(n.target,!0);m&&m.node.type.spec.draggable&&m!=t.docView&&(s=L.create(t.state.doc,m.posBefore))}}let a=(s||t.state.selection).content(),{dom:l,text:c,slice:u}=Cp(t,a);(!n.dataTransfer.files.length||!Oe||Jf>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Lr?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",Lr||n.dataTransfer.setData("text/plain",c),t.dragging=new Fp(u,!n[Hp],s)},ze.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},Fe.dragover=Fe.dragenter=(t,e)=>e.preventDefault(),Fe.drop=(t,e)=>{let n=e,o=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let r=t.posAtCoords(ws(n));if(!r)return;let i=t.state.doc.resolve(r.pos),s=o&&o.slice;s?t.someProp("transformPasted",f=>{s=f(s,t)}):s=Ep(t,zp(n.dataTransfer),Lr?null:n.dataTransfer.getData("text/html"),!1,i);let a=!!(o&&!n[Hp]);if(t.someProp("handleDrop",f=>f(t,n,s||M.empty,a))){n.preventDefault();return}if(!s)return;n.preventDefault();let l=s?Yw(t.state.doc,i.pos,s):i.pos;l==null&&(l=i.pos);let c=t.state.tr;if(a){let{node:f}=o;f?f.replace(c):c.deleteSelection()}let u=c.mapping.map(l),m=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,d=c.doc;if(m?c.replaceRangeWith(u,u,s.content.firstChild):c.replaceRange(u,u,s),c.doc.eq(d))return;let p=c.doc.resolve(u);if(m&&L.isSelectable(s.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(s.content.firstChild))c.setSelection(new L(p));else{let f=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach((y,h,g,b)=>f=b),c.setSelection(oc(t,p,c.doc.resolve(f)))}t.focus(),t.dispatch(c.setMeta("uiEvent","drop"))},ze.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())&&Lt(t)},20))},ze.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)},ze.beforeinput=(t,e)=>{if(Oe&>&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:o}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=o||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",i=>i(t,Bn(8,"Backspace")))))return;let{$cursor:r}=t.state.selection;r&&r.pos>0&&t.dispatch(t.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let t in Fe)ze[t]=Fe[t];function Fr(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 vs{constructor(e,n){this.toDOM=e,this.spec=n||Jn,this.side=this.spec.side||0}map(e,n,o,r){let{pos:i,deleted:s}=e.mapResult(n.from+r,this.side<0?-1:1);return s?null:new ot(i-o,i-o,this)}valid(){return!0}eq(e){return this==e||e instanceof vs&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Fr(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class rn{constructor(e,n){this.attrs=e,this.spec=n||Jn}map(e,n,o,r){let i=e.map(n.from+r,this.spec.inclusiveStart?-1:1)-o,s=e.map(n.to+r,this.spec.inclusiveEnd?1:-1)-o;return i>=s?null:new ot(i,s,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof rn&&Fr(this.attrs,e.attrs)&&Fr(this.spec,e.spec)}static is(e){return e.type instanceof rn}destroy(){}}class dc{constructor(e,n){this.attrs=e,this.spec=n||Jn}map(e,n,o,r){let i=e.mapResult(n.from+r,1);if(i.deleted)return null;let s=e.mapResult(n.to+r,-1);return s.deleted||s.pos<=i.pos?null:new ot(i.pos-o,s.pos-o,this)}valid(e,n){let{index:o,offset:r}=e.content.findIndex(n.from),i;return r==n.from&&!(i=e.child(o)).isText&&r+i.nodeSize==n.to}eq(e){return this==e||e instanceof dc&&Fr(this.attrs,e.attrs)&&Fr(this.spec,e.spec)}destroy(){}}class ot{constructor(e,n,o){this.from=e,this.to=n,this.type=o}copy(e,n){return new ot(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,o){return this.type.map(e,this,n,o)}static widget(e,n,o){return new ot(e,e,new vs(n,o))}static inline(e,n,o,r){return new ot(e,n,new rn(o,r))}static node(e,n,o,r){return new ot(e,n,new dc(o,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof rn}get widget(){return this.type instanceof vs}}const Ro=[],Jn={};class me{constructor(e,n){this.local=e.length?e:Ro,this.children=n.length?n:Ro}static create(e,n){return n.length?Ss(n,e,0,Jn):Me}find(e,n,o){let r=[];return this.findInner(e??0,n??1e9,r,0,o),r}findInner(e,n,o,r,i){for(let s=0;s<this.local.length;s++){let a=this.local[s];a.from<=n&&a.to>=e&&(!i||i(a.spec))&&o.push(a.copy(a.from+r,a.to+r))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<n&&this.children[s+1]>e){let a=this.children[s]+1;this.children[s+2].findInner(e-a,n-a,o,r+a,i)}}map(e,n,o){return this==Me||e.maps.length==0?this:this.mapInner(e,n,0,0,o||Jn)}mapInner(e,n,o,r,i){let s;for(let a=0;a<this.local.length;a++){let l=this.local[a].map(e,o,r);l&&l.type.valid(n,l)?(s||(s=[])).push(l):i.onRemove&&i.onRemove(this.local[a].spec)}return this.children.length?wv(this.children,s||[],e,n,o,r,i):s?new me(s.sort(Yn),Ro):Me}add(e,n){return n.length?this==Me?me.create(e,n):this.addInner(e,n,0):this}addInner(e,n,o){let r,i=0;e.forEach((a,l)=>{let c=l+o,u;if(u=Vp(n,a,c)){for(r||(r=this.children.slice());i<r.length&&r[i]<l;)i+=3;r[i]==l?r[i+2]=r[i+2].addInner(a,u,c+1):r.splice(i,0,l,l+a.nodeSize,Ss(u,a,c+1,Jn)),i+=3}});let s=Bp(i?Up(n):n,-o);for(let a=0;a<s.length;a++)s[a].type.valid(e,s[a])||s.splice(a--,1);return new me(s.length?this.local.concat(s).sort(Yn):this.local,r||this.children)}remove(e){return e.length==0||this==Me?this:this.removeInner(e,0)}removeInner(e,n){let o=this.children,r=this.local;for(let i=0;i<o.length;i+=3){let s,a=o[i]+n,l=o[i+1]+n;for(let u=0,m;u<e.length;u++)(m=e[u])&&m.from>a&&m.to<l&&(e[u]=null,(s||(s=[])).push(m));if(!s)continue;o==this.children&&(o=this.children.slice());let c=o[i+2].removeInner(s,a+1);c!=Me?o[i+2]=c:(o.splice(i,3),i-=3)}if(r.length){for(let i=0,s;i<e.length;i++)if(s=e[i])for(let a=0;a<r.length;a++)r[a].eq(s,n)&&(r==this.local&&(r=this.local.slice()),r.splice(a--,1))}return o==this.children&&r==this.local?this:r.length||o.length?new me(r,o):Me}forChild(e,n){if(this==Me)return this;if(n.isLeaf)return me.empty;let o,r;for(let a=0;a<this.children.length;a+=3)if(this.children[a]>=e){this.children[a]==e&&(o=this.children[a+2]);break}let i=e+1,s=i+n.content.size;for(let a=0;a<this.local.length;a++){let l=this.local[a];if(l.from<s&&l.to>i&&l.type instanceof rn){let c=Math.max(i,l.from)-i,u=Math.min(s,l.to)-i;c<u&&(r||(r=[])).push(l.copy(c,u))}}if(r){let a=new me(r.sort(Yn),Ro);return o?new sn([a,o]):a}return o||Me}eq(e){if(this==e)return!0;if(!(e instanceof me)||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 mc(this.localsInner(e))}localsInner(e){if(this==Me)return Ro;if(e.inlineContent||!this.local.some(rn.is))return this.local;let n=[];for(let o=0;o<this.local.length;o++)this.local[o].type instanceof rn||n.push(this.local[o]);return n}forEachSet(e){e(this)}}me.empty=new me([],[]),me.removeOverlap=mc;const Me=me.empty;class sn{constructor(e){this.members=e}map(e,n){const o=this.members.map(r=>r.map(e,n,Jn));return sn.from(o)}forChild(e,n){if(n.isLeaf)return me.empty;let o=[];for(let r=0;r<this.members.length;r++){let i=this.members[r].forChild(e,n);i!=Me&&(i instanceof sn?o=o.concat(i.members):o.push(i))}return sn.from(o)}eq(e){if(!(e instanceof sn)||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,o=!0;for(let r=0;r<this.members.length;r++){let i=this.members[r].localsInner(e);if(i.length)if(!n)n=i;else{o&&(n=n.slice(),o=!1);for(let s=0;s<i.length;s++)n.push(i[s])}}return n?mc(o?n:n.sort(Yn)):Ro}static from(e){switch(e.length){case 0:return Me;case 1:return e[0];default:return new sn(e.every(n=>n instanceof me)?e:e.reduce((n,o)=>n.concat(o instanceof me?o:o.members),[]))}}forEachSet(e){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(e)}}function wv(t,e,n,o,r,i,s){let a=t.slice();for(let c=0,u=i;c<n.maps.length;c++){let m=0;n.maps[c].forEach((d,p,f,y)=>{let h=y-f-(p-d);for(let g=0;g<a.length;g+=3){let b=a[g+1];if(b<0||d>b+u-m)continue;let v=a[g]+u-m;p>=v?a[g+1]=d<=v?-2:-1:d>=u&&h&&(a[g]+=h,a[g+1]+=h)}m+=h}),u=n.maps[c].map(u,-1)}let l=!1;for(let c=0;c<a.length;c+=3)if(a[c+1]<0){if(a[c+1]==-2){l=!0,a[c+1]=-1;continue}let u=n.map(t[c]+i),m=u-r;if(m<0||m>=o.content.size){l=!0;continue}let d=n.map(t[c+1]+i,-1),p=d-r,{index:f,offset:y}=o.content.findIndex(m),h=o.maybeChild(f);if(h&&y==m&&y+h.nodeSize==p){let g=a[c+2].mapInner(n,h,u+1,t[c]+i+1,s);g!=Me?(a[c]=m,a[c+1]=p,a[c+2]=g):(a[c+1]=-2,l=!0)}else l=!0}if(l){let c=bv(a,t,e,n,r,i,s),u=Ss(c,o,0,s);e=u.local;for(let m=0;m<a.length;m+=3)a[m+1]<0&&(a.splice(m,3),m-=3);for(let m=0,d=0;m<u.children.length;m+=3){let p=u.children[m];for(;d<a.length&&a[d]<p;)d+=3;a.splice(d,0,u.children[m],u.children[m+1],u.children[m+2])}}return new me(e.sort(Yn),a)}function Bp(t,e){if(!e||!t.length)return t;let n=[];for(let o=0;o<t.length;o++){let r=t[o];n.push(new ot(r.from+e,r.to+e,r.type))}return n}function bv(t,e,n,o,r,i,s){function a(l,c){for(let u=0;u<l.local.length;u++){let m=l.local[u].map(o,r,c);m?n.push(m):s.onRemove&&s.onRemove(l.local[u].spec)}for(let u=0;u<l.children.length;u+=3)a(l.children[u+2],l.children[u]+c+1)}for(let l=0;l<t.length;l+=3)t[l+1]==-1&&a(t[l+2],e[l]+i+1);return n}function Vp(t,e,n){if(e.isLeaf)return null;let o=n+e.nodeSize,r=null;for(let i=0,s;i<t.length;i++)(s=t[i])&&s.from>n&&s.to<o&&((r||(r=[])).push(s),t[i]=null);return r}function Up(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function Ss(t,e,n,o){let r=[],i=!1;e.forEach((a,l)=>{let c=Vp(t,a,l+n);if(c){i=!0;let u=Ss(c,a,n+l+1,o);u!=Me&&r.push(l,l+a.nodeSize,u)}});let s=Bp(i?Up(t):t,-n).sort(Yn);for(let a=0;a<s.length;a++)s[a].type.valid(e,s[a])||(o.onRemove&&o.onRemove(s[a].spec),s.splice(a--,1));return s.length||r.length?new me(s,r):Me}function Yn(t,e){return t.from-e.from||t.to-e.to}function mc(t){let e=t;for(let n=0;n<e.length-1;n++){let o=e[n];if(o.from!=o.to)for(let r=n+1;r<e.length;r++){let i=e[r];if(i.from==o.from){i.to!=o.to&&(e==t&&(e=t.slice()),e[r]=i.copy(i.from,o.to),_p(e,r+1,i.copy(o.to,i.to)));continue}else{i.from<o.to&&(e==t&&(e=t.slice()),e[n]=o.copy(o.from,i.from),_p(e,r,o.copy(i.from,o.to)));break}}}return e}function _p(t,e,n){for(;e<t.length&&Yn(n,t[e])>0;)e++;t.splice(e,0,n)}function fc(t){let e=[];return t.someProp("decorations",n=>{let o=n(t.state);o&&o!=Me&&e.push(o)}),t.cursorWrapper&&e.push(me.create(t.state.doc,[t.cursorWrapper.deco])),sn.from(e)}const vv={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Sv=Ue&&Xt<=11;class xv{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 kv{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new xv,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(o=>{for(let r=0;r<o.length;r++)this.queue.push(o[r]);Ue&&Xt<=11&&o.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),Sv&&(this.onCharData=o=>{this.queue.push({target:o.target,type:"characterData",oldValue:o.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,vv)),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(yp(this.view)){if(this.suppressingSelectionUpdates)return Lt(this.view);if(Ue&&Xt<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Hn(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,o;for(let i=e.focusNode;i;i=Rr(i))n.add(i);for(let i=e.anchorNode;i;i=Rr(i))if(n.has(i)){o=i;break}let r=o&&this.view.docView.nearestDesc(o);if(r&&r.ignoreMutation({type:"selection",target:o.nodeType==3?o.parentNode:o}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}selectionChanged(e){return!this.suppressingSelectionUpdates&&!this.currentSelection.eq(e)&&yp(this.view)&&!this.ignoreSelectionChange(e)}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let o=e.domSelectionRange(),r=this.selectionChanged(o),i=-1,s=-1,a=!1,l=[];if(e.editable)for(let u=0;u<n.length;u++){let m=this.registerMutation(n[u],l);m&&(i=i<0?m.from:Math.min(m.from,i),s=s<0?m.to:Math.max(m.to,s),m.typeOver&&(a=!0))}if(ht&&l.length){let u=l.filter(m=>m.nodeName=="BR");if(u.length==2){let[m,d]=u;m.parentNode&&m.parentNode.parentNode==d.parentNode?d.remove():m.remove()}else{let{focusNode:m}=this.currentSelection;for(let d of u){let p=d.parentNode;p&&p.nodeName=="LI"&&(!m||Ev(e,m)!=p)&&d.remove()}}}let c=null;i<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&ps(o)&&(c=tc(e))&&c.eq(J.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Lt(e),this.currentSelection.set(o),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,s),$v(e)),this.handleDOMChange(i,s,a,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(o)||Lt(e),this.currentSelection.set(o))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let o=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(o==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!o||o.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;u<e.addedNodes.length;u++){let m=e.addedNodes[u];n.push(m),m.nodeType==3&&(this.lastChangedTextNode=m)}if(o.contentDOM&&o.contentDOM!=o.dom&&!o.contentDOM.contains(e.target))return{from:o.posBefore,to:o.posAfter};let r=e.previousSibling,i=e.nextSibling;if(Ue&&Xt<=11&&e.addedNodes.length)for(let u=0;u<e.addedNodes.length;u++){let{previousSibling:m,nextSibling:d}=e.addedNodes[u];(!m||Array.prototype.indexOf.call(e.addedNodes,m)<0)&&(r=m),(!d||Array.prototype.indexOf.call(e.addedNodes,d)<0)&&(i=d)}let s=r&&r.parentNode==e.target?ke(r)+1:0,a=o.localPosFromDOM(e.target,s,-1),l=i&&i.parentNode==e.target?ke(i):e.target.childNodes.length,c=o.localPosFromDOM(e.target,l,1);return{from:a,to:c}}else return e.type=="attributes"?{from:o.posAtStart-o.border,to:o.posAtEnd+o.border}:(this.lastChangedTextNode=e.target,{from:o.posAtStart,to:o.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let Jp=new WeakMap,Yp=!1;function $v(t){if(!Jp.has(t)&&(Jp.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=ht,Yp)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."),Yp=!0}}function Kp(t,e){let n=e.startContainer,o=e.startOffset,r=e.endContainer,i=e.endOffset,s=t.domAtPos(t.state.selection.anchor);return Hn(s.node,s.offset,r,i)&&([n,o,r,i]=[r,i,n,o]),{anchorNode:n,anchorOffset:o,focusNode:r,focusOffset:i}}function Cv(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return Kp(t,r)}let n;function o(r){r.preventDefault(),r.stopImmediatePropagation(),n=r.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",o,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",o,!0),n?Kp(t,n):null}function Ev(t,e){for(let n=e.parentNode;n&&n!=t.dom;n=n.parentNode){let o=t.docView.nearestDesc(n,!0);if(o&&o.node.isBlock)return n}return null}function Nv(t,e,n){let{node:o,fromOffset:r,toOffset:i,from:s,to:a}=t.docView.parseRange(e,n),l=t.domSelectionRange(),c,u=l.anchorNode;if(u&&t.dom.contains(u.nodeType==1?u:u.parentNode)&&(c=[{node:u,offset:l.anchorOffset}],ps(l)||c.push({node:l.focusNode,offset:l.focusOffset})),Oe&&t.input.lastKeyCode===8)for(let h=i;h>r;h--){let g=o.childNodes[h-1],b=g.pmViewDesc;if(g.nodeName=="BR"&&!b){i=h;break}if(!b||b.size)break}let m=t.state.doc,d=t.someProp("domParser")||Wt.fromSchema(t.state.schema),p=m.resolve(s),f=null,y=d.parse(o,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:r,to:i,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:Dv,context:p});if(c&&c[0].pos!=null){let h=c[0].pos,g=c[1]&&c[1].pos;g==null&&(g=h),f={anchor:h+s,head:g+s}}return{doc:y,sel:f,from:s,to:a}}function Dv(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(Le&&/^(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||Le&&/^(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 Av=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function Rv(t,e,n,o,r){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let E=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,U=tc(t,E);if(U&&!t.state.selection.eq(U)){if(Oe&>&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",X=>X(t,Bn(13,"Enter"))))return;let se=t.state.tr.setSelection(U);E=="pointer"?se.setMeta("pointer",!0):E=="key"&&se.scrollIntoView(),i&&se.setMeta("composition",i),t.dispatch(se)}return}let s=t.state.doc.resolve(e),a=s.sharedDepth(n);e=s.before(a+1),n=t.state.doc.resolve(n).after(a+1);let l=t.state.selection,c=Nv(t,e,n),u=t.state.doc,m=u.slice(c.from,c.to),d,p;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(d=t.state.selection.to,p="end"):(d=t.state.selection.from,p="start"),t.input.lastKeyCode=null;let f=Tv(m.content,c.doc.content,c.from,d,p);if(f&&t.input.domChangeCount++,(Eo&&t.input.lastIOSEnter>Date.now()-225||gt)&&r.some(E=>E.nodeType==1&&!Av.test(E.nodeName))&&(!f||f.endA>=f.endB)&&t.someProp("handleKeyDown",E=>E(t,Bn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!f)if(o&&l instanceof V&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))f={start:l.from,endA:l.to,endB:l.to};else{if(c.sel){let E=Wp(t,t.state.doc,c.sel);if(E&&!E.eq(t.state.selection)){let U=t.state.tr.setSelection(E);i&&U.setMeta("composition",i),t.dispatch(U)}}return}t.state.selection.from<t.state.selection.to&&f.start==f.endB&&t.state.selection instanceof V&&(f.start>t.state.selection.from&&f.start<=t.state.selection.from+2&&t.state.selection.from>=c.from?f.start=t.state.selection.from:f.endA<t.state.selection.to&&f.endA>=t.state.selection.to-2&&t.state.selection.to<=c.to&&(f.endB+=t.state.selection.to-f.endA,f.endA=t.state.selection.to)),Ue&&Xt<=11&&f.endB==f.start+1&&f.endA==f.start&&f.start>c.from&&c.doc.textBetween(f.start-c.from-1,f.start-c.from+1)==" "&&(f.start--,f.endA--,f.endB--);let y=c.doc.resolveNoCache(f.start-c.from),h=c.doc.resolveNoCache(f.endB-c.from),g=u.resolve(f.start),b=y.sameParent(h)&&y.parent.inlineContent&&g.end()>=f.endA,v;if((Eo&&t.input.lastIOSEnter>Date.now()-225&&(!b||r.some(E=>E.nodeName=="DIV"||E.nodeName=="P"))||!b&&y.pos<c.doc.content.size&&!y.sameParent(h)&&(v=J.findFrom(c.doc.resolve(y.pos+1),1,!0))&&v.head==h.pos)&&t.someProp("handleKeyDown",E=>E(t,Bn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>f.start&&Mv(u,f.start,f.endA,y,h)&&t.someProp("handleKeyDown",E=>E(t,Bn(8,"Backspace")))){gt&&Oe&&t.domObserver.suppressSelectionUpdates();return}Oe&>&&f.endB==f.start&&(t.input.lastAndroidDelete=Date.now()),gt&&!b&&y.start()!=h.start()&&h.parentOffset==0&&y.depth==h.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==f.endA&&(f.endB-=2,h=c.doc.resolveNoCache(f.endB-c.from),setTimeout(()=>{t.someProp("handleKeyDown",function(E){return E(t,Bn(13,"Enter"))})},20));let S=f.start,C=f.endA,x,$,R;if(b){if(y.pos==h.pos)Ue&&Xt<=11&&y.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Lt(t),20)),x=t.state.tr.delete(S,C),$=u.resolve(f.start).marksAcross(u.resolve(f.endA));else if(f.endA==f.endB&&(R=Ov(y.parent.content.cut(y.parentOffset,h.parentOffset),g.parent.content.cut(g.parentOffset,f.endA-g.start()))))x=t.state.tr,R.type=="add"?x.addMark(S,C,R.mark):x.removeMark(S,C,R.mark);else if(y.parent.child(y.index()).isText&&y.index()==h.index()-(h.textOffset?0:1)){let E=y.parent.textBetween(y.parentOffset,h.parentOffset);if(t.someProp("handleTextInput",U=>U(t,S,C,E)))return;x=t.state.tr.insertText(E,S,C)}}if(x||(x=t.state.tr.replace(S,C,c.doc.slice(f.start-c.from,f.endB-c.from))),c.sel){let E=Wp(t,x.doc,c.sel);E&&!(Oe&>&&t.composing&&E.empty&&(f.start!=f.endB||t.input.lastAndroidDelete<Date.now()-100)&&(E.head==S||E.head==x.mapping.map(C)-1)||Ue&&E.empty&&E.head==S)&&x.setSelection(E)}$&&x.ensureMarks($),i&&x.setMeta("composition",i),t.dispatch(x.scrollIntoView())}function Wp(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:oc(t,e.resolve(n.anchor),e.resolve(n.head))}function Ov(t,e){let n=t.firstChild.marks,o=e.firstChild.marks,r=n,i=o,s,a,l;for(let u=0;u<o.length;u++)r=o[u].removeFromSet(r);for(let u=0;u<n.length;u++)i=n[u].removeFromSet(i);if(r.length==1&&i.length==0)a=r[0],s="add",l=u=>u.mark(a.addToSet(u.marks));else if(r.length==0&&i.length==1)a=i[0],s="remove",l=u=>u.mark(a.removeFromSet(u.marks));else return null;let c=[];for(let u=0;u<e.childCount;u++)c.push(l(e.child(u)));if(N.from(c).eq(t))return{mark:a,type:s}}function Mv(t,e,n,o,r){if(n-e<=r.pos-o.pos||pc(o,!0,!1)<r.pos)return!1;let i=t.resolve(e);if(!o.parent.isTextblock){let a=i.nodeAfter;return a!=null&&n==e+a.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=t.resolve(pc(i,!0,!0));return!s.parent.isTextblock||s.pos>n||pc(s,!0,!1)<n?!1:o.parent.content.cut(o.parentOffset).eq(s.parent.content)}function pc(t,e,n){let o=t.depth,r=e?t.end():t.pos;for(;o>0&&(e||t.indexAfter(o)==t.node(o).childCount);)o--,r++,e=!1;if(n){let i=t.node(o).maybeChild(t.indexAfter(o));for(;i&&!i.isLeaf;)i=i.firstChild,r++}return r}function Tv(t,e,n,o,r){let i=t.findDiffStart(e,n);if(i==null)return null;let{a:s,b:a}=t.findDiffEnd(e,n+t.size,n+e.size);if(r=="end"){let l=Math.max(0,i-Math.min(s,a));o-=s+l-i}if(s<i&&t.size<e.size){let l=o<=i&&o>=s?i-o:0;i-=l,i&&i<e.size&&qp(e.textBetween(i-1,i+1))&&(i+=l?1:-1),a=i+(a-s),s=i}else if(a<i){let l=o<=i&&o>=a?i-o:0;i-=l,i&&i<t.size&&qp(t.textBetween(i-1,i+1))&&(i+=l?1:-1),s=i+(s-a),a=i}return{start:i,endA:s,endB:a}}function qp(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 jv{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 Xb,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(eh),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=Zp(this),Qp(this),this.nodeViews=Xp(this),this.docView=ip(this.state.doc,Gp(this),fc(this),this.dom,this),this.domObserver=new kv(this,(o,r,i,s)=>Rv(this,o,r,i,s)),this.domObserver.start(),ev(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&&ac(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(eh),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let o in this._props)n[o]=this._props[o];n.state=this.state;for(let o in e)n[o]=e[o];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var o;let r=this.state,i=!1,s=!1;e.storedMarks&&this.composing&&(Lp(this),s=!0),this.state=e;let a=r.plugins!=e.plugins||this._props.plugins!=n.plugins;if(a||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let p=Xp(this);Iv(p,this.nodeViews)&&(this.nodeViews=p,i=!0)}(a||n.handleDOMEvents!=this._props.handleDOMEvents)&&ac(this),this.editable=Zp(this),Qp(this);let l=fc(this),c=Gp(this),u=r.plugins!=e.plugins&&!r.doc.eq(e.doc)?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",m=i||!this.docView.matchesNode(e.doc,c,l);(m||!e.selection.eq(r.selection))&&(s=!0);let d=u=="preserve"&&s&&this.dom.style.overflowAnchor==null&&pb(this);if(s){this.domObserver.stop();let p=m&&(Ue||Oe)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&Pv(r.selection,e.selection);if(m){let f=Oe?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=fv(this)),(i||!this.docView.update(e.doc,c,l,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=ip(e.doc,c,l,this.dom,this)),f&&!this.trackWrites&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&zb(this))?Lt(this,p):(hp(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),!((o=this.dragging)===null||o===void 0)&&o.node&&!r.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,r),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():d&&hb(d)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof L){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&Yf(this,n.getBoundingClientRect(),e)}else Yf(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 o=this.directPlugins[n];o.spec.view&&this.pluginViews.push(o.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let o=this.state.plugins[n];o.spec.view&&this.pluginViews.push(o.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let o=this.pluginViews[n];o.update&&o.update(this,e)}}updateDraggedNode(e,n){let o=e.node,r=-1;if(this.state.doc.nodeAt(o.from)==o.node)r=o.from;else{let i=o.from+(this.state.doc.content.size-n.doc.content.size);(i>0&&this.state.doc.nodeAt(i))==o.node&&(r=i)}this.dragging=new Fp(e.slice,e.move,r<0?void 0:L.create(this.state.doc,r))}someProp(e,n){let o=this._props&&this._props[e],r;if(o!=null&&(r=n?n(o):o))return r;for(let s=0;s<this.directPlugins.length;s++){let a=this.directPlugins[s].props[e];if(a!=null&&(r=n?n(a):a))return r}let i=this.state.plugins;if(i)for(let s=0;s<i.length;s++){let a=i[s].props[e];if(a!=null&&(r=n?n(a):a))return r}}hasFocus(){if(Ue){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&&gb(this.dom),Lt(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 Sb(this,e)}coordsAtPos(e,n=1){return Zf(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,o=-1){let r=this.docView.posFromDOM(e,n,o);if(r==null)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,n){return Eb(this,n||this.state,e)}pasteHTML(e,n){return zr(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return zr(this,e,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(tv(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],fc(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,ob())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return ov(this,e)}dispatch(e){let n=this._props.dispatchTransaction;n?n.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){let e=this.domSelection();return e?Le&&this.root.nodeType===11&&lb(this.dom.ownerDocument)==this.dom&&Cv(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function Gp(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 o in n)o=="class"?e.class+=" "+n[o]:o=="style"?e.style=(e.style?e.style+";":"")+n[o]:!e[o]&&o!="contenteditable"&&o!="nodeName"&&(e[o]=String(n[o]))}),e.translate||(e.translate="no"),[ot.node(0,t.state.doc.content.size,e)]}function Qp(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:ot.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function Zp(t){return!t.someProp("editable",e=>e(t.state)===!1)}function Pv(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 Xp(t){let e=Object.create(null);function n(o){for(let r in o)Object.prototype.hasOwnProperty.call(e,r)||(e[r]=o[r])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function Iv(t,e){let n=0,o=0;for(let r in t){if(t[r]!=e[r])return!0;n++}for(let r in e)o++;return n!=o}function eh(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")}for(var an={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:"'"},xs={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Lv=typeof navigator<"u"&&/Mac/.test(navigator.platform),zv=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),$e=0;$e<10;$e++)an[48+$e]=an[96+$e]=String($e);for(var $e=1;$e<=24;$e++)an[$e+111]="F"+$e;for(var $e=65;$e<=90;$e++)an[$e]=String.fromCharCode($e+32),xs[$e]=String.fromCharCode($e);for(var hc in an)xs.hasOwnProperty(hc)||(xs[hc]=an[hc]);function Fv(t){var e=Lv&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||zv&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?xs:an)[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 Hv=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function Bv(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let o,r,i,s;for(let a=0;a<e.length-1;a++){let l=e[a];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))o=!0;else if(/^(c|ctrl|control)$/i.test(l))r=!0;else if(/^s(hift)?$/i.test(l))i=!0;else if(/^mod$/i.test(l))Hv?s=!0:r=!0;else throw new Error("Unrecognized modifier name: "+l)}return o&&(n="Alt-"+n),r&&(n="Ctrl-"+n),s&&(n="Meta-"+n),i&&(n="Shift-"+n),n}function Vv(t){let e=Object.create(null);for(let n in t)e[Bv(n)]=t[n];return e}function gc(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 Uv(t){return new Ve({props:{handleKeyDown:_v(t)}})}function _v(t){let e=Vv(t);return function(n,o){let r=Fv(o),i,s=e[gc(r,o)];if(s&&s(n.state,n.dispatch,n))return!0;if(r.length==1&&r!=" "){if(o.shiftKey){let a=e[gc(r,o,!1)];if(a&&a(n.state,n.dispatch,n))return!0}if((o.shiftKey||o.altKey||o.metaKey||r.charCodeAt(0)>127)&&(i=an[o.keyCode])&&i!=r){let a=e[gc(i,o)];if(a&&a(n.state,n.dispatch,n))return!0}}return!1}}const Jv=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function th(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 o=th(t,n);if(!o)return!1;let r=yc(o);if(!r){let s=o.blockRange(),a=s&&vo(s);return a==null?!1:(e&&e(t.tr.lift(s,a).scrollIntoView()),!0)}let i=r.nodeBefore;if(ih(t,r,e,-1))return!0;if(o.parent.content.size==0&&(Oo(i,"end")||L.isSelectable(i)))for(let s=o.depth;;s--){let a=ds(t.doc,o.before(s),o.after(s),M.empty);if(a&&a.slice.size<a.to-a.from){if(e){let l=t.tr.step(a);l.setSelection(Oo(i,"end")?J.findFrom(l.doc.resolve(l.mapping.map(r.pos,-1)),-1):L.create(l.doc,r.pos-i.nodeSize)),e(l.scrollIntoView())}return!0}if(s==1||o.node(s-1).childCount>1)break}return i.isAtom&&r.depth==o.depth-1?(e&&e(t.tr.delete(r.pos-i.nodeSize,r.pos).scrollIntoView()),!0):!1},Kv=(t,e,n)=>{let o=th(t,n);if(!o)return!1;let r=yc(o);return r?nh(t,r,e):!1},Wv=(t,e,n)=>{let o=oh(t,n);if(!o)return!1;let r=wc(o);return r?nh(t,r,e):!1};function nh(t,e,n){let o=e.nodeBefore,r=o,i=e.pos-1;for(;!r.isTextblock;i--){if(r.type.spec.isolating)return!1;let u=r.lastChild;if(!u)return!1;r=u}let s=e.nodeAfter,a=s,l=e.pos+1;for(;!a.isTextblock;l++){if(a.type.spec.isolating)return!1;let u=a.firstChild;if(!u)return!1;a=u}let c=ds(t.doc,i,l,M.empty);if(!c||c.from!=i||c instanceof he&&c.slice.size>=l-i)return!1;if(n){let u=t.tr.step(c);u.setSelection(V.create(u.doc,i)),n(u.scrollIntoView())}return!0}function Oo(t,e,n=!1){for(let o=t;o;o=e=="start"?o.firstChild:o.lastChild){if(o.isTextblock)return!0;if(n&&o.childCount!=1)return!1}return!1}const qv=(t,e,n)=>{let{$head:o,empty:r}=t.selection,i=o;if(!r)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):o.parentOffset>0)return!1;i=yc(o)}let s=i&&i.nodeBefore;return!s||!L.isSelectable(s)?!1:(e&&e(t.tr.setSelection(L.create(t.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function yc(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 oh(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const Gv=(t,e,n)=>{let o=oh(t,n);if(!o)return!1;let r=wc(o);if(!r)return!1;let i=r.nodeAfter;if(ih(t,r,e,1))return!0;if(o.parent.content.size==0&&(Oo(i,"start")||L.isSelectable(i))){let s=ds(t.doc,o.before(),o.after(),M.empty);if(s&&s.slice.size<s.to-s.from){if(e){let a=t.tr.step(s);a.setSelection(Oo(i,"start")?J.findFrom(a.doc.resolve(a.mapping.map(r.pos)),1):L.create(a.doc,a.mapping.map(r.pos))),e(a.scrollIntoView())}return!0}}return i.isAtom&&r.depth==o.depth-1?(e&&e(t.tr.delete(r.pos,r.pos+i.nodeSize).scrollIntoView()),!0):!1},Qv=(t,e,n)=>{let{$head:o,empty:r}=t.selection,i=o;if(!r)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):o.parentOffset<o.parent.content.size)return!1;i=wc(o)}let s=i&&i.nodeAfter;return!s||!L.isSelectable(s)?!1:(e&&e(t.tr.setSelection(L.create(t.doc,i.pos)).scrollIntoView()),!0)};function wc(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 Zv=(t,e)=>{let n=t.selection,o=n instanceof L,r;if(o){if(n.node.isTextblock||!Qt(t.doc,n.from))return!1;r=n.from}else if(r=us(t.doc,n.from,-1),r==null)return!1;if(e){let i=t.tr.join(r);o&&i.setSelection(L.create(i.doc,r-t.doc.resolve(r).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},Xv=(t,e)=>{let n=t.selection,o;if(n instanceof L){if(n.node.isTextblock||!Qt(t.doc,n.to))return!1;o=n.to}else if(o=us(t.doc,n.to,1),o==null)return!1;return e&&e(t.tr.join(o).scrollIntoView()),!0},eS=(t,e)=>{let{$from:n,$to:o}=t.selection,r=n.blockRange(o),i=r&&vo(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)},tS=(t,e)=>{let{$head:n,$anchor:o}=t.selection;return!n.parent.type.spec.code||!n.sameParent(o)?!1:(e&&e(t.tr.insertText(`
|
|
29
|
+
`).scrollIntoView()),!0)};function rh(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 nS=(t,e)=>{let{$head:n,$anchor:o}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(o))return!1;let r=n.node(-1),i=n.indexAfter(-1),s=rh(r.contentMatchAt(i));if(!s||!r.canReplaceWith(i,i,s))return!1;if(e){let a=n.after(),l=t.tr.replaceWith(a,a,s.createAndFill());l.setSelection(J.near(l.doc.resolve(a),1)),e(l.scrollIntoView())}return!0},oS=(t,e)=>{let n=t.selection,{$from:o,$to:r}=n;if(n instanceof ft||o.parent.inlineContent||r.parent.inlineContent)return!1;let i=rh(r.parent.contentMatchAt(r.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let s=(!o.parentOffset&&r.index()<r.parent.childCount?o:r).pos,a=t.tr.insert(s,i.createAndFill());a.setSelection(V.create(a.doc,s+1)),e(a.scrollIntoView())}return!0},rS=(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 i=n.before();if(So(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let o=n.blockRange(),r=o&&vo(o);return r==null?!1:(e&&e(t.tr.lift(o,r).scrollIntoView()),!0)},iS=(t,e)=>{let{$from:n,to:o}=t.selection,r,i=n.sharedDepth(o);return i==0?!1:(r=n.before(i),e&&e(t.tr.setSelection(L.create(t.doc,r))),!0)};function sS(t,e,n){let o=e.nodeBefore,r=e.nodeAfter,i=e.index();return!o||!r||!o.type.compatibleContent(r.type)?!1:!o.content.size&&e.parent.canReplace(i-1,i)?(n&&n(t.tr.delete(e.pos-o.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(r.isTextblock||Qt(t.doc,e.pos))?!1:(n&&n(t.tr.clearIncompatible(e.pos,o.type,o.contentMatchAt(o.childCount)).join(e.pos).scrollIntoView()),!0)}function ih(t,e,n,o){let r=e.nodeBefore,i=e.nodeAfter,s,a,l=r.type.spec.isolating||i.type.spec.isolating;if(!l&&sS(t,e,n))return!0;let c=!l&&e.parent.canReplace(e.index(),e.index()+1);if(c&&(s=(a=r.contentMatchAt(r.childCount)).findWrapping(i.type))&&a.matchType(s[0]||i.type).validEnd){if(n){let p=e.pos+i.nodeSize,f=N.empty;for(let g=s.length-1;g>=0;g--)f=N.from(s[g].create(null,f));f=N.from(r.copy(f));let y=t.tr.step(new ge(e.pos-1,p,e.pos,p,new M(f,1,0),s.length,!0)),h=p+2*s.length;Qt(y.doc,h)&&y.join(h),n(y.scrollIntoView())}return!0}let u=i.type.spec.isolating||o>0&&l?null:J.findFrom(e,1),m=u&&u.$from.blockRange(u.$to),d=m&&vo(m);if(d!=null&&d>=e.depth)return n&&n(t.tr.lift(m,d).scrollIntoView()),!0;if(c&&Oo(i,"start",!0)&&Oo(r,"end")){let p=r,f=[];for(;f.push(p),!p.isTextblock;)p=p.lastChild;let y=i,h=1;for(;!y.isTextblock;y=y.firstChild)h++;if(p.canReplace(p.childCount,p.childCount,y.content)){if(n){let g=N.empty;for(let v=f.length-1;v>=0;v--)g=N.from(f[v].copy(g));let b=t.tr.step(new ge(e.pos-f.length,e.pos+i.nodeSize,e.pos+h,e.pos+i.nodeSize-h,new M(g,f.length,0),0,!0));n(b.scrollIntoView())}return!0}}return!1}function sh(t){return function(e,n){let o=e.selection,r=t<0?o.$from:o.$to,i=r.depth;for(;r.node(i).isInline;){if(!i)return!1;i--}return r.node(i).isTextblock?(n&&n(e.tr.setSelection(V.create(e.doc,t<0?r.start(i):r.end(i)))),!0):!1}}const aS=sh(-1),lS=sh(1);function cS(t,e=null){return function(n,o){let{$from:r,$to:i}=n.selection,s=r.blockRange(i),a=s&&Hl(s,t,e);return a?(o&&o(n.tr.wrap(s,a).scrollIntoView()),!0):!1}}function ah(t,e=null){return function(n,o){let r=!1;for(let i=0;i<n.selection.ranges.length&&!r;i++){let{$from:{pos:s},$to:{pos:a}}=n.selection.ranges[i];n.doc.nodesBetween(s,a,(l,c)=>{if(r)return!1;if(!(!l.isTextblock||l.hasMarkup(t,e)))if(l.type==t)r=!0;else{let u=n.doc.resolve(c),m=u.index();r=u.parent.canReplaceWith(m,m+1,t)}})}if(!r)return!1;if(o){let i=n.tr;for(let s=0;s<n.selection.ranges.length;s++){let{$from:{pos:a},$to:{pos:l}}=n.selection.ranges[s];i.setBlockType(a,l,t,e)}o(i.scrollIntoView())}return!0}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function uS(t,e=null){return function(n,o){let{$from:r,$to:i}=n.selection,s=r.blockRange(i),a=!1,l=s;if(!s)return!1;if(s.depth>=2&&r.node(s.depth-1).type.compatibleContent(t)&&s.startIndex==0){if(r.index(s.depth-1)==0)return!1;let u=n.doc.resolve(s.start-2);l=new ts(u,u,s.depth),s.endIndex<s.parent.childCount&&(s=new ts(r,n.doc.resolve(i.end(s.depth)),s.depth)),a=!0}let c=Hl(l,t,e,s);return c?(o&&o(dS(n.tr,s,c,a,t).scrollIntoView()),!0):!1}}function dS(t,e,n,o,r){let i=N.empty;for(let u=n.length-1;u>=0;u--)i=N.from(n[u].type.create(n[u].attrs,i));t.step(new ge(e.start-(o?2:0),e.end,e.start,e.end,new M(i,0,0),n.length,!0));let s=0;for(let u=0;u<n.length;u++)n[u].type==r&&(s=u+1);let a=n.length-s,l=e.start+n.length-(o?2:0),c=e.parent;for(let u=e.startIndex,m=e.endIndex,d=!0;u<m;u++,d=!1)!d&&So(t.doc,l,a)&&(t.split(l,a),l+=2*a),l+=c.child(u).nodeSize;return t}function mS(t){return function(e,n){let{$from:o,$to:r}=e.selection,i=o.blockRange(r,s=>s.childCount>0&&s.firstChild.type==t);return i?n?o.node(i.depth-1).type==t?fS(e,n,t,i):pS(e,n,i):!0:!1}}function fS(t,e,n,o){let r=t.tr,i=o.end,s=o.$to.end(o.depth);i<s&&(r.step(new ge(i-1,s,i,s,new M(N.from(n.create(null,o.parent.copy())),1,0),1,!0)),o=new ts(r.doc.resolve(o.$from.pos),r.doc.resolve(s),o.depth));const a=vo(o);if(a==null)return!1;r.lift(o,a);let l=r.mapping.map(i,-1)-1;return Qt(r.doc,l)&&r.join(l),e(r.scrollIntoView()),!0}function pS(t,e,n){let o=t.tr,r=n.parent;for(let p=n.end,f=n.endIndex-1,y=n.startIndex;f>y;f--)p-=r.child(f).nodeSize,o.delete(p-1,p+1);let i=o.doc.resolve(n.start),s=i.nodeAfter;if(o.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let a=n.startIndex==0,l=n.endIndex==r.childCount,c=i.node(-1),u=i.index(-1);if(!c.canReplace(u+(a?0:1),u+1,s.content.append(l?N.empty:N.from(r))))return!1;let m=i.pos,d=m+s.nodeSize;return o.step(new ge(m-(a?1:0),d+(l?1:0),m+1,d-1,new M((a?N.empty:N.from(r.copy(N.empty))).append(l?N.empty:N.from(r.copy(N.empty))),a?0:1,l?0:1),a?0:1)),e(o.scrollIntoView()),!0}function hS(t){return function(e,n){let{$from:o,$to:r}=e.selection,i=o.blockRange(r,c=>c.childCount>0&&c.firstChild.type==t);if(!i)return!1;let s=i.startIndex;if(s==0)return!1;let a=i.parent,l=a.child(s-1);if(l.type!=t)return!1;if(n){let c=l.lastChild&&l.lastChild.type==a.type,u=N.from(c?t.create():null),m=new M(N.from(t.create(null,N.from(a.type.create(null,u)))),c?3:1,0),d=i.start,p=i.end;n(e.tr.step(new ge(d-(c?3:1),p,d,p,m,1,!0)).scrollIntoView())}return!0}}function ks(t){const{state:e,transaction:n}=t;let{selection:o}=n,{doc:r}=n,{storedMarks:i}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return i},get selection(){return o},get doc(){return r},get tr(){return o=n.selection,r=n.doc,i=n.storedMarks,n}}}class $s{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:n,state:o}=this,{view:r}=n,{tr:i}=o,s=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([a,l])=>[a,(...u)=>{const m=l(...u)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(i),m}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,n=!0){const{rawCommands:o,editor:r,state:i}=this,{view:s}=r,a=[],l=!!e,c=e||i.tr,u=()=>(!l&&n&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(c),a.every(d=>d===!0)),m={...Object.fromEntries(Object.entries(o).map(([d,p])=>[d,(...y)=>{const h=this.buildProps(c,n),g=p(...y)(h);return a.push(g),m}])),run:u};return m}createCan(e){const{rawCommands:n,state:o}=this,r=!1,i=e||o.tr,s=this.buildProps(i,r);return{...Object.fromEntries(Object.entries(n).map(([l,c])=>[l,(...u)=>c(...u)({...s,dispatch:void 0})])),chain:()=>this.createChain(i,r)}}buildProps(e,n=!0){const{rawCommands:o,editor:r,state:i}=this,{view:s}=r,a={tr:e,editor:r,view:s,state:ks({state:i,transaction:e}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(e,n),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(o).map(([l,c])=>[l,(...u)=>c(...u)(a)]))}};return a}}let gS=class{constructor(){this.callbacks={}}on(e,n){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(n),this}emit(e,...n){const o=this.callbacks[e];return o&&o.forEach(r=>r.apply(this,n)),this}off(e,n){const o=this.callbacks[e];return o&&(n?this.callbacks[e]=o.filter(r=>r!==n):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}};function j(t,e,n){return t.config[e]===void 0&&t.parent?j(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?j(t.parent,e,n):null}):t.config[e]}function Cs(t){const e=t.filter(r=>r.type==="extension"),n=t.filter(r=>r.type==="node"),o=t.filter(r=>r.type==="mark");return{baseExtensions:e,nodeExtensions:n,markExtensions:o}}function lh(t){const e=[],{nodeExtensions:n,markExtensions:o}=Cs(t),r=[...n,...o],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(s=>{const a={name:s.name,options:s.options,storage:s.storage,extensions:r},l=j(s,"addGlobalAttributes",a);if(!l)return;l().forEach(u=>{u.types.forEach(m=>{Object.entries(u.attributes).forEach(([d,p])=>{e.push({type:m,name:d,attribute:{...i,...p}})})})})}),r.forEach(s=>{const a={name:s.name,options:s.options,storage:s.storage},l=j(s,"addAttributes",a);if(!l)return;const c=l();Object.entries(c).forEach(([u,m])=>{const d={...i,...m};typeof(d==null?void 0:d.default)=="function"&&(d.default=d.default()),d!=null&&d.isRequired&&(d==null?void 0:d.default)===void 0&&delete d.default,e.push({type:s.name,name:u,attribute:d})})}),e}function ye(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function Mo(...t){return t.filter(e=>!!e).reduce((e,n)=>{const o={...e};return Object.entries(n).forEach(([r,i])=>{if(!o[r]){o[r]=i;return}if(r==="class"){const a=i?i.split(" "):[],l=o[r]?o[r].split(" "):[],c=a.filter(u=>!l.includes(u));o[r]=[...l,...c].join(" ")}else if(r==="style"){const a=i?i.split(";").map(u=>u.trim()).filter(Boolean):[],l=o[r]?o[r].split(";").map(u=>u.trim()).filter(Boolean):[],c=new Map;l.forEach(u=>{const[m,d]=u.split(":").map(p=>p.trim());c.set(m,d)}),a.forEach(u=>{const[m,d]=u.split(":").map(p=>p.trim());c.set(m,d)}),o[r]=Array.from(c.entries()).map(([u,m])=>`${u}: ${m}`).join("; ")}else o[r]=i}),o},{})}function bc(t,e){return e.filter(n=>n.type===t.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,o)=>Mo(n,o),{})}function ch(t){return typeof t=="function"}function Y(t,e=void 0,...n){return ch(t)?e?t.bind(e)(...n):t(...n):t}function yS(t={}){return Object.keys(t).length===0&&t.constructor===Object}function wS(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function uh(t,e){return"style"in t?t:{...t,getAttrs:n=>{const o=t.getAttrs?t.getAttrs(n):t.attrs;if(o===!1)return!1;const r=e.reduce((i,s)=>{const a=s.attribute.parseHTML?s.attribute.parseHTML(n):wS(n.getAttribute(s.name));return a==null?i:{...i,[s.name]:a}},{});return{...o,...r}}}}function dh(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&yS(n)?!1:n!=null))}function bS(t,e){var n;const o=lh(t),{nodeExtensions:r,markExtensions:i}=Cs(t),s=(n=r.find(c=>j(c,"topNode")))===null||n===void 0?void 0:n.name,a=Object.fromEntries(r.map(c=>{const u=o.filter(g=>g.type===c.name),m={name:c.name,options:c.options,storage:c.storage,editor:e},d=t.reduce((g,b)=>{const v=j(b,"extendNodeSchema",m);return{...g,...v?v(c):{}}},{}),p=dh({...d,content:Y(j(c,"content",m)),marks:Y(j(c,"marks",m)),group:Y(j(c,"group",m)),inline:Y(j(c,"inline",m)),atom:Y(j(c,"atom",m)),selectable:Y(j(c,"selectable",m)),draggable:Y(j(c,"draggable",m)),code:Y(j(c,"code",m)),whitespace:Y(j(c,"whitespace",m)),defining:Y(j(c,"defining",m)),isolating:Y(j(c,"isolating",m)),attrs:Object.fromEntries(u.map(g=>{var b;return[g.name,{default:(b=g==null?void 0:g.attribute)===null||b===void 0?void 0:b.default}]}))}),f=Y(j(c,"parseHTML",m));f&&(p.parseDOM=f.map(g=>uh(g,u)));const y=j(c,"renderHTML",m);y&&(p.toDOM=g=>y({node:g,HTMLAttributes:bc(g,u)}));const h=j(c,"renderText",m);return h&&(p.toText=h),[c.name,p]})),l=Object.fromEntries(i.map(c=>{const u=o.filter(h=>h.type===c.name),m={name:c.name,options:c.options,storage:c.storage,editor:e},d=t.reduce((h,g)=>{const b=j(g,"extendMarkSchema",m);return{...h,...b?b(c):{}}},{}),p=dh({...d,inclusive:Y(j(c,"inclusive",m)),excludes:Y(j(c,"excludes",m)),group:Y(j(c,"group",m)),spanning:Y(j(c,"spanning",m)),code:Y(j(c,"code",m)),attrs:Object.fromEntries(u.map(h=>{var g;return[h.name,{default:(g=h==null?void 0:h.attribute)===null||g===void 0?void 0:g.default}]}))}),f=Y(j(c,"parseHTML",m));f&&(p.parseDOM=f.map(h=>uh(h,u)));const y=j(c,"renderHTML",m);return y&&(p.toDOM=h=>y({mark:h,HTMLAttributes:bc(h,u)})),[c.name,p]}));return new uf({topNode:s,nodes:a,marks:l})}function vc(t,e){return e.nodes[t]||e.marks[t]||null}function mh(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}const vS=(t,e=500)=>{let n="";const o=t.parentOffset;return t.parent.nodesBetween(Math.max(0,o-e),o,(r,i,s,a)=>{var l,c;const u=((c=(l=r.type.spec).toText)===null||c===void 0?void 0:c.call(l,{node:r,pos:i,parent:s,index:a}))||r.textContent||"%leaf%";n+=r.isAtom&&!r.isText?u:u.slice(0,Math.max(0,o-i))}),n};function Sc(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class SS{constructor(e){this.find=e.find,this.handler=e.handler}}const xS=(t,e)=>{if(Sc(e))return e.exec(t);const n=e(t);if(!n)return null;const o=[n.text];return o.index=n.index,o.input=t,o.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),o.push(n.replaceWith)),o};function Es(t){var e;const{editor:n,from:o,to:r,text:i,rules:s,plugin:a}=t,{view:l}=n;if(l.composing)return!1;const c=l.state.doc.resolve(o);if(c.parent.type.spec.code||!((e=c.nodeBefore||c.nodeAfter)===null||e===void 0)&&e.marks.find(d=>d.type.spec.code))return!1;let u=!1;const m=vS(c)+i;return s.forEach(d=>{if(u)return;const p=xS(m,d.find);if(!p)return;const f=l.state.tr,y=ks({state:l.state,transaction:f}),h={from:o-(p[0].length-i.length),to:r},{commands:g,chain:b,can:v}=new $s({editor:n,state:y});d.handler({state:y,range:h,match:p,commands:g,chain:b,can:v})===null||!f.steps.length||(f.setMeta(a,{transform:f,from:o,to:r,text:i}),l.dispatch(f),u=!0)}),u}function kS(t){const{editor:e,rules:n}=t,o=new Ve({state:{init(){return null},apply(r,i){const s=r.getMeta(o);if(s)return s;const a=r.getMeta("applyInputRules");return!!a&&setTimeout(()=>{const{from:c,text:u}=a,m=c+u.length;Es({editor:e,from:c,to:m,text:u,rules:n,plugin:o})}),r.selectionSet||r.docChanged?null:i}},props:{handleTextInput(r,i,s,a){return Es({editor:e,from:i,to:s,text:a,rules:n,plugin:o})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:i}=r.state.selection;i&&Es({editor:e,from:i.pos,to:i.pos,text:"",rules:n,plugin:o})}),!1)},handleKeyDown(r,i){if(i.key!=="Enter")return!1;const{$cursor:s}=r.state.selection;return s?Es({editor:e,from:s.pos,to:s.pos,text:`
|
|
30
|
+
`,rules:n,plugin:o}):!1}},isInputRules:!0});return o}function $S(t){return Object.prototype.toString.call(t).slice(8,-1)}function Ns(t){return $S(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function Ds(t,e){const n={...t};return Ns(t)&&Ns(e)&&Object.keys(e).forEach(o=>{Ns(e[o])&&Ns(t[o])?n[o]=Ds(t[o],e[o]):n[o]=e[o]}),n}class Hr{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Y(j(this,"addOptions",{name:this.name}))),this.storage=Y(j(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Hr(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Ds(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new Hr(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Y(j(n,"addOptions",{name:n.name})),n.storage=Y(j(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:e,mark:n}){const{tr:o}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){const s=r.marks();if(!!!s.find(c=>(c==null?void 0:c.type.name)===n.name))return!1;const l=s.find(c=>(c==null?void 0:c.type.name)===n.name);return l&&o.removeStoredMark(l),o.insertText(" ",r.pos),e.view.dispatch(o),!0}return!1}}function CS(t){return typeof t=="number"}class ES{constructor(e){this.find=e.find,this.handler=e.handler}}const NS=(t,e,n)=>{if(Sc(e))return[...t.matchAll(e)];const o=e(t,n);return o?o.map(r=>{const i=[r.text];return i.index=r.index,i.input=t,i.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),i.push(r.replaceWith)),i}):[]};function DS(t){const{editor:e,state:n,from:o,to:r,rule:i,pasteEvent:s,dropEvent:a}=t,{commands:l,chain:c,can:u}=new $s({editor:e,state:n}),m=[];return n.doc.nodesBetween(o,r,(p,f)=>{if(!p.isTextblock||p.type.spec.code)return;const y=Math.max(o,f),h=Math.min(r,f+p.content.size),g=p.textBetween(y-f,h-f,void 0,"");NS(g,i.find,s).forEach(v=>{if(v.index===void 0)return;const S=y+v.index+1,C=S+v[0].length,x={from:n.tr.mapping.map(S),to:n.tr.mapping.map(C)},$=i.handler({state:n,range:x,match:v,commands:l,chain:c,can:u,pasteEvent:s,dropEvent:a});m.push($)})}),m.every(p=>p!==null)}const AS=t=>{var e;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=n.clipboardData)===null||e===void 0||e.setData("text/html",t),n};function RS(t){const{editor:e,rules:n}=t;let o=null,r=!1,i=!1,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,a=typeof DragEvent<"u"?new DragEvent("drop"):null;const l=({state:u,from:m,to:d,rule:p,pasteEvt:f})=>{const y=u.tr,h=ks({state:u,transaction:y});if(!(!DS({editor:e,state:h,from:Math.max(m-1,0),to:d.b-1,rule:p,pasteEvent:f,dropEvent:a})||!y.steps.length))return a=typeof DragEvent<"u"?new DragEvent("drop"):null,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,y};return n.map(u=>new Ve({view(m){const d=p=>{var f;o=!((f=m.dom.parentElement)===null||f===void 0)&&f.contains(p.target)?m.dom.parentElement:null};return window.addEventListener("dragstart",d),{destroy(){window.removeEventListener("dragstart",d)}}},props:{handleDOMEvents:{drop:(m,d)=>(i=o===m.dom.parentElement,a=d,!1),paste:(m,d)=>{var p;const f=(p=d.clipboardData)===null||p===void 0?void 0:p.getData("text/html");return s=d,r=!!(f!=null&&f.includes("data-pm-slice")),!1}}},appendTransaction:(m,d,p)=>{const f=m[0],y=f.getMeta("uiEvent")==="paste"&&!r,h=f.getMeta("uiEvent")==="drop"&&!i,g=f.getMeta("applyPasteRules"),b=!!g;if(!y&&!h&&!b)return;if(b){const{from:C,text:x}=g,$=C+x.length,R=AS(x);return l({rule:u,state:p,from:C,to:{b:$},pasteEvt:R})}const v=d.doc.content.findDiffStart(p.doc.content),S=d.doc.content.findDiffEnd(p.doc.content);if(!(!CS(v)||!S||v===S.b))return l({rule:u,state:p,from:v,to:S,pasteEvt:s})}}))}function OS(t){const e=t.filter((n,o)=>t.indexOf(n)!==o);return Array.from(new Set(e))}class To{constructor(e,n){this.splittableMarks=[],this.editor=n,this.extensions=To.resolve(e),this.schema=bS(this.extensions,n),this.setupExtensions()}static resolve(e){const n=To.sort(To.flatten(e)),o=OS(n.map(r=>r.name));return o.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${o.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),n}static flatten(e){return e.map(n=>{const o={name:n.name,options:n.options,storage:n.storage},r=j(n,"addExtensions",o);return r?[n,...this.flatten(r())]:n}).flat(10)}static sort(e){return e.sort((o,r)=>{const i=j(o,"priority")||100,s=j(r,"priority")||100;return i>s?-1:i<s?1:0})}get commands(){return this.extensions.reduce((e,n)=>{const o={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:vc(n.name,this.schema)},r=j(n,"addCommands",o);return r?{...e,...r()}:e},{})}get plugins(){const{editor:e}=this,n=To.sort([...this.extensions].reverse()),o=[],r=[],i=n.map(s=>{const a={name:s.name,options:s.options,storage:s.storage,editor:e,type:vc(s.name,this.schema)},l=[],c=j(s,"addKeyboardShortcuts",a);let u={};if(s.type==="mark"&&j(s,"exitable",a)&&(u.ArrowRight=()=>Hr.handleExit({editor:e,mark:s})),c){const y=Object.fromEntries(Object.entries(c()).map(([h,g])=>[h,()=>g({editor:e})]));u={...u,...y}}const m=Uv(u);l.push(m);const d=j(s,"addInputRules",a);mh(s,e.options.enableInputRules)&&d&&o.push(...d());const p=j(s,"addPasteRules",a);mh(s,e.options.enablePasteRules)&&p&&r.push(...p());const f=j(s,"addProseMirrorPlugins",a);if(f){const y=f();l.push(...y)}return l}).flat();return[kS({editor:e,rules:o}),...RS({editor:e,rules:r}),...i]}get attributes(){return lh(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:n}=Cs(this.extensions);return Object.fromEntries(n.filter(o=>!!j(o,"addNodeView")).map(o=>{const r=this.attributes.filter(l=>l.type===o.name),i={name:o.name,options:o.options,storage:o.storage,editor:e,type:ye(o.name,this.schema)},s=j(o,"addNodeView",i);if(!s)return[];const a=(l,c,u,m,d)=>{const p=bc(l,r);return s()({node:l,view:c,getPos:u,decorations:m,innerDecorations:d,editor:e,extension:o,HTMLAttributes:p})};return[o.name,a]}))}setupExtensions(){this.extensions.forEach(e=>{var n;this.editor.extensionStorage[e.name]=e.storage;const o={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:vc(e.name,this.schema)};e.type==="mark"&&(!((n=Y(j(e,"keepOnSplit",o)))!==null&&n!==void 0)||n)&&this.splittableMarks.push(e.name);const r=j(e,"onBeforeCreate",o),i=j(e,"onCreate",o),s=j(e,"onUpdate",o),a=j(e,"onSelectionUpdate",o),l=j(e,"onTransaction",o),c=j(e,"onFocus",o),u=j(e,"onBlur",o),m=j(e,"onDestroy",o);r&&this.editor.on("beforeCreate",r),i&&this.editor.on("create",i),s&&this.editor.on("update",s),a&&this.editor.on("selectionUpdate",a),l&&this.editor.on("transaction",l),c&&this.editor.on("focus",c),u&&this.editor.on("blur",u),m&&this.editor.on("destroy",m)})}}class rt{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Y(j(this,"addOptions",{name:this.name}))),this.storage=Y(j(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new rt(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Ds(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new rt({...this.config,...e});return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Y(j(n,"addOptions",{name:n.name})),n.storage=Y(j(n,"addStorage",{name:n.name,options:n.options})),n}}function fh(t,e,n){const{from:o,to:r}=e,{blockSeparator:i=`
|
|
31
31
|
|
|
32
|
-
`,textSerializers:s={}}=n||{};let a="";return t.nodesBetween(o,r,(l,c,u,m)=>{var d;l.isBlock&&c>o&&(a+=i);const p=s==null?void 0:s[l.type.name];if(p)return u&&(a+=p({node:l,pos:c,parent:u,index:m,range:e})),!1;l.isText&&(a+=(d=l==null?void 0:l.text)===null||d===void 0?void 0:d.slice(Math.max(o,c)-c,r-c))}),a}function ph(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}const Dv=ot.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Ve({key:new pt("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:o,selection:r}=e,{ranges:i}=r,s=Math.min(...i.map(u=>u.$from.pos)),a=Math.max(...i.map(u=>u.$to.pos)),l=ph(n);return fh(o,{from:s,to:a},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),Mv=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window==null?void 0:window.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),Tv=(t=!1)=>({commands:e})=>e.setContent("",t),jv=()=>({state:t,tr:e,dispatch:n})=>{const{selection:o}=e,{ranges:r}=o;return n&&r.forEach(({$from:i,$to:s})=>{t.doc.nodesBetween(i.pos,s.pos,(a,l)=>{if(a.type.isText)return;const{doc:c,mapping:u}=e,m=c.resolve(u.map(l)),d=c.resolve(u.map(l+a.nodeSize)),p=m.blockRange(d);if(!p)return;const f=bo(p);if(a.type.isTextblock){const{defaultType:y}=m.parent.contentMatchAt(m.index());e.setNodeMarkup(p.start,y)}(f||f===0)&&e.lift(p,f)})}),!0},Pv=t=>e=>t(e),Iv=()=>({state:t,dispatch:e})=>nv(t,e),Lv=(t,e)=>({editor:n,tr:o})=>{const{state:r}=n,i=r.doc.slice(t.from,t.to);o.deleteRange(t.from,t.to);const s=o.mapping.map(e);return o.insert(s,i.content),o.setSelection(new V(o.doc.resolve(s-1))),!0},zv=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,o=n.$anchor.node();if(o.content.size>0)return!1;const r=t.selection.$anchor;for(let i=r.depth;i>0;i-=1)if(r.node(i).type===o.type){if(e){const a=r.before(i),l=r.after(i);t.delete(a,l).scrollIntoView()}return!0}return!1},Fv=t=>({tr:e,state:n,dispatch:o})=>{const r=ye(t,n.schema),i=e.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===r){if(o){const l=i.before(s),c=i.after(s);e.delete(l,c).scrollIntoView()}return!0}return!1},Hv=t=>({tr:e,dispatch:n})=>{const{from:o,to:r}=t;return n&&e.delete(o,r),!0},Bv=()=>({state:t,dispatch:e})=>_b(t,e),Vv=()=>({commands:t})=>t.keyboardShortcut("Enter"),Uv=()=>({state:t,dispatch:e})=>tv(t,e);function Rs(t,e,n={strict:!0}){const o=Object.keys(e);return o.length?o.every(r=>n.strict?e[r]===t[r]:Sc(e[r])?e[r].test(t[r]):e[r]===t[r]):!0}function bc(t,e,n={}){return t.find(o=>o.type===e&&Rs(o.attrs,n))}function _v(t,e,n={}){return!!bc(t,e,n)}function vc(t,e,n={}){if(!t||!e)return;let o=t.parent.childAfter(t.parentOffset);if((!o.node||!o.node.marks.some(c=>c.type===e))&&(o=t.parent.childBefore(t.parentOffset)),!o.node||!o.node.marks.some(c=>c.type===e))return;const r=bc([...o.node.marks],e,n);if(!r)return;let i=o.index,s=t.start()+o.offset,a=i+1,l=s+o.node.nodeSize;for(bc([...o.node.marks],e,n);i>0&&r.isInSet(t.parent.child(i-1).marks);)i-=1,s-=t.parent.child(i).nodeSize;for(;a<t.parent.childCount&&_v([...t.parent.child(a).marks],e,n);)l+=t.parent.child(a).nodeSize,a+=1;return{from:s,to:l}}function ln(t,e){if(typeof t=="string"){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}const Jv=(t,e={})=>({tr:n,state:o,dispatch:r})=>{const i=ln(t,o.schema),{doc:s,selection:a}=n,{$from:l,from:c,to:u}=a;if(r){const m=vc(l,i,e);if(m&&m.from<=c&&m.to>=u){const d=V.create(s,m.from,m.to);n.setSelection(d)}}return!0},Yv=t=>e=>{const n=typeof t=="function"?t(e):t;for(let o=0;o<n.length;o+=1)if(n[o](e))return!0;return!1};function hh(t){return t instanceof V}function Kn(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function gh(t,e=null){if(!e)return null;const n=J.atStart(t),o=J.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return o;const r=n.from,i=o.to;return e==="all"?V.create(t,Kn(0,r,i),Kn(t.content.size,r,i)):V.create(t,Kn(e,r,i),Kn(e,r,i))}function xc(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const Kv=(t=null,e={})=>({editor:n,view:o,tr:r,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{xc()&&o.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(o.focus(),e!=null&&e.scrollIntoView&&n.commands.scrollIntoView())})};if(o.hasFocus()&&t===null||t===!1)return!0;if(i&&t===null&&!hh(n.state.selection))return s(),!0;const a=gh(r.doc,t)||n.state.selection,l=n.state.selection.eq(a);return i&&(l||r.setSelection(a),l&&r.storedMarks&&r.setStoredMarks(r.storedMarks),s()),!0},Wv=(t,e)=>n=>t.every((o,r)=>e(o,{...n,index:r})),qv=(t,e)=>({tr:n,commands:o})=>o.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),yh=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const o=e[n];o.nodeType===3&&o.nodeValue&&/^(\n\s\s|\n)$/.test(o.nodeValue)?t.removeChild(o):o.nodeType===1&&yh(o)}return t};function Os(t){const e=`<body>${t}</body>`,n=new window.DOMParser().parseFromString(e,"text/html").body;return yh(n)}function Ds(t,e,n){n={slice:!0,parseOptions:{},...n};const o=typeof t=="object"&&t!==null,r=typeof t=="string";if(o)try{if(Array.isArray(t)&&t.length>0)return N.fromArray(t.map(a=>e.nodeFromJSON(a)));const s=e.nodeFromJSON(t);return n.errorOnInvalidContent&&s.check(),s}catch(i){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:i});return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",i),Ds("",e,n)}if(r){if(n.errorOnInvalidContent){let s=!1,a="";const l=new uf({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:c=>(s=!0,a=typeof c=="string"?c:c.outerHTML,null)}]}})});if(n.slice?Wt.fromSchema(l).parseSlice(Os(t),n.parseOptions):Wt.fromSchema(l).parse(Os(t),n.parseOptions),n.errorOnInvalidContent&&s)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${a}`)})}const i=Wt.fromSchema(e);return n.slice?i.parseSlice(Os(t),n.parseOptions).content:i.parse(Os(t),n.parseOptions)}return Ds("",e,n)}function Gv(t,e,n){const o=t.steps.length-1;if(o<e)return;const r=t.steps[o];if(!(r instanceof he||r instanceof ge))return;const i=t.mapping.maps[o];let s=0;i.forEach((a,l,c,u)=>{s===0&&(s=u)}),t.setSelection(J.near(t.doc.resolve(s),n))}const Qv=t=>!("type"in t),Zv=(t,e,n)=>({tr:o,dispatch:r,editor:i})=>{var s;if(r){n={parseOptions:i.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let a;try{a=Ds(e,i.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions},errorOnInvalidContent:(s=n.errorOnInvalidContent)!==null&&s!==void 0?s:i.options.enableContentCheck})}catch(f){return i.emit("contentError",{editor:i,error:f,disableCollaboration:()=>{i.storage.collaboration&&(i.storage.collaboration.isDisabled=!0)}}),!1}let{from:l,to:c}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},u=!0,m=!0;if((Qv(a)?a:[a]).forEach(f=>{f.check(),u=u?f.isText&&f.marks.length===0:!1,m=m?f.isBlock:!1}),l===c&&m){const{parent:f}=o.doc.resolve(l);f.isTextblock&&!f.type.spec.code&&!f.childCount&&(l-=1,c+=1)}let p;u?(Array.isArray(e)?p=e.map(f=>f.text||"").join(""):typeof e=="object"&&e&&e.text?p=e.text:p=e,o.insertText(p,l,c)):(p=a,o.replaceWith(l,c,p)),n.updateSelection&&Gv(o,o.steps.length-1,-1),n.applyInputRules&&o.setMeta("applyInputRules",{from:l,text:p}),n.applyPasteRules&&o.setMeta("applyPasteRules",{from:l,text:p})}return!0},Xv=()=>({state:t,dispatch:e})=>Qb(t,e),ex=()=>({state:t,dispatch:e})=>Zb(t,e),tx=()=>({state:t,dispatch:e})=>Jb(t,e),nx=()=>({state:t,dispatch:e})=>qb(t,e),ox=()=>({state:t,dispatch:e,tr:n})=>{try{const o=us(t.doc,t.selection.$from.pos,-1);return o==null?!1:(n.join(o,2),e&&e(n),!0)}catch{return!1}},rx=()=>({state:t,dispatch:e,tr:n})=>{try{const o=us(t.doc,t.selection.$from.pos,1);return o==null?!1:(n.join(o,2),e&&e(n),!0)}catch{return!1}},ix=()=>({state:t,dispatch:e})=>Yb(t,e),sx=()=>({state:t,dispatch:e})=>Kb(t,e);function wh(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function ax(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let o,r,i,s;for(let a=0;a<e.length-1;a+=1){const l=e[a];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))o=!0;else if(/^(c|ctrl|control)$/i.test(l))r=!0;else if(/^s(hift)?$/i.test(l))i=!0;else if(/^mod$/i.test(l))xc()||wh()?s=!0:r=!0;else throw new Error(`Unrecognized modifier name: ${l}`)}return o&&(n=`Alt-${n}`),r&&(n=`Ctrl-${n}`),s&&(n=`Meta-${n}`),i&&(n=`Shift-${n}`),n}const lx=t=>({editor:e,view:n,tr:o,dispatch:r})=>{const i=ax(t).split(/-(?!$)/),s=i.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),a=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),l=e.captureTransaction(()=>{n.someProp("handleKeyDown",c=>c(n,a))});return l==null||l.steps.forEach(c=>{const u=c.map(o.mapping);u&&r&&o.maybeStep(u)}),!0};function Br(t,e,n={}){const{from:o,to:r,empty:i}=t.selection,s=e?ye(e,t.schema):null,a=[];t.doc.nodesBetween(o,r,(m,d)=>{if(m.isText)return;const p=Math.max(o,d),f=Math.min(r,d+m.nodeSize);a.push({node:m,from:p,to:f})});const l=r-o,c=a.filter(m=>s?s.name===m.node.type.name:!0).filter(m=>Rs(m.node.attrs,n,{strict:!1}));return i?!!c.length:c.reduce((m,d)=>m+d.to-d.from,0)>=l}const cx=(t,e={})=>({state:n,dispatch:o})=>{const r=ye(t,n.schema);return Br(n,r,e)?Xb(n,o):!1},ux=()=>({state:t,dispatch:e})=>ov(t,e),dx=t=>({state:e,dispatch:n})=>{const o=ye(t,e.schema);return dv(o)(e,n)},mx=()=>({state:t,dispatch:e})=>ev(t,e);function Ms(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function Sh(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((o,r)=>(n.includes(r)||(o[r]=t[r]),o),{})}const fx=(t,e)=>({tr:n,state:o,dispatch:r})=>{let i=null,s=null;const a=Ms(typeof t=="string"?t:t.name,o.schema);return a?(a==="node"&&(i=ye(t,o.schema)),a==="mark"&&(s=ln(t,o.schema)),r&&n.selection.ranges.forEach(l=>{o.doc.nodesBetween(l.$from.pos,l.$to.pos,(c,u)=>{i&&i===c.type&&n.setNodeMarkup(u,void 0,Sh(c.attrs,e)),s&&c.marks.length&&c.marks.forEach(m=>{s===m.type&&n.addMark(u,u+c.nodeSize,s.create(Sh(m.attrs,e)))})})}),!0):!1},px=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),hx=()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),gx=()=>({state:t,dispatch:e})=>Wb(t,e),yx=()=>({state:t,dispatch:e})=>Gb(t,e),wx=()=>({state:t,dispatch:e})=>rv(t,e),Sx=()=>({state:t,dispatch:e})=>av(t,e),bx=()=>({state:t,dispatch:e})=>sv(t,e);function kc(t,e,n={},o={}){return Ds(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:o.errorOnInvalidContent})}const vx=(t,e=!1,n={},o={})=>({editor:r,tr:i,dispatch:s,commands:a})=>{var l,c;const{doc:u}=i;if(n.preserveWhitespace!=="full"){const m=kc(t,r.schema,n,{errorOnInvalidContent:(l=o.errorOnInvalidContent)!==null&&l!==void 0?l:r.options.enableContentCheck});return s&&i.replaceWith(0,u.content.size,m).setMeta("preventUpdate",!e),!0}return s&&i.setMeta("preventUpdate",!e),a.insertContentAt({from:0,to:u.content.size},t,{parseOptions:n,errorOnInvalidContent:(c=o.errorOnInvalidContent)!==null&&c!==void 0?c:r.options.enableContentCheck})};function bh(t,e){const n=ln(e,t.schema),{from:o,to:r,empty:i}=t.selection,s=[];i?(t.storedMarks&&s.push(...t.storedMarks),s.push(...t.selection.$head.marks())):t.doc.nodesBetween(o,r,l=>{s.push(...l.marks)});const a=s.find(l=>l.type.name===n.name);return a?{...a.attrs}:{}}function xx(t,e){const n=new Tf(t);return e.forEach(o=>{o.steps.forEach(r=>{n.step(r)})}),n}function kx(t){for(let e=0;e<t.edgeCount;e+=1){const{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function $x(t,e,n){const o=[];return t.nodesBetween(e.from,e.to,(r,i)=>{n(r)&&o.push({node:r,pos:i})}),o}function Cx(t,e){for(let n=t.depth;n>0;n-=1){const o=t.node(n);if(e(o))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:o}}}function $c(t){return e=>Cx(e.$from,t)}function Ex(t,e){const n=Fn.fromSchema(e).serializeFragment(t),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}function Nx(t,e){const n={from:0,to:t.content.size};return fh(t,n,e)}function Ax(t,e){const n=ye(e,t.schema),{from:o,to:r}=t.selection,i=[];t.doc.nodesBetween(o,r,a=>{i.push(a)});const s=i.reverse().find(a=>a.type.name===n.name);return s?{...s.attrs}:{}}function vh(t,e){const n=Ms(typeof e=="string"?e:e.name,t.schema);return n==="node"?Ax(t,e):n==="mark"?bh(t,e):{}}function Rx(t,e=JSON.stringify){const n={};return t.filter(o=>{const r=e(o);return Object.prototype.hasOwnProperty.call(n,r)?!1:n[r]=!0})}function Ox(t){const e=Rx(t);return e.length===1?e:e.filter((n,o)=>!e.filter((i,s)=>s!==o).some(i=>n.oldRange.from>=i.oldRange.from&&n.oldRange.to<=i.oldRange.to&&n.newRange.from>=i.newRange.from&&n.newRange.to<=i.newRange.to))}function Dx(t){const{mapping:e,steps:n}=t,o=[];return e.maps.forEach((r,i)=>{const s=[];if(r.ranges.length)r.forEach((a,l)=>{s.push({from:a,to:l})});else{const{from:a,to:l}=n[i];if(a===void 0||l===void 0)return;s.push({from:a,to:l})}s.forEach(({from:a,to:l})=>{const c=e.slice(i).map(a,-1),u=e.slice(i).map(l),m=e.invert().map(c,-1),d=e.invert().map(u);o.push({oldRange:{from:m,to:d},newRange:{from:c,to:u}})})}),Ox(o)}function xh(t,e,n){const o=[];return t===e?n.resolve(t).marks().forEach(r=>{const i=n.resolve(t),s=vc(i,r.type);s&&o.push({mark:r,...s})}):n.nodesBetween(t,e,(r,i)=>{!r||(r==null?void 0:r.nodeSize)===void 0||o.push(...r.marks.map(s=>({from:i,to:i+r.nodeSize,mark:s})))}),o}function Ts(t,e,n){return Object.fromEntries(Object.entries(n).filter(([o])=>{const r=t.find(i=>i.type===e&&i.name===o);return r?r.attribute.keepOnSplit:!1}))}function Cc(t,e,n={}){const{empty:o,ranges:r}=t.selection,i=e?ln(e,t.schema):null;if(o)return!!(t.storedMarks||t.selection.$from.marks()).filter(m=>i?i.name===m.type.name:!0).find(m=>Rs(m.attrs,n,{strict:!1}));let s=0;const a=[];if(r.forEach(({$from:m,$to:d})=>{const p=m.pos,f=d.pos;t.doc.nodesBetween(p,f,(y,h)=>{if(!y.isText&&!y.marks.length)return;const g=Math.max(p,h),S=Math.min(f,h+y.nodeSize),b=S-g;s+=b,a.push(...y.marks.map(v=>({mark:v,from:g,to:S})))})}),s===0)return!1;const l=a.filter(m=>i?i.name===m.mark.type.name:!0).filter(m=>Rs(m.mark.attrs,n,{strict:!1})).reduce((m,d)=>m+d.to-d.from,0),c=a.filter(m=>i?m.mark.type!==i&&m.mark.type.excludes(i):!0).reduce((m,d)=>m+d.to-d.from,0);return(l>0?l+c:l)>=s}function Mx(t,e,n={}){if(!e)return Br(t,null,n)||Cc(t,null,n);const o=Ms(e,t.schema);return o==="node"?Br(t,e,n):o==="mark"?Cc(t,e,n):!1}function kh(t,e){const{nodeExtensions:n}=Cs(e),o=n.find(s=>s.name===t);if(!o)return!1;const r={name:o.name,options:o.options,storage:o.storage},i=Y(j(o,"group",r));return typeof i!="string"?!1:i.split(" ").includes("list")}function js(t,{checkChildren:e=!0,ignoreWhitespace:n=!1}={}){var o;if(n){if(t.type.name==="hardBreak")return!0;if(t.isText)return/^\s*$/m.test((o=t.text)!==null&&o!==void 0?o:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(t.content.childCount===0)return!0;if(e){let r=!0;return t.content.forEach(i=>{r!==!1&&(js(i,{ignoreWhitespace:n,checkChildren:e})||(r=!1))}),r}return!1}function Tx(t,e,n){var o;const{selection:r}=e;let i=null;if(hh(r)&&(i=r.$cursor),i){const a=(o=t.storedMarks)!==null&&o!==void 0?o:i.marks();return!!n.isInSet(a)||!a.some(l=>l.type.excludes(n))}const{ranges:s}=r;return s.some(({$from:a,$to:l})=>{let c=a.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(a.pos,l.pos,(u,m,d)=>{if(c)return!1;if(u.isInline){const p=!d||d.type.allowsMarkType(n),f=!!n.isInSet(u.marks)||!u.marks.some(y=>y.type.excludes(n));c=p&&f}return!c}),c})}const jx=(t,e={})=>({tr:n,state:o,dispatch:r})=>{const{selection:i}=n,{empty:s,ranges:a}=i,l=ln(t,o.schema);if(r)if(s){const c=bh(o,l);n.addStoredMark(l.create({...c,...e}))}else a.forEach(c=>{const u=c.$from.pos,m=c.$to.pos;o.doc.nodesBetween(u,m,(d,p)=>{const f=Math.max(p,u),y=Math.min(p+d.nodeSize,m);d.marks.find(g=>g.type===l)?d.marks.forEach(g=>{l===g.type&&n.addMark(f,y,l.create({...g.attrs,...e}))}):n.addMark(f,y,l.create(e))})});return Tx(o,n,l)},Px=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),Ix=(t,e={})=>({state:n,dispatch:o,chain:r})=>{const i=ye(t,n.schema);return i.isTextblock?r().command(({commands:s})=>ah(i,e)(n)?!0:s.clearNodes()).command(({state:s})=>ah(i,e)(s,o)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},Lx=t=>({tr:e,dispatch:n})=>{if(n){const{doc:o}=e,r=Kn(t,0,o.content.size),i=L.create(o,r);e.setSelection(i)}return!0},zx=t=>({tr:e,dispatch:n})=>{if(n){const{doc:o}=e,{from:r,to:i}=typeof t=="number"?{from:t,to:t}:t,s=V.atStart(o).from,a=V.atEnd(o).to,l=Kn(r,s,a),c=Kn(i,s,a),u=V.create(o,l,c);e.setSelection(u)}return!0},Fx=t=>({state:e,dispatch:n})=>{const o=ye(t,e.schema);return pv(o)(e,n)};function $h(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const o=n.filter(r=>e==null?void 0:e.includes(r.type.name));t.tr.ensureMarks(o)}}const Hx=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:o,editor:r})=>{const{selection:i,doc:s}=e,{$from:a,$to:l}=i,c=r.extensionManager.attributes,u=Ts(c,a.node().type.name,a.node().attrs);if(i instanceof L&&i.node.isBlock)return!a.parentOffset||!vo(s,a.pos)?!1:(o&&(t&&$h(n,r.extensionManager.splittableMarks),e.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;const m=l.parentOffset===l.parent.content.size,d=a.depth===0?void 0:kx(a.node(-1).contentMatchAt(a.indexAfter(-1)));let p=m&&d?[{type:d,attrs:u}]:void 0,f=vo(e.doc,e.mapping.map(a.pos),1,p);if(!p&&!f&&vo(e.doc,e.mapping.map(a.pos),1,d?[{type:d}]:void 0)&&(f=!0,p=d?[{type:d,attrs:u}]:void 0),o){if(f&&(i instanceof V&&e.deleteSelection(),e.split(e.mapping.map(a.pos),1,p),d&&!m&&!a.parentOffset&&a.parent.type!==d)){const y=e.mapping.map(a.before()),h=e.doc.resolve(y);a.node(-1).canReplaceWith(h.index(),h.index()+1,d)&&e.setNodeMarkup(e.mapping.map(a.before()),d)}t&&$h(n,r.extensionManager.splittableMarks),e.scrollIntoView()}return f},Bx=(t,e={})=>({tr:n,state:o,dispatch:r,editor:i})=>{var s;const a=ye(t,o.schema),{$from:l,$to:c}=o.selection,u=o.selection.node;if(u&&u.isBlock||l.depth<2||!l.sameParent(c))return!1;const m=l.node(-1);if(m.type!==a)return!1;const d=i.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==a||l.index(-2)!==l.node(-2).childCount-1)return!1;if(r){let g=N.empty;const S=l.index(-1)?1:l.index(-2)?2:3;for(let O=l.depth-S;O>=l.depth-3;O-=1)g=N.from(l.node(O).copy(g));const b=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,v={...Ts(d,l.node().type.name,l.node().attrs),...e},C=((s=a.contentMatch.defaultType)===null||s===void 0?void 0:s.createAndFill(v))||void 0;g=g.append(N.from(a.createAndFill(null,C)||void 0));const x=l.before(l.depth-(S-1));n.replace(x,l.after(-b),new M(g,4-S,0));let $=-1;n.doc.nodesBetween(x,n.doc.content.size,(O,E)=>{if($>-1)return!1;O.isTextblock&&O.content.size===0&&($=E+1)}),$>-1&&n.setSelection(V.near(n.doc.resolve($))),n.scrollIntoView()}return!0}const p=c.pos===l.end()?m.contentMatchAt(0).defaultType:null,f={...Ts(d,m.type.name,m.attrs),...e},y={...Ts(d,l.node().type.name,l.node().attrs),...e};n.delete(l.pos,c.pos);const h=p?[{type:a,attrs:f},{type:p,attrs:y}]:[{type:a,attrs:f}];if(!vo(n.doc,l.pos,2))return!1;if(r){const{selection:g,storedMarks:S}=o,{splittableMarks:b}=i.extensionManager,v=S||g.$to.parentOffset&&g.$from.marks();if(n.split(l.pos,2,h).scrollIntoView(),!v||!r)return!0;const C=v.filter(x=>b.includes(x.type.name));n.ensureMarks(C)}return!0},Ec=(t,e)=>{const n=$c(s=>s.type===e)(t.selection);if(!n)return!0;const o=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(o===void 0)return!0;const r=t.doc.nodeAt(o);return n.node.type===(r==null?void 0:r.type)&&Qt(t.doc,n.pos)&&t.join(n.pos),!0},Nc=(t,e)=>{const n=$c(s=>s.type===e)(t.selection);if(!n)return!0;const o=t.doc.resolve(n.start).after(n.depth);if(o===void 0)return!0;const r=t.doc.nodeAt(o);return n.node.type===(r==null?void 0:r.type)&&Qt(t.doc,o)&&t.join(o),!0};var Vx=Object.freeze({__proto__:null,blur:Mv,clearContent:Tv,clearNodes:jv,command:Pv,createParagraphNear:Iv,cut:Lv,deleteCurrentNode:zv,deleteNode:Fv,deleteRange:Hv,deleteSelection:Bv,enter:Vv,exitCode:Uv,extendMarkRange:Jv,first:Yv,focus:Kv,forEach:Wv,insertContent:qv,insertContentAt:Zv,joinBackward:tx,joinDown:ex,joinForward:nx,joinItemBackward:ox,joinItemForward:rx,joinTextblockBackward:ix,joinTextblockForward:sx,joinUp:Xv,keyboardShortcut:lx,lift:cx,liftEmptyBlock:ux,liftListItem:dx,newlineInCode:mx,resetAttributes:fx,scrollIntoView:px,selectAll:hx,selectNodeBackward:gx,selectNodeForward:yx,selectParentNode:wx,selectTextblockEnd:Sx,selectTextblockStart:bx,setContent:vx,setMark:jx,setMeta:Px,setNode:Ix,setNodeSelection:Lx,setTextSelection:zx,sinkListItem:Fx,splitBlock:Hx,splitListItem:Bx,toggleList:(t,e,n,o={})=>({editor:r,tr:i,state:s,dispatch:a,chain:l,commands:c,can:u})=>{const{extensions:m,splittableMarks:d}=r.extensionManager,p=ye(t,s.schema),f=ye(e,s.schema),{selection:y,storedMarks:h}=s,{$from:g,$to:S}=y,b=g.blockRange(S),v=h||y.$to.parentOffset&&y.$from.marks();if(!b)return!1;const C=$c(x=>kh(x.type.name,m))(y);if(b.depth>=1&&C&&b.depth-C.depth<=1){if(C.node.type===p)return c.liftListItem(f);if(kh(C.node.type.name,m)&&p.validContent(C.node.content)&&a)return l().command(()=>(i.setNodeMarkup(C.pos,p),!0)).command(()=>Ec(i,p)).command(()=>Nc(i,p)).run()}return!n||!v||!a?l().command(()=>u().wrapInList(p,o)?!0:c.clearNodes()).wrapInList(p,o).command(()=>Ec(i,p)).command(()=>Nc(i,p)).run():l().command(()=>{const x=u().wrapInList(p,o),$=v.filter(O=>d.includes(O.type.name));return i.ensureMarks($),x?!0:c.clearNodes()}).wrapInList(p,o).command(()=>Ec(i,p)).command(()=>Nc(i,p)).run()},toggleMark:(t,e={},n={})=>({state:o,commands:r})=>{const{extendEmptyMarkRange:i=!1}=n,s=ln(t,o.schema);return Cc(o,s,e)?r.unsetMark(s,{extendEmptyMarkRange:i}):r.setMark(s,e)},toggleNode:(t,e,n={})=>({state:o,commands:r})=>{const i=ye(t,o.schema),s=ye(e,o.schema),a=Br(o,i,n);let l;return o.selection.$anchor.sameParent(o.selection.$head)&&(l=o.selection.$anchor.parent.attrs),a?r.setNode(s,l):r.setNode(i,{...l,...n})},toggleWrap:(t,e={})=>({state:n,commands:o})=>{const r=ye(t,n.schema);return Br(n,r,e)?o.lift(r):o.wrapIn(r,e)},undoInputRule:()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let o=0;o<n.length;o+=1){const r=n[o];let i;if(r.spec.isInputRules&&(i=r.getState(t))){if(e){const s=t.tr,a=i.transform;for(let l=a.steps.length-1;l>=0;l-=1)s.step(a.steps[l].invert(a.docs[l]));if(i.text){const l=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,t.schema.text(i.text,l))}else s.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:o,ranges:r}=n;return o||e&&r.forEach(i=>{t.removeMark(i.$from.pos,i.$to.pos)}),!0},unsetMark:(t,e={})=>({tr:n,state:o,dispatch:r})=>{var i;const{extendEmptyMarkRange:s=!1}=e,{selection:a}=n,l=ln(t,o.schema),{$from:c,empty:u,ranges:m}=a;if(!r)return!0;if(u&&s){let{from:d,to:p}=a;const f=(i=c.marks().find(h=>h.type===l))===null||i===void 0?void 0:i.attrs,y=vc(c,l,f);y&&(d=y.from,p=y.to),n.removeMark(d,p,l)}else m.forEach(d=>{n.removeMark(d.$from.pos,d.$to.pos,l)});return n.removeStoredMark(l),!0},updateAttributes:(t,e={})=>({tr:n,state:o,dispatch:r})=>{let i=null,s=null;const a=Ms(typeof t=="string"?t:t.name,o.schema);return a?(a==="node"&&(i=ye(t,o.schema)),a==="mark"&&(s=ln(t,o.schema)),r&&n.selection.ranges.forEach(l=>{const c=l.$from.pos,u=l.$to.pos;o.doc.nodesBetween(c,u,(m,d)=>{i&&i===m.type&&n.setNodeMarkup(d,void 0,{...m.attrs,...e}),s&&m.marks.length&&m.marks.forEach(p=>{if(s===p.type){const f=Math.max(d,c),y=Math.min(d+m.nodeSize,u);n.addMark(f,y,s.create({...p.attrs,...e}))}})})}),!0):!1},wrapIn:(t,e={})=>({state:n,dispatch:o})=>{const r=ye(t,n.schema);return lv(r,e)(n,o)},wrapInList:(t,e={})=>({state:n,dispatch:o})=>{const r=ye(t,n.schema);return cv(r,e)(n,o)}});const Ux=ot.create({name:"commands",addCommands(){return{...Vx}}}),_x=ot.create({name:"drop",addProseMirrorPlugins(){return[new Ve({key:new pt("tiptapDrop"),props:{handleDrop:(t,e,n,o)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:o})}}})]}}),Jx=ot.create({name:"editable",addProseMirrorPlugins(){return[new Ve({key:new pt("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Yx=ot.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new Ve({key:new pt("focusEvents"),props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const o=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(o),!1},blur:(e,n)=>{t.isFocused=!1;const o=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(o),!1}}}})]}}),Kx=ot.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:a})=>{const{selection:l,doc:c}=a,{empty:u,$anchor:m}=l,{pos:d,parent:p}=m,f=m.parent.isTextblock&&d>0?a.doc.resolve(d-1):m,y=f.parent.type.spec.isolating,h=m.pos-m.parentOffset,g=y&&f.parent.childCount===1?h===m.pos:J.atStart(c).from===d;return!u||!p.type.isTextblock||p.textContent.length||!g||g&&m.parent.type.name==="paragraph"?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),o={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},r={...o},i={...o,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return xc()||wh()?i:r},addProseMirrorPlugins(){return[new Ve({key:new pt("clearDocument"),appendTransaction:(t,e,n)=>{const o=t.some(y=>y.docChanged)&&!e.doc.eq(n.doc),r=t.some(y=>y.getMeta("preventClearDocument"));if(!o||r)return;const{empty:i,from:s,to:a}=e.selection,l=J.atStart(e.doc).from,c=J.atEnd(e.doc).to;if(i||!(s===l&&a===c)||!js(n.doc))return;const d=n.tr,p=ks({state:n,transaction:d}),{commands:f}=new $s({editor:this.editor,state:p});if(f.clearNodes(),!!d.steps.length)return d}})]}}),Wx=ot.create({name:"paste",addProseMirrorPlugins(){return[new Ve({key:new pt("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),qx=ot.create({name:"tabindex",addProseMirrorPlugins(){return[new Ve({key:new pt("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class Wn{get name(){return this.node.type.name}constructor(e,n,o=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=o,this.resolvedPos=e,this.editor=n,this.currentNode=r}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!==null&&e!==void 0?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let n=this.from,o=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,o=this.to-1}this.editor.commands.insertContentAt({from:n,to:o},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(e);return new Wn(n,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new Wn(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new Wn(e,this.editor)}get children(){const e=[];return this.node.content.forEach((n,o)=>{const r=n.isBlock&&!n.isTextblock,i=n.isAtom&&!n.isText,s=this.pos+o+(i?0:1),a=this.resolvedPos.doc.resolve(s);if(!r&&a.depth<=this.depth)return;const l=new Wn(a,this.editor,r,r?n:null);r&&(l.actualDepth=this.depth+1),e.push(new Wn(a,this.editor,r,r?n:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,n={}){let o=null,r=this.parent;for(;r&&!o;){if(r.node.type.name===e)if(Object.keys(n).length>0){const i=r.node.attrs,s=Object.keys(n);for(let a=0;a<s.length;a+=1){const l=s[a];if(i[l]!==n[l])break}}else o=r;r=r.parent}return o}querySelector(e,n={}){return this.querySelectorAll(e,n,!0)[0]||null}querySelectorAll(e,n={},o=!1){let r=[];if(!this.children||this.children.length===0)return r;const i=Object.keys(n);return this.children.forEach(s=>{o&&r.length>0||(s.node.type.name===e&&i.every(l=>n[l]===s.node.attrs[l])&&r.push(s),!(o&&r.length>0)&&(r=r.concat(s.querySelectorAll(e,n,o))))}),r}setAttribute(e){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(n)}}const Gx=`.ProseMirror {
|
|
32
|
+
`,textSerializers:s={}}=n||{};let a="";return t.nodesBetween(o,r,(l,c,u,m)=>{var d;l.isBlock&&c>o&&(a+=i);const p=s==null?void 0:s[l.type.name];if(p)return u&&(a+=p({node:l,pos:c,parent:u,index:m,range:e})),!1;l.isText&&(a+=(d=l==null?void 0:l.text)===null||d===void 0?void 0:d.slice(Math.max(o,c)-c,r-c))}),a}function ph(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}const MS=rt.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Ve({key:new pt("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:o,selection:r}=e,{ranges:i}=r,s=Math.min(...i.map(u=>u.$from.pos)),a=Math.max(...i.map(u=>u.$to.pos)),l=ph(n);return fh(o,{from:s,to:a},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),TS=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window==null?void 0:window.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),jS=(t=!1)=>({commands:e})=>e.setContent("",t),PS=()=>({state:t,tr:e,dispatch:n})=>{const{selection:o}=e,{ranges:r}=o;return n&&r.forEach(({$from:i,$to:s})=>{t.doc.nodesBetween(i.pos,s.pos,(a,l)=>{if(a.type.isText)return;const{doc:c,mapping:u}=e,m=c.resolve(u.map(l)),d=c.resolve(u.map(l+a.nodeSize)),p=m.blockRange(d);if(!p)return;const f=vo(p);if(a.type.isTextblock){const{defaultType:y}=m.parent.contentMatchAt(m.index());e.setNodeMarkup(p.start,y)}(f||f===0)&&e.lift(p,f)})}),!0},IS=t=>e=>t(e),LS=()=>({state:t,dispatch:e})=>oS(t,e),zS=(t,e)=>({editor:n,tr:o})=>{const{state:r}=n,i=r.doc.slice(t.from,t.to);o.deleteRange(t.from,t.to);const s=o.mapping.map(e);return o.insert(s,i.content),o.setSelection(new V(o.doc.resolve(s-1))),!0},FS=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,o=n.$anchor.node();if(o.content.size>0)return!1;const r=t.selection.$anchor;for(let i=r.depth;i>0;i-=1)if(r.node(i).type===o.type){if(e){const a=r.before(i),l=r.after(i);t.delete(a,l).scrollIntoView()}return!0}return!1},HS=t=>({tr:e,state:n,dispatch:o})=>{const r=ye(t,n.schema),i=e.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===r){if(o){const l=i.before(s),c=i.after(s);e.delete(l,c).scrollIntoView()}return!0}return!1},BS=t=>({tr:e,dispatch:n})=>{const{from:o,to:r}=t;return n&&e.delete(o,r),!0},VS=()=>({state:t,dispatch:e})=>Jv(t,e),US=()=>({commands:t})=>t.keyboardShortcut("Enter"),_S=()=>({state:t,dispatch:e})=>nS(t,e);function As(t,e,n={strict:!0}){const o=Object.keys(e);return o.length?o.every(r=>n.strict?e[r]===t[r]:Sc(e[r])?e[r].test(t[r]):e[r]===t[r]):!0}function xc(t,e,n={}){return t.find(o=>o.type===e&&As(o.attrs,n))}function JS(t,e,n={}){return!!xc(t,e,n)}function kc(t,e,n={}){if(!t||!e)return;let o=t.parent.childAfter(t.parentOffset);if((!o.node||!o.node.marks.some(c=>c.type===e))&&(o=t.parent.childBefore(t.parentOffset)),!o.node||!o.node.marks.some(c=>c.type===e))return;const r=xc([...o.node.marks],e,n);if(!r)return;let i=o.index,s=t.start()+o.offset,a=i+1,l=s+o.node.nodeSize;for(xc([...o.node.marks],e,n);i>0&&r.isInSet(t.parent.child(i-1).marks);)i-=1,s-=t.parent.child(i).nodeSize;for(;a<t.parent.childCount&&JS([...t.parent.child(a).marks],e,n);)l+=t.parent.child(a).nodeSize,a+=1;return{from:s,to:l}}function ln(t,e){if(typeof t=="string"){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}const YS=(t,e={})=>({tr:n,state:o,dispatch:r})=>{const i=ln(t,o.schema),{doc:s,selection:a}=n,{$from:l,from:c,to:u}=a;if(r){const m=kc(l,i,e);if(m&&m.from<=c&&m.to>=u){const d=V.create(s,m.from,m.to);n.setSelection(d)}}return!0},KS=t=>e=>{const n=typeof t=="function"?t(e):t;for(let o=0;o<n.length;o+=1)if(n[o](e))return!0;return!1};function hh(t){return t instanceof V}function Kn(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function gh(t,e=null){if(!e)return null;const n=J.atStart(t),o=J.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return o;const r=n.from,i=o.to;return e==="all"?V.create(t,Kn(0,r,i),Kn(t.content.size,r,i)):V.create(t,Kn(e,r,i),Kn(e,r,i))}function $c(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const WS=(t=null,e={})=>({editor:n,view:o,tr:r,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{$c()&&o.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(o.focus(),e!=null&&e.scrollIntoView&&n.commands.scrollIntoView())})};if(o.hasFocus()&&t===null||t===!1)return!0;if(i&&t===null&&!hh(n.state.selection))return s(),!0;const a=gh(r.doc,t)||n.state.selection,l=n.state.selection.eq(a);return i&&(l||r.setSelection(a),l&&r.storedMarks&&r.setStoredMarks(r.storedMarks),s()),!0},qS=(t,e)=>n=>t.every((o,r)=>e(o,{...n,index:r})),GS=(t,e)=>({tr:n,commands:o})=>o.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),yh=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const o=e[n];o.nodeType===3&&o.nodeValue&&/^(\n\s\s|\n)$/.test(o.nodeValue)?t.removeChild(o):o.nodeType===1&&yh(o)}return t};function Rs(t){const e=`<body>${t}</body>`,n=new window.DOMParser().parseFromString(e,"text/html").body;return yh(n)}function Os(t,e,n){n={slice:!0,parseOptions:{},...n};const o=typeof t=="object"&&t!==null,r=typeof t=="string";if(o)try{if(Array.isArray(t)&&t.length>0)return N.fromArray(t.map(a=>e.nodeFromJSON(a)));const s=e.nodeFromJSON(t);return n.errorOnInvalidContent&&s.check(),s}catch(i){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:i});return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",i),Os("",e,n)}if(r){if(n.errorOnInvalidContent){let s=!1,a="";const l=new uf({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:c=>(s=!0,a=typeof c=="string"?c:c.outerHTML,null)}]}})});if(n.slice?Wt.fromSchema(l).parseSlice(Rs(t),n.parseOptions):Wt.fromSchema(l).parse(Rs(t),n.parseOptions),n.errorOnInvalidContent&&s)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${a}`)})}const i=Wt.fromSchema(e);return n.slice?i.parseSlice(Rs(t),n.parseOptions).content:i.parse(Rs(t),n.parseOptions)}return Os("",e,n)}function QS(t,e,n){const o=t.steps.length-1;if(o<e)return;const r=t.steps[o];if(!(r instanceof he||r instanceof ge))return;const i=t.mapping.maps[o];let s=0;i.forEach((a,l,c,u)=>{s===0&&(s=u)}),t.setSelection(J.near(t.doc.resolve(s),n))}const ZS=t=>!("type"in t),XS=(t,e,n)=>({tr:o,dispatch:r,editor:i})=>{var s;if(r){n={parseOptions:i.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let a;try{a=Os(e,i.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions},errorOnInvalidContent:(s=n.errorOnInvalidContent)!==null&&s!==void 0?s:i.options.enableContentCheck})}catch(f){return i.emit("contentError",{editor:i,error:f,disableCollaboration:()=>{i.storage.collaboration&&(i.storage.collaboration.isDisabled=!0)}}),!1}let{from:l,to:c}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},u=!0,m=!0;if((ZS(a)?a:[a]).forEach(f=>{f.check(),u=u?f.isText&&f.marks.length===0:!1,m=m?f.isBlock:!1}),l===c&&m){const{parent:f}=o.doc.resolve(l);f.isTextblock&&!f.type.spec.code&&!f.childCount&&(l-=1,c+=1)}let p;u?(Array.isArray(e)?p=e.map(f=>f.text||"").join(""):typeof e=="object"&&e&&e.text?p=e.text:p=e,o.insertText(p,l,c)):(p=a,o.replaceWith(l,c,p)),n.updateSelection&&QS(o,o.steps.length-1,-1),n.applyInputRules&&o.setMeta("applyInputRules",{from:l,text:p}),n.applyPasteRules&&o.setMeta("applyPasteRules",{from:l,text:p})}return!0},ex=()=>({state:t,dispatch:e})=>Zv(t,e),tx=()=>({state:t,dispatch:e})=>Xv(t,e),nx=()=>({state:t,dispatch:e})=>Yv(t,e),ox=()=>({state:t,dispatch:e})=>Gv(t,e),rx=()=>({state:t,dispatch:e,tr:n})=>{try{const o=us(t.doc,t.selection.$from.pos,-1);return o==null?!1:(n.join(o,2),e&&e(n),!0)}catch{return!1}},ix=()=>({state:t,dispatch:e,tr:n})=>{try{const o=us(t.doc,t.selection.$from.pos,1);return o==null?!1:(n.join(o,2),e&&e(n),!0)}catch{return!1}},sx=()=>({state:t,dispatch:e})=>Kv(t,e),ax=()=>({state:t,dispatch:e})=>Wv(t,e);function wh(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function lx(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let o,r,i,s;for(let a=0;a<e.length-1;a+=1){const l=e[a];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))o=!0;else if(/^(c|ctrl|control)$/i.test(l))r=!0;else if(/^s(hift)?$/i.test(l))i=!0;else if(/^mod$/i.test(l))$c()||wh()?s=!0:r=!0;else throw new Error(`Unrecognized modifier name: ${l}`)}return o&&(n=`Alt-${n}`),r&&(n=`Ctrl-${n}`),s&&(n=`Meta-${n}`),i&&(n=`Shift-${n}`),n}const cx=t=>({editor:e,view:n,tr:o,dispatch:r})=>{const i=lx(t).split(/-(?!$)/),s=i.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),a=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),l=e.captureTransaction(()=>{n.someProp("handleKeyDown",c=>c(n,a))});return l==null||l.steps.forEach(c=>{const u=c.map(o.mapping);u&&r&&o.maybeStep(u)}),!0};function Br(t,e,n={}){const{from:o,to:r,empty:i}=t.selection,s=e?ye(e,t.schema):null,a=[];t.doc.nodesBetween(o,r,(m,d)=>{if(m.isText)return;const p=Math.max(o,d),f=Math.min(r,d+m.nodeSize);a.push({node:m,from:p,to:f})});const l=r-o,c=a.filter(m=>s?s.name===m.node.type.name:!0).filter(m=>As(m.node.attrs,n,{strict:!1}));return i?!!c.length:c.reduce((m,d)=>m+d.to-d.from,0)>=l}const ux=(t,e={})=>({state:n,dispatch:o})=>{const r=ye(t,n.schema);return Br(n,r,e)?eS(n,o):!1},dx=()=>({state:t,dispatch:e})=>rS(t,e),mx=t=>({state:e,dispatch:n})=>{const o=ye(t,e.schema);return mS(o)(e,n)},fx=()=>({state:t,dispatch:e})=>tS(t,e);function Ms(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function bh(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((o,r)=>(n.includes(r)||(o[r]=t[r]),o),{})}const px=(t,e)=>({tr:n,state:o,dispatch:r})=>{let i=null,s=null;const a=Ms(typeof t=="string"?t:t.name,o.schema);return a?(a==="node"&&(i=ye(t,o.schema)),a==="mark"&&(s=ln(t,o.schema)),r&&n.selection.ranges.forEach(l=>{o.doc.nodesBetween(l.$from.pos,l.$to.pos,(c,u)=>{i&&i===c.type&&n.setNodeMarkup(u,void 0,bh(c.attrs,e)),s&&c.marks.length&&c.marks.forEach(m=>{s===m.type&&n.addMark(u,u+c.nodeSize,s.create(bh(m.attrs,e)))})})}),!0):!1},hx=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),gx=()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),yx=()=>({state:t,dispatch:e})=>qv(t,e),wx=()=>({state:t,dispatch:e})=>Qv(t,e),bx=()=>({state:t,dispatch:e})=>iS(t,e),vx=()=>({state:t,dispatch:e})=>lS(t,e),Sx=()=>({state:t,dispatch:e})=>aS(t,e);function Cc(t,e,n={},o={}){return Os(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:o.errorOnInvalidContent})}const xx=(t,e=!1,n={},o={})=>({editor:r,tr:i,dispatch:s,commands:a})=>{var l,c;const{doc:u}=i;if(n.preserveWhitespace!=="full"){const m=Cc(t,r.schema,n,{errorOnInvalidContent:(l=o.errorOnInvalidContent)!==null&&l!==void 0?l:r.options.enableContentCheck});return s&&i.replaceWith(0,u.content.size,m).setMeta("preventUpdate",!e),!0}return s&&i.setMeta("preventUpdate",!e),a.insertContentAt({from:0,to:u.content.size},t,{parseOptions:n,errorOnInvalidContent:(c=o.errorOnInvalidContent)!==null&&c!==void 0?c:r.options.enableContentCheck})};function vh(t,e){const n=ln(e,t.schema),{from:o,to:r,empty:i}=t.selection,s=[];i?(t.storedMarks&&s.push(...t.storedMarks),s.push(...t.selection.$head.marks())):t.doc.nodesBetween(o,r,l=>{s.push(...l.marks)});const a=s.find(l=>l.type.name===n.name);return a?{...a.attrs}:{}}function kx(t,e){const n=new Tf(t);return e.forEach(o=>{o.steps.forEach(r=>{n.step(r)})}),n}function $x(t){for(let e=0;e<t.edgeCount;e+=1){const{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function Cx(t,e,n){const o=[];return t.nodesBetween(e.from,e.to,(r,i)=>{n(r)&&o.push({node:r,pos:i})}),o}function Ex(t,e){for(let n=t.depth;n>0;n-=1){const o=t.node(n);if(e(o))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:o}}}function Ec(t){return e=>Ex(e.$from,t)}function Nx(t,e){const n=Fn.fromSchema(e).serializeFragment(t),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}function Dx(t,e){const n={from:0,to:t.content.size};return fh(t,n,e)}function Ax(t,e){const n=ye(e,t.schema),{from:o,to:r}=t.selection,i=[];t.doc.nodesBetween(o,r,a=>{i.push(a)});const s=i.reverse().find(a=>a.type.name===n.name);return s?{...s.attrs}:{}}function Sh(t,e){const n=Ms(typeof e=="string"?e:e.name,t.schema);return n==="node"?Ax(t,e):n==="mark"?vh(t,e):{}}function Rx(t,e=JSON.stringify){const n={};return t.filter(o=>{const r=e(o);return Object.prototype.hasOwnProperty.call(n,r)?!1:n[r]=!0})}function Ox(t){const e=Rx(t);return e.length===1?e:e.filter((n,o)=>!e.filter((i,s)=>s!==o).some(i=>n.oldRange.from>=i.oldRange.from&&n.oldRange.to<=i.oldRange.to&&n.newRange.from>=i.newRange.from&&n.newRange.to<=i.newRange.to))}function Mx(t){const{mapping:e,steps:n}=t,o=[];return e.maps.forEach((r,i)=>{const s=[];if(r.ranges.length)r.forEach((a,l)=>{s.push({from:a,to:l})});else{const{from:a,to:l}=n[i];if(a===void 0||l===void 0)return;s.push({from:a,to:l})}s.forEach(({from:a,to:l})=>{const c=e.slice(i).map(a,-1),u=e.slice(i).map(l),m=e.invert().map(c,-1),d=e.invert().map(u);o.push({oldRange:{from:m,to:d},newRange:{from:c,to:u}})})}),Ox(o)}function xh(t,e,n){const o=[];return t===e?n.resolve(t).marks().forEach(r=>{const i=n.resolve(t),s=kc(i,r.type);s&&o.push({mark:r,...s})}):n.nodesBetween(t,e,(r,i)=>{!r||(r==null?void 0:r.nodeSize)===void 0||o.push(...r.marks.map(s=>({from:i,to:i+r.nodeSize,mark:s})))}),o}function Ts(t,e,n){return Object.fromEntries(Object.entries(n).filter(([o])=>{const r=t.find(i=>i.type===e&&i.name===o);return r?r.attribute.keepOnSplit:!1}))}function Nc(t,e,n={}){const{empty:o,ranges:r}=t.selection,i=e?ln(e,t.schema):null;if(o)return!!(t.storedMarks||t.selection.$from.marks()).filter(m=>i?i.name===m.type.name:!0).find(m=>As(m.attrs,n,{strict:!1}));let s=0;const a=[];if(r.forEach(({$from:m,$to:d})=>{const p=m.pos,f=d.pos;t.doc.nodesBetween(p,f,(y,h)=>{if(!y.isText&&!y.marks.length)return;const g=Math.max(p,h),b=Math.min(f,h+y.nodeSize),v=b-g;s+=v,a.push(...y.marks.map(S=>({mark:S,from:g,to:b})))})}),s===0)return!1;const l=a.filter(m=>i?i.name===m.mark.type.name:!0).filter(m=>As(m.mark.attrs,n,{strict:!1})).reduce((m,d)=>m+d.to-d.from,0),c=a.filter(m=>i?m.mark.type!==i&&m.mark.type.excludes(i):!0).reduce((m,d)=>m+d.to-d.from,0);return(l>0?l+c:l)>=s}function Tx(t,e,n={}){if(!e)return Br(t,null,n)||Nc(t,null,n);const o=Ms(e,t.schema);return o==="node"?Br(t,e,n):o==="mark"?Nc(t,e,n):!1}function kh(t,e){const{nodeExtensions:n}=Cs(e),o=n.find(s=>s.name===t);if(!o)return!1;const r={name:o.name,options:o.options,storage:o.storage},i=Y(j(o,"group",r));return typeof i!="string"?!1:i.split(" ").includes("list")}function js(t,{checkChildren:e=!0,ignoreWhitespace:n=!1}={}){var o;if(n){if(t.type.name==="hardBreak")return!0;if(t.isText)return/^\s*$/m.test((o=t.text)!==null&&o!==void 0?o:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(t.content.childCount===0)return!0;if(e){let r=!0;return t.content.forEach(i=>{r!==!1&&(js(i,{ignoreWhitespace:n,checkChildren:e})||(r=!1))}),r}return!1}function jx(t,e,n){var o;const{selection:r}=e;let i=null;if(hh(r)&&(i=r.$cursor),i){const a=(o=t.storedMarks)!==null&&o!==void 0?o:i.marks();return!!n.isInSet(a)||!a.some(l=>l.type.excludes(n))}const{ranges:s}=r;return s.some(({$from:a,$to:l})=>{let c=a.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(a.pos,l.pos,(u,m,d)=>{if(c)return!1;if(u.isInline){const p=!d||d.type.allowsMarkType(n),f=!!n.isInSet(u.marks)||!u.marks.some(y=>y.type.excludes(n));c=p&&f}return!c}),c})}const Px=(t,e={})=>({tr:n,state:o,dispatch:r})=>{const{selection:i}=n,{empty:s,ranges:a}=i,l=ln(t,o.schema);if(r)if(s){const c=vh(o,l);n.addStoredMark(l.create({...c,...e}))}else a.forEach(c=>{const u=c.$from.pos,m=c.$to.pos;o.doc.nodesBetween(u,m,(d,p)=>{const f=Math.max(p,u),y=Math.min(p+d.nodeSize,m);d.marks.find(g=>g.type===l)?d.marks.forEach(g=>{l===g.type&&n.addMark(f,y,l.create({...g.attrs,...e}))}):n.addMark(f,y,l.create(e))})});return jx(o,n,l)},Ix=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),Lx=(t,e={})=>({state:n,dispatch:o,chain:r})=>{const i=ye(t,n.schema);return i.isTextblock?r().command(({commands:s})=>ah(i,e)(n)?!0:s.clearNodes()).command(({state:s})=>ah(i,e)(s,o)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},zx=t=>({tr:e,dispatch:n})=>{if(n){const{doc:o}=e,r=Kn(t,0,o.content.size),i=L.create(o,r);e.setSelection(i)}return!0},Fx=t=>({tr:e,dispatch:n})=>{if(n){const{doc:o}=e,{from:r,to:i}=typeof t=="number"?{from:t,to:t}:t,s=V.atStart(o).from,a=V.atEnd(o).to,l=Kn(r,s,a),c=Kn(i,s,a),u=V.create(o,l,c);e.setSelection(u)}return!0},Hx=t=>({state:e,dispatch:n})=>{const o=ye(t,e.schema);return hS(o)(e,n)};function $h(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const o=n.filter(r=>e==null?void 0:e.includes(r.type.name));t.tr.ensureMarks(o)}}const Bx=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:o,editor:r})=>{const{selection:i,doc:s}=e,{$from:a,$to:l}=i,c=r.extensionManager.attributes,u=Ts(c,a.node().type.name,a.node().attrs);if(i instanceof L&&i.node.isBlock)return!a.parentOffset||!So(s,a.pos)?!1:(o&&(t&&$h(n,r.extensionManager.splittableMarks),e.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;const m=l.parentOffset===l.parent.content.size,d=a.depth===0?void 0:$x(a.node(-1).contentMatchAt(a.indexAfter(-1)));let p=m&&d?[{type:d,attrs:u}]:void 0,f=So(e.doc,e.mapping.map(a.pos),1,p);if(!p&&!f&&So(e.doc,e.mapping.map(a.pos),1,d?[{type:d}]:void 0)&&(f=!0,p=d?[{type:d,attrs:u}]:void 0),o){if(f&&(i instanceof V&&e.deleteSelection(),e.split(e.mapping.map(a.pos),1,p),d&&!m&&!a.parentOffset&&a.parent.type!==d)){const y=e.mapping.map(a.before()),h=e.doc.resolve(y);a.node(-1).canReplaceWith(h.index(),h.index()+1,d)&&e.setNodeMarkup(e.mapping.map(a.before()),d)}t&&$h(n,r.extensionManager.splittableMarks),e.scrollIntoView()}return f},Vx=(t,e={})=>({tr:n,state:o,dispatch:r,editor:i})=>{var s;const a=ye(t,o.schema),{$from:l,$to:c}=o.selection,u=o.selection.node;if(u&&u.isBlock||l.depth<2||!l.sameParent(c))return!1;const m=l.node(-1);if(m.type!==a)return!1;const d=i.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==a||l.index(-2)!==l.node(-2).childCount-1)return!1;if(r){let g=N.empty;const b=l.index(-1)?1:l.index(-2)?2:3;for(let R=l.depth-b;R>=l.depth-3;R-=1)g=N.from(l.node(R).copy(g));const v=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,S={...Ts(d,l.node().type.name,l.node().attrs),...e},C=((s=a.contentMatch.defaultType)===null||s===void 0?void 0:s.createAndFill(S))||void 0;g=g.append(N.from(a.createAndFill(null,C)||void 0));const x=l.before(l.depth-(b-1));n.replace(x,l.after(-v),new M(g,4-b,0));let $=-1;n.doc.nodesBetween(x,n.doc.content.size,(R,E)=>{if($>-1)return!1;R.isTextblock&&R.content.size===0&&($=E+1)}),$>-1&&n.setSelection(V.near(n.doc.resolve($))),n.scrollIntoView()}return!0}const p=c.pos===l.end()?m.contentMatchAt(0).defaultType:null,f={...Ts(d,m.type.name,m.attrs),...e},y={...Ts(d,l.node().type.name,l.node().attrs),...e};n.delete(l.pos,c.pos);const h=p?[{type:a,attrs:f},{type:p,attrs:y}]:[{type:a,attrs:f}];if(!So(n.doc,l.pos,2))return!1;if(r){const{selection:g,storedMarks:b}=o,{splittableMarks:v}=i.extensionManager,S=b||g.$to.parentOffset&&g.$from.marks();if(n.split(l.pos,2,h).scrollIntoView(),!S||!r)return!0;const C=S.filter(x=>v.includes(x.type.name));n.ensureMarks(C)}return!0},Dc=(t,e)=>{const n=Ec(s=>s.type===e)(t.selection);if(!n)return!0;const o=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(o===void 0)return!0;const r=t.doc.nodeAt(o);return n.node.type===(r==null?void 0:r.type)&&Qt(t.doc,n.pos)&&t.join(n.pos),!0},Ac=(t,e)=>{const n=Ec(s=>s.type===e)(t.selection);if(!n)return!0;const o=t.doc.resolve(n.start).after(n.depth);if(o===void 0)return!0;const r=t.doc.nodeAt(o);return n.node.type===(r==null?void 0:r.type)&&Qt(t.doc,o)&&t.join(o),!0};var Ux=Object.freeze({__proto__:null,blur:TS,clearContent:jS,clearNodes:PS,command:IS,createParagraphNear:LS,cut:zS,deleteCurrentNode:FS,deleteNode:HS,deleteRange:BS,deleteSelection:VS,enter:US,exitCode:_S,extendMarkRange:YS,first:KS,focus:WS,forEach:qS,insertContent:GS,insertContentAt:XS,joinBackward:nx,joinDown:tx,joinForward:ox,joinItemBackward:rx,joinItemForward:ix,joinTextblockBackward:sx,joinTextblockForward:ax,joinUp:ex,keyboardShortcut:cx,lift:ux,liftEmptyBlock:dx,liftListItem:mx,newlineInCode:fx,resetAttributes:px,scrollIntoView:hx,selectAll:gx,selectNodeBackward:yx,selectNodeForward:wx,selectParentNode:bx,selectTextblockEnd:vx,selectTextblockStart:Sx,setContent:xx,setMark:Px,setMeta:Ix,setNode:Lx,setNodeSelection:zx,setTextSelection:Fx,sinkListItem:Hx,splitBlock:Bx,splitListItem:Vx,toggleList:(t,e,n,o={})=>({editor:r,tr:i,state:s,dispatch:a,chain:l,commands:c,can:u})=>{const{extensions:m,splittableMarks:d}=r.extensionManager,p=ye(t,s.schema),f=ye(e,s.schema),{selection:y,storedMarks:h}=s,{$from:g,$to:b}=y,v=g.blockRange(b),S=h||y.$to.parentOffset&&y.$from.marks();if(!v)return!1;const C=Ec(x=>kh(x.type.name,m))(y);if(v.depth>=1&&C&&v.depth-C.depth<=1){if(C.node.type===p)return c.liftListItem(f);if(kh(C.node.type.name,m)&&p.validContent(C.node.content)&&a)return l().command(()=>(i.setNodeMarkup(C.pos,p),!0)).command(()=>Dc(i,p)).command(()=>Ac(i,p)).run()}return!n||!S||!a?l().command(()=>u().wrapInList(p,o)?!0:c.clearNodes()).wrapInList(p,o).command(()=>Dc(i,p)).command(()=>Ac(i,p)).run():l().command(()=>{const x=u().wrapInList(p,o),$=S.filter(R=>d.includes(R.type.name));return i.ensureMarks($),x?!0:c.clearNodes()}).wrapInList(p,o).command(()=>Dc(i,p)).command(()=>Ac(i,p)).run()},toggleMark:(t,e={},n={})=>({state:o,commands:r})=>{const{extendEmptyMarkRange:i=!1}=n,s=ln(t,o.schema);return Nc(o,s,e)?r.unsetMark(s,{extendEmptyMarkRange:i}):r.setMark(s,e)},toggleNode:(t,e,n={})=>({state:o,commands:r})=>{const i=ye(t,o.schema),s=ye(e,o.schema),a=Br(o,i,n);let l;return o.selection.$anchor.sameParent(o.selection.$head)&&(l=o.selection.$anchor.parent.attrs),a?r.setNode(s,l):r.setNode(i,{...l,...n})},toggleWrap:(t,e={})=>({state:n,commands:o})=>{const r=ye(t,n.schema);return Br(n,r,e)?o.lift(r):o.wrapIn(r,e)},undoInputRule:()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let o=0;o<n.length;o+=1){const r=n[o];let i;if(r.spec.isInputRules&&(i=r.getState(t))){if(e){const s=t.tr,a=i.transform;for(let l=a.steps.length-1;l>=0;l-=1)s.step(a.steps[l].invert(a.docs[l]));if(i.text){const l=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,t.schema.text(i.text,l))}else s.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:o,ranges:r}=n;return o||e&&r.forEach(i=>{t.removeMark(i.$from.pos,i.$to.pos)}),!0},unsetMark:(t,e={})=>({tr:n,state:o,dispatch:r})=>{var i;const{extendEmptyMarkRange:s=!1}=e,{selection:a}=n,l=ln(t,o.schema),{$from:c,empty:u,ranges:m}=a;if(!r)return!0;if(u&&s){let{from:d,to:p}=a;const f=(i=c.marks().find(h=>h.type===l))===null||i===void 0?void 0:i.attrs,y=kc(c,l,f);y&&(d=y.from,p=y.to),n.removeMark(d,p,l)}else m.forEach(d=>{n.removeMark(d.$from.pos,d.$to.pos,l)});return n.removeStoredMark(l),!0},updateAttributes:(t,e={})=>({tr:n,state:o,dispatch:r})=>{let i=null,s=null;const a=Ms(typeof t=="string"?t:t.name,o.schema);return a?(a==="node"&&(i=ye(t,o.schema)),a==="mark"&&(s=ln(t,o.schema)),r&&n.selection.ranges.forEach(l=>{const c=l.$from.pos,u=l.$to.pos;o.doc.nodesBetween(c,u,(m,d)=>{i&&i===m.type&&n.setNodeMarkup(d,void 0,{...m.attrs,...e}),s&&m.marks.length&&m.marks.forEach(p=>{if(s===p.type){const f=Math.max(d,c),y=Math.min(d+m.nodeSize,u);n.addMark(f,y,s.create({...p.attrs,...e}))}})})}),!0):!1},wrapIn:(t,e={})=>({state:n,dispatch:o})=>{const r=ye(t,n.schema);return cS(r,e)(n,o)},wrapInList:(t,e={})=>({state:n,dispatch:o})=>{const r=ye(t,n.schema);return uS(r,e)(n,o)}});const _x=rt.create({name:"commands",addCommands(){return{...Ux}}}),Jx=rt.create({name:"drop",addProseMirrorPlugins(){return[new Ve({key:new pt("tiptapDrop"),props:{handleDrop:(t,e,n,o)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:o})}}})]}}),Yx=rt.create({name:"editable",addProseMirrorPlugins(){return[new Ve({key:new pt("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Kx=rt.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new Ve({key:new pt("focusEvents"),props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const o=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(o),!1},blur:(e,n)=>{t.isFocused=!1;const o=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(o),!1}}}})]}}),Wx=rt.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:a})=>{const{selection:l,doc:c}=a,{empty:u,$anchor:m}=l,{pos:d,parent:p}=m,f=m.parent.isTextblock&&d>0?a.doc.resolve(d-1):m,y=f.parent.type.spec.isolating,h=m.pos-m.parentOffset,g=y&&f.parent.childCount===1?h===m.pos:J.atStart(c).from===d;return!u||!p.type.isTextblock||p.textContent.length||!g||g&&m.parent.type.name==="paragraph"?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),o={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},r={...o},i={...o,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return $c()||wh()?i:r},addProseMirrorPlugins(){return[new Ve({key:new pt("clearDocument"),appendTransaction:(t,e,n)=>{const o=t.some(y=>y.docChanged)&&!e.doc.eq(n.doc),r=t.some(y=>y.getMeta("preventClearDocument"));if(!o||r)return;const{empty:i,from:s,to:a}=e.selection,l=J.atStart(e.doc).from,c=J.atEnd(e.doc).to;if(i||!(s===l&&a===c)||!js(n.doc))return;const d=n.tr,p=ks({state:n,transaction:d}),{commands:f}=new $s({editor:this.editor,state:p});if(f.clearNodes(),!!d.steps.length)return d}})]}}),qx=rt.create({name:"paste",addProseMirrorPlugins(){return[new Ve({key:new pt("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),Gx=rt.create({name:"tabindex",addProseMirrorPlugins(){return[new Ve({key:new pt("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class Wn{get name(){return this.node.type.name}constructor(e,n,o=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=o,this.resolvedPos=e,this.editor=n,this.currentNode=r}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!==null&&e!==void 0?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let n=this.from,o=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,o=this.to-1}this.editor.commands.insertContentAt({from:n,to:o},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(e);return new Wn(n,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new Wn(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new Wn(e,this.editor)}get children(){const e=[];return this.node.content.forEach((n,o)=>{const r=n.isBlock&&!n.isTextblock,i=n.isAtom&&!n.isText,s=this.pos+o+(i?0:1),a=this.resolvedPos.doc.resolve(s);if(!r&&a.depth<=this.depth)return;const l=new Wn(a,this.editor,r,r?n:null);r&&(l.actualDepth=this.depth+1),e.push(new Wn(a,this.editor,r,r?n:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,n={}){let o=null,r=this.parent;for(;r&&!o;){if(r.node.type.name===e)if(Object.keys(n).length>0){const i=r.node.attrs,s=Object.keys(n);for(let a=0;a<s.length;a+=1){const l=s[a];if(i[l]!==n[l])break}}else o=r;r=r.parent}return o}querySelector(e,n={}){return this.querySelectorAll(e,n,!0)[0]||null}querySelectorAll(e,n={},o=!1){let r=[];if(!this.children||this.children.length===0)return r;const i=Object.keys(n);return this.children.forEach(s=>{o&&r.length>0||(s.node.type.name===e&&i.every(l=>n[l]===s.node.attrs[l])&&r.push(s),!(o&&r.length>0)&&(r=r.concat(s.querySelectorAll(e,n,o))))}),r}setAttribute(e){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(n)}}const Qx=`.ProseMirror {
|
|
33
33
|
position: relative;
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -103,31 +103,31 @@ img.ProseMirror-separator {
|
|
|
103
103
|
|
|
104
104
|
.tippy-box[data-animation=fade][data-state=hidden] {
|
|
105
105
|
opacity: 0
|
|
106
|
-
}`;function
|
|
106
|
+
}`;function Zx(t,e,n){const o=document.querySelector(`style[data-tiptap-style${n?`-${n}`:""}]`);if(o!==null)return o;const r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.setAttribute(`data-tiptap-style${n?`-${n}`:""}`,""),r.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(r),r}class Xx extends gS{constructor(e={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:n})=>{throw n},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:n,slice:o,moved:r})=>this.options.onDrop(n,o,r)),this.on("paste",({event:n,slice:o})=>this.options.onPaste(n,o)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=Zx(Qx,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,n=!0){this.setOptions({editable:e}),n&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,n){const o=ch(n)?n(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:o});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;const n=this.state.plugins;let o=n;if([].concat(e).forEach(i=>{const s=typeof i=="string"?`${i}$`:i.key;o=n.filter(a=>!a.key.startsWith(s))}),n.length===o.length)return;const r=this.state.reconfigure({plugins:o});return this.view.updateState(r),r}createExtensionManager(){var e,n;const r=[...this.options.enableCoreExtensions?[Yx,MS.configure({blockSeparator:(n=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||n===void 0?void 0:n.blockSeparator}),_x,Kx,Wx,Gx,Jx,qx].filter(i=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[i.name]!==!1:!0):[],...this.options.extensions].filter(i=>["extension","node","mark"].includes(i==null?void 0:i.type));this.extensionManager=new To(r,this)}createCommandManager(){this.commandManager=new $s({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){let e;try{e=Cc(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(i){if(!(i instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(i.message))throw i;this.emit("contentError",{editor:this,error:i,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(s=>s.name!=="collaboration"),this.createExtensionManager()}}),e=Cc(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const n=gh(e,this.options.autofocus);this.view=new jv(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:Co.create({doc:e,selection:n||void 0})}),this.view.dom.setAttribute("role","textbox"),this.view.dom.getAttribute("aria-label")||this.view.dom.setAttribute("aria-label","Rich-Text Editor");const o=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(o),this.createNodeViews(),this.prependClass();const r=this.view.dom;r.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const n=this.capturedTransaction;return this.capturedTransaction=null,n}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(s=>{var a;return(a=this.capturedTransaction)===null||a===void 0?void 0:a.step(s)});return}const n=this.state.apply(e),o=!this.state.selection.eq(n.selection);this.emit("beforeTransaction",{editor:this,transaction:e,nextState:n}),this.view.updateState(n),this.emit("transaction",{editor:this,transaction:e}),o&&this.emit("selectionUpdate",{editor:this,transaction:e});const r=e.getMeta("focus"),i=e.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:e}),i&&this.emit("blur",{editor:this,event:i.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return Sh(this.state,e)}isActive(e,n){const o=typeof e=="string"?e:null,r=typeof e=="string"?n:e;return Tx(this.state,o,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Nx(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:n=`
|
|
107
107
|
|
|
108
|
-
`,textSerializers:o={}}=e||{};return
|
|
108
|
+
`,textSerializers:o={}}=e||{};return Dx(this.state.doc,{blockSeparator:n,textSerializers:{...ph(this.schema),...o}})}get isEmpty(){return js(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,n){var o;return((o=this.$doc)===null||o===void 0?void 0:o.querySelector(e,n))||null}$nodes(e,n){var o;return((o=this.$doc)===null||o===void 0?void 0:o.querySelectorAll(e,n))||null}$pos(e){const n=this.state.doc.resolve(e);return new Wn(n,this)}get $doc(){return this.$pos(0)}}function ek(t){return new SS({find:t.find,handler:({state:e,range:n,match:o,chain:r})=>{const i=Y(t.getAttributes,void 0,o)||{},s=e.tr.delete(n.from,n.to),l=s.doc.resolve(n.from).blockRange(),c=l&&Hl(l,t.type,i);if(!c)return null;if(s.wrap(l,c),t.keepMarks&&t.editor){const{selection:m,storedMarks:d}=e,{splittableMarks:p}=t.editor.extensionManager,f=d||m.$to.parentOffset&&m.$from.marks();if(f){const y=f.filter(h=>p.includes(h.type.name));s.ensureMarks(y)}}if(t.keepAttributes){const m=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";r().updateAttributes(m,i).run()}const u=s.doc.resolve(n.from-1).nodeBefore;u&&u.type===t.type&&Qt(s.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(o,u))&&s.join(n.from-1)}})}class cn{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Y(j(this,"addOptions",{name:this.name}))),this.storage=Y(j(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new cn(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Ds(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new cn(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Y(j(n,"addOptions",{name:n.name})),n.storage=Y(j(n,"addStorage",{name:n.name,options:n.options})),n}}function tk(t){return new ES({find:t.find,handler:({state:e,range:n,match:o,pasteEvent:r})=>{const i=Y(t.getAttributes,void 0,o,r);if(i===!1||i===null)return null;const{tr:s}=e,a=o[o.length-1],l=o[0];let c=n.to;if(a){const u=l.search(/\S/),m=n.from+l.indexOf(a),d=m+a.length;if(xh(n.from,n.to,e.doc).filter(f=>f.mark.type.excluded.find(h=>h===t.type&&h!==f.mark.type)).filter(f=>f.to>m).length)return null;d<n.to&&s.delete(d,n.to),m>n.from&&s.delete(n.from+u,m),c=n.from+u+a.length,s.addMark(n.from+u,c,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}var Ch={exports:{}},it={},Eh={exports:{}},Nh={};/** @license React v0.20.2
|
|
109
109
|
* scheduler.production.min.js
|
|
110
110
|
*
|
|
111
111
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
112
112
|
*
|
|
113
113
|
* This source code is licensed under the MIT license found in the
|
|
114
114
|
* LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/(function(t){var e,n,o,r;if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();t.unstable_now=function(){return s.now()-a}}if(typeof window>"u"||typeof MessageChannel!="function"){var l=null,c=null,u=function(){if(l!==null)try{var
|
|
115
|
+
*/(function(t){var e,n,o,r;if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();t.unstable_now=function(){return s.now()-a}}if(typeof window>"u"||typeof MessageChannel!="function"){var l=null,c=null,u=function(){if(l!==null)try{var O=t.unstable_now();l(!0,O),l=null}catch(I){throw setTimeout(u,0),I}};e=function(O){l!==null?setTimeout(e,0,O):(l=O,setTimeout(u,0))},n=function(O,I){c=setTimeout(O,I)},o=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},r=t.unstable_forceFrameRate=function(){}}else{var m=window.setTimeout,d=window.clearTimeout;if(typeof console<"u"){var p=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof p!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var f=!1,y=null,h=-1,g=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},r=function(){},t.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):g=0<O?Math.floor(1e3/O):5};var v=new MessageChannel,S=v.port2;v.port1.onmessage=function(){if(y!==null){var O=t.unstable_now();b=O+g;try{y(!0,O)?S.postMessage(null):(f=!1,y=null)}catch(I){throw S.postMessage(null),I}}else f=!1},e=function(O){y=O,f||(f=!0,S.postMessage(null))},n=function(O,I){h=m(function(){O(t.unstable_now())},I)},o=function(){d(h),h=-1}}function C(O,I){var H=O.length;O.push(I);e:for(;;){var W=H-1>>>1,Ae=O[W];if(Ae!==void 0&&0<R(Ae,I))O[W]=I,O[H]=Ae,H=W;else break e}}function x(O){return O=O[0],O===void 0?null:O}function $(O){var I=O[0];if(I!==void 0){var H=O.pop();if(H!==I){O[0]=H;e:for(var W=0,Ae=O.length;W<Ae;){var ho=2*(W+1)-1,go=O[ho],Ki=ho+1,yr=O[Ki];if(go!==void 0&&0>R(go,H))yr!==void 0&&0>R(yr,go)?(O[W]=yr,O[Ki]=H,W=Ki):(O[W]=go,O[ho]=H,W=ho);else if(yr!==void 0&&0>R(yr,H))O[W]=yr,O[Ki]=H,W=Ki;else break e}}return I}return null}function R(O,I){var H=O.sortIndex-I.sortIndex;return H!==0?H:O.id-I.id}var E=[],U=[],se=1,X=null,G=3,De=!1,le=!1,pe=!1;function de(O){for(var I=x(U);I!==null;){if(I.callback===null)$(U);else if(I.startTime<=O)$(U),I.sortIndex=I.expirationTime,C(E,I);else break;I=x(U)}}function Q(O){if(pe=!1,de(O),!le)if(x(E)!==null)le=!0,e(ce);else{var I=x(U);I!==null&&n(Q,I.startTime-O)}}function ce(O,I){le=!1,pe&&(pe=!1,o()),De=!0;var H=G;try{for(de(I),X=x(E);X!==null&&(!(X.expirationTime>I)||O&&!t.unstable_shouldYield());){var W=X.callback;if(typeof W=="function"){X.callback=null,G=X.priorityLevel;var Ae=W(X.expirationTime<=I);I=t.unstable_now(),typeof Ae=="function"?X.callback=Ae:X===x(E)&&$(E),de(I)}else $(E);X=x(E)}if(X!==null)var ho=!0;else{var go=x(U);go!==null&&n(Q,go.startTime-I),ho=!1}return ho}finally{X=null,G=H,De=!1}}var Se=r;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(O){O.callback=null},t.unstable_continueExecution=function(){le||De||(le=!0,e(ce))},t.unstable_getCurrentPriorityLevel=function(){return G},t.unstable_getFirstCallbackNode=function(){return x(E)},t.unstable_next=function(O){switch(G){case 1:case 2:case 3:var I=3;break;default:I=G}var H=G;G=I;try{return O()}finally{G=H}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=Se,t.unstable_runWithPriority=function(O,I){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var H=G;G=O;try{return I()}finally{G=H}},t.unstable_scheduleCallback=function(O,I,H){var W=t.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?W+H:W):H=W,O){case 1:var Ae=-1;break;case 2:Ae=250;break;case 5:Ae=1073741823;break;case 4:Ae=1e4;break;default:Ae=5e3}return Ae=H+Ae,O={id:se++,callback:I,priorityLevel:O,startTime:H,expirationTime:Ae,sortIndex:-1},H>W?(O.sortIndex=H,C(U,O),x(E)===null&&O===x(U)&&(pe?o():pe=!0,n(Q,H-W))):(O.sortIndex=Ae,C(E,O),le||De||(le=!0,e(ce))),O},t.unstable_wrapCallback=function(O){var I=G;return function(){var H=G;G=I;try{return O.apply(this,arguments)}finally{G=H}}}})(Nh),Eh.exports=Nh;var nk=Eh.exports;/** @license React v17.0.2
|
|
116
116
|
* react-dom.production.min.js
|
|
117
117
|
*
|
|
118
118
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
119
119
|
*
|
|
120
120
|
* This source code is licensed under the MIT license found in the
|
|
121
121
|
* LICENSE file in the root directory of this source tree.
|
|
122
|
-
*/var Ps=k,ne=ym,we=
|
|
123
|
-
`+
|
|
122
|
+
*/var Ps=k,ne=ym,we=nk;function A(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."}if(!Ps)throw Error(A(227));var Dh=new Set,Vr={};function qn(t,e){jo(t,e),jo(t+"Capture",e)}function jo(t,e){for(Vr[t]=e,t=0;t<e.length;t++)Dh.add(e[t])}var zt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ok=/^[: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]*$/,Ah=Object.prototype.hasOwnProperty,Rh={},Oh={};function rk(t){return Ah.call(Oh,t)?!0:Ah.call(Rh,t)?!1:ok.test(t)?Oh[t]=!0:(Rh[t]=!0,!1)}function ik(t,e,n,o){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function sk(t,e,n,o){if(e===null||typeof e>"u"||ik(t,e,n,o))return!0;if(o)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 He(t,e,n,o,r,i,s){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=s}var Ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Ce[t]=new He(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Ce[e]=new He(e,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){Ce[t]=new He(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Ce[t]=new He(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){Ce[t]=new He(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){Ce[t]=new He(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){Ce[t]=new He(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){Ce[t]=new He(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){Ce[t]=new He(t,5,!1,t.toLowerCase(),null,!1,!1)});var Rc=/[\-:]([a-z])/g;function Oc(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(Rc,Oc);Ce[e]=new He(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(Rc,Oc);Ce[e]=new He(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(Rc,Oc);Ce[e]=new He(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){Ce[t]=new He(t,1,!1,t.toLowerCase(),null,!1,!1)}),Ce.xlinkHref=new He("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){Ce[t]=new He(t,1,!1,t.toLowerCase(),null,!0,!0)});function Mc(t,e,n,o){var r=Ce.hasOwnProperty(e)?Ce[e]:null,i=r!==null?r.type===0:o?!1:!(!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N");i||(sk(e,n,r,o)&&(n=null),o||r===null?rk(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):r.mustUseProperty?t[r.propertyName]=n===null?r.type===3?!1:"":n:(e=r.attributeName,o=r.attributeNamespace,n===null?t.removeAttribute(e):(r=r.type,n=r===3||r===4&&n===!0?"":""+n,o?t.setAttributeNS(o,e,n):t.setAttribute(e,n))))}var Gn=Ps.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ur=60103,Qn=60106,un=60107,Tc=60108,_r=60114,jc=60109,Pc=60110,Is=60112,Jr=60113,Ls=60120,zs=60115,Ic=60116,Lc=60121,zc=60128,Mh=60129,Fc=60130,Hc=60131;if(typeof Symbol=="function"&&Symbol.for){var be=Symbol.for;Ur=be("react.element"),Qn=be("react.portal"),un=be("react.fragment"),Tc=be("react.strict_mode"),_r=be("react.profiler"),jc=be("react.provider"),Pc=be("react.context"),Is=be("react.forward_ref"),Jr=be("react.suspense"),Ls=be("react.suspense_list"),zs=be("react.memo"),Ic=be("react.lazy"),Lc=be("react.block"),be("react.scope"),zc=be("react.opaque.id"),Mh=be("react.debug_trace_mode"),Fc=be("react.offscreen"),Hc=be("react.legacy_hidden")}var Th=typeof Symbol=="function"&&Symbol.iterator;function Yr(t){return t===null||typeof t!="object"?null:(t=Th&&t[Th]||t["@@iterator"],typeof t=="function"?t:null)}var Bc;function Kr(t){if(Bc===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Bc=e&&e[1]||""}return`
|
|
123
|
+
`+Bc+t}var Vc=!1;function Fs(t,e){if(!t||Vc)return"";Vc=!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(l){var o=l}Reflect.construct(t,[],e)}else{try{e.call()}catch(l){o=l}t.call(e.prototype)}else{try{throw Error()}catch(l){o=l}t()}}catch(l){if(l&&o&&typeof l.stack=="string"){for(var r=l.stack.split(`
|
|
124
124
|
`),i=o.stack.split(`
|
|
125
125
|
`),s=r.length-1,a=i.length-1;1<=s&&0<=a&&r[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(r[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||r[s]!==i[a])return`
|
|
126
|
-
`+r[s].replace(" at new "," at ");while(1<=s&&0<=a);break}}}finally{Hc=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Kr(t):""}function sk(t){switch(t.tag){case 5:return Kr(t.type);case 16:return Kr("Lazy");case 13:return Kr("Suspense");case 19:return Kr("SuspenseList");case 0:case 2:case 15:return t=Fs(t.type,!1),t;case 11:return t=Fs(t.type.render,!1),t;case 22:return t=Fs(t.type._render,!1),t;case 1:return t=Fs(t.type,!0),t;default:return""}}function Po(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 un:return"Fragment";case Qn:return"Portal";case _r:return"Profiler";case Dc:return"StrictMode";case Jr:return"Suspense";case Ls:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Tc:return(t.displayName||"Context")+".Consumer";case Mc:return(t._context.displayName||"Context")+".Provider";case Is:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case zs:return Po(t.type);case Pc:return Po(t._render);case jc:e=t._payload,t=t._init;try{return Po(t(e))}catch{}}return null}function dn(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function jh(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function ak(t){var e=jh(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),o=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(s){o=""+s,i.call(this,s)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(s){o=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Hs(t){t._valueTracker||(t._valueTracker=ak(t))}function Ph(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),o="";return t&&(o=jh(t)?t.checked?"true":"false":t.value),t=o,t!==n?(e.setValue(t),!0):!1}function Bs(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 Bc(t,e){var n=e.checked;return ne({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Ih(t,e){var n=e.defaultValue==null?"":e.defaultValue,o=e.checked!=null?e.checked:e.defaultChecked;n=dn(e.value!=null?e.value:n),t._wrapperState={initialChecked:o,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Lh(t,e){e=e.checked,e!=null&&Oc(t,"checked",e,!1)}function Vc(t,e){Lh(t,e);var n=dn(e.value),o=e.type;if(n!=null)o==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(o==="submit"||o==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Uc(t,e.type,n):e.hasOwnProperty("defaultValue")&&Uc(t,e.type,dn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function zh(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var o=e.type;if(!(o!=="submit"&&o!=="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 Uc(t,e,n){(e!=="number"||Bs(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function lk(t){var e="";return Ps.Children.forEach(t,function(n){n!=null&&(e+=n)}),e}function _c(t,e){return t=ne({children:void 0},e),(e=lk(e.children))&&(t.children=e),t}function Io(t,e,n,o){if(t=t.options,e){e={};for(var r=0;r<n.length;r++)e["$"+n[r]]=!0;for(n=0;n<t.length;n++)r=e.hasOwnProperty("$"+t[n].value),t[n].selected!==r&&(t[n].selected=r),r&&o&&(t[n].defaultSelected=!0)}else{for(n=""+dn(n),e=null,r=0;r<t.length;r++){if(t[r].value===n){t[r].selected=!0,o&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function Jc(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(R(91));return ne({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Fh(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(R(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(R(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:dn(n)}}function Hh(t,e){var n=dn(e.value),o=dn(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),o!=null&&(t.defaultValue=""+o)}function Bh(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}var Yc={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Vh(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 Kc(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?Vh(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Vs,Uh=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,o,r){MSApp.execUnsafeLocalFunction(function(){return t(e,n,o,r)})}:t}(function(t,e){if(t.namespaceURI!==Yc.svg||"innerHTML"in t)t.innerHTML=e;else{for(Vs=Vs||document.createElement("div"),Vs.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Vs.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Wr(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var qr={animationIterationCount:!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},ck=["Webkit","ms","Moz","O"];Object.keys(qr).forEach(function(t){ck.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),qr[e]=qr[t]})});function _h(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||qr.hasOwnProperty(t)&&qr[t]?(""+e).trim():e+"px"}function Jh(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var o=n.indexOf("--")===0,r=_h(n,e[n],o);n==="float"&&(n="cssFloat"),o?t.setProperty(n,r):t[n]=r}}var uk=ne({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 Wc(t,e){if(e){if(uk[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(R(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(R(60));if(!(typeof e.dangerouslySetInnerHTML=="object"&&"__html"in e.dangerouslySetInnerHTML))throw Error(R(61))}if(e.style!=null&&typeof e.style!="object")throw Error(R(62))}}function qc(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";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}}function Gc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Qc=null,Lo=null,zo=null;function Yh(t){if(t=pi(t)){if(typeof Qc!="function")throw Error(R(280));var e=t.stateNode;e&&(e=sa(e),Qc(t.stateNode,t.type,e))}}function Kh(t){Lo?zo?zo.push(t):zo=[t]:Lo=t}function Wh(){if(Lo){var t=Lo,e=zo;if(zo=Lo=null,Yh(t),e)for(t=0;t<e.length;t++)Yh(e[t])}}function Zc(t,e){return t(e)}function qh(t,e,n,o,r){return t(e,n,o,r)}function Xc(){}var Gh=Zc,Zn=!1,eu=!1;function tu(){(Lo!==null||zo!==null)&&(Xc(),Wh())}function dk(t,e,n){if(eu)return t(e,n);eu=!0;try{return Gh(t,e,n)}finally{eu=!1,tu()}}function Gr(t,e){var n=t.stateNode;if(n===null)return null;var o=sa(n);if(o===null)return null;n=o[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":(o=!o.disabled)||(t=t.type,o=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!o;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(R(231,e,typeof n));return n}var nu=!1;if(zt)try{var Qr={};Object.defineProperty(Qr,"passive",{get:function(){nu=!0}}),window.addEventListener("test",Qr,Qr),window.removeEventListener("test",Qr,Qr)}catch{nu=!1}function mk(t,e,n,o,r,i,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{e.apply(n,c)}catch(u){this.onError(u)}}var Zr=!1,Us=null,_s=!1,ou=null,fk={onError:function(t){Zr=!0,Us=t}};function pk(t,e,n,o,r,i,s,a,l){Zr=!1,Us=null,mk.apply(fk,arguments)}function hk(t,e,n,o,r,i,s,a,l){if(pk.apply(this,arguments),Zr){if(Zr){var c=Us;Zr=!1,Us=null}else throw Error(R(198));_s||(_s=!0,ou=c)}}function Xn(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&1026&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function Qh(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 Zh(t){if(Xn(t)!==t)throw Error(R(188))}function gk(t){var e=t.alternate;if(!e){if(e=Xn(t),e===null)throw Error(R(188));return e!==t?null:t}for(var n=t,o=e;;){var r=n.return;if(r===null)break;var i=r.alternate;if(i===null){if(o=r.return,o!==null){n=o;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===n)return Zh(r),t;if(i===o)return Zh(r),e;i=i.sibling}throw Error(R(188))}if(n.return!==o.return)n=r,o=i;else{for(var s=!1,a=r.child;a;){if(a===n){s=!0,n=r,o=i;break}if(a===o){s=!0,o=r,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,o=r;break}if(a===o){s=!0,o=i,n=r;break}a=a.sibling}if(!s)throw Error(R(189))}}if(n.alternate!==o)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?t:e}function Xh(t){if(t=gk(t),!t)return null;for(var e=t;;){if(e.tag===5||e.tag===6)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function eg(t,e){for(var n=t.alternate;e!==null;){if(e===t||e===n)return!0;e=e.return}return!1}var tg,ru,ng,og,iu=!1,kt=[],mn=null,fn=null,pn=null,Xr=new Map,ei=new Map,ti=[],rg="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 su(t,e,n,o,r){return{blockedOn:t,domEventName:e,eventSystemFlags:n|16,nativeEvent:r,targetContainers:[o]}}function ig(t,e){switch(t){case"focusin":case"focusout":mn=null;break;case"dragenter":case"dragleave":fn=null;break;case"mouseover":case"mouseout":pn=null;break;case"pointerover":case"pointerout":Xr.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ei.delete(e.pointerId)}}function ni(t,e,n,o,r,i){return t===null||t.nativeEvent!==i?(t=su(e,n,o,r,i),e!==null&&(e=pi(e),e!==null&&ru(e)),t):(t.eventSystemFlags|=o,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function yk(t,e,n,o,r){switch(e){case"focusin":return mn=ni(mn,t,e,n,o,r),!0;case"dragenter":return fn=ni(fn,t,e,n,o,r),!0;case"mouseover":return pn=ni(pn,t,e,n,o,r),!0;case"pointerover":var i=r.pointerId;return Xr.set(i,ni(Xr.get(i)||null,t,e,n,o,r)),!0;case"gotpointercapture":return i=r.pointerId,ei.set(i,ni(ei.get(i)||null,t,e,n,o,r)),!0}return!1}function wk(t){var e=eo(t.target);if(e!==null){var n=Xn(e);if(n!==null){if(e=n.tag,e===13){if(e=Qh(n),e!==null){t.blockedOn=e,og(t.lanePriority,function(){we.unstable_runWithPriority(t.priority,function(){ng(n)})});return}}else if(e===3&&n.stateNode.hydrate){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Js(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=mu(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n!==null)return e=pi(n),e!==null&&ru(e),t.blockedOn=n,!1;e.shift()}return!0}function sg(t,e,n){Js(t)&&n.delete(e)}function Sk(){for(iu=!1;0<kt.length;){var t=kt[0];if(t.blockedOn!==null){t=pi(t.blockedOn),t!==null&&tg(t);break}for(var e=t.targetContainers;0<e.length;){var n=mu(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n!==null){t.blockedOn=n;break}e.shift()}t.blockedOn===null&&kt.shift()}mn!==null&&Js(mn)&&(mn=null),fn!==null&&Js(fn)&&(fn=null),pn!==null&&Js(pn)&&(pn=null),Xr.forEach(sg),ei.forEach(sg)}function oi(t,e){t.blockedOn===e&&(t.blockedOn=null,iu||(iu=!0,we.unstable_scheduleCallback(we.unstable_NormalPriority,Sk)))}function ag(t){function e(r){return oi(r,t)}if(0<kt.length){oi(kt[0],t);for(var n=1;n<kt.length;n++){var o=kt[n];o.blockedOn===t&&(o.blockedOn=null)}}for(mn!==null&&oi(mn,t),fn!==null&&oi(fn,t),pn!==null&&oi(pn,t),Xr.forEach(e),ei.forEach(e),n=0;n<ti.length;n++)o=ti[n],o.blockedOn===t&&(o.blockedOn=null);for(;0<ti.length&&(n=ti[0],n.blockedOn===null);)wk(n),n.blockedOn===null&&ti.shift()}function Ys(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Fo={animationend:Ys("Animation","AnimationEnd"),animationiteration:Ys("Animation","AnimationIteration"),animationstart:Ys("Animation","AnimationStart"),transitionend:Ys("Transition","TransitionEnd")},au={},lg={};zt&&(lg=document.createElement("div").style,"AnimationEvent"in window||(delete Fo.animationend.animation,delete Fo.animationiteration.animation,delete Fo.animationstart.animation),"TransitionEvent"in window||delete Fo.transitionend.transition);function Ks(t){if(au[t])return au[t];if(!Fo[t])return t;var e=Fo[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in lg)return au[t]=e[n];return t}var cg=Ks("animationend"),ug=Ks("animationiteration"),dg=Ks("animationstart"),mg=Ks("transitionend"),fg=new Map,lu=new Map,bk=["abort","abort",cg,"animationEnd",ug,"animationIteration",dg,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",mg,"transitionEnd","waiting","waiting"];function cu(t,e){for(var n=0;n<t.length;n+=2){var o=t[n],r=t[n+1];r="on"+(r[0].toUpperCase()+r.slice(1)),lu.set(o,e),fg.set(o,r),qn(r,[o])}}var vk=we.unstable_now;vk();var Z=8;function Ho(t){if(1&t)return Z=15,1;if(2&t)return Z=14,2;if(4&t)return Z=13,4;var e=24&t;return e!==0?(Z=12,e):t&32?(Z=11,32):(e=192&t,e!==0?(Z=10,e):t&256?(Z=9,256):(e=3584&t,e!==0?(Z=8,e):t&4096?(Z=7,4096):(e=4186112&t,e!==0?(Z=6,e):(e=62914560&t,e!==0?(Z=5,e):t&67108864?(Z=4,67108864):t&134217728?(Z=3,134217728):(e=805306368&t,e!==0?(Z=2,e):1073741824&t?(Z=1,1073741824):(Z=8,t))))))}function xk(t){switch(t){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function kk(t){switch(t){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(R(358,t))}}function ri(t,e){var n=t.pendingLanes;if(n===0)return Z=0;var o=0,r=0,i=t.expiredLanes,s=t.suspendedLanes,a=t.pingedLanes;if(i!==0)o=i,r=Z=15;else if(i=n&134217727,i!==0){var l=i&~s;l!==0?(o=Ho(l),r=Z):(a&=i,a!==0&&(o=Ho(a),r=Z))}else i=n&~s,i!==0?(o=Ho(i),r=Z):a!==0&&(o=Ho(a),r=Z);if(o===0)return 0;if(o=31-hn(o),o=n&((0>o?0:1<<o)<<1)-1,e!==0&&e!==o&&!(e&s)){if(Ho(e),r<=Z)return e;Z=r}if(e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=o;0<e;)n=31-hn(e),r=1<<n,o|=t[n],e&=~r;return o}function pg(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Ws(t,e){switch(t){case 15:return 1;case 14:return 2;case 12:return t=Bo(24&~e),t===0?Ws(10,e):t;case 10:return t=Bo(192&~e),t===0?Ws(8,e):t;case 8:return t=Bo(3584&~e),t===0&&(t=Bo(4186112&~e),t===0&&(t=512)),t;case 2:return e=Bo(805306368&~e),e===0&&(e=268435456),e}throw Error(R(358,t))}function Bo(t){return t&-t}function uu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function qs(t,e,n){t.pendingLanes|=e;var o=e-1;t.suspendedLanes&=o,t.pingedLanes&=o,t=t.eventTimes,e=31-hn(e),t[e]=n}var hn=Math.clz32?Math.clz32:Ek,$k=Math.log,Ck=Math.LN2;function Ek(t){return t===0?32:31-($k(t)/Ck|0)|0}var Nk=we.unstable_UserBlockingPriority,Ak=we.unstable_runWithPriority,Gs=!0;function Rk(t,e,n,o){Zn||Xc();var r=du,i=Zn;Zn=!0;try{qh(r,t,e,n,o)}finally{(Zn=i)||tu()}}function Ok(t,e,n,o){Ak(Nk,du.bind(null,t,e,n,o))}function du(t,e,n,o){if(Gs){var r;if((r=(e&4)===0)&&0<kt.length&&-1<rg.indexOf(t))t=su(null,t,e,n,o),kt.push(t);else{var i=mu(t,e,n,o);if(i===null)r&&ig(t,o);else{if(r){if(-1<rg.indexOf(t)){t=su(i,t,e,n,o),kt.push(t);return}if(yk(i,t,e,n,o))return;ig(t,o)}_g(t,e,o,null,n)}}}}function mu(t,e,n,o){var r=Gc(o);if(r=eo(r),r!==null){var i=Xn(r);if(i===null)r=null;else{var s=i.tag;if(s===13){if(r=Qh(i),r!==null)return r;r=null}else if(s===3){if(i.stateNode.hydrate)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null)}}return _g(t,e,o,r,n),null}var gn=null,fu=null,Qs=null;function hg(){if(Qs)return Qs;var t,e=fu,n=e.length,o,r="value"in gn?gn.value:gn.textContent,i=r.length;for(t=0;t<n&&e[t]===r[t];t++);var s=n-t;for(o=1;o<=s&&e[n-o]===r[i-o];o++);return Qs=r.slice(t,1<o?1-o:void 0)}function Zs(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 Xs(){return!0}function gg(){return!1}function Ge(t){function e(n,o,r,i,s){this._reactName=n,this._targetInst=r,this.type=o,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in t)t.hasOwnProperty(a)&&(n=t[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Xs:gg,this.isPropagationStopped=gg,this}return ne(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=Xs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Xs)},persist:function(){},isPersistent:Xs}),e}var Vo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pu=Ge(Vo),ii=ne({},Vo,{view:0,detail:0}),Dk=Ge(ii),hu,gu,si,ea=ne({},ii,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wu,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!==si&&(si&&t.type==="mousemove"?(hu=t.screenX-si.screenX,gu=t.screenY-si.screenY):gu=hu=0,si=t),hu)},movementY:function(t){return"movementY"in t?t.movementY:gu}}),yg=Ge(ea),Mk=ne({},ea,{dataTransfer:0}),Tk=Ge(Mk),jk=ne({},ii,{relatedTarget:0}),yu=Ge(jk),Pk=ne({},Vo,{animationName:0,elapsedTime:0,pseudoElement:0}),Ik=Ge(Pk),Lk=ne({},Vo,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),zk=Ge(Lk),Fk=ne({},Vo,{data:0}),wg=Ge(Fk),Hk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bk={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"},Vk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Uk(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Vk[t])?!!e[t]:!1}function wu(){return Uk}var _k=ne({},ii,{key:function(t){if(t.key){var e=Hk[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Zs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Bk[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wu,charCode:function(t){return t.type==="keypress"?Zs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Zs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Jk=Ge(_k),Yk=ne({},ea,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sg=Ge(Yk),Kk=ne({},ii,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wu}),Wk=Ge(Kk),qk=ne({},Vo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gk=Ge(qk),Qk=ne({},ea,{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}),Zk=Ge(Qk),Xk=[9,13,27,32],Su=zt&&"CompositionEvent"in window,ai=null;zt&&"documentMode"in document&&(ai=document.documentMode);var e$=zt&&"TextEvent"in window&&!ai,bg=zt&&(!Su||ai&&8<ai&&11>=ai),vg=String.fromCharCode(32),xg=!1;function kg(t,e){switch(t){case"keyup":return Xk.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $g(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Uo=!1;function t$(t,e){switch(t){case"compositionend":return $g(e);case"keypress":return e.which!==32?null:(xg=!0,vg);case"textInput":return t=e.data,t===vg&&xg?null:t;default:return null}}function n$(t,e){if(Uo)return t==="compositionend"||!Su&&kg(t,e)?(t=hg(),Qs=fu=gn=null,Uo=!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 bg&&e.locale!=="ko"?null:e.data;default:return null}}var o$={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 Cg(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!o$[t.type]:e==="textarea"}function Eg(t,e,n,o){Kh(o),e=na(e,"onChange"),0<e.length&&(n=new pu("onChange","change",null,n,o),t.push({event:n,listeners:e}))}var li=null,ci=null;function r$(t){Fg(t,0)}function ta(t){var e=Wo(t);if(Ph(e))return t}function i$(t,e){if(t==="change")return e}var Ng=!1;if(zt){var bu;if(zt){var vu="oninput"in document;if(!vu){var Ag=document.createElement("div");Ag.setAttribute("oninput","return;"),vu=typeof Ag.oninput=="function"}bu=vu}else bu=!1;Ng=bu&&(!document.documentMode||9<document.documentMode)}function Rg(){li&&(li.detachEvent("onpropertychange",Og),ci=li=null)}function Og(t){if(t.propertyName==="value"&&ta(ci)){var e=[];if(Eg(e,ci,t,Gc(t)),t=r$,Zn)t(e);else{Zn=!0;try{Zc(t,e)}finally{Zn=!1,tu()}}}}function s$(t,e,n){t==="focusin"?(Rg(),li=e,ci=n,li.attachEvent("onpropertychange",Og)):t==="focusout"&&Rg()}function a$(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ta(ci)}function l$(t,e){if(t==="click")return ta(e)}function c$(t,e){if(t==="input"||t==="change")return ta(e)}function u$(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var it=typeof Object.is=="function"?Object.is:u$,d$=Object.prototype.hasOwnProperty;function ui(t,e){if(it(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++)if(!d$.call(e,n[o])||!it(t[n[o]],e[n[o]]))return!1;return!0}function Dg(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Mg(t,e){var n=Dg(t);t=0;for(var o;n;){if(n.nodeType===3){if(o=t+n.textContent.length,t<=e&&o>=e)return{node:n,offset:e-t};t=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Dg(n)}}function Tg(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Tg(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function jg(){for(var t=window,e=Bs();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Bs(t.document)}return e}function xu(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")}var m$=zt&&"documentMode"in document&&11>=document.documentMode,_o=null,ku=null,di=null,$u=!1;function Pg(t,e,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$u||_o==null||_o!==Bs(o)||(o=_o,"selectionStart"in o&&xu(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),di&&ui(di,o)||(di=o,o=na(ku,"onSelect"),0<o.length&&(e=new pu("onSelect","select",null,e,n),t.push({event:e,listeners:o}),e.target=_o)))}cu("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),cu("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),cu(bk,2);for(var Ig="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Cu=0;Cu<Ig.length;Cu++)lu.set(Ig[Cu],0);jo("onMouseEnter",["mouseout","mouseover"]),jo("onMouseLeave",["mouseout","mouseover"]),jo("onPointerEnter",["pointerout","pointerover"]),jo("onPointerLeave",["pointerout","pointerover"]),qn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),qn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),qn("onBeforeInput",["compositionend","keypress","textInput","paste"]),qn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),qn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),qn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lg=new Set("cancel close invalid load scroll toggle".split(" ").concat(mi));function zg(t,e,n){var o=t.type||"unknown-event";t.currentTarget=n,hk(o,e,void 0,t),t.currentTarget=null}function Fg(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var o=t[n],r=o.event;o=o.listeners;e:{var i=void 0;if(e)for(var s=o.length-1;0<=s;s--){var a=o[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==i&&r.isPropagationStopped())break e;zg(r,a,c),i=l}else for(s=0;s<o.length;s++){if(a=o[s],l=a.instance,c=a.currentTarget,a=a.listener,l!==i&&r.isPropagationStopped())break e;zg(r,a,c),i=l}}}if(_s)throw t=ou,_s=!1,ou=null,t}function ee(t,e){var n=Gg(e),o=t+"__bubble";n.has(o)||(Ug(e,t,2,!1),n.add(o))}var Hg="_reactListening"+Math.random().toString(36).slice(2);function Bg(t){t[Hg]||(t[Hg]=!0,Ah.forEach(function(e){Lg.has(e)||Vg(e,!1,t,null),Vg(e,!0,t,null)}))}function Vg(t,e,n,o){var r=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,i=n;if(t==="selectionchange"&&n.nodeType!==9&&(i=n.ownerDocument),o!==null&&!e&&Lg.has(t)){if(t!=="scroll")return;r|=2,i=o}var s=Gg(i),a=t+"__"+(e?"capture":"bubble");s.has(a)||(e&&(r|=4),Ug(i,t,r,e),s.add(a))}function Ug(t,e,n,o){var r=lu.get(e);switch(r===void 0?2:r){case 0:r=Rk;break;case 1:r=Ok;break;default:r=du}n=r.bind(null,e,n,t),r=void 0,!nu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),o?r!==void 0?t.addEventListener(e,n,{capture:!0,passive:r}):t.addEventListener(e,n,!0):r!==void 0?t.addEventListener(e,n,{passive:r}):t.addEventListener(e,n,!1)}function _g(t,e,n,o,r){var i=o;if(!(e&1)&&!(e&2)&&o!==null)e:for(;;){if(o===null)return;var s=o.tag;if(s===3||s===4){var a=o.stateNode.containerInfo;if(a===r||a.nodeType===8&&a.parentNode===r)break;if(s===4)for(s=o.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===r||l.nodeType===8&&l.parentNode===r))return;s=s.return}for(;a!==null;){if(s=eo(a),s===null)return;if(l=s.tag,l===5||l===6){o=i=s;continue e}a=a.parentNode}}o=o.return}dk(function(){var c=i,u=Gc(n),m=[];e:{var d=fg.get(t);if(d!==void 0){var p=pu,f=t;switch(t){case"keypress":if(Zs(n)===0)break e;case"keydown":case"keyup":p=Jk;break;case"focusin":f="focus",p=yu;break;case"focusout":f="blur",p=yu;break;case"beforeblur":case"afterblur":p=yu;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":p=yg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Tk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=Wk;break;case cg:case ug:case dg:p=Ik;break;case mg:p=Gk;break;case"scroll":p=Dk;break;case"wheel":p=Zk;break;case"copy":case"cut":case"paste":p=zk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Sg}var y=(e&4)!==0,h=!y&&t==="scroll",g=y?d!==null?d+"Capture":null:d;y=[];for(var S=c,b;S!==null;){b=S;var v=b.stateNode;if(b.tag===5&&v!==null&&(b=v,g!==null&&(v=Gr(S,g),v!=null&&y.push(fi(S,v,b)))),h)break;S=S.return}0<y.length&&(d=new p(d,f,null,n,u),m.push({event:d,listeners:y}))}}if(!(e&7)){e:{if(d=t==="mouseover"||t==="pointerover",p=t==="mouseout"||t==="pointerout",d&&!(e&16)&&(f=n.relatedTarget||n.fromElement)&&(eo(f)||f[Ko]))break e;if((p||d)&&(d=u.window===u?u:(d=u.ownerDocument)?d.defaultView||d.parentWindow:window,p?(f=n.relatedTarget||n.toElement,p=c,f=f?eo(f):null,f!==null&&(h=Xn(f),f!==h||f.tag!==5&&f.tag!==6)&&(f=null)):(p=null,f=c),p!==f)){if(y=yg,v="onMouseLeave",g="onMouseEnter",S="mouse",(t==="pointerout"||t==="pointerover")&&(y=Sg,v="onPointerLeave",g="onPointerEnter",S="pointer"),h=p==null?d:Wo(p),b=f==null?d:Wo(f),d=new y(v,S+"leave",p,n,u),d.target=h,d.relatedTarget=b,v=null,eo(u)===c&&(y=new y(g,S+"enter",f,n,u),y.target=b,y.relatedTarget=h,v=y),h=v,p&&f)t:{for(y=p,g=f,S=0,b=y;b;b=Jo(b))S++;for(b=0,v=g;v;v=Jo(v))b++;for(;0<S-b;)y=Jo(y),S--;for(;0<b-S;)g=Jo(g),b--;for(;S--;){if(y===g||g!==null&&y===g.alternate)break t;y=Jo(y),g=Jo(g)}y=null}else y=null;p!==null&&Jg(m,d,p,y,!1),f!==null&&h!==null&&Jg(m,h,f,y,!0)}}e:{if(d=c?Wo(c):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var C=i$;else if(Cg(d))if(Ng)C=c$;else{C=a$;var x=s$}else(p=d.nodeName)&&p.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(C=l$);if(C&&(C=C(t,c))){Eg(m,C,n,u);break e}x&&x(t,d,c),t==="focusout"&&(x=d._wrapperState)&&x.controlled&&d.type==="number"&&Uc(d,"number",d.value)}switch(x=c?Wo(c):window,t){case"focusin":(Cg(x)||x.contentEditable==="true")&&(_o=x,ku=c,di=null);break;case"focusout":di=ku=_o=null;break;case"mousedown":$u=!0;break;case"contextmenu":case"mouseup":case"dragend":$u=!1,Pg(m,n,u);break;case"selectionchange":if(m$)break;case"keydown":case"keyup":Pg(m,n,u)}var $;if(Su)e:{switch(t){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else Uo?kg(t,n)&&(O="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(O="onCompositionStart");O&&(bg&&n.locale!=="ko"&&(Uo||O!=="onCompositionStart"?O==="onCompositionEnd"&&Uo&&($=hg()):(gn=u,fu="value"in gn?gn.value:gn.textContent,Uo=!0)),x=na(c,O),0<x.length&&(O=new wg(O,t,null,n,u),m.push({event:O,listeners:x}),$?O.data=$:($=$g(n),$!==null&&(O.data=$)))),($=e$?t$(t,n):n$(t,n))&&(c=na(c,"onBeforeInput"),0<c.length&&(u=new wg("onBeforeInput","beforeinput",null,n,u),m.push({event:u,listeners:c}),u.data=$))}Fg(m,e)})}function fi(t,e,n){return{instance:t,listener:e,currentTarget:n}}function na(t,e){for(var n=e+"Capture",o=[];t!==null;){var r=t,i=r.stateNode;r.tag===5&&i!==null&&(r=i,i=Gr(t,n),i!=null&&o.unshift(fi(t,i,r)),i=Gr(t,e),i!=null&&o.push(fi(t,i,r))),t=t.return}return o}function Jo(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Jg(t,e,n,o,r){for(var i=e._reactName,s=[];n!==null&&n!==o;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===o)break;a.tag===5&&c!==null&&(a=c,r?(l=Gr(n,i),l!=null&&s.unshift(fi(n,l,a))):r||(l=Gr(n,i),l!=null&&s.push(fi(n,l,a)))),n=n.return}s.length!==0&&t.push({event:e,listeners:s})}function oa(){}var Eu=null,Nu=null;function Yg(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function Au(t,e){return t==="textarea"||t==="option"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Kg=typeof setTimeout=="function"?setTimeout:void 0,f$=typeof clearTimeout=="function"?clearTimeout:void 0;function Ru(t){t.nodeType===1?t.textContent="":t.nodeType===9&&(t=t.body,t!=null&&(t.textContent=""))}function Yo(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break}return t}function Wg(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 Ou=0;function p$(t){return{$$typeof:Ic,toString:t,valueOf:t}}var ra=Math.random().toString(36).slice(2),yn="__reactFiber$"+ra,ia="__reactProps$"+ra,Ko="__reactContainer$"+ra,qg="__reactEvents$"+ra;function eo(t){var e=t[yn];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Ko]||n[yn]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Wg(t);t!==null;){if(n=t[yn])return n;t=Wg(t)}return e}t=n,n=t.parentNode}return null}function pi(t){return t=t[yn]||t[Ko],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Wo(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(R(33))}function sa(t){return t[ia]||null}function Gg(t){var e=t[qg];return e===void 0&&(e=t[qg]=new Set),e}var Du=[],qo=-1;function wn(t){return{current:t}}function te(t){0>qo||(t.current=Du[qo],Du[qo]=null,qo--)}function re(t,e){qo++,Du[qo]=t.current,t.current=e}var Sn={},Te=wn(Sn),_e=wn(!1),to=Sn;function Go(t,e){var n=t.type.contextTypes;if(!n)return Sn;var o=t.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===e)return o.__reactInternalMemoizedMaskedChildContext;var r={},i;for(i in n)r[i]=e[i];return o&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=r),r}function Je(t){return t=t.childContextTypes,t!=null}function aa(){te(_e),te(Te)}function Qg(t,e,n){if(Te.current!==Sn)throw Error(R(168));re(Te,e),re(_e,n)}function Zg(t,e,n){var o=t.stateNode;if(t=e.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var r in o)if(!(r in t))throw Error(R(108,Po(e)||"Unknown",r));return ne({},n,o)}function la(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Sn,to=Te.current,re(Te,t),re(_e,_e.current),!0}function Xg(t,e,n){var o=t.stateNode;if(!o)throw Error(R(169));n?(t=Zg(t,e,to),o.__reactInternalMemoizedMergedChildContext=t,te(_e),te(Te),re(Te,t)):te(_e),re(_e,n)}var Mu=null,no=null,h$=we.unstable_runWithPriority,Tu=we.unstable_scheduleCallback,ju=we.unstable_cancelCallback,g$=we.unstable_shouldYield,ey=we.unstable_requestPaint,Pu=we.unstable_now,y$=we.unstable_getCurrentPriorityLevel,ca=we.unstable_ImmediatePriority,ty=we.unstable_UserBlockingPriority,ny=we.unstable_NormalPriority,oy=we.unstable_LowPriority,ry=we.unstable_IdlePriority,Iu={},w$=ey!==void 0?ey:function(){},Ft=null,ua=null,Lu=!1,iy=Pu(),je=1e4>iy?Pu:function(){return Pu()-iy};function Qo(){switch(y$()){case ca:return 99;case ty:return 98;case ny:return 97;case oy:return 96;case ry:return 95;default:throw Error(R(332))}}function sy(t){switch(t){case 99:return ca;case 98:return ty;case 97:return ny;case 96:return oy;case 95:return ry;default:throw Error(R(332))}}function oo(t,e){return t=sy(t),h$(t,e)}function hi(t,e,n){return t=sy(t),Tu(t,e,n)}function $t(){if(ua!==null){var t=ua;ua=null,ju(t)}ay()}function ay(){if(!Lu&&Ft!==null){Lu=!0;var t=0;try{var e=Ft;oo(99,function(){for(;t<e.length;t++){var n=e[t];do n=n(!0);while(n!==null)}}),Ft=null}catch(n){throw Ft!==null&&(Ft=Ft.slice(t+1)),Tu(ca,$t),n}finally{Lu=!1}}}var S$=Gn.ReactCurrentBatchConfig;function yt(t,e){if(t&&t.defaultProps){e=ne({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}var da=wn(null),ma=null,Zo=null,fa=null;function zu(){fa=Zo=ma=null}function Fu(t){var e=da.current;te(da),t.type._context._currentValue=e}function ly(t,e){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)===e){if(n===null||(n.childLanes&e)===e)break;n.childLanes|=e}else t.childLanes|=e,n!==null&&(n.childLanes|=e);t=t.return}}function Xo(t,e){ma=t,fa=Zo=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(wt=!0),t.firstContext=null)}function st(t,e){if(fa!==t&&e!==!1&&e!==0)if((typeof e!="number"||e===1073741823)&&(fa=t,e=1073741823),e={context:t,observedBits:e,next:null},Zo===null){if(ma===null)throw Error(R(308));Zo=e,ma.dependencies={lanes:0,firstContext:e,responders:null}}else Zo=Zo.next=e;return t._currentValue}var bn=!1;function Hu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function cy(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 vn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function xn(t,e){if(t=t.updateQueue,t!==null){t=t.shared;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}}function uy(t,e){var n=t.updateQueue,o=t.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var r=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?r=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?r=i=e:i=i.next=e}else r=i=e;n={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:o.shared,effects:o.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function gi(t,e,n,o){var r=t.updateQueue;bn=!1;var i=r.firstBaseUpdate,s=r.lastBaseUpdate,a=r.shared.pending;if(a!==null){r.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?i=c:s.next=c,s=l;var u=t.alternate;if(u!==null){u=u.updateQueue;var m=u.lastBaseUpdate;m!==s&&(m===null?u.firstBaseUpdate=c:m.next=c,u.lastBaseUpdate=l)}}if(i!==null){m=r.baseState,s=0,u=c=l=null;do{a=i.lane;var d=i.eventTime;if((o&a)===a){u!==null&&(u=u.next={eventTime:d,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var p=t,f=i;switch(a=e,d=n,f.tag){case 1:if(p=f.payload,typeof p=="function"){m=p.call(d,m,a);break e}m=p;break e;case 3:p.flags=p.flags&-4097|64;case 0:if(p=f.payload,a=typeof p=="function"?p.call(d,m,a):p,a==null)break e;m=ne({},m,a);break e;case 2:bn=!0}}i.callback!==null&&(t.flags|=32,a=r.effects,a===null?r.effects=[i]:a.push(i))}else d={eventTime:d,lane:a,tag:i.tag,payload:i.payload,callback:i.callback,next:null},u===null?(c=u=d,l=m):u=u.next=d,s|=a;if(i=i.next,i===null){if(a=r.shared.pending,a===null)break;i=a.next,a.next=null,r.lastBaseUpdate=a,r.shared.pending=null}}while(1);u===null&&(l=m),r.baseState=l,r.firstBaseUpdate=c,r.lastBaseUpdate=u,Ai|=s,t.lanes=s,t.memoizedState=m}}function dy(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var o=t[e],r=o.callback;if(r!==null){if(o.callback=null,o=n,typeof r!="function")throw Error(R(191,r));r.call(o)}}}var my=new Ps.Component().refs;function pa(t,e,n,o){e=t.memoizedState,n=n(o,e),n=n==null?e:ne({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var ha={isMounted:function(t){return(t=t._reactInternals)?Xn(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var o=Qe(),r=Cn(t),i=vn(o,r);i.payload=e,n!=null&&(i.callback=n),xn(t,i),En(t,r,o)},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var o=Qe(),r=Cn(t),i=vn(o,r);i.tag=1,i.payload=e,n!=null&&(i.callback=n),xn(t,i),En(t,r,o)},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Qe(),o=Cn(t),r=vn(n,o);r.tag=2,e!=null&&(r.callback=e),xn(t,r),En(t,o,n)}};function fy(t,e,n,o,r,i,s){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(o,i,s):e.prototype&&e.prototype.isPureReactComponent?!ui(n,o)||!ui(r,i):!0}function py(t,e,n){var o=!1,r=Sn,i=e.contextType;return typeof i=="object"&&i!==null?i=st(i):(r=Je(e)?to:Te.current,o=e.contextTypes,i=(o=o!=null)?Go(t,r):Sn),e=new e(n,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=ha,t.stateNode=e,e._reactInternals=t,o&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=i),e}function hy(t,e,n,o){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,o),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,o),e.state!==t&&ha.enqueueReplaceState(e,e.state,null)}function Bu(t,e,n,o){var r=t.stateNode;r.props=n,r.state=t.memoizedState,r.refs=my,Hu(t);var i=e.contextType;typeof i=="object"&&i!==null?r.context=st(i):(i=Je(e)?to:Te.current,r.context=Go(t,i)),gi(t,n,r,o),r.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(pa(t,e,i,n),r.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(e=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),e!==r.state&&ha.enqueueReplaceState(r,r.state,null),gi(t,n,r,o),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4)}var ga=Array.isArray;function yi(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(R(309));var o=n.stateNode}if(!o)throw Error(R(147,t));var r=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===r?e.ref:(e=function(i){var s=o.refs;s===my&&(s=o.refs={}),i===null?delete s[r]:s[r]=i},e._stringRef=r,e)}if(typeof t!="string")throw Error(R(284));if(!n._owner)throw Error(R(290,t))}return t}function ya(t,e){if(t.type!=="textarea")throw Error(R(31,Object.prototype.toString.call(e)==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":e))}function gy(t){function e(h,g){if(t){var S=h.lastEffect;S!==null?(S.nextEffect=g,h.lastEffect=g):h.firstEffect=h.lastEffect=g,g.nextEffect=null,g.flags=8}}function n(h,g){if(!t)return null;for(;g!==null;)e(h,g),g=g.sibling;return null}function o(h,g){for(h=new Map;g!==null;)g.key!==null?h.set(g.key,g):h.set(g.index,g),g=g.sibling;return h}function r(h,g){return h=Rn(h,g),h.index=0,h.sibling=null,h}function i(h,g,S){return h.index=S,t?(S=h.alternate,S!==null?(S=S.index,S<g?(h.flags=2,g):S):(h.flags=2,g)):g}function s(h){return t&&h.alternate===null&&(h.flags=2),h}function a(h,g,S,b){return g===null||g.tag!==6?(g=kd(S,h.mode,b),g.return=h,g):(g=r(g,S),g.return=h,g)}function l(h,g,S,b){return g!==null&&g.elementType===S.type?(b=r(g,S.props),b.ref=yi(h,g,S),b.return=h,b):(b=Pa(S.type,S.key,S.props,null,h.mode,b),b.ref=yi(h,g,S),b.return=h,b)}function c(h,g,S,b){return g===null||g.tag!==4||g.stateNode.containerInfo!==S.containerInfo||g.stateNode.implementation!==S.implementation?(g=$d(S,h.mode,b),g.return=h,g):(g=r(g,S.children||[]),g.return=h,g)}function u(h,g,S,b,v){return g===null||g.tag!==7?(g=ar(S,h.mode,b,v),g.return=h,g):(g=r(g,S),g.return=h,g)}function m(h,g,S){if(typeof g=="string"||typeof g=="number")return g=kd(""+g,h.mode,S),g.return=h,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Ur:return S=Pa(g.type,g.key,g.props,null,h.mode,S),S.ref=yi(h,null,g),S.return=h,S;case Qn:return g=$d(g,h.mode,S),g.return=h,g}if(ga(g)||Yr(g))return g=ar(g,h.mode,S,null),g.return=h,g;ya(h,g)}return null}function d(h,g,S,b){var v=g!==null?g.key:null;if(typeof S=="string"||typeof S=="number")return v!==null?null:a(h,g,""+S,b);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Ur:return S.key===v?S.type===un?u(h,g,S.props.children,b,v):l(h,g,S,b):null;case Qn:return S.key===v?c(h,g,S,b):null}if(ga(S)||Yr(S))return v!==null?null:u(h,g,S,b,null);ya(h,S)}return null}function p(h,g,S,b,v){if(typeof b=="string"||typeof b=="number")return h=h.get(S)||null,a(g,h,""+b,v);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Ur:return h=h.get(b.key===null?S:b.key)||null,b.type===un?u(g,h,b.props.children,v,b.key):l(g,h,b,v);case Qn:return h=h.get(b.key===null?S:b.key)||null,c(g,h,b,v)}if(ga(b)||Yr(b))return h=h.get(S)||null,u(g,h,b,v,null);ya(g,b)}return null}function f(h,g,S,b){for(var v=null,C=null,x=g,$=g=0,O=null;x!==null&&$<S.length;$++){x.index>$?(O=x,x=null):O=x.sibling;var E=d(h,x,S[$],b);if(E===null){x===null&&(x=O);break}t&&x&&E.alternate===null&&e(h,x),g=i(E,g,$),C===null?v=E:C.sibling=E,C=E,x=O}if($===S.length)return n(h,x),v;if(x===null){for(;$<S.length;$++)x=m(h,S[$],b),x!==null&&(g=i(x,g,$),C===null?v=x:C.sibling=x,C=x);return v}for(x=o(h,x);$<S.length;$++)O=p(x,h,$,S[$],b),O!==null&&(t&&O.alternate!==null&&x.delete(O.key===null?$:O.key),g=i(O,g,$),C===null?v=O:C.sibling=O,C=O);return t&&x.forEach(function(U){return e(h,U)}),v}function y(h,g,S,b){var v=Yr(S);if(typeof v!="function")throw Error(R(150));if(S=v.call(S),S==null)throw Error(R(151));for(var C=v=null,x=g,$=g=0,O=null,E=S.next();x!==null&&!E.done;$++,E=S.next()){x.index>$?(O=x,x=null):O=x.sibling;var U=d(h,x,E.value,b);if(U===null){x===null&&(x=O);break}t&&x&&U.alternate===null&&e(h,x),g=i(U,g,$),C===null?v=U:C.sibling=U,C=U,x=O}if(E.done)return n(h,x),v;if(x===null){for(;!E.done;$++,E=S.next())E=m(h,E.value,b),E!==null&&(g=i(E,g,$),C===null?v=E:C.sibling=E,C=E);return v}for(x=o(h,x);!E.done;$++,E=S.next())E=p(x,h,$,E.value,b),E!==null&&(t&&E.alternate!==null&&x.delete(E.key===null?$:E.key),g=i(E,g,$),C===null?v=E:C.sibling=E,C=E);return t&&x.forEach(function(se){return e(h,se)}),v}return function(h,g,S,b){var v=typeof S=="object"&&S!==null&&S.type===un&&S.key===null;v&&(S=S.props.children);var C=typeof S=="object"&&S!==null;if(C)switch(S.$$typeof){case Ur:e:{for(C=S.key,v=g;v!==null;){if(v.key===C){switch(v.tag){case 7:if(S.type===un){n(h,v.sibling),g=r(v,S.props.children),g.return=h,h=g;break e}break;default:if(v.elementType===S.type){n(h,v.sibling),g=r(v,S.props),g.ref=yi(h,v,S),g.return=h,h=g;break e}}n(h,v);break}else e(h,v);v=v.sibling}S.type===un?(g=ar(S.props.children,h.mode,b,S.key),g.return=h,h=g):(b=Pa(S.type,S.key,S.props,null,h.mode,b),b.ref=yi(h,g,S),b.return=h,h=b)}return s(h);case Qn:e:{for(v=S.key;g!==null;){if(g.key===v)if(g.tag===4&&g.stateNode.containerInfo===S.containerInfo&&g.stateNode.implementation===S.implementation){n(h,g.sibling),g=r(g,S.children||[]),g.return=h,h=g;break e}else{n(h,g);break}else e(h,g);g=g.sibling}g=$d(S,h.mode,b),g.return=h,h=g}return s(h)}if(typeof S=="string"||typeof S=="number")return S=""+S,g!==null&&g.tag===6?(n(h,g.sibling),g=r(g,S),g.return=h,h=g):(n(h,g),g=kd(S,h.mode,b),g.return=h,h=g),s(h);if(ga(S))return f(h,g,S,b);if(Yr(S))return y(h,g,S,b);if(C&&ya(h,S),typeof S>"u"&&!v)switch(h.tag){case 1:case 22:case 0:case 11:case 15:throw Error(R(152,Po(h.type)||"Component"))}return n(h,g)}}var wa=gy(!0),yy=gy(!1),wi={},Ct=wn(wi),Si=wn(wi),bi=wn(wi);function ro(t){if(t===wi)throw Error(R(174));return t}function Vu(t,e){switch(re(bi,e),re(Si,t),re(Ct,wi),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Kc(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Kc(e,t)}te(Ct),re(Ct,e)}function er(){te(Ct),te(Si),te(bi)}function wy(t){ro(bi.current);var e=ro(Ct.current),n=Kc(e,t.type);e!==n&&(re(Si,t),re(Ct,n))}function Uu(t){Si.current===t&&(te(Ct),te(Si))}var ie=wn(0);function Sa(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&64)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 Ht=null,kn=null,Et=!1;function Sy(t,e){var n=ct(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=e,n.return=t,n.flags=8,t.lastEffect!==null?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function by(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,!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,!0):!1;case 13:return!1;default:return!1}}function _u(t){if(Et){var e=kn;if(e){var n=e;if(!by(t,e)){if(e=Yo(n.nextSibling),!e||!by(t,e)){t.flags=t.flags&-1025|2,Et=!1,Ht=t;return}Sy(Ht,n)}Ht=t,kn=Yo(e.firstChild)}else t.flags=t.flags&-1025|2,Et=!1,Ht=t}}function vy(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Ht=t}function ba(t){if(t!==Ht)return!1;if(!Et)return vy(t),Et=!0,!1;var e=t.type;if(t.tag!==5||e!=="head"&&e!=="body"&&!Au(e,t.memoizedProps))for(e=kn;e;)Sy(t,e),e=Yo(e.nextSibling);if(vy(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(R(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){kn=Yo(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}kn=null}}else kn=Ht?Yo(t.stateNode.nextSibling):null;return!0}function Ju(){kn=Ht=null,Et=!1}var tr=[];function Yu(){for(var t=0;t<tr.length;t++)tr[t]._workInProgressVersionPrimary=null;tr.length=0}var vi=Gn.ReactCurrentDispatcher,at=Gn.ReactCurrentBatchConfig,xi=0,ae=null,Pe=null,Ee=null,va=!1,ki=!1;function Ye(){throw Error(R(321))}function Ku(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!it(t[n],e[n]))return!1;return!0}function Wu(t,e,n,o,r,i){if(xi=i,ae=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,vi.current=t===null||t.memoizedState===null?v$:x$,t=n(o,r),ki){i=0;do{if(ki=!1,!(25>i))throw Error(R(301));i+=1,Ee=Pe=null,e.updateQueue=null,vi.current=k$,t=n(o,r)}while(ki)}if(vi.current=Ca,e=Pe!==null&&Pe.next!==null,xi=0,Ee=Pe=ae=null,va=!1,e)throw Error(R(300));return t}function io(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ee===null?ae.memoizedState=Ee=t:Ee=Ee.next=t,Ee}function so(){if(Pe===null){var t=ae.alternate;t=t!==null?t.memoizedState:null}else t=Pe.next;var e=Ee===null?ae.memoizedState:Ee.next;if(e!==null)Ee=e,Pe=t;else{if(t===null)throw Error(R(310));Pe=t,t={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},Ee===null?ae.memoizedState=Ee=t:Ee=Ee.next=t}return Ee}function Nt(t,e){return typeof e=="function"?e(t):e}function $i(t){var e=so(),n=e.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=t;var o=Pe,r=o.baseQueue,i=n.pending;if(i!==null){if(r!==null){var s=r.next;r.next=i.next,i.next=s}o.baseQueue=r=i,n.pending=null}if(r!==null){r=r.next,o=o.baseState;var a=s=i=null,l=r;do{var c=l.lane;if((xi&c)===c)a!==null&&(a=a.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),o=l.eagerReducer===t?l.eagerState:t(o,l.action);else{var u={lane:c,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};a===null?(s=a=u,i=o):a=a.next=u,ae.lanes|=c,Ai|=c}l=l.next}while(l!==null&&l!==r);a===null?i=o:a.next=s,it(o,e.memoizedState)||(wt=!0),e.memoizedState=o,e.baseState=i,e.baseQueue=a,n.lastRenderedState=o}return[e.memoizedState,n.dispatch]}function Ci(t){var e=so(),n=e.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=t;var o=n.dispatch,r=n.pending,i=e.memoizedState;if(r!==null){n.pending=null;var s=r=r.next;do i=t(i,s.action),s=s.next;while(s!==r);it(i,e.memoizedState)||(wt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,o]}function xy(t,e,n){var o=e._getVersion;o=o(e._source);var r=e._workInProgressVersionPrimary;if(r!==null?t=r===o:(t=t.mutableReadLanes,(t=(xi&t)===t)&&(e._workInProgressVersionPrimary=o,tr.push(e))),t)return n(e._source);throw tr.push(e),Error(R(350))}function ky(t,e,n,o){var r=Be;if(r===null)throw Error(R(349));var i=e._getVersion,s=i(e._source),a=vi.current,l=a.useState(function(){return xy(r,e,n)}),c=l[1],u=l[0];l=Ee;var m=t.memoizedState,d=m.refs,p=d.getSnapshot,f=m.source;m=m.subscribe;var y=ae;return t.memoizedState={refs:d,source:e,subscribe:o},a.useEffect(function(){d.getSnapshot=n,d.setSnapshot=c;var h=i(e._source);if(!it(s,h)){h=n(e._source),it(u,h)||(c(h),h=Cn(y),r.mutableReadLanes|=h&r.pendingLanes),h=r.mutableReadLanes,r.entangledLanes|=h;for(var g=r.entanglements,S=h;0<S;){var b=31-hn(S),v=1<<b;g[b]|=h,S&=~v}}},[n,e,o]),a.useEffect(function(){return o(e._source,function(){var h=d.getSnapshot,g=d.setSnapshot;try{g(h(e._source));var S=Cn(y);r.mutableReadLanes|=S&r.pendingLanes}catch(b){g(function(){throw b})}})},[e,o]),it(p,n)&&it(f,e)&&it(m,o)||(t={pending:null,dispatch:null,lastRenderedReducer:Nt,lastRenderedState:u},t.dispatch=c=Zu.bind(null,ae,t),l.queue=t,l.baseQueue=null,u=xy(r,e,n),l.memoizedState=l.baseState=u),u}function $y(t,e,n){var o=so();return ky(o,t,e,n)}function Ei(t){var e=io();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t=e.queue={pending:null,dispatch:null,lastRenderedReducer:Nt,lastRenderedState:t},t=t.dispatch=Zu.bind(null,ae,t),[e.memoizedState,t]}function xa(t,e,n,o){return t={tag:t,create:e,destroy:n,deps:o,next:null},e=ae.updateQueue,e===null?(e={lastEffect:null},ae.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(o=n.next,n.next=t,t.next=o,e.lastEffect=t)),t}function Cy(t){var e=io();return t={current:t},e.memoizedState=t}function ka(){return so().memoizedState}function qu(t,e,n,o){var r=io();ae.flags|=t,r.memoizedState=xa(1|e,n,void 0,o===void 0?null:o)}function Gu(t,e,n,o){var r=so();o=o===void 0?null:o;var i=void 0;if(Pe!==null){var s=Pe.memoizedState;if(i=s.destroy,o!==null&&Ku(o,s.deps)){xa(e,n,i,o);return}}ae.flags|=t,r.memoizedState=xa(1|e,n,i,o)}function Ey(t,e){return qu(516,4,t,e)}function $a(t,e){return Gu(516,4,t,e)}function Ny(t,e){return Gu(4,2,t,e)}function Ay(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 Ry(t,e,n){return n=n!=null?n.concat([t]):null,Gu(4,2,Ay.bind(null,e,t),n)}function Qu(){}function Oy(t,e){var n=so();e=e===void 0?null:e;var o=n.memoizedState;return o!==null&&e!==null&&Ku(e,o[1])?o[0]:(n.memoizedState=[t,e],t)}function Dy(t,e){var n=so();e=e===void 0?null:e;var o=n.memoizedState;return o!==null&&e!==null&&Ku(e,o[1])?o[0]:(t=t(),n.memoizedState=[t,e],t)}function b$(t,e){var n=Qo();oo(98>n?98:n,function(){t(!0)}),oo(97<n?97:n,function(){var o=at.transition;at.transition=1;try{t(!1),e()}finally{at.transition=o}})}function Zu(t,e,n){var o=Qe(),r=Cn(t),i={lane:r,action:n,eagerReducer:null,eagerState:null,next:null},s=e.pending;if(s===null?i.next=i:(i.next=s.next,s.next=i),e.pending=i,s=t.alternate,t===ae||s!==null&&s===ae)ki=va=!0;else{if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var a=e.lastRenderedState,l=s(a,n);if(i.eagerReducer=s,i.eagerState=l,it(l,a))return}catch{}finally{}En(t,r,o)}}var Ca={readContext:st,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useOpaqueIdentifier:Ye,unstable_isNewReconciler:!1},v$={readContext:st,useCallback:function(t,e){return io().memoizedState=[t,e===void 0?null:e],t},useContext:st,useEffect:Ey,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,qu(4,2,Ay.bind(null,e,t),n)},useLayoutEffect:function(t,e){return qu(4,2,t,e)},useMemo:function(t,e){var n=io();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var o=io();return e=n!==void 0?n(e):e,o.memoizedState=o.baseState=e,t=o.queue={pending:null,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},t=t.dispatch=Zu.bind(null,ae,t),[o.memoizedState,t]},useRef:Cy,useState:Ei,useDebugValue:Qu,useDeferredValue:function(t){var e=Ei(t),n=e[0],o=e[1];return Ey(function(){var r=at.transition;at.transition=1;try{o(t)}finally{at.transition=r}},[t]),n},useTransition:function(){var t=Ei(!1),e=t[0];return t=b$.bind(null,t[1]),Cy(t),[t,e]},useMutableSource:function(t,e,n){var o=io();return o.memoizedState={refs:{getSnapshot:e,setSnapshot:null},source:t,subscribe:n},ky(o,t,e,n)},useOpaqueIdentifier:function(){if(Et){var t=!1,e=p$(function(){throw t||(t=!0,n("r:"+(Ou++).toString(36))),Error(R(355))}),n=Ei(e)[1];return!(ae.mode&2)&&(ae.flags|=516,xa(5,function(){n("r:"+(Ou++).toString(36))},void 0,null)),e}return e="r:"+(Ou++).toString(36),Ei(e),e},unstable_isNewReconciler:!1},x$={readContext:st,useCallback:Oy,useContext:st,useEffect:$a,useImperativeHandle:Ry,useLayoutEffect:Ny,useMemo:Dy,useReducer:$i,useRef:ka,useState:function(){return $i(Nt)},useDebugValue:Qu,useDeferredValue:function(t){var e=$i(Nt),n=e[0],o=e[1];return $a(function(){var r=at.transition;at.transition=1;try{o(t)}finally{at.transition=r}},[t]),n},useTransition:function(){var t=$i(Nt)[0];return[ka().current,t]},useMutableSource:$y,useOpaqueIdentifier:function(){return $i(Nt)[0]},unstable_isNewReconciler:!1},k$={readContext:st,useCallback:Oy,useContext:st,useEffect:$a,useImperativeHandle:Ry,useLayoutEffect:Ny,useMemo:Dy,useReducer:Ci,useRef:ka,useState:function(){return Ci(Nt)},useDebugValue:Qu,useDeferredValue:function(t){var e=Ci(Nt),n=e[0],o=e[1];return $a(function(){var r=at.transition;at.transition=1;try{o(t)}finally{at.transition=r}},[t]),n},useTransition:function(){var t=Ci(Nt)[0];return[ka().current,t]},useMutableSource:$y,useOpaqueIdentifier:function(){return Ci(Nt)[0]},unstable_isNewReconciler:!1},$$=Gn.ReactCurrentOwner,wt=!1;function Ke(t,e,n,o){e.child=t===null?yy(e,null,n,o):wa(e,t.child,n,o)}function My(t,e,n,o,r){n=n.render;var i=e.ref;return Xo(e,r),o=Wu(t,e,n,o,i,r),t!==null&&!wt?(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~r,Bt(t,e,r)):(e.flags|=1,Ke(t,e,o,r),e.child)}function Ty(t,e,n,o,r,i){if(t===null){var s=n.type;return typeof s=="function"&&!vd(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=s,jy(t,e,s,o,r,i)):(t=Pa(n.type,null,o,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}return s=t.child,!(r&i)&&(r=s.memoizedProps,n=n.compare,n=n!==null?n:ui,n(r,o)&&t.ref===e.ref)?Bt(t,e,i):(e.flags|=1,t=Rn(s,o),t.ref=e.ref,t.return=e,e.child=t)}function jy(t,e,n,o,r,i){if(t!==null&&ui(t.memoizedProps,o)&&t.ref===e.ref)if(wt=!1,(i&r)!==0)t.flags&16384&&(wt=!0);else return e.lanes=t.lanes,Bt(t,e,i);return ed(t,e,n,o,i)}function Xu(t,e,n){var o=e.pendingProps,r=o.children,i=t!==null?t.memoizedState:null;if(o.mode==="hidden"||o.mode==="unstable-defer-without-hiding")if(!(e.mode&4))e.memoizedState={baseLanes:0},ja(e,n);else if(n&1073741824)e.memoizedState={baseLanes:0},ja(e,i!==null?i.baseLanes:n);else return t=i!==null?i.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t},ja(e,t),null;else i!==null?(o=i.baseLanes|n,e.memoizedState=null):o=n,ja(e,o);return Ke(t,e,r,n),e.child}function Py(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=128)}function ed(t,e,n,o,r){var i=Je(n)?to:Te.current;return i=Go(e,i),Xo(e,r),n=Wu(t,e,n,o,i,r),t!==null&&!wt?(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~r,Bt(t,e,r)):(e.flags|=1,Ke(t,e,n,r),e.child)}function Iy(t,e,n,o,r){if(Je(n)){var i=!0;la(e)}else i=!1;if(Xo(e,r),e.stateNode===null)t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),py(e,n,o),Bu(e,n,o,r),o=!0;else if(t===null){var s=e.stateNode,a=e.memoizedProps;s.props=a;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=st(c):(c=Je(n)?to:Te.current,c=Go(e,c));var u=n.getDerivedStateFromProps,m=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";m||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==o||l!==c)&&hy(e,s,o,c),bn=!1;var d=e.memoizedState;s.state=d,gi(e,o,s,r),l=e.memoizedState,a!==o||d!==l||_e.current||bn?(typeof u=="function"&&(pa(e,n,u,o),l=e.memoizedState),(a=bn||fy(e,n,a,o,d,l,c))?(m||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(e.flags|=4)):(typeof s.componentDidMount=="function"&&(e.flags|=4),e.memoizedProps=o,e.memoizedState=l),s.props=o,s.state=l,s.context=c,o=a):(typeof s.componentDidMount=="function"&&(e.flags|=4),o=!1)}else{s=e.stateNode,cy(t,e),a=e.memoizedProps,c=e.type===e.elementType?a:yt(e.type,a),s.props=c,m=e.pendingProps,d=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=st(l):(l=Je(n)?to:Te.current,l=Go(e,l));var p=n.getDerivedStateFromProps;(u=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==m||d!==l)&&hy(e,s,o,l),bn=!1,d=e.memoizedState,s.state=d,gi(e,o,s,r);var f=e.memoizedState;a!==m||d!==f||_e.current||bn?(typeof p=="function"&&(pa(e,n,p,o),f=e.memoizedState),(c=bn||fy(e,n,c,o,d,f,l))?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(o,f,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(o,f,l)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=256)):(typeof s.componentDidUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=256),e.memoizedProps=o,e.memoizedState=f),s.props=o,s.state=f,s.context=l,o=c):(typeof s.componentDidUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=256),o=!1)}return td(t,e,n,o,i,r)}function td(t,e,n,o,r,i){Py(t,e);var s=(e.flags&64)!==0;if(!o&&!s)return r&&Xg(e,n,!1),Bt(t,e,i);o=e.stateNode,$$.current=e;var a=s&&typeof n.getDerivedStateFromError!="function"?null:o.render();return e.flags|=1,t!==null&&s?(e.child=wa(e,t.child,null,i),e.child=wa(e,null,a,i)):Ke(t,e,a,i),e.memoizedState=o.state,r&&Xg(e,n,!0),e.child}function Ly(t){var e=t.stateNode;e.pendingContext?Qg(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Qg(t,e.context,!1),Vu(t,e.containerInfo)}var Ea={dehydrated:null,retryLane:0};function zy(t,e,n){var o=e.pendingProps,r=ie.current,i=!1,s;return(s=(e.flags&64)!==0)||(s=t!==null&&t.memoizedState===null?!1:(r&2)!==0),s?(i=!0,e.flags&=-65):t!==null&&t.memoizedState===null||o.fallback===void 0||o.unstable_avoidThisFallback===!0||(r|=1),re(ie,r&1),t===null?(o.fallback!==void 0&&_u(e),t=o.children,r=o.fallback,i?(t=Fy(e,t,r,n),e.child.memoizedState={baseLanes:n},e.memoizedState=Ea,t):typeof o.unstable_expectedLoadTime=="number"?(t=Fy(e,t,r,n),e.child.memoizedState={baseLanes:n},e.memoizedState=Ea,e.lanes=33554432,t):(n=xd({mode:"visible",children:t},e.mode,n,null),n.return=e,e.child=n)):t.memoizedState!==null?i?(o=By(t,e,o.children,o.fallback,n),i=e.child,r=t.child.memoizedState,i.memoizedState=r===null?{baseLanes:n}:{baseLanes:r.baseLanes|n},i.childLanes=t.childLanes&~n,e.memoizedState=Ea,o):(n=Hy(t,e,o.children,n),e.memoizedState=null,n):i?(o=By(t,e,o.children,o.fallback,n),i=e.child,r=t.child.memoizedState,i.memoizedState=r===null?{baseLanes:n}:{baseLanes:r.baseLanes|n},i.childLanes=t.childLanes&~n,e.memoizedState=Ea,o):(n=Hy(t,e,o.children,n),e.memoizedState=null,n)}function Fy(t,e,n,o){var r=t.mode,i=t.child;return e={mode:"hidden",children:e},!(r&2)&&i!==null?(i.childLanes=0,i.pendingProps=e):i=xd(e,r,0,null),n=ar(n,r,o,null),i.return=t,n.return=t,i.sibling=n,t.child=i,n}function Hy(t,e,n,o){var r=t.child;return t=r.sibling,n=Rn(r,{mode:"visible",children:n}),!(e.mode&2)&&(n.lanes=o),n.return=e,n.sibling=null,t!==null&&(t.nextEffect=null,t.flags=8,e.firstEffect=e.lastEffect=t),e.child=n}function By(t,e,n,o,r){var i=e.mode,s=t.child;t=s.sibling;var a={mode:"hidden",children:n};return!(i&2)&&e.child!==s?(n=e.child,n.childLanes=0,n.pendingProps=a,s=n.lastEffect,s!==null?(e.firstEffect=n.firstEffect,e.lastEffect=s,s.nextEffect=null):e.firstEffect=e.lastEffect=null):n=Rn(s,a),t!==null?o=Rn(t,o):(o=ar(o,i,r,null),o.flags|=2),o.return=e,n.return=e,n.sibling=o,e.child=n,o}function Vy(t,e){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),ly(t.return,e)}function nd(t,e,n,o,r,i){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:r,lastEffect:i}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=o,s.tail=n,s.tailMode=r,s.lastEffect=i)}function Uy(t,e,n){var o=e.pendingProps,r=o.revealOrder,i=o.tail;if(Ke(t,e,o.children,n),o=ie.current,o&2)o=o&1|2,e.flags|=64;else{if(t!==null&&t.flags&64)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Vy(t,n);else if(t.tag===19)Vy(t,n);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}o&=1}if(re(ie,o),!(e.mode&2))e.memoizedState=null;else switch(r){case"forwards":for(n=e.child,r=null;n!==null;)t=n.alternate,t!==null&&Sa(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),nd(e,!1,r,n,i,e.lastEffect);break;case"backwards":for(n=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&Sa(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}nd(e,!0,n,null,i,e.lastEffect);break;case"together":nd(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}return e.child}function Bt(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Ai|=e.lanes,n&e.childLanes){if(t!==null&&e.child!==t.child)throw Error(R(153));if(e.child!==null){for(t=e.child,n=Rn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Rn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}return null}var _y,od,Jy,Yy;_y=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}},od=function(){},Jy=function(t,e,n,o){var r=t.memoizedProps;if(r!==o){t=e.stateNode,ro(Ct.current);var i=null;switch(n){case"input":r=Bc(t,r),o=Bc(t,o),i=[];break;case"option":r=_c(t,r),o=_c(t,o),i=[];break;case"select":r=ne({},r,{value:void 0}),o=ne({},o,{value:void 0}),i=[];break;case"textarea":r=Jc(t,r),o=Jc(t,o),i=[];break;default:typeof r.onClick!="function"&&typeof o.onClick=="function"&&(t.onclick=oa)}Wc(n,o);var s;n=null;for(c in r)if(!o.hasOwnProperty(c)&&r.hasOwnProperty(c)&&r[c]!=null)if(c==="style"){var a=r[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Vr.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in o){var l=o[c];if(a=r!=null?r[c]:void 0,o.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Vr.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&ee("scroll",t),i||a===l||(i=[])):typeof l=="object"&&l!==null&&l.$$typeof===Ic?l.toString():(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(e.updateQueue=c)&&(e.flags|=4)}},Yy=function(t,e,n,o){n!==o&&(e.flags|=4)};function Ni(t,e){if(!Et)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 o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:o.sibling=null}}function C$(t,e,n){var o=e.pendingProps;switch(e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Je(e.type)&&aa(),null;case 3:return er(),te(_e),te(Te),Yu(),o=e.stateNode,o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&(ba(e)?e.flags|=4:o.hydrate||(e.flags|=256)),od(e),null;case 5:Uu(e);var r=ro(bi.current);if(n=e.type,t!==null&&e.stateNode!=null)Jy(t,e,n,o,r),t.ref!==e.ref&&(e.flags|=128);else{if(!o){if(e.stateNode===null)throw Error(R(166));return null}if(t=ro(Ct.current),ba(e)){o=e.stateNode,n=e.type;var i=e.memoizedProps;switch(o[yn]=e,o[ia]=i,n){case"dialog":ee("cancel",o),ee("close",o);break;case"iframe":case"object":case"embed":ee("load",o);break;case"video":case"audio":for(t=0;t<mi.length;t++)ee(mi[t],o);break;case"source":ee("error",o);break;case"img":case"image":case"link":ee("error",o),ee("load",o);break;case"details":ee("toggle",o);break;case"input":Ih(o,i),ee("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!i.multiple},ee("invalid",o);break;case"textarea":Fh(o,i),ee("invalid",o)}Wc(n,i),t=null;for(var s in i)i.hasOwnProperty(s)&&(r=i[s],s==="children"?typeof r=="string"?o.textContent!==r&&(t=["children",r]):typeof r=="number"&&o.textContent!==""+r&&(t=["children",""+r]):Vr.hasOwnProperty(s)&&r!=null&&s==="onScroll"&&ee("scroll",o));switch(n){case"input":Hs(o),zh(o,i,!0);break;case"textarea":Hs(o),Bh(o);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(o.onclick=oa)}o=t,e.updateQueue=o,o!==null&&(e.flags|=4)}else{switch(s=r.nodeType===9?r:r.ownerDocument,t===Yc.html&&(t=Vh(n)),t===Yc.html?n==="script"?(t=s.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof o.is=="string"?t=s.createElement(n,{is:o.is}):(t=s.createElement(n),n==="select"&&(s=t,o.multiple?s.multiple=!0:o.size&&(s.size=o.size))):t=s.createElementNS(t,n),t[yn]=e,t[ia]=o,_y(t,e,!1,!1),e.stateNode=t,s=qc(n,o),n){case"dialog":ee("cancel",t),ee("close",t),r=o;break;case"iframe":case"object":case"embed":ee("load",t),r=o;break;case"video":case"audio":for(r=0;r<mi.length;r++)ee(mi[r],t);r=o;break;case"source":ee("error",t),r=o;break;case"img":case"image":case"link":ee("error",t),ee("load",t),r=o;break;case"details":ee("toggle",t),r=o;break;case"input":Ih(t,o),r=Bc(t,o),ee("invalid",t);break;case"option":r=_c(t,o);break;case"select":t._wrapperState={wasMultiple:!!o.multiple},r=ne({},o,{value:void 0}),ee("invalid",t);break;case"textarea":Fh(t,o),r=Jc(t,o),ee("invalid",t);break;default:r=o}Wc(n,r);var a=r;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Jh(t,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Uh(t,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Wr(t,l):typeof l=="number"&&Wr(t,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Vr.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ee("scroll",t):l!=null&&Oc(t,i,l,s))}switch(n){case"input":Hs(t),zh(t,o,!1);break;case"textarea":Hs(t),Bh(t);break;case"option":o.value!=null&&t.setAttribute("value",""+dn(o.value));break;case"select":t.multiple=!!o.multiple,i=o.value,i!=null?Io(t,!!o.multiple,i,!1):o.defaultValue!=null&&Io(t,!!o.multiple,o.defaultValue,!0);break;default:typeof r.onClick=="function"&&(t.onclick=oa)}Yg(n,o)&&(e.flags|=4)}e.ref!==null&&(e.flags|=128)}return null;case 6:if(t&&e.stateNode!=null)Yy(t,e,t.memoizedProps,o);else{if(typeof o!="string"&&e.stateNode===null)throw Error(R(166));n=ro(bi.current),ro(Ct.current),ba(e)?(o=e.stateNode,n=e.memoizedProps,o[yn]=e,o.nodeValue!==n&&(e.flags|=4)):(o=(n.nodeType===9?n:n.ownerDocument).createTextNode(o),o[yn]=e,e.stateNode=o)}return null;case 13:return te(ie),o=e.memoizedState,e.flags&64?(e.lanes=n,e):(o=o!==null,n=!1,t===null?e.memoizedProps.fallback!==void 0&&ba(e):n=t.memoizedState!==null,o&&!n&&e.mode&2&&(t===null&&e.memoizedProps.unstable_avoidThisFallback!==!0||ie.current&1?Ne===0&&(Ne=3):((Ne===0||Ne===3)&&(Ne=4),Be===null||!(Ai&134217727)&&!(or&134217727)||ir(Be,Ie))),(o||n)&&(e.flags|=4),null);case 4:return er(),od(e),t===null&&Bg(e.stateNode.containerInfo),null;case 10:return Fu(e),null;case 17:return Je(e.type)&&aa(),null;case 19:if(te(ie),o=e.memoizedState,o===null)return null;if(i=(e.flags&64)!==0,s=o.rendering,s===null)if(i)Ni(o,!1);else{if(Ne!==0||t!==null&&t.flags&64)for(t=e.child;t!==null;){if(s=Sa(t),s!==null){for(e.flags|=64,Ni(o,!1),i=s.updateQueue,i!==null&&(e.updateQueue=i,e.flags|=4),o.lastEffect===null&&(e.firstEffect=null),e.lastEffect=o.lastEffect,o=n,n=e.child;n!==null;)i=n,t=o,i.flags&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,s=i.alternate,s===null?(i.childLanes=0,i.lanes=t,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,t=s.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return re(ie,ie.current&1|2),e.child}t=t.sibling}o.tail!==null&&je()>pd&&(e.flags|=64,i=!0,Ni(o,!1),e.lanes=33554432)}else{if(!i)if(t=Sa(s),t!==null){if(e.flags|=64,i=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Ni(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Et)return e=e.lastEffect=o.lastEffect,e!==null&&(e.nextEffect=null),null}else 2*je()-o.renderingStartTime>pd&&n!==1073741824&&(e.flags|=64,i=!0,Ni(o,!1),e.lanes=33554432);o.isBackwards?(s.sibling=e.child,e.child=s):(n=o.last,n!==null?n.sibling=s:e.child=s,o.last=s)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.lastEffect=e.lastEffect,o.renderingStartTime=je(),n.sibling=null,e=ie.current,re(ie,i?e&1|2:e&1),n):null;case 23:case 24:return bd(),t!==null&&t.memoizedState!==null!=(e.memoizedState!==null)&&o.mode!=="unstable-defer-without-hiding"&&(e.flags|=4),null}throw Error(R(156,e.tag))}function E$(t){switch(t.tag){case 1:Je(t.type)&&aa();var e=t.flags;return e&4096?(t.flags=e&-4097|64,t):null;case 3:if(er(),te(_e),te(Te),Yu(),e=t.flags,e&64)throw Error(R(285));return t.flags=e&-4097|64,t;case 5:return Uu(t),null;case 13:return te(ie),e=t.flags,e&4096?(t.flags=e&-4097|64,t):null;case 19:return te(ie),null;case 4:return er(),null;case 10:return Fu(t),null;case 23:case 24:return bd(),null;default:return null}}function rd(t,e){try{var n="",o=e;do n+=sk(o),o=o.return;while(o);var r=n}catch(i){r=`
|
|
126
|
+
`+r[s].replace(" at new "," at ");while(1<=s&&0<=a);break}}}finally{Vc=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Kr(t):""}function ak(t){switch(t.tag){case 5:return Kr(t.type);case 16:return Kr("Lazy");case 13:return Kr("Suspense");case 19:return Kr("SuspenseList");case 0:case 2:case 15:return t=Fs(t.type,!1),t;case 11:return t=Fs(t.type.render,!1),t;case 22:return t=Fs(t.type._render,!1),t;case 1:return t=Fs(t.type,!0),t;default:return""}}function Po(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 un:return"Fragment";case Qn:return"Portal";case _r:return"Profiler";case Tc:return"StrictMode";case Jr:return"Suspense";case Ls:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Pc:return(t.displayName||"Context")+".Consumer";case jc:return(t._context.displayName||"Context")+".Provider";case Is:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case zs:return Po(t.type);case Lc:return Po(t._render);case Ic:e=t._payload,t=t._init;try{return Po(t(e))}catch{}}return null}function dn(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function jh(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function lk(t){var e=jh(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),o=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(s){o=""+s,i.call(this,s)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(s){o=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Hs(t){t._valueTracker||(t._valueTracker=lk(t))}function Ph(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),o="";return t&&(o=jh(t)?t.checked?"true":"false":t.value),t=o,t!==n?(e.setValue(t),!0):!1}function Bs(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 Uc(t,e){var n=e.checked;return ne({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Ih(t,e){var n=e.defaultValue==null?"":e.defaultValue,o=e.checked!=null?e.checked:e.defaultChecked;n=dn(e.value!=null?e.value:n),t._wrapperState={initialChecked:o,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Lh(t,e){e=e.checked,e!=null&&Mc(t,"checked",e,!1)}function _c(t,e){Lh(t,e);var n=dn(e.value),o=e.type;if(n!=null)o==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(o==="submit"||o==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Jc(t,e.type,n):e.hasOwnProperty("defaultValue")&&Jc(t,e.type,dn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function zh(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var o=e.type;if(!(o!=="submit"&&o!=="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 Jc(t,e,n){(e!=="number"||Bs(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function ck(t){var e="";return Ps.Children.forEach(t,function(n){n!=null&&(e+=n)}),e}function Yc(t,e){return t=ne({children:void 0},e),(e=ck(e.children))&&(t.children=e),t}function Io(t,e,n,o){if(t=t.options,e){e={};for(var r=0;r<n.length;r++)e["$"+n[r]]=!0;for(n=0;n<t.length;n++)r=e.hasOwnProperty("$"+t[n].value),t[n].selected!==r&&(t[n].selected=r),r&&o&&(t[n].defaultSelected=!0)}else{for(n=""+dn(n),e=null,r=0;r<t.length;r++){if(t[r].value===n){t[r].selected=!0,o&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function Kc(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(A(91));return ne({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Fh(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(A(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(A(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:dn(n)}}function Hh(t,e){var n=dn(e.value),o=dn(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),o!=null&&(t.defaultValue=""+o)}function Bh(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}var Wc={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Vh(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 qc(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?Vh(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Vs,Uh=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,o,r){MSApp.execUnsafeLocalFunction(function(){return t(e,n,o,r)})}:t}(function(t,e){if(t.namespaceURI!==Wc.svg||"innerHTML"in t)t.innerHTML=e;else{for(Vs=Vs||document.createElement("div"),Vs.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Vs.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Wr(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var qr={animationIterationCount:!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},uk=["Webkit","ms","Moz","O"];Object.keys(qr).forEach(function(t){uk.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),qr[e]=qr[t]})});function _h(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||qr.hasOwnProperty(t)&&qr[t]?(""+e).trim():e+"px"}function Jh(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var o=n.indexOf("--")===0,r=_h(n,e[n],o);n==="float"&&(n="cssFloat"),o?t.setProperty(n,r):t[n]=r}}var dk=ne({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 Gc(t,e){if(e){if(dk[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(A(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(A(60));if(!(typeof e.dangerouslySetInnerHTML=="object"&&"__html"in e.dangerouslySetInnerHTML))throw Error(A(61))}if(e.style!=null&&typeof e.style!="object")throw Error(A(62))}}function Qc(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";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}}function Zc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Xc=null,Lo=null,zo=null;function Yh(t){if(t=pi(t)){if(typeof Xc!="function")throw Error(A(280));var e=t.stateNode;e&&(e=sa(e),Xc(t.stateNode,t.type,e))}}function Kh(t){Lo?zo?zo.push(t):zo=[t]:Lo=t}function Wh(){if(Lo){var t=Lo,e=zo;if(zo=Lo=null,Yh(t),e)for(t=0;t<e.length;t++)Yh(e[t])}}function eu(t,e){return t(e)}function qh(t,e,n,o,r){return t(e,n,o,r)}function tu(){}var Gh=eu,Zn=!1,nu=!1;function ou(){(Lo!==null||zo!==null)&&(tu(),Wh())}function mk(t,e,n){if(nu)return t(e,n);nu=!0;try{return Gh(t,e,n)}finally{nu=!1,ou()}}function Gr(t,e){var n=t.stateNode;if(n===null)return null;var o=sa(n);if(o===null)return null;n=o[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":(o=!o.disabled)||(t=t.type,o=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!o;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(A(231,e,typeof n));return n}var ru=!1;if(zt)try{var Qr={};Object.defineProperty(Qr,"passive",{get:function(){ru=!0}}),window.addEventListener("test",Qr,Qr),window.removeEventListener("test",Qr,Qr)}catch{ru=!1}function fk(t,e,n,o,r,i,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{e.apply(n,c)}catch(u){this.onError(u)}}var Zr=!1,Us=null,_s=!1,iu=null,pk={onError:function(t){Zr=!0,Us=t}};function hk(t,e,n,o,r,i,s,a,l){Zr=!1,Us=null,fk.apply(pk,arguments)}function gk(t,e,n,o,r,i,s,a,l){if(hk.apply(this,arguments),Zr){if(Zr){var c=Us;Zr=!1,Us=null}else throw Error(A(198));_s||(_s=!0,iu=c)}}function Xn(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&1026&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function Qh(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 Zh(t){if(Xn(t)!==t)throw Error(A(188))}function yk(t){var e=t.alternate;if(!e){if(e=Xn(t),e===null)throw Error(A(188));return e!==t?null:t}for(var n=t,o=e;;){var r=n.return;if(r===null)break;var i=r.alternate;if(i===null){if(o=r.return,o!==null){n=o;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===n)return Zh(r),t;if(i===o)return Zh(r),e;i=i.sibling}throw Error(A(188))}if(n.return!==o.return)n=r,o=i;else{for(var s=!1,a=r.child;a;){if(a===n){s=!0,n=r,o=i;break}if(a===o){s=!0,o=r,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,o=r;break}if(a===o){s=!0,o=i,n=r;break}a=a.sibling}if(!s)throw Error(A(189))}}if(n.alternate!==o)throw Error(A(190))}if(n.tag!==3)throw Error(A(188));return n.stateNode.current===n?t:e}function Xh(t){if(t=yk(t),!t)return null;for(var e=t;;){if(e.tag===5||e.tag===6)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function eg(t,e){for(var n=t.alternate;e!==null;){if(e===t||e===n)return!0;e=e.return}return!1}var tg,su,ng,og,au=!1,kt=[],mn=null,fn=null,pn=null,Xr=new Map,ei=new Map,ti=[],rg="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 lu(t,e,n,o,r){return{blockedOn:t,domEventName:e,eventSystemFlags:n|16,nativeEvent:r,targetContainers:[o]}}function ig(t,e){switch(t){case"focusin":case"focusout":mn=null;break;case"dragenter":case"dragleave":fn=null;break;case"mouseover":case"mouseout":pn=null;break;case"pointerover":case"pointerout":Xr.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ei.delete(e.pointerId)}}function ni(t,e,n,o,r,i){return t===null||t.nativeEvent!==i?(t=lu(e,n,o,r,i),e!==null&&(e=pi(e),e!==null&&su(e)),t):(t.eventSystemFlags|=o,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function wk(t,e,n,o,r){switch(e){case"focusin":return mn=ni(mn,t,e,n,o,r),!0;case"dragenter":return fn=ni(fn,t,e,n,o,r),!0;case"mouseover":return pn=ni(pn,t,e,n,o,r),!0;case"pointerover":var i=r.pointerId;return Xr.set(i,ni(Xr.get(i)||null,t,e,n,o,r)),!0;case"gotpointercapture":return i=r.pointerId,ei.set(i,ni(ei.get(i)||null,t,e,n,o,r)),!0}return!1}function bk(t){var e=eo(t.target);if(e!==null){var n=Xn(e);if(n!==null){if(e=n.tag,e===13){if(e=Qh(n),e!==null){t.blockedOn=e,og(t.lanePriority,function(){we.unstable_runWithPriority(t.priority,function(){ng(n)})});return}}else if(e===3&&n.stateNode.hydrate){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Js(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=pu(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n!==null)return e=pi(n),e!==null&&su(e),t.blockedOn=n,!1;e.shift()}return!0}function sg(t,e,n){Js(t)&&n.delete(e)}function vk(){for(au=!1;0<kt.length;){var t=kt[0];if(t.blockedOn!==null){t=pi(t.blockedOn),t!==null&&tg(t);break}for(var e=t.targetContainers;0<e.length;){var n=pu(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n!==null){t.blockedOn=n;break}e.shift()}t.blockedOn===null&&kt.shift()}mn!==null&&Js(mn)&&(mn=null),fn!==null&&Js(fn)&&(fn=null),pn!==null&&Js(pn)&&(pn=null),Xr.forEach(sg),ei.forEach(sg)}function oi(t,e){t.blockedOn===e&&(t.blockedOn=null,au||(au=!0,we.unstable_scheduleCallback(we.unstable_NormalPriority,vk)))}function ag(t){function e(r){return oi(r,t)}if(0<kt.length){oi(kt[0],t);for(var n=1;n<kt.length;n++){var o=kt[n];o.blockedOn===t&&(o.blockedOn=null)}}for(mn!==null&&oi(mn,t),fn!==null&&oi(fn,t),pn!==null&&oi(pn,t),Xr.forEach(e),ei.forEach(e),n=0;n<ti.length;n++)o=ti[n],o.blockedOn===t&&(o.blockedOn=null);for(;0<ti.length&&(n=ti[0],n.blockedOn===null);)bk(n),n.blockedOn===null&&ti.shift()}function Ys(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Fo={animationend:Ys("Animation","AnimationEnd"),animationiteration:Ys("Animation","AnimationIteration"),animationstart:Ys("Animation","AnimationStart"),transitionend:Ys("Transition","TransitionEnd")},cu={},lg={};zt&&(lg=document.createElement("div").style,"AnimationEvent"in window||(delete Fo.animationend.animation,delete Fo.animationiteration.animation,delete Fo.animationstart.animation),"TransitionEvent"in window||delete Fo.transitionend.transition);function Ks(t){if(cu[t])return cu[t];if(!Fo[t])return t;var e=Fo[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in lg)return cu[t]=e[n];return t}var cg=Ks("animationend"),ug=Ks("animationiteration"),dg=Ks("animationstart"),mg=Ks("transitionend"),fg=new Map,uu=new Map,Sk=["abort","abort",cg,"animationEnd",ug,"animationIteration",dg,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",mg,"transitionEnd","waiting","waiting"];function du(t,e){for(var n=0;n<t.length;n+=2){var o=t[n],r=t[n+1];r="on"+(r[0].toUpperCase()+r.slice(1)),uu.set(o,e),fg.set(o,r),qn(r,[o])}}var xk=we.unstable_now;xk();var Z=8;function Ho(t){if(1&t)return Z=15,1;if(2&t)return Z=14,2;if(4&t)return Z=13,4;var e=24&t;return e!==0?(Z=12,e):t&32?(Z=11,32):(e=192&t,e!==0?(Z=10,e):t&256?(Z=9,256):(e=3584&t,e!==0?(Z=8,e):t&4096?(Z=7,4096):(e=4186112&t,e!==0?(Z=6,e):(e=62914560&t,e!==0?(Z=5,e):t&67108864?(Z=4,67108864):t&134217728?(Z=3,134217728):(e=805306368&t,e!==0?(Z=2,e):1073741824&t?(Z=1,1073741824):(Z=8,t))))))}function kk(t){switch(t){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function $k(t){switch(t){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(A(358,t))}}function ri(t,e){var n=t.pendingLanes;if(n===0)return Z=0;var o=0,r=0,i=t.expiredLanes,s=t.suspendedLanes,a=t.pingedLanes;if(i!==0)o=i,r=Z=15;else if(i=n&134217727,i!==0){var l=i&~s;l!==0?(o=Ho(l),r=Z):(a&=i,a!==0&&(o=Ho(a),r=Z))}else i=n&~s,i!==0?(o=Ho(i),r=Z):a!==0&&(o=Ho(a),r=Z);if(o===0)return 0;if(o=31-hn(o),o=n&((0>o?0:1<<o)<<1)-1,e!==0&&e!==o&&!(e&s)){if(Ho(e),r<=Z)return e;Z=r}if(e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=o;0<e;)n=31-hn(e),r=1<<n,o|=t[n],e&=~r;return o}function pg(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Ws(t,e){switch(t){case 15:return 1;case 14:return 2;case 12:return t=Bo(24&~e),t===0?Ws(10,e):t;case 10:return t=Bo(192&~e),t===0?Ws(8,e):t;case 8:return t=Bo(3584&~e),t===0&&(t=Bo(4186112&~e),t===0&&(t=512)),t;case 2:return e=Bo(805306368&~e),e===0&&(e=268435456),e}throw Error(A(358,t))}function Bo(t){return t&-t}function mu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function qs(t,e,n){t.pendingLanes|=e;var o=e-1;t.suspendedLanes&=o,t.pingedLanes&=o,t=t.eventTimes,e=31-hn(e),t[e]=n}var hn=Math.clz32?Math.clz32:Nk,Ck=Math.log,Ek=Math.LN2;function Nk(t){return t===0?32:31-(Ck(t)/Ek|0)|0}var Dk=we.unstable_UserBlockingPriority,Ak=we.unstable_runWithPriority,Gs=!0;function Rk(t,e,n,o){Zn||tu();var r=fu,i=Zn;Zn=!0;try{qh(r,t,e,n,o)}finally{(Zn=i)||ou()}}function Ok(t,e,n,o){Ak(Dk,fu.bind(null,t,e,n,o))}function fu(t,e,n,o){if(Gs){var r;if((r=(e&4)===0)&&0<kt.length&&-1<rg.indexOf(t))t=lu(null,t,e,n,o),kt.push(t);else{var i=pu(t,e,n,o);if(i===null)r&&ig(t,o);else{if(r){if(-1<rg.indexOf(t)){t=lu(i,t,e,n,o),kt.push(t);return}if(wk(i,t,e,n,o))return;ig(t,o)}_g(t,e,o,null,n)}}}}function pu(t,e,n,o){var r=Zc(o);if(r=eo(r),r!==null){var i=Xn(r);if(i===null)r=null;else{var s=i.tag;if(s===13){if(r=Qh(i),r!==null)return r;r=null}else if(s===3){if(i.stateNode.hydrate)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null)}}return _g(t,e,o,r,n),null}var gn=null,hu=null,Qs=null;function hg(){if(Qs)return Qs;var t,e=hu,n=e.length,o,r="value"in gn?gn.value:gn.textContent,i=r.length;for(t=0;t<n&&e[t]===r[t];t++);var s=n-t;for(o=1;o<=s&&e[n-o]===r[i-o];o++);return Qs=r.slice(t,1<o?1-o:void 0)}function Zs(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 Xs(){return!0}function gg(){return!1}function Ge(t){function e(n,o,r,i,s){this._reactName=n,this._targetInst=r,this.type=o,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in t)t.hasOwnProperty(a)&&(n=t[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Xs:gg,this.isPropagationStopped=gg,this}return ne(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=Xs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Xs)},persist:function(){},isPersistent:Xs}),e}var Vo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gu=Ge(Vo),ii=ne({},Vo,{view:0,detail:0}),Mk=Ge(ii),yu,wu,si,ea=ne({},ii,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vu,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!==si&&(si&&t.type==="mousemove"?(yu=t.screenX-si.screenX,wu=t.screenY-si.screenY):wu=yu=0,si=t),yu)},movementY:function(t){return"movementY"in t?t.movementY:wu}}),yg=Ge(ea),Tk=ne({},ea,{dataTransfer:0}),jk=Ge(Tk),Pk=ne({},ii,{relatedTarget:0}),bu=Ge(Pk),Ik=ne({},Vo,{animationName:0,elapsedTime:0,pseudoElement:0}),Lk=Ge(Ik),zk=ne({},Vo,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Fk=Ge(zk),Hk=ne({},Vo,{data:0}),wg=Ge(Hk),Bk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Vk={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"},Uk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _k(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Uk[t])?!!e[t]:!1}function vu(){return _k}var Jk=ne({},ii,{key:function(t){if(t.key){var e=Bk[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Zs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Vk[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vu,charCode:function(t){return t.type==="keypress"?Zs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Zs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Yk=Ge(Jk),Kk=ne({},ea,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bg=Ge(Kk),Wk=ne({},ii,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vu}),qk=Ge(Wk),Gk=ne({},Vo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qk=Ge(Gk),Zk=ne({},ea,{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}),Xk=Ge(Zk),e$=[9,13,27,32],Su=zt&&"CompositionEvent"in window,ai=null;zt&&"documentMode"in document&&(ai=document.documentMode);var t$=zt&&"TextEvent"in window&&!ai,vg=zt&&(!Su||ai&&8<ai&&11>=ai),Sg=String.fromCharCode(32),xg=!1;function kg(t,e){switch(t){case"keyup":return e$.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $g(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Uo=!1;function n$(t,e){switch(t){case"compositionend":return $g(e);case"keypress":return e.which!==32?null:(xg=!0,Sg);case"textInput":return t=e.data,t===Sg&&xg?null:t;default:return null}}function o$(t,e){if(Uo)return t==="compositionend"||!Su&&kg(t,e)?(t=hg(),Qs=hu=gn=null,Uo=!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 vg&&e.locale!=="ko"?null:e.data;default:return null}}var r$={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 Cg(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!r$[t.type]:e==="textarea"}function Eg(t,e,n,o){Kh(o),e=na(e,"onChange"),0<e.length&&(n=new gu("onChange","change",null,n,o),t.push({event:n,listeners:e}))}var li=null,ci=null;function i$(t){Fg(t,0)}function ta(t){var e=Wo(t);if(Ph(e))return t}function s$(t,e){if(t==="change")return e}var Ng=!1;if(zt){var xu;if(zt){var ku="oninput"in document;if(!ku){var Dg=document.createElement("div");Dg.setAttribute("oninput","return;"),ku=typeof Dg.oninput=="function"}xu=ku}else xu=!1;Ng=xu&&(!document.documentMode||9<document.documentMode)}function Ag(){li&&(li.detachEvent("onpropertychange",Rg),ci=li=null)}function Rg(t){if(t.propertyName==="value"&&ta(ci)){var e=[];if(Eg(e,ci,t,Zc(t)),t=i$,Zn)t(e);else{Zn=!0;try{eu(t,e)}finally{Zn=!1,ou()}}}}function a$(t,e,n){t==="focusin"?(Ag(),li=e,ci=n,li.attachEvent("onpropertychange",Rg)):t==="focusout"&&Ag()}function l$(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ta(ci)}function c$(t,e){if(t==="click")return ta(e)}function u$(t,e){if(t==="input"||t==="change")return ta(e)}function d$(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var st=typeof Object.is=="function"?Object.is:d$,m$=Object.prototype.hasOwnProperty;function ui(t,e){if(st(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++)if(!m$.call(e,n[o])||!st(t[n[o]],e[n[o]]))return!1;return!0}function Og(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Mg(t,e){var n=Og(t);t=0;for(var o;n;){if(n.nodeType===3){if(o=t+n.textContent.length,t<=e&&o>=e)return{node:n,offset:e-t};t=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Og(n)}}function Tg(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Tg(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function jg(){for(var t=window,e=Bs();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Bs(t.document)}return e}function $u(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")}var f$=zt&&"documentMode"in document&&11>=document.documentMode,_o=null,Cu=null,di=null,Eu=!1;function Pg(t,e,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Eu||_o==null||_o!==Bs(o)||(o=_o,"selectionStart"in o&&$u(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),di&&ui(di,o)||(di=o,o=na(Cu,"onSelect"),0<o.length&&(e=new gu("onSelect","select",null,e,n),t.push({event:e,listeners:o}),e.target=_o)))}du("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),du("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),du(Sk,2);for(var Ig="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Nu=0;Nu<Ig.length;Nu++)uu.set(Ig[Nu],0);jo("onMouseEnter",["mouseout","mouseover"]),jo("onMouseLeave",["mouseout","mouseover"]),jo("onPointerEnter",["pointerout","pointerover"]),jo("onPointerLeave",["pointerout","pointerover"]),qn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),qn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),qn("onBeforeInput",["compositionend","keypress","textInput","paste"]),qn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),qn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),qn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lg=new Set("cancel close invalid load scroll toggle".split(" ").concat(mi));function zg(t,e,n){var o=t.type||"unknown-event";t.currentTarget=n,gk(o,e,void 0,t),t.currentTarget=null}function Fg(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var o=t[n],r=o.event;o=o.listeners;e:{var i=void 0;if(e)for(var s=o.length-1;0<=s;s--){var a=o[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==i&&r.isPropagationStopped())break e;zg(r,a,c),i=l}else for(s=0;s<o.length;s++){if(a=o[s],l=a.instance,c=a.currentTarget,a=a.listener,l!==i&&r.isPropagationStopped())break e;zg(r,a,c),i=l}}}if(_s)throw t=iu,_s=!1,iu=null,t}function ee(t,e){var n=Gg(e),o=t+"__bubble";n.has(o)||(Ug(e,t,2,!1),n.add(o))}var Hg="_reactListening"+Math.random().toString(36).slice(2);function Bg(t){t[Hg]||(t[Hg]=!0,Dh.forEach(function(e){Lg.has(e)||Vg(e,!1,t,null),Vg(e,!0,t,null)}))}function Vg(t,e,n,o){var r=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,i=n;if(t==="selectionchange"&&n.nodeType!==9&&(i=n.ownerDocument),o!==null&&!e&&Lg.has(t)){if(t!=="scroll")return;r|=2,i=o}var s=Gg(i),a=t+"__"+(e?"capture":"bubble");s.has(a)||(e&&(r|=4),Ug(i,t,r,e),s.add(a))}function Ug(t,e,n,o){var r=uu.get(e);switch(r===void 0?2:r){case 0:r=Rk;break;case 1:r=Ok;break;default:r=fu}n=r.bind(null,e,n,t),r=void 0,!ru||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),o?r!==void 0?t.addEventListener(e,n,{capture:!0,passive:r}):t.addEventListener(e,n,!0):r!==void 0?t.addEventListener(e,n,{passive:r}):t.addEventListener(e,n,!1)}function _g(t,e,n,o,r){var i=o;if(!(e&1)&&!(e&2)&&o!==null)e:for(;;){if(o===null)return;var s=o.tag;if(s===3||s===4){var a=o.stateNode.containerInfo;if(a===r||a.nodeType===8&&a.parentNode===r)break;if(s===4)for(s=o.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===r||l.nodeType===8&&l.parentNode===r))return;s=s.return}for(;a!==null;){if(s=eo(a),s===null)return;if(l=s.tag,l===5||l===6){o=i=s;continue e}a=a.parentNode}}o=o.return}mk(function(){var c=i,u=Zc(n),m=[];e:{var d=fg.get(t);if(d!==void 0){var p=gu,f=t;switch(t){case"keypress":if(Zs(n)===0)break e;case"keydown":case"keyup":p=Yk;break;case"focusin":f="focus",p=bu;break;case"focusout":f="blur",p=bu;break;case"beforeblur":case"afterblur":p=bu;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":p=yg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=jk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=qk;break;case cg:case ug:case dg:p=Lk;break;case mg:p=Qk;break;case"scroll":p=Mk;break;case"wheel":p=Xk;break;case"copy":case"cut":case"paste":p=Fk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=bg}var y=(e&4)!==0,h=!y&&t==="scroll",g=y?d!==null?d+"Capture":null:d;y=[];for(var b=c,v;b!==null;){v=b;var S=v.stateNode;if(v.tag===5&&S!==null&&(v=S,g!==null&&(S=Gr(b,g),S!=null&&y.push(fi(b,S,v)))),h)break;b=b.return}0<y.length&&(d=new p(d,f,null,n,u),m.push({event:d,listeners:y}))}}if(!(e&7)){e:{if(d=t==="mouseover"||t==="pointerover",p=t==="mouseout"||t==="pointerout",d&&!(e&16)&&(f=n.relatedTarget||n.fromElement)&&(eo(f)||f[Ko]))break e;if((p||d)&&(d=u.window===u?u:(d=u.ownerDocument)?d.defaultView||d.parentWindow:window,p?(f=n.relatedTarget||n.toElement,p=c,f=f?eo(f):null,f!==null&&(h=Xn(f),f!==h||f.tag!==5&&f.tag!==6)&&(f=null)):(p=null,f=c),p!==f)){if(y=yg,S="onMouseLeave",g="onMouseEnter",b="mouse",(t==="pointerout"||t==="pointerover")&&(y=bg,S="onPointerLeave",g="onPointerEnter",b="pointer"),h=p==null?d:Wo(p),v=f==null?d:Wo(f),d=new y(S,b+"leave",p,n,u),d.target=h,d.relatedTarget=v,S=null,eo(u)===c&&(y=new y(g,b+"enter",f,n,u),y.target=v,y.relatedTarget=h,S=y),h=S,p&&f)t:{for(y=p,g=f,b=0,v=y;v;v=Jo(v))b++;for(v=0,S=g;S;S=Jo(S))v++;for(;0<b-v;)y=Jo(y),b--;for(;0<v-b;)g=Jo(g),v--;for(;b--;){if(y===g||g!==null&&y===g.alternate)break t;y=Jo(y),g=Jo(g)}y=null}else y=null;p!==null&&Jg(m,d,p,y,!1),f!==null&&h!==null&&Jg(m,h,f,y,!0)}}e:{if(d=c?Wo(c):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var C=s$;else if(Cg(d))if(Ng)C=u$;else{C=l$;var x=a$}else(p=d.nodeName)&&p.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(C=c$);if(C&&(C=C(t,c))){Eg(m,C,n,u);break e}x&&x(t,d,c),t==="focusout"&&(x=d._wrapperState)&&x.controlled&&d.type==="number"&&Jc(d,"number",d.value)}switch(x=c?Wo(c):window,t){case"focusin":(Cg(x)||x.contentEditable==="true")&&(_o=x,Cu=c,di=null);break;case"focusout":di=Cu=_o=null;break;case"mousedown":Eu=!0;break;case"contextmenu":case"mouseup":case"dragend":Eu=!1,Pg(m,n,u);break;case"selectionchange":if(f$)break;case"keydown":case"keyup":Pg(m,n,u)}var $;if(Su)e:{switch(t){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else Uo?kg(t,n)&&(R="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(vg&&n.locale!=="ko"&&(Uo||R!=="onCompositionStart"?R==="onCompositionEnd"&&Uo&&($=hg()):(gn=u,hu="value"in gn?gn.value:gn.textContent,Uo=!0)),x=na(c,R),0<x.length&&(R=new wg(R,t,null,n,u),m.push({event:R,listeners:x}),$?R.data=$:($=$g(n),$!==null&&(R.data=$)))),($=t$?n$(t,n):o$(t,n))&&(c=na(c,"onBeforeInput"),0<c.length&&(u=new wg("onBeforeInput","beforeinput",null,n,u),m.push({event:u,listeners:c}),u.data=$))}Fg(m,e)})}function fi(t,e,n){return{instance:t,listener:e,currentTarget:n}}function na(t,e){for(var n=e+"Capture",o=[];t!==null;){var r=t,i=r.stateNode;r.tag===5&&i!==null&&(r=i,i=Gr(t,n),i!=null&&o.unshift(fi(t,i,r)),i=Gr(t,e),i!=null&&o.push(fi(t,i,r))),t=t.return}return o}function Jo(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Jg(t,e,n,o,r){for(var i=e._reactName,s=[];n!==null&&n!==o;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===o)break;a.tag===5&&c!==null&&(a=c,r?(l=Gr(n,i),l!=null&&s.unshift(fi(n,l,a))):r||(l=Gr(n,i),l!=null&&s.push(fi(n,l,a)))),n=n.return}s.length!==0&&t.push({event:e,listeners:s})}function oa(){}var Du=null,Au=null;function Yg(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function Ru(t,e){return t==="textarea"||t==="option"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Kg=typeof setTimeout=="function"?setTimeout:void 0,p$=typeof clearTimeout=="function"?clearTimeout:void 0;function Ou(t){t.nodeType===1?t.textContent="":t.nodeType===9&&(t=t.body,t!=null&&(t.textContent=""))}function Yo(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break}return t}function Wg(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 Mu=0;function h$(t){return{$$typeof:zc,toString:t,valueOf:t}}var ra=Math.random().toString(36).slice(2),yn="__reactFiber$"+ra,ia="__reactProps$"+ra,Ko="__reactContainer$"+ra,qg="__reactEvents$"+ra;function eo(t){var e=t[yn];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Ko]||n[yn]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Wg(t);t!==null;){if(n=t[yn])return n;t=Wg(t)}return e}t=n,n=t.parentNode}return null}function pi(t){return t=t[yn]||t[Ko],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Wo(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(A(33))}function sa(t){return t[ia]||null}function Gg(t){var e=t[qg];return e===void 0&&(e=t[qg]=new Set),e}var Tu=[],qo=-1;function wn(t){return{current:t}}function te(t){0>qo||(t.current=Tu[qo],Tu[qo]=null,qo--)}function re(t,e){qo++,Tu[qo]=t.current,t.current=e}var bn={},Te=wn(bn),_e=wn(!1),to=bn;function Go(t,e){var n=t.type.contextTypes;if(!n)return bn;var o=t.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===e)return o.__reactInternalMemoizedMaskedChildContext;var r={},i;for(i in n)r[i]=e[i];return o&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=r),r}function Je(t){return t=t.childContextTypes,t!=null}function aa(){te(_e),te(Te)}function Qg(t,e,n){if(Te.current!==bn)throw Error(A(168));re(Te,e),re(_e,n)}function Zg(t,e,n){var o=t.stateNode;if(t=e.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var r in o)if(!(r in t))throw Error(A(108,Po(e)||"Unknown",r));return ne({},n,o)}function la(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||bn,to=Te.current,re(Te,t),re(_e,_e.current),!0}function Xg(t,e,n){var o=t.stateNode;if(!o)throw Error(A(169));n?(t=Zg(t,e,to),o.__reactInternalMemoizedMergedChildContext=t,te(_e),te(Te),re(Te,t)):te(_e),re(_e,n)}var ju=null,no=null,g$=we.unstable_runWithPriority,Pu=we.unstable_scheduleCallback,Iu=we.unstable_cancelCallback,y$=we.unstable_shouldYield,ey=we.unstable_requestPaint,Lu=we.unstable_now,w$=we.unstable_getCurrentPriorityLevel,ca=we.unstable_ImmediatePriority,ty=we.unstable_UserBlockingPriority,ny=we.unstable_NormalPriority,oy=we.unstable_LowPriority,ry=we.unstable_IdlePriority,zu={},b$=ey!==void 0?ey:function(){},Ft=null,ua=null,Fu=!1,iy=Lu(),je=1e4>iy?Lu:function(){return Lu()-iy};function Qo(){switch(w$()){case ca:return 99;case ty:return 98;case ny:return 97;case oy:return 96;case ry:return 95;default:throw Error(A(332))}}function sy(t){switch(t){case 99:return ca;case 98:return ty;case 97:return ny;case 96:return oy;case 95:return ry;default:throw Error(A(332))}}function oo(t,e){return t=sy(t),g$(t,e)}function hi(t,e,n){return t=sy(t),Pu(t,e,n)}function $t(){if(ua!==null){var t=ua;ua=null,Iu(t)}ay()}function ay(){if(!Fu&&Ft!==null){Fu=!0;var t=0;try{var e=Ft;oo(99,function(){for(;t<e.length;t++){var n=e[t];do n=n(!0);while(n!==null)}}),Ft=null}catch(n){throw Ft!==null&&(Ft=Ft.slice(t+1)),Pu(ca,$t),n}finally{Fu=!1}}}var v$=Gn.ReactCurrentBatchConfig;function yt(t,e){if(t&&t.defaultProps){e=ne({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}var da=wn(null),ma=null,Zo=null,fa=null;function Hu(){fa=Zo=ma=null}function Bu(t){var e=da.current;te(da),t.type._context._currentValue=e}function ly(t,e){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)===e){if(n===null||(n.childLanes&e)===e)break;n.childLanes|=e}else t.childLanes|=e,n!==null&&(n.childLanes|=e);t=t.return}}function Xo(t,e){ma=t,fa=Zo=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(wt=!0),t.firstContext=null)}function at(t,e){if(fa!==t&&e!==!1&&e!==0)if((typeof e!="number"||e===1073741823)&&(fa=t,e=1073741823),e={context:t,observedBits:e,next:null},Zo===null){if(ma===null)throw Error(A(308));Zo=e,ma.dependencies={lanes:0,firstContext:e,responders:null}}else Zo=Zo.next=e;return t._currentValue}var vn=!1;function Vu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function cy(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 Sn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function xn(t,e){if(t=t.updateQueue,t!==null){t=t.shared;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}}function uy(t,e){var n=t.updateQueue,o=t.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var r=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?r=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?r=i=e:i=i.next=e}else r=i=e;n={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:o.shared,effects:o.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function gi(t,e,n,o){var r=t.updateQueue;vn=!1;var i=r.firstBaseUpdate,s=r.lastBaseUpdate,a=r.shared.pending;if(a!==null){r.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?i=c:s.next=c,s=l;var u=t.alternate;if(u!==null){u=u.updateQueue;var m=u.lastBaseUpdate;m!==s&&(m===null?u.firstBaseUpdate=c:m.next=c,u.lastBaseUpdate=l)}}if(i!==null){m=r.baseState,s=0,u=c=l=null;do{a=i.lane;var d=i.eventTime;if((o&a)===a){u!==null&&(u=u.next={eventTime:d,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var p=t,f=i;switch(a=e,d=n,f.tag){case 1:if(p=f.payload,typeof p=="function"){m=p.call(d,m,a);break e}m=p;break e;case 3:p.flags=p.flags&-4097|64;case 0:if(p=f.payload,a=typeof p=="function"?p.call(d,m,a):p,a==null)break e;m=ne({},m,a);break e;case 2:vn=!0}}i.callback!==null&&(t.flags|=32,a=r.effects,a===null?r.effects=[i]:a.push(i))}else d={eventTime:d,lane:a,tag:i.tag,payload:i.payload,callback:i.callback,next:null},u===null?(c=u=d,l=m):u=u.next=d,s|=a;if(i=i.next,i===null){if(a=r.shared.pending,a===null)break;i=a.next,a.next=null,r.lastBaseUpdate=a,r.shared.pending=null}}while(1);u===null&&(l=m),r.baseState=l,r.firstBaseUpdate=c,r.lastBaseUpdate=u,Di|=s,t.lanes=s,t.memoizedState=m}}function dy(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var o=t[e],r=o.callback;if(r!==null){if(o.callback=null,o=n,typeof r!="function")throw Error(A(191,r));r.call(o)}}}var my=new Ps.Component().refs;function pa(t,e,n,o){e=t.memoizedState,n=n(o,e),n=n==null?e:ne({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var ha={isMounted:function(t){return(t=t._reactInternals)?Xn(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var o=Qe(),r=Cn(t),i=Sn(o,r);i.payload=e,n!=null&&(i.callback=n),xn(t,i),En(t,r,o)},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var o=Qe(),r=Cn(t),i=Sn(o,r);i.tag=1,i.payload=e,n!=null&&(i.callback=n),xn(t,i),En(t,r,o)},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Qe(),o=Cn(t),r=Sn(n,o);r.tag=2,e!=null&&(r.callback=e),xn(t,r),En(t,o,n)}};function fy(t,e,n,o,r,i,s){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(o,i,s):e.prototype&&e.prototype.isPureReactComponent?!ui(n,o)||!ui(r,i):!0}function py(t,e,n){var o=!1,r=bn,i=e.contextType;return typeof i=="object"&&i!==null?i=at(i):(r=Je(e)?to:Te.current,o=e.contextTypes,i=(o=o!=null)?Go(t,r):bn),e=new e(n,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=ha,t.stateNode=e,e._reactInternals=t,o&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=i),e}function hy(t,e,n,o){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,o),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,o),e.state!==t&&ha.enqueueReplaceState(e,e.state,null)}function Uu(t,e,n,o){var r=t.stateNode;r.props=n,r.state=t.memoizedState,r.refs=my,Vu(t);var i=e.contextType;typeof i=="object"&&i!==null?r.context=at(i):(i=Je(e)?to:Te.current,r.context=Go(t,i)),gi(t,n,r,o),r.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(pa(t,e,i,n),r.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(e=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),e!==r.state&&ha.enqueueReplaceState(r,r.state,null),gi(t,n,r,o),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4)}var ga=Array.isArray;function yi(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(A(309));var o=n.stateNode}if(!o)throw Error(A(147,t));var r=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===r?e.ref:(e=function(i){var s=o.refs;s===my&&(s=o.refs={}),i===null?delete s[r]:s[r]=i},e._stringRef=r,e)}if(typeof t!="string")throw Error(A(284));if(!n._owner)throw Error(A(290,t))}return t}function ya(t,e){if(t.type!=="textarea")throw Error(A(31,Object.prototype.toString.call(e)==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":e))}function gy(t){function e(h,g){if(t){var b=h.lastEffect;b!==null?(b.nextEffect=g,h.lastEffect=g):h.firstEffect=h.lastEffect=g,g.nextEffect=null,g.flags=8}}function n(h,g){if(!t)return null;for(;g!==null;)e(h,g),g=g.sibling;return null}function o(h,g){for(h=new Map;g!==null;)g.key!==null?h.set(g.key,g):h.set(g.index,g),g=g.sibling;return h}function r(h,g){return h=An(h,g),h.index=0,h.sibling=null,h}function i(h,g,b){return h.index=b,t?(b=h.alternate,b!==null?(b=b.index,b<g?(h.flags=2,g):b):(h.flags=2,g)):g}function s(h){return t&&h.alternate===null&&(h.flags=2),h}function a(h,g,b,v){return g===null||g.tag!==6?(g=Cd(b,h.mode,v),g.return=h,g):(g=r(g,b),g.return=h,g)}function l(h,g,b,v){return g!==null&&g.elementType===b.type?(v=r(g,b.props),v.ref=yi(h,g,b),v.return=h,v):(v=Pa(b.type,b.key,b.props,null,h.mode,v),v.ref=yi(h,g,b),v.return=h,v)}function c(h,g,b,v){return g===null||g.tag!==4||g.stateNode.containerInfo!==b.containerInfo||g.stateNode.implementation!==b.implementation?(g=Ed(b,h.mode,v),g.return=h,g):(g=r(g,b.children||[]),g.return=h,g)}function u(h,g,b,v,S){return g===null||g.tag!==7?(g=ar(b,h.mode,v,S),g.return=h,g):(g=r(g,b),g.return=h,g)}function m(h,g,b){if(typeof g=="string"||typeof g=="number")return g=Cd(""+g,h.mode,b),g.return=h,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Ur:return b=Pa(g.type,g.key,g.props,null,h.mode,b),b.ref=yi(h,null,g),b.return=h,b;case Qn:return g=Ed(g,h.mode,b),g.return=h,g}if(ga(g)||Yr(g))return g=ar(g,h.mode,b,null),g.return=h,g;ya(h,g)}return null}function d(h,g,b,v){var S=g!==null?g.key:null;if(typeof b=="string"||typeof b=="number")return S!==null?null:a(h,g,""+b,v);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Ur:return b.key===S?b.type===un?u(h,g,b.props.children,v,S):l(h,g,b,v):null;case Qn:return b.key===S?c(h,g,b,v):null}if(ga(b)||Yr(b))return S!==null?null:u(h,g,b,v,null);ya(h,b)}return null}function p(h,g,b,v,S){if(typeof v=="string"||typeof v=="number")return h=h.get(b)||null,a(g,h,""+v,S);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Ur:return h=h.get(v.key===null?b:v.key)||null,v.type===un?u(g,h,v.props.children,S,v.key):l(g,h,v,S);case Qn:return h=h.get(v.key===null?b:v.key)||null,c(g,h,v,S)}if(ga(v)||Yr(v))return h=h.get(b)||null,u(g,h,v,S,null);ya(g,v)}return null}function f(h,g,b,v){for(var S=null,C=null,x=g,$=g=0,R=null;x!==null&&$<b.length;$++){x.index>$?(R=x,x=null):R=x.sibling;var E=d(h,x,b[$],v);if(E===null){x===null&&(x=R);break}t&&x&&E.alternate===null&&e(h,x),g=i(E,g,$),C===null?S=E:C.sibling=E,C=E,x=R}if($===b.length)return n(h,x),S;if(x===null){for(;$<b.length;$++)x=m(h,b[$],v),x!==null&&(g=i(x,g,$),C===null?S=x:C.sibling=x,C=x);return S}for(x=o(h,x);$<b.length;$++)R=p(x,h,$,b[$],v),R!==null&&(t&&R.alternate!==null&&x.delete(R.key===null?$:R.key),g=i(R,g,$),C===null?S=R:C.sibling=R,C=R);return t&&x.forEach(function(U){return e(h,U)}),S}function y(h,g,b,v){var S=Yr(b);if(typeof S!="function")throw Error(A(150));if(b=S.call(b),b==null)throw Error(A(151));for(var C=S=null,x=g,$=g=0,R=null,E=b.next();x!==null&&!E.done;$++,E=b.next()){x.index>$?(R=x,x=null):R=x.sibling;var U=d(h,x,E.value,v);if(U===null){x===null&&(x=R);break}t&&x&&U.alternate===null&&e(h,x),g=i(U,g,$),C===null?S=U:C.sibling=U,C=U,x=R}if(E.done)return n(h,x),S;if(x===null){for(;!E.done;$++,E=b.next())E=m(h,E.value,v),E!==null&&(g=i(E,g,$),C===null?S=E:C.sibling=E,C=E);return S}for(x=o(h,x);!E.done;$++,E=b.next())E=p(x,h,$,E.value,v),E!==null&&(t&&E.alternate!==null&&x.delete(E.key===null?$:E.key),g=i(E,g,$),C===null?S=E:C.sibling=E,C=E);return t&&x.forEach(function(se){return e(h,se)}),S}return function(h,g,b,v){var S=typeof b=="object"&&b!==null&&b.type===un&&b.key===null;S&&(b=b.props.children);var C=typeof b=="object"&&b!==null;if(C)switch(b.$$typeof){case Ur:e:{for(C=b.key,S=g;S!==null;){if(S.key===C){switch(S.tag){case 7:if(b.type===un){n(h,S.sibling),g=r(S,b.props.children),g.return=h,h=g;break e}break;default:if(S.elementType===b.type){n(h,S.sibling),g=r(S,b.props),g.ref=yi(h,S,b),g.return=h,h=g;break e}}n(h,S);break}else e(h,S);S=S.sibling}b.type===un?(g=ar(b.props.children,h.mode,v,b.key),g.return=h,h=g):(v=Pa(b.type,b.key,b.props,null,h.mode,v),v.ref=yi(h,g,b),v.return=h,h=v)}return s(h);case Qn:e:{for(S=b.key;g!==null;){if(g.key===S)if(g.tag===4&&g.stateNode.containerInfo===b.containerInfo&&g.stateNode.implementation===b.implementation){n(h,g.sibling),g=r(g,b.children||[]),g.return=h,h=g;break e}else{n(h,g);break}else e(h,g);g=g.sibling}g=Ed(b,h.mode,v),g.return=h,h=g}return s(h)}if(typeof b=="string"||typeof b=="number")return b=""+b,g!==null&&g.tag===6?(n(h,g.sibling),g=r(g,b),g.return=h,h=g):(n(h,g),g=Cd(b,h.mode,v),g.return=h,h=g),s(h);if(ga(b))return f(h,g,b,v);if(Yr(b))return y(h,g,b,v);if(C&&ya(h,b),typeof b>"u"&&!S)switch(h.tag){case 1:case 22:case 0:case 11:case 15:throw Error(A(152,Po(h.type)||"Component"))}return n(h,g)}}var wa=gy(!0),yy=gy(!1),wi={},Ct=wn(wi),bi=wn(wi),vi=wn(wi);function ro(t){if(t===wi)throw Error(A(174));return t}function _u(t,e){switch(re(vi,e),re(bi,t),re(Ct,wi),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:qc(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=qc(e,t)}te(Ct),re(Ct,e)}function er(){te(Ct),te(bi),te(vi)}function wy(t){ro(vi.current);var e=ro(Ct.current),n=qc(e,t.type);e!==n&&(re(bi,t),re(Ct,n))}function Ju(t){bi.current===t&&(te(Ct),te(bi))}var ie=wn(0);function ba(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&64)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 Ht=null,kn=null,Et=!1;function by(t,e){var n=ut(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=e,n.return=t,n.flags=8,t.lastEffect!==null?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function vy(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,!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,!0):!1;case 13:return!1;default:return!1}}function Yu(t){if(Et){var e=kn;if(e){var n=e;if(!vy(t,e)){if(e=Yo(n.nextSibling),!e||!vy(t,e)){t.flags=t.flags&-1025|2,Et=!1,Ht=t;return}by(Ht,n)}Ht=t,kn=Yo(e.firstChild)}else t.flags=t.flags&-1025|2,Et=!1,Ht=t}}function Sy(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Ht=t}function va(t){if(t!==Ht)return!1;if(!Et)return Sy(t),Et=!0,!1;var e=t.type;if(t.tag!==5||e!=="head"&&e!=="body"&&!Ru(e,t.memoizedProps))for(e=kn;e;)by(t,e),e=Yo(e.nextSibling);if(Sy(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(A(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){kn=Yo(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}kn=null}}else kn=Ht?Yo(t.stateNode.nextSibling):null;return!0}function Ku(){kn=Ht=null,Et=!1}var tr=[];function Wu(){for(var t=0;t<tr.length;t++)tr[t]._workInProgressVersionPrimary=null;tr.length=0}var Si=Gn.ReactCurrentDispatcher,lt=Gn.ReactCurrentBatchConfig,xi=0,ae=null,Pe=null,Ee=null,Sa=!1,ki=!1;function Ye(){throw Error(A(321))}function qu(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!st(t[n],e[n]))return!1;return!0}function Gu(t,e,n,o,r,i){if(xi=i,ae=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Si.current=t===null||t.memoizedState===null?x$:k$,t=n(o,r),ki){i=0;do{if(ki=!1,!(25>i))throw Error(A(301));i+=1,Ee=Pe=null,e.updateQueue=null,Si.current=$$,t=n(o,r)}while(ki)}if(Si.current=Ca,e=Pe!==null&&Pe.next!==null,xi=0,Ee=Pe=ae=null,Sa=!1,e)throw Error(A(300));return t}function io(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ee===null?ae.memoizedState=Ee=t:Ee=Ee.next=t,Ee}function so(){if(Pe===null){var t=ae.alternate;t=t!==null?t.memoizedState:null}else t=Pe.next;var e=Ee===null?ae.memoizedState:Ee.next;if(e!==null)Ee=e,Pe=t;else{if(t===null)throw Error(A(310));Pe=t,t={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},Ee===null?ae.memoizedState=Ee=t:Ee=Ee.next=t}return Ee}function Nt(t,e){return typeof e=="function"?e(t):e}function $i(t){var e=so(),n=e.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=t;var o=Pe,r=o.baseQueue,i=n.pending;if(i!==null){if(r!==null){var s=r.next;r.next=i.next,i.next=s}o.baseQueue=r=i,n.pending=null}if(r!==null){r=r.next,o=o.baseState;var a=s=i=null,l=r;do{var c=l.lane;if((xi&c)===c)a!==null&&(a=a.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),o=l.eagerReducer===t?l.eagerState:t(o,l.action);else{var u={lane:c,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};a===null?(s=a=u,i=o):a=a.next=u,ae.lanes|=c,Di|=c}l=l.next}while(l!==null&&l!==r);a===null?i=o:a.next=s,st(o,e.memoizedState)||(wt=!0),e.memoizedState=o,e.baseState=i,e.baseQueue=a,n.lastRenderedState=o}return[e.memoizedState,n.dispatch]}function Ci(t){var e=so(),n=e.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=t;var o=n.dispatch,r=n.pending,i=e.memoizedState;if(r!==null){n.pending=null;var s=r=r.next;do i=t(i,s.action),s=s.next;while(s!==r);st(i,e.memoizedState)||(wt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,o]}function xy(t,e,n){var o=e._getVersion;o=o(e._source);var r=e._workInProgressVersionPrimary;if(r!==null?t=r===o:(t=t.mutableReadLanes,(t=(xi&t)===t)&&(e._workInProgressVersionPrimary=o,tr.push(e))),t)return n(e._source);throw tr.push(e),Error(A(350))}function ky(t,e,n,o){var r=Be;if(r===null)throw Error(A(349));var i=e._getVersion,s=i(e._source),a=Si.current,l=a.useState(function(){return xy(r,e,n)}),c=l[1],u=l[0];l=Ee;var m=t.memoizedState,d=m.refs,p=d.getSnapshot,f=m.source;m=m.subscribe;var y=ae;return t.memoizedState={refs:d,source:e,subscribe:o},a.useEffect(function(){d.getSnapshot=n,d.setSnapshot=c;var h=i(e._source);if(!st(s,h)){h=n(e._source),st(u,h)||(c(h),h=Cn(y),r.mutableReadLanes|=h&r.pendingLanes),h=r.mutableReadLanes,r.entangledLanes|=h;for(var g=r.entanglements,b=h;0<b;){var v=31-hn(b),S=1<<v;g[v]|=h,b&=~S}}},[n,e,o]),a.useEffect(function(){return o(e._source,function(){var h=d.getSnapshot,g=d.setSnapshot;try{g(h(e._source));var b=Cn(y);r.mutableReadLanes|=b&r.pendingLanes}catch(v){g(function(){throw v})}})},[e,o]),st(p,n)&&st(f,e)&&st(m,o)||(t={pending:null,dispatch:null,lastRenderedReducer:Nt,lastRenderedState:u},t.dispatch=c=ed.bind(null,ae,t),l.queue=t,l.baseQueue=null,u=xy(r,e,n),l.memoizedState=l.baseState=u),u}function $y(t,e,n){var o=so();return ky(o,t,e,n)}function Ei(t){var e=io();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t=e.queue={pending:null,dispatch:null,lastRenderedReducer:Nt,lastRenderedState:t},t=t.dispatch=ed.bind(null,ae,t),[e.memoizedState,t]}function xa(t,e,n,o){return t={tag:t,create:e,destroy:n,deps:o,next:null},e=ae.updateQueue,e===null?(e={lastEffect:null},ae.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(o=n.next,n.next=t,t.next=o,e.lastEffect=t)),t}function Cy(t){var e=io();return t={current:t},e.memoizedState=t}function ka(){return so().memoizedState}function Qu(t,e,n,o){var r=io();ae.flags|=t,r.memoizedState=xa(1|e,n,void 0,o===void 0?null:o)}function Zu(t,e,n,o){var r=so();o=o===void 0?null:o;var i=void 0;if(Pe!==null){var s=Pe.memoizedState;if(i=s.destroy,o!==null&&qu(o,s.deps)){xa(e,n,i,o);return}}ae.flags|=t,r.memoizedState=xa(1|e,n,i,o)}function Ey(t,e){return Qu(516,4,t,e)}function $a(t,e){return Zu(516,4,t,e)}function Ny(t,e){return Zu(4,2,t,e)}function Dy(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 Ay(t,e,n){return n=n!=null?n.concat([t]):null,Zu(4,2,Dy.bind(null,e,t),n)}function Xu(){}function Ry(t,e){var n=so();e=e===void 0?null:e;var o=n.memoizedState;return o!==null&&e!==null&&qu(e,o[1])?o[0]:(n.memoizedState=[t,e],t)}function Oy(t,e){var n=so();e=e===void 0?null:e;var o=n.memoizedState;return o!==null&&e!==null&&qu(e,o[1])?o[0]:(t=t(),n.memoizedState=[t,e],t)}function S$(t,e){var n=Qo();oo(98>n?98:n,function(){t(!0)}),oo(97<n?97:n,function(){var o=lt.transition;lt.transition=1;try{t(!1),e()}finally{lt.transition=o}})}function ed(t,e,n){var o=Qe(),r=Cn(t),i={lane:r,action:n,eagerReducer:null,eagerState:null,next:null},s=e.pending;if(s===null?i.next=i:(i.next=s.next,s.next=i),e.pending=i,s=t.alternate,t===ae||s!==null&&s===ae)ki=Sa=!0;else{if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var a=e.lastRenderedState,l=s(a,n);if(i.eagerReducer=s,i.eagerState=l,st(l,a))return}catch{}finally{}En(t,r,o)}}var Ca={readContext:at,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useOpaqueIdentifier:Ye,unstable_isNewReconciler:!1},x$={readContext:at,useCallback:function(t,e){return io().memoizedState=[t,e===void 0?null:e],t},useContext:at,useEffect:Ey,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Qu(4,2,Dy.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Qu(4,2,t,e)},useMemo:function(t,e){var n=io();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var o=io();return e=n!==void 0?n(e):e,o.memoizedState=o.baseState=e,t=o.queue={pending:null,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},t=t.dispatch=ed.bind(null,ae,t),[o.memoizedState,t]},useRef:Cy,useState:Ei,useDebugValue:Xu,useDeferredValue:function(t){var e=Ei(t),n=e[0],o=e[1];return Ey(function(){var r=lt.transition;lt.transition=1;try{o(t)}finally{lt.transition=r}},[t]),n},useTransition:function(){var t=Ei(!1),e=t[0];return t=S$.bind(null,t[1]),Cy(t),[t,e]},useMutableSource:function(t,e,n){var o=io();return o.memoizedState={refs:{getSnapshot:e,setSnapshot:null},source:t,subscribe:n},ky(o,t,e,n)},useOpaqueIdentifier:function(){if(Et){var t=!1,e=h$(function(){throw t||(t=!0,n("r:"+(Mu++).toString(36))),Error(A(355))}),n=Ei(e)[1];return!(ae.mode&2)&&(ae.flags|=516,xa(5,function(){n("r:"+(Mu++).toString(36))},void 0,null)),e}return e="r:"+(Mu++).toString(36),Ei(e),e},unstable_isNewReconciler:!1},k$={readContext:at,useCallback:Ry,useContext:at,useEffect:$a,useImperativeHandle:Ay,useLayoutEffect:Ny,useMemo:Oy,useReducer:$i,useRef:ka,useState:function(){return $i(Nt)},useDebugValue:Xu,useDeferredValue:function(t){var e=$i(Nt),n=e[0],o=e[1];return $a(function(){var r=lt.transition;lt.transition=1;try{o(t)}finally{lt.transition=r}},[t]),n},useTransition:function(){var t=$i(Nt)[0];return[ka().current,t]},useMutableSource:$y,useOpaqueIdentifier:function(){return $i(Nt)[0]},unstable_isNewReconciler:!1},$$={readContext:at,useCallback:Ry,useContext:at,useEffect:$a,useImperativeHandle:Ay,useLayoutEffect:Ny,useMemo:Oy,useReducer:Ci,useRef:ka,useState:function(){return Ci(Nt)},useDebugValue:Xu,useDeferredValue:function(t){var e=Ci(Nt),n=e[0],o=e[1];return $a(function(){var r=lt.transition;lt.transition=1;try{o(t)}finally{lt.transition=r}},[t]),n},useTransition:function(){var t=Ci(Nt)[0];return[ka().current,t]},useMutableSource:$y,useOpaqueIdentifier:function(){return Ci(Nt)[0]},unstable_isNewReconciler:!1},C$=Gn.ReactCurrentOwner,wt=!1;function Ke(t,e,n,o){e.child=t===null?yy(e,null,n,o):wa(e,t.child,n,o)}function My(t,e,n,o,r){n=n.render;var i=e.ref;return Xo(e,r),o=Gu(t,e,n,o,i,r),t!==null&&!wt?(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~r,Bt(t,e,r)):(e.flags|=1,Ke(t,e,o,r),e.child)}function Ty(t,e,n,o,r,i){if(t===null){var s=n.type;return typeof s=="function"&&!kd(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=s,jy(t,e,s,o,r,i)):(t=Pa(n.type,null,o,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}return s=t.child,!(r&i)&&(r=s.memoizedProps,n=n.compare,n=n!==null?n:ui,n(r,o)&&t.ref===e.ref)?Bt(t,e,i):(e.flags|=1,t=An(s,o),t.ref=e.ref,t.return=e,e.child=t)}function jy(t,e,n,o,r,i){if(t!==null&&ui(t.memoizedProps,o)&&t.ref===e.ref)if(wt=!1,(i&r)!==0)t.flags&16384&&(wt=!0);else return e.lanes=t.lanes,Bt(t,e,i);return nd(t,e,n,o,i)}function td(t,e,n){var o=e.pendingProps,r=o.children,i=t!==null?t.memoizedState:null;if(o.mode==="hidden"||o.mode==="unstable-defer-without-hiding")if(!(e.mode&4))e.memoizedState={baseLanes:0},ja(e,n);else if(n&1073741824)e.memoizedState={baseLanes:0},ja(e,i!==null?i.baseLanes:n);else return t=i!==null?i.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t},ja(e,t),null;else i!==null?(o=i.baseLanes|n,e.memoizedState=null):o=n,ja(e,o);return Ke(t,e,r,n),e.child}function Py(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=128)}function nd(t,e,n,o,r){var i=Je(n)?to:Te.current;return i=Go(e,i),Xo(e,r),n=Gu(t,e,n,o,i,r),t!==null&&!wt?(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~r,Bt(t,e,r)):(e.flags|=1,Ke(t,e,n,r),e.child)}function Iy(t,e,n,o,r){if(Je(n)){var i=!0;la(e)}else i=!1;if(Xo(e,r),e.stateNode===null)t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),py(e,n,o),Uu(e,n,o,r),o=!0;else if(t===null){var s=e.stateNode,a=e.memoizedProps;s.props=a;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=at(c):(c=Je(n)?to:Te.current,c=Go(e,c));var u=n.getDerivedStateFromProps,m=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";m||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==o||l!==c)&&hy(e,s,o,c),vn=!1;var d=e.memoizedState;s.state=d,gi(e,o,s,r),l=e.memoizedState,a!==o||d!==l||_e.current||vn?(typeof u=="function"&&(pa(e,n,u,o),l=e.memoizedState),(a=vn||fy(e,n,a,o,d,l,c))?(m||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(e.flags|=4)):(typeof s.componentDidMount=="function"&&(e.flags|=4),e.memoizedProps=o,e.memoizedState=l),s.props=o,s.state=l,s.context=c,o=a):(typeof s.componentDidMount=="function"&&(e.flags|=4),o=!1)}else{s=e.stateNode,cy(t,e),a=e.memoizedProps,c=e.type===e.elementType?a:yt(e.type,a),s.props=c,m=e.pendingProps,d=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=at(l):(l=Je(n)?to:Te.current,l=Go(e,l));var p=n.getDerivedStateFromProps;(u=typeof p=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==m||d!==l)&&hy(e,s,o,l),vn=!1,d=e.memoizedState,s.state=d,gi(e,o,s,r);var f=e.memoizedState;a!==m||d!==f||_e.current||vn?(typeof p=="function"&&(pa(e,n,p,o),f=e.memoizedState),(c=vn||fy(e,n,c,o,d,f,l))?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(o,f,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(o,f,l)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=256)):(typeof s.componentDidUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=256),e.memoizedProps=o,e.memoizedState=f),s.props=o,s.state=f,s.context=l,o=c):(typeof s.componentDidUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=256),o=!1)}return od(t,e,n,o,i,r)}function od(t,e,n,o,r,i){Py(t,e);var s=(e.flags&64)!==0;if(!o&&!s)return r&&Xg(e,n,!1),Bt(t,e,i);o=e.stateNode,C$.current=e;var a=s&&typeof n.getDerivedStateFromError!="function"?null:o.render();return e.flags|=1,t!==null&&s?(e.child=wa(e,t.child,null,i),e.child=wa(e,null,a,i)):Ke(t,e,a,i),e.memoizedState=o.state,r&&Xg(e,n,!0),e.child}function Ly(t){var e=t.stateNode;e.pendingContext?Qg(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Qg(t,e.context,!1),_u(t,e.containerInfo)}var Ea={dehydrated:null,retryLane:0};function zy(t,e,n){var o=e.pendingProps,r=ie.current,i=!1,s;return(s=(e.flags&64)!==0)||(s=t!==null&&t.memoizedState===null?!1:(r&2)!==0),s?(i=!0,e.flags&=-65):t!==null&&t.memoizedState===null||o.fallback===void 0||o.unstable_avoidThisFallback===!0||(r|=1),re(ie,r&1),t===null?(o.fallback!==void 0&&Yu(e),t=o.children,r=o.fallback,i?(t=Fy(e,t,r,n),e.child.memoizedState={baseLanes:n},e.memoizedState=Ea,t):typeof o.unstable_expectedLoadTime=="number"?(t=Fy(e,t,r,n),e.child.memoizedState={baseLanes:n},e.memoizedState=Ea,e.lanes=33554432,t):(n=$d({mode:"visible",children:t},e.mode,n,null),n.return=e,e.child=n)):t.memoizedState!==null?i?(o=By(t,e,o.children,o.fallback,n),i=e.child,r=t.child.memoizedState,i.memoizedState=r===null?{baseLanes:n}:{baseLanes:r.baseLanes|n},i.childLanes=t.childLanes&~n,e.memoizedState=Ea,o):(n=Hy(t,e,o.children,n),e.memoizedState=null,n):i?(o=By(t,e,o.children,o.fallback,n),i=e.child,r=t.child.memoizedState,i.memoizedState=r===null?{baseLanes:n}:{baseLanes:r.baseLanes|n},i.childLanes=t.childLanes&~n,e.memoizedState=Ea,o):(n=Hy(t,e,o.children,n),e.memoizedState=null,n)}function Fy(t,e,n,o){var r=t.mode,i=t.child;return e={mode:"hidden",children:e},!(r&2)&&i!==null?(i.childLanes=0,i.pendingProps=e):i=$d(e,r,0,null),n=ar(n,r,o,null),i.return=t,n.return=t,i.sibling=n,t.child=i,n}function Hy(t,e,n,o){var r=t.child;return t=r.sibling,n=An(r,{mode:"visible",children:n}),!(e.mode&2)&&(n.lanes=o),n.return=e,n.sibling=null,t!==null&&(t.nextEffect=null,t.flags=8,e.firstEffect=e.lastEffect=t),e.child=n}function By(t,e,n,o,r){var i=e.mode,s=t.child;t=s.sibling;var a={mode:"hidden",children:n};return!(i&2)&&e.child!==s?(n=e.child,n.childLanes=0,n.pendingProps=a,s=n.lastEffect,s!==null?(e.firstEffect=n.firstEffect,e.lastEffect=s,s.nextEffect=null):e.firstEffect=e.lastEffect=null):n=An(s,a),t!==null?o=An(t,o):(o=ar(o,i,r,null),o.flags|=2),o.return=e,n.return=e,n.sibling=o,e.child=n,o}function Vy(t,e){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),ly(t.return,e)}function rd(t,e,n,o,r,i){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:r,lastEffect:i}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=o,s.tail=n,s.tailMode=r,s.lastEffect=i)}function Uy(t,e,n){var o=e.pendingProps,r=o.revealOrder,i=o.tail;if(Ke(t,e,o.children,n),o=ie.current,o&2)o=o&1|2,e.flags|=64;else{if(t!==null&&t.flags&64)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Vy(t,n);else if(t.tag===19)Vy(t,n);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}o&=1}if(re(ie,o),!(e.mode&2))e.memoizedState=null;else switch(r){case"forwards":for(n=e.child,r=null;n!==null;)t=n.alternate,t!==null&&ba(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),rd(e,!1,r,n,i,e.lastEffect);break;case"backwards":for(n=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&ba(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}rd(e,!0,n,null,i,e.lastEffect);break;case"together":rd(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}return e.child}function Bt(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Di|=e.lanes,n&e.childLanes){if(t!==null&&e.child!==t.child)throw Error(A(153));if(e.child!==null){for(t=e.child,n=An(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=An(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}return null}var _y,id,Jy,Yy;_y=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}},id=function(){},Jy=function(t,e,n,o){var r=t.memoizedProps;if(r!==o){t=e.stateNode,ro(Ct.current);var i=null;switch(n){case"input":r=Uc(t,r),o=Uc(t,o),i=[];break;case"option":r=Yc(t,r),o=Yc(t,o),i=[];break;case"select":r=ne({},r,{value:void 0}),o=ne({},o,{value:void 0}),i=[];break;case"textarea":r=Kc(t,r),o=Kc(t,o),i=[];break;default:typeof r.onClick!="function"&&typeof o.onClick=="function"&&(t.onclick=oa)}Gc(n,o);var s;n=null;for(c in r)if(!o.hasOwnProperty(c)&&r.hasOwnProperty(c)&&r[c]!=null)if(c==="style"){var a=r[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Vr.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in o){var l=o[c];if(a=r!=null?r[c]:void 0,o.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Vr.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&ee("scroll",t),i||a===l||(i=[])):typeof l=="object"&&l!==null&&l.$$typeof===zc?l.toString():(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(e.updateQueue=c)&&(e.flags|=4)}},Yy=function(t,e,n,o){n!==o&&(e.flags|=4)};function Ni(t,e){if(!Et)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 o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:o.sibling=null}}function E$(t,e,n){var o=e.pendingProps;switch(e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Je(e.type)&&aa(),null;case 3:return er(),te(_e),te(Te),Wu(),o=e.stateNode,o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&(va(e)?e.flags|=4:o.hydrate||(e.flags|=256)),id(e),null;case 5:Ju(e);var r=ro(vi.current);if(n=e.type,t!==null&&e.stateNode!=null)Jy(t,e,n,o,r),t.ref!==e.ref&&(e.flags|=128);else{if(!o){if(e.stateNode===null)throw Error(A(166));return null}if(t=ro(Ct.current),va(e)){o=e.stateNode,n=e.type;var i=e.memoizedProps;switch(o[yn]=e,o[ia]=i,n){case"dialog":ee("cancel",o),ee("close",o);break;case"iframe":case"object":case"embed":ee("load",o);break;case"video":case"audio":for(t=0;t<mi.length;t++)ee(mi[t],o);break;case"source":ee("error",o);break;case"img":case"image":case"link":ee("error",o),ee("load",o);break;case"details":ee("toggle",o);break;case"input":Ih(o,i),ee("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!i.multiple},ee("invalid",o);break;case"textarea":Fh(o,i),ee("invalid",o)}Gc(n,i),t=null;for(var s in i)i.hasOwnProperty(s)&&(r=i[s],s==="children"?typeof r=="string"?o.textContent!==r&&(t=["children",r]):typeof r=="number"&&o.textContent!==""+r&&(t=["children",""+r]):Vr.hasOwnProperty(s)&&r!=null&&s==="onScroll"&&ee("scroll",o));switch(n){case"input":Hs(o),zh(o,i,!0);break;case"textarea":Hs(o),Bh(o);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(o.onclick=oa)}o=t,e.updateQueue=o,o!==null&&(e.flags|=4)}else{switch(s=r.nodeType===9?r:r.ownerDocument,t===Wc.html&&(t=Vh(n)),t===Wc.html?n==="script"?(t=s.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof o.is=="string"?t=s.createElement(n,{is:o.is}):(t=s.createElement(n),n==="select"&&(s=t,o.multiple?s.multiple=!0:o.size&&(s.size=o.size))):t=s.createElementNS(t,n),t[yn]=e,t[ia]=o,_y(t,e,!1,!1),e.stateNode=t,s=Qc(n,o),n){case"dialog":ee("cancel",t),ee("close",t),r=o;break;case"iframe":case"object":case"embed":ee("load",t),r=o;break;case"video":case"audio":for(r=0;r<mi.length;r++)ee(mi[r],t);r=o;break;case"source":ee("error",t),r=o;break;case"img":case"image":case"link":ee("error",t),ee("load",t),r=o;break;case"details":ee("toggle",t),r=o;break;case"input":Ih(t,o),r=Uc(t,o),ee("invalid",t);break;case"option":r=Yc(t,o);break;case"select":t._wrapperState={wasMultiple:!!o.multiple},r=ne({},o,{value:void 0}),ee("invalid",t);break;case"textarea":Fh(t,o),r=Kc(t,o),ee("invalid",t);break;default:r=o}Gc(n,r);var a=r;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Jh(t,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Uh(t,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Wr(t,l):typeof l=="number"&&Wr(t,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Vr.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ee("scroll",t):l!=null&&Mc(t,i,l,s))}switch(n){case"input":Hs(t),zh(t,o,!1);break;case"textarea":Hs(t),Bh(t);break;case"option":o.value!=null&&t.setAttribute("value",""+dn(o.value));break;case"select":t.multiple=!!o.multiple,i=o.value,i!=null?Io(t,!!o.multiple,i,!1):o.defaultValue!=null&&Io(t,!!o.multiple,o.defaultValue,!0);break;default:typeof r.onClick=="function"&&(t.onclick=oa)}Yg(n,o)&&(e.flags|=4)}e.ref!==null&&(e.flags|=128)}return null;case 6:if(t&&e.stateNode!=null)Yy(t,e,t.memoizedProps,o);else{if(typeof o!="string"&&e.stateNode===null)throw Error(A(166));n=ro(vi.current),ro(Ct.current),va(e)?(o=e.stateNode,n=e.memoizedProps,o[yn]=e,o.nodeValue!==n&&(e.flags|=4)):(o=(n.nodeType===9?n:n.ownerDocument).createTextNode(o),o[yn]=e,e.stateNode=o)}return null;case 13:return te(ie),o=e.memoizedState,e.flags&64?(e.lanes=n,e):(o=o!==null,n=!1,t===null?e.memoizedProps.fallback!==void 0&&va(e):n=t.memoizedState!==null,o&&!n&&e.mode&2&&(t===null&&e.memoizedProps.unstable_avoidThisFallback!==!0||ie.current&1?Ne===0&&(Ne=3):((Ne===0||Ne===3)&&(Ne=4),Be===null||!(Di&134217727)&&!(or&134217727)||ir(Be,Ie))),(o||n)&&(e.flags|=4),null);case 4:return er(),id(e),t===null&&Bg(e.stateNode.containerInfo),null;case 10:return Bu(e),null;case 17:return Je(e.type)&&aa(),null;case 19:if(te(ie),o=e.memoizedState,o===null)return null;if(i=(e.flags&64)!==0,s=o.rendering,s===null)if(i)Ni(o,!1);else{if(Ne!==0||t!==null&&t.flags&64)for(t=e.child;t!==null;){if(s=ba(t),s!==null){for(e.flags|=64,Ni(o,!1),i=s.updateQueue,i!==null&&(e.updateQueue=i,e.flags|=4),o.lastEffect===null&&(e.firstEffect=null),e.lastEffect=o.lastEffect,o=n,n=e.child;n!==null;)i=n,t=o,i.flags&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,s=i.alternate,s===null?(i.childLanes=0,i.lanes=t,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,t=s.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return re(ie,ie.current&1|2),e.child}t=t.sibling}o.tail!==null&&je()>gd&&(e.flags|=64,i=!0,Ni(o,!1),e.lanes=33554432)}else{if(!i)if(t=ba(s),t!==null){if(e.flags|=64,i=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Ni(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Et)return e=e.lastEffect=o.lastEffect,e!==null&&(e.nextEffect=null),null}else 2*je()-o.renderingStartTime>gd&&n!==1073741824&&(e.flags|=64,i=!0,Ni(o,!1),e.lanes=33554432);o.isBackwards?(s.sibling=e.child,e.child=s):(n=o.last,n!==null?n.sibling=s:e.child=s,o.last=s)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.lastEffect=e.lastEffect,o.renderingStartTime=je(),n.sibling=null,e=ie.current,re(ie,i?e&1|2:e&1),n):null;case 23:case 24:return xd(),t!==null&&t.memoizedState!==null!=(e.memoizedState!==null)&&o.mode!=="unstable-defer-without-hiding"&&(e.flags|=4),null}throw Error(A(156,e.tag))}function N$(t){switch(t.tag){case 1:Je(t.type)&&aa();var e=t.flags;return e&4096?(t.flags=e&-4097|64,t):null;case 3:if(er(),te(_e),te(Te),Wu(),e=t.flags,e&64)throw Error(A(285));return t.flags=e&-4097|64,t;case 5:return Ju(t),null;case 13:return te(ie),e=t.flags,e&4096?(t.flags=e&-4097|64,t):null;case 19:return te(ie),null;case 4:return er(),null;case 10:return Bu(t),null;case 23:case 24:return xd(),null;default:return null}}function sd(t,e){try{var n="",o=e;do n+=ak(o),o=o.return;while(o);var r=n}catch(i){r=`
|
|
127
127
|
Error generating stack: `+i.message+`
|
|
128
|
-
`+i.stack}return{value:t,source:e,stack:r}}function id(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var N$=typeof WeakMap=="function"?WeakMap:Map;function Ky(t,e,n){n=vn(-1,n),n.tag=3,n.payload={element:null};var o=e.value;return n.callback=function(){Ra||(Ra=!0,hd=o),id(t,e)},n}function Wy(t,e,n){n=vn(-1,n),n.tag=3;var o=t.type.getDerivedStateFromError;if(typeof o=="function"){var r=e.value;n.payload=function(){return id(t,e),o(r)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){typeof o!="function"&&(At===null?At=new Set([this]):At.add(this),id(t,e));var s=e.stack;this.componentDidCatch(e.value,{componentStack:s!==null?s:""})}),n}var A$=typeof WeakSet=="function"?WeakSet:Set;function qy(t){var e=t.ref;if(e!==null)if(typeof e=="function")try{e(null)}catch(n){An(t,n)}else e.current=null}function R$(t,e){switch(e.tag){case 0:case 11:case 15:case 22:return;case 1:if(e.flags&256&&t!==null){var n=t.memoizedProps,o=t.memoizedState;t=e.stateNode,e=t.getSnapshotBeforeUpdate(e.elementType===e.type?n:yt(e.type,n),o),t.__reactInternalSnapshotBeforeUpdate=e}return;case 3:e.flags&256&&Ru(e.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(R(163))}function O$(t,e,n){switch(n.tag){case 0:case 11:case 15:case 22:if(e=n.updateQueue,e=e!==null?e.lastEffect:null,e!==null){t=e=e.next;do{if((t.tag&3)===3){var o=t.create;t.destroy=o()}t=t.next}while(t!==e)}if(e=n.updateQueue,e=e!==null?e.lastEffect:null,e!==null){t=e=e.next;do{var r=t;o=r.next,r=r.tag,r&4&&r&1&&(u0(n,t),z$(n,t)),t=o}while(t!==e)}return;case 1:t=n.stateNode,n.flags&4&&(e===null?t.componentDidMount():(o=n.elementType===n.type?e.memoizedProps:yt(n.type,e.memoizedProps),t.componentDidUpdate(o,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate))),e=n.updateQueue,e!==null&&dy(n,e,t);return;case 3:if(e=n.updateQueue,e!==null){if(t=null,n.child!==null)switch(n.child.tag){case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}dy(n,e,t)}return;case 5:t=n.stateNode,e===null&&n.flags&4&&Yg(n.type,n.memoizedProps)&&t.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&ag(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(R(163))}function Gy(t,e){for(var n=t;;){if(n.tag===5){var o=n.stateNode;if(e)o=o.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{o=n.stateNode;var r=n.memoizedProps.style;r=r!=null&&r.hasOwnProperty("display")?r.display:null,o.style.display=_h("display",r)}}else if(n.tag===6)n.stateNode.nodeValue=e?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Qy(t,e){if(no&&typeof no.onCommitFiberUnmount=="function")try{no.onCommitFiberUnmount(Mu,e)}catch{}switch(e.tag){case 0:case 11:case 14:case 15:case 22:if(t=e.updateQueue,t!==null&&(t=t.lastEffect,t!==null)){var n=t=t.next;do{var o=n,r=o.destroy;if(o=o.tag,r!==void 0)if(o&4)u0(e,n);else{o=e;try{r()}catch(i){An(o,i)}}n=n.next}while(n!==t)}break;case 1:if(qy(e),t=e.stateNode,typeof t.componentWillUnmount=="function")try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(i){An(e,i)}break;case 5:qy(e);break;case 4:t0(t,e)}}function Zy(t){t.alternate=null,t.child=null,t.dependencies=null,t.firstEffect=null,t.lastEffect=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.return=null,t.updateQueue=null}function Xy(t){return t.tag===5||t.tag===3||t.tag===4}function e0(t){e:{for(var e=t.return;e!==null;){if(Xy(e))break e;e=e.return}throw Error(R(160))}var n=e;switch(e=n.stateNode,n.tag){case 5:var o=!1;break;case 3:e=e.containerInfo,o=!0;break;case 4:e=e.containerInfo,o=!0;break;default:throw Error(R(161))}n.flags&16&&(Wr(e,""),n.flags&=-17);e:t:for(n=t;;){for(;n.sibling===null;){if(n.return===null||Xy(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}o?sd(t,n,e):ad(t,n,e)}function sd(t,e,n){var o=t.tag,r=o===5||o===6;if(r)t=r?t.stateNode:t.stateNode.instance,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=oa));else if(o!==4&&(t=t.child,t!==null))for(sd(t,e,n),t=t.sibling;t!==null;)sd(t,e,n),t=t.sibling}function ad(t,e,n){var o=t.tag,r=o===5||o===6;if(r)t=r?t.stateNode:t.stateNode.instance,e?n.insertBefore(t,e):n.appendChild(t);else if(o!==4&&(t=t.child,t!==null))for(ad(t,e,n),t=t.sibling;t!==null;)ad(t,e,n),t=t.sibling}function t0(t,e){for(var n=e,o=!1,r,i;;){if(!o){o=n.return;e:for(;;){if(o===null)throw Error(R(160));switch(r=o.stateNode,o.tag){case 5:i=!1;break e;case 3:r=r.containerInfo,i=!0;break e;case 4:r=r.containerInfo,i=!0;break e}o=o.return}o=!0}if(n.tag===5||n.tag===6){e:for(var s=t,a=n,l=a;;)if(Qy(s,l),l.child!==null&&l.tag!==4)l.child.return=l,l=l.child;else{if(l===a)break e;for(;l.sibling===null;){if(l.return===null||l.return===a)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}i?(s=r,a=n.stateNode,s.nodeType===8?s.parentNode.removeChild(a):s.removeChild(a)):r.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){r=n.stateNode.containerInfo,i=!0,n.child.return=n,n=n.child;continue}}else if(Qy(t,n),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.tag===4&&(o=!1)}n.sibling.return=n.return,n=n.sibling}}function ld(t,e){switch(e.tag){case 0:case 11:case 14:case 15:case 22:var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do(o.tag&3)===3&&(t=o.destroy,o.destroy=void 0,t!==void 0&&t()),o=o.next;while(o!==n)}return;case 1:return;case 5:if(n=e.stateNode,n!=null){o=e.memoizedProps;var r=t!==null?t.memoizedProps:o;t=e.type;var i=e.updateQueue;if(e.updateQueue=null,i!==null){for(n[ia]=o,t==="input"&&o.type==="radio"&&o.name!=null&&Lh(n,o),qc(t,r),e=qc(t,o),r=0;r<i.length;r+=2){var s=i[r],a=i[r+1];s==="style"?Jh(n,a):s==="dangerouslySetInnerHTML"?Uh(n,a):s==="children"?Wr(n,a):Oc(n,s,a,e)}switch(t){case"input":Vc(n,o);break;case"textarea":Hh(n,o);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,i=o.value,i!=null?Io(n,!!o.multiple,i,!1):t!==!!o.multiple&&(o.defaultValue!=null?Io(n,!!o.multiple,o.defaultValue,!0):Io(n,!!o.multiple,o.multiple?[]:"",!1))}}}return;case 6:if(e.stateNode===null)throw Error(R(162));e.stateNode.nodeValue=e.memoizedProps;return;case 3:n=e.stateNode,n.hydrate&&(n.hydrate=!1,ag(n.containerInfo));return;case 12:return;case 13:e.memoizedState!==null&&(fd=je(),Gy(e.child,!0)),n0(e);return;case 19:n0(e);return;case 17:return;case 23:case 24:Gy(e,e.memoizedState!==null);return}throw Error(R(163))}function n0(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new A$),e.forEach(function(o){var r=B$.bind(null,t,o);n.has(o)||(n.add(o),o.then(r,r))})}}function D$(t,e){return t!==null&&(t=t.memoizedState,t===null||t.dehydrated!==null)?(e=e.memoizedState,e!==null&&e.dehydrated===null):!1}var M$=Math.ceil,Na=Gn.ReactCurrentDispatcher,cd=Gn.ReactCurrentOwner,z=0,Be=null,fe=null,Ie=0,ao=0,ud=wn(0),Ne=0,Aa=null,nr=0,Ai=0,or=0,dd=0,md=null,fd=0,pd=1/0;function rr(){pd=je()+500}var T=null,Ra=!1,hd=null,At=null,$n=!1,Ri=null,Oi=90,gd=[],yd=[],Vt=null,Di=0,wd=null,Oa=-1,Ut=0,Da=0,Mi=null,Ma=!1;function Qe(){return z&48?je():Oa!==-1?Oa:Oa=je()}function Cn(t){if(t=t.mode,!(t&2))return 1;if(!(t&4))return Qo()===99?1:2;if(Ut===0&&(Ut=nr),S$.transition!==0){Da!==0&&(Da=md!==null?md.pendingLanes:0),t=Ut;var e=4186112&~Da;return e&=-e,e===0&&(t=4186112&~t,e=t&-t,e===0&&(e=8192)),e}return t=Qo(),z&4&&t===98?t=Ws(12,Ut):(t=xk(t),t=Ws(t,Ut)),t}function En(t,e,n){if(50<Di)throw Di=0,wd=null,Error(R(185));if(t=Ta(t,e),t===null)return null;qs(t,e,n),t===Be&&(or|=e,Ne===4&&ir(t,Ie));var o=Qo();e===1?z&8&&!(z&48)?Sd(t):(lt(t,n),z===0&&(rr(),$t())):(!(z&4)||o!==98&&o!==99||(Vt===null?Vt=new Set([t]):Vt.add(t)),lt(t,n)),md=t}function Ta(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}function lt(t,e){for(var n=t.callbackNode,o=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,s=t.pendingLanes;0<s;){var a=31-hn(s),l=1<<a,c=i[a];if(c===-1){if(!(l&o)||l&r){c=e,Ho(l);var u=Z;i[a]=10<=u?c+250:6<=u?c+5e3:-1}}else c<=e&&(t.expiredLanes|=l);s&=~l}if(o=ri(t,t===Be?Ie:0),e=Z,o===0)n!==null&&(n!==Iu&&ju(n),t.callbackNode=null,t.callbackPriority=0);else{if(n!==null){if(t.callbackPriority===e)return;n!==Iu&&ju(n)}e===15?(n=Sd.bind(null,t),Ft===null?(Ft=[n],ua=Tu(ca,ay)):Ft.push(n),n=Iu):e===14?n=hi(99,Sd.bind(null,t)):(n=kk(e),n=hi(n,o0.bind(null,t))),t.callbackPriority=e,t.callbackNode=n}}function o0(t){if(Oa=-1,Da=Ut=0,z&48)throw Error(R(327));var e=t.callbackNode;if(Nn()&&t.callbackNode!==e)return null;var n=ri(t,t===Be?Ie:0);if(n===0)return null;var o=n,r=z;z|=16;var i=a0();(Be!==t||Ie!==o)&&(rr(),sr(t,o));do try{P$();break}catch(a){s0(t,a)}while(1);if(zu(),Na.current=i,z=r,fe!==null?o=0:(Be=null,Ie=0,o=Ne),nr&or)sr(t,0);else if(o!==0){if(o===2&&(z|=64,t.hydrate&&(t.hydrate=!1,Ru(t.containerInfo)),n=pg(t),n!==0&&(o=Ti(t,n))),o===1)throw e=Aa,sr(t,0),ir(t,n),lt(t,je()),e;switch(t.finishedWork=t.current.alternate,t.finishedLanes=n,o){case 0:case 1:throw Error(R(345));case 2:lo(t);break;case 3:if(ir(t,n),(n&62914560)===n&&(o=fd+500-je(),10<o)){if(ri(t,0)!==0)break;if(r=t.suspendedLanes,(r&n)!==n){Qe(),t.pingedLanes|=t.suspendedLanes&r;break}t.timeoutHandle=Kg(lo.bind(null,t),o);break}lo(t);break;case 4:if(ir(t,n),(n&4186112)===n)break;for(o=t.eventTimes,r=-1;0<n;){var s=31-hn(n);i=1<<s,s=o[s],s>r&&(r=s),n&=~i}if(n=r,n=je()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*M$(n/1960))-n,10<n){t.timeoutHandle=Kg(lo.bind(null,t),n);break}lo(t);break;case 5:lo(t);break;default:throw Error(R(329))}}return lt(t,je()),t.callbackNode===e?o0.bind(null,t):null}function ir(t,e){for(e&=~dd,e&=~or,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-hn(e),o=1<<n;t[n]=-1,e&=~o}}function Sd(t){if(z&48)throw Error(R(327));if(Nn(),t===Be&&t.expiredLanes&Ie){var e=Ie,n=Ti(t,e);nr&or&&(e=ri(t,e),n=Ti(t,e))}else e=ri(t,0),n=Ti(t,e);if(t.tag!==0&&n===2&&(z|=64,t.hydrate&&(t.hydrate=!1,Ru(t.containerInfo)),e=pg(t),e!==0&&(n=Ti(t,e))),n===1)throw n=Aa,sr(t,0),ir(t,e),lt(t,je()),n;return t.finishedWork=t.current.alternate,t.finishedLanes=e,lo(t),lt(t,je()),null}function T$(){if(Vt!==null){var t=Vt;Vt=null,t.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,lt(e,je())})}$t()}function r0(t,e){var n=z;z|=1;try{return t(e)}finally{z=n,z===0&&(rr(),$t())}}function i0(t,e){var n=z;z&=-2,z|=8;try{return t(e)}finally{z=n,z===0&&(rr(),$t())}}function ja(t,e){re(ud,ao),ao|=e,nr|=e}function bd(){ao=ud.current,te(ud)}function sr(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,f$(n)),fe!==null)for(n=fe.return;n!==null;){var o=n;switch(o.tag){case 1:o=o.type.childContextTypes,o!=null&&aa();break;case 3:er(),te(_e),te(Te),Yu();break;case 5:Uu(o);break;case 4:er();break;case 13:te(ie);break;case 19:te(ie);break;case 10:Fu(o);break;case 23:case 24:bd()}n=n.return}Be=t,fe=Rn(t.current,null),Ie=ao=nr=e,Ne=0,Aa=null,dd=or=Ai=0}function s0(t,e){do{var n=fe;try{if(zu(),vi.current=Ca,va){for(var o=ae.memoizedState;o!==null;){var r=o.queue;r!==null&&(r.pending=null),o=o.next}va=!1}if(xi=0,Ee=Pe=ae=null,ki=!1,cd.current=null,n===null||n.return===null){Ne=1,Aa=e,fe=null;break}e:{var i=t,s=n.return,a=n,l=e;if(e=Ie,a.flags|=2048,a.firstEffect=a.lastEffect=null,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l;if(!(a.mode&2)){var u=a.alternate;u?(a.updateQueue=u.updateQueue,a.memoizedState=u.memoizedState,a.lanes=u.lanes):(a.updateQueue=null,a.memoizedState=null)}var m=(ie.current&1)!==0,d=s;do{var p;if(p=d.tag===13){var f=d.memoizedState;if(f!==null)p=f.dehydrated!==null;else{var y=d.memoizedProps;p=y.fallback===void 0?!1:y.unstable_avoidThisFallback!==!0?!0:!m}}if(p){var h=d.updateQueue;if(h===null){var g=new Set;g.add(c),d.updateQueue=g}else h.add(c);if(!(d.mode&2)){if(d.flags|=64,a.flags|=16384,a.flags&=-2981,a.tag===1)if(a.alternate===null)a.tag=17;else{var S=vn(-1,1);S.tag=2,xn(a,S)}a.lanes|=1;break e}l=void 0,a=e;var b=i.pingCache;if(b===null?(b=i.pingCache=new N$,l=new Set,b.set(c,l)):(l=b.get(c),l===void 0&&(l=new Set,b.set(c,l))),!l.has(a)){l.add(a);var v=H$.bind(null,i,c,a);c.then(v,v)}d.flags|=4096,d.lanes=e;break e}d=d.return}while(d!==null);l=Error((Po(a.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
128
|
+
`+i.stack}return{value:t,source:e,stack:r}}function ad(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var D$=typeof WeakMap=="function"?WeakMap:Map;function Ky(t,e,n){n=Sn(-1,n),n.tag=3,n.payload={element:null};var o=e.value;return n.callback=function(){Aa||(Aa=!0,yd=o),ad(t,e)},n}function Wy(t,e,n){n=Sn(-1,n),n.tag=3;var o=t.type.getDerivedStateFromError;if(typeof o=="function"){var r=e.value;n.payload=function(){return ad(t,e),o(r)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){typeof o!="function"&&(Dt===null?Dt=new Set([this]):Dt.add(this),ad(t,e));var s=e.stack;this.componentDidCatch(e.value,{componentStack:s!==null?s:""})}),n}var A$=typeof WeakSet=="function"?WeakSet:Set;function qy(t){var e=t.ref;if(e!==null)if(typeof e=="function")try{e(null)}catch(n){Dn(t,n)}else e.current=null}function R$(t,e){switch(e.tag){case 0:case 11:case 15:case 22:return;case 1:if(e.flags&256&&t!==null){var n=t.memoizedProps,o=t.memoizedState;t=e.stateNode,e=t.getSnapshotBeforeUpdate(e.elementType===e.type?n:yt(e.type,n),o),t.__reactInternalSnapshotBeforeUpdate=e}return;case 3:e.flags&256&&Ou(e.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(A(163))}function O$(t,e,n){switch(n.tag){case 0:case 11:case 15:case 22:if(e=n.updateQueue,e=e!==null?e.lastEffect:null,e!==null){t=e=e.next;do{if((t.tag&3)===3){var o=t.create;t.destroy=o()}t=t.next}while(t!==e)}if(e=n.updateQueue,e=e!==null?e.lastEffect:null,e!==null){t=e=e.next;do{var r=t;o=r.next,r=r.tag,r&4&&r&1&&(u0(n,t),F$(n,t)),t=o}while(t!==e)}return;case 1:t=n.stateNode,n.flags&4&&(e===null?t.componentDidMount():(o=n.elementType===n.type?e.memoizedProps:yt(n.type,e.memoizedProps),t.componentDidUpdate(o,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate))),e=n.updateQueue,e!==null&&dy(n,e,t);return;case 3:if(e=n.updateQueue,e!==null){if(t=null,n.child!==null)switch(n.child.tag){case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}dy(n,e,t)}return;case 5:t=n.stateNode,e===null&&n.flags&4&&Yg(n.type,n.memoizedProps)&&t.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&ag(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(A(163))}function Gy(t,e){for(var n=t;;){if(n.tag===5){var o=n.stateNode;if(e)o=o.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{o=n.stateNode;var r=n.memoizedProps.style;r=r!=null&&r.hasOwnProperty("display")?r.display:null,o.style.display=_h("display",r)}}else if(n.tag===6)n.stateNode.nodeValue=e?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Qy(t,e){if(no&&typeof no.onCommitFiberUnmount=="function")try{no.onCommitFiberUnmount(ju,e)}catch{}switch(e.tag){case 0:case 11:case 14:case 15:case 22:if(t=e.updateQueue,t!==null&&(t=t.lastEffect,t!==null)){var n=t=t.next;do{var o=n,r=o.destroy;if(o=o.tag,r!==void 0)if(o&4)u0(e,n);else{o=e;try{r()}catch(i){Dn(o,i)}}n=n.next}while(n!==t)}break;case 1:if(qy(e),t=e.stateNode,typeof t.componentWillUnmount=="function")try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(i){Dn(e,i)}break;case 5:qy(e);break;case 4:t0(t,e)}}function Zy(t){t.alternate=null,t.child=null,t.dependencies=null,t.firstEffect=null,t.lastEffect=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.return=null,t.updateQueue=null}function Xy(t){return t.tag===5||t.tag===3||t.tag===4}function e0(t){e:{for(var e=t.return;e!==null;){if(Xy(e))break e;e=e.return}throw Error(A(160))}var n=e;switch(e=n.stateNode,n.tag){case 5:var o=!1;break;case 3:e=e.containerInfo,o=!0;break;case 4:e=e.containerInfo,o=!0;break;default:throw Error(A(161))}n.flags&16&&(Wr(e,""),n.flags&=-17);e:t:for(n=t;;){for(;n.sibling===null;){if(n.return===null||Xy(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}o?ld(t,n,e):cd(t,n,e)}function ld(t,e,n){var o=t.tag,r=o===5||o===6;if(r)t=r?t.stateNode:t.stateNode.instance,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=oa));else if(o!==4&&(t=t.child,t!==null))for(ld(t,e,n),t=t.sibling;t!==null;)ld(t,e,n),t=t.sibling}function cd(t,e,n){var o=t.tag,r=o===5||o===6;if(r)t=r?t.stateNode:t.stateNode.instance,e?n.insertBefore(t,e):n.appendChild(t);else if(o!==4&&(t=t.child,t!==null))for(cd(t,e,n),t=t.sibling;t!==null;)cd(t,e,n),t=t.sibling}function t0(t,e){for(var n=e,o=!1,r,i;;){if(!o){o=n.return;e:for(;;){if(o===null)throw Error(A(160));switch(r=o.stateNode,o.tag){case 5:i=!1;break e;case 3:r=r.containerInfo,i=!0;break e;case 4:r=r.containerInfo,i=!0;break e}o=o.return}o=!0}if(n.tag===5||n.tag===6){e:for(var s=t,a=n,l=a;;)if(Qy(s,l),l.child!==null&&l.tag!==4)l.child.return=l,l=l.child;else{if(l===a)break e;for(;l.sibling===null;){if(l.return===null||l.return===a)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}i?(s=r,a=n.stateNode,s.nodeType===8?s.parentNode.removeChild(a):s.removeChild(a)):r.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){r=n.stateNode.containerInfo,i=!0,n.child.return=n,n=n.child;continue}}else if(Qy(t,n),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.tag===4&&(o=!1)}n.sibling.return=n.return,n=n.sibling}}function ud(t,e){switch(e.tag){case 0:case 11:case 14:case 15:case 22:var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do(o.tag&3)===3&&(t=o.destroy,o.destroy=void 0,t!==void 0&&t()),o=o.next;while(o!==n)}return;case 1:return;case 5:if(n=e.stateNode,n!=null){o=e.memoizedProps;var r=t!==null?t.memoizedProps:o;t=e.type;var i=e.updateQueue;if(e.updateQueue=null,i!==null){for(n[ia]=o,t==="input"&&o.type==="radio"&&o.name!=null&&Lh(n,o),Qc(t,r),e=Qc(t,o),r=0;r<i.length;r+=2){var s=i[r],a=i[r+1];s==="style"?Jh(n,a):s==="dangerouslySetInnerHTML"?Uh(n,a):s==="children"?Wr(n,a):Mc(n,s,a,e)}switch(t){case"input":_c(n,o);break;case"textarea":Hh(n,o);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,i=o.value,i!=null?Io(n,!!o.multiple,i,!1):t!==!!o.multiple&&(o.defaultValue!=null?Io(n,!!o.multiple,o.defaultValue,!0):Io(n,!!o.multiple,o.multiple?[]:"",!1))}}}return;case 6:if(e.stateNode===null)throw Error(A(162));e.stateNode.nodeValue=e.memoizedProps;return;case 3:n=e.stateNode,n.hydrate&&(n.hydrate=!1,ag(n.containerInfo));return;case 12:return;case 13:e.memoizedState!==null&&(hd=je(),Gy(e.child,!0)),n0(e);return;case 19:n0(e);return;case 17:return;case 23:case 24:Gy(e,e.memoizedState!==null);return}throw Error(A(163))}function n0(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new A$),e.forEach(function(o){var r=V$.bind(null,t,o);n.has(o)||(n.add(o),o.then(r,r))})}}function M$(t,e){return t!==null&&(t=t.memoizedState,t===null||t.dehydrated!==null)?(e=e.memoizedState,e!==null&&e.dehydrated===null):!1}var T$=Math.ceil,Na=Gn.ReactCurrentDispatcher,dd=Gn.ReactCurrentOwner,z=0,Be=null,fe=null,Ie=0,ao=0,md=wn(0),Ne=0,Da=null,nr=0,Di=0,or=0,fd=0,pd=null,hd=0,gd=1/0;function rr(){gd=je()+500}var T=null,Aa=!1,yd=null,Dt=null,$n=!1,Ai=null,Ri=90,wd=[],bd=[],Vt=null,Oi=0,vd=null,Ra=-1,Ut=0,Oa=0,Mi=null,Ma=!1;function Qe(){return z&48?je():Ra!==-1?Ra:Ra=je()}function Cn(t){if(t=t.mode,!(t&2))return 1;if(!(t&4))return Qo()===99?1:2;if(Ut===0&&(Ut=nr),v$.transition!==0){Oa!==0&&(Oa=pd!==null?pd.pendingLanes:0),t=Ut;var e=4186112&~Oa;return e&=-e,e===0&&(t=4186112&~t,e=t&-t,e===0&&(e=8192)),e}return t=Qo(),z&4&&t===98?t=Ws(12,Ut):(t=kk(t),t=Ws(t,Ut)),t}function En(t,e,n){if(50<Oi)throw Oi=0,vd=null,Error(A(185));if(t=Ta(t,e),t===null)return null;qs(t,e,n),t===Be&&(or|=e,Ne===4&&ir(t,Ie));var o=Qo();e===1?z&8&&!(z&48)?Sd(t):(ct(t,n),z===0&&(rr(),$t())):(!(z&4)||o!==98&&o!==99||(Vt===null?Vt=new Set([t]):Vt.add(t)),ct(t,n)),pd=t}function Ta(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}function ct(t,e){for(var n=t.callbackNode,o=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,s=t.pendingLanes;0<s;){var a=31-hn(s),l=1<<a,c=i[a];if(c===-1){if(!(l&o)||l&r){c=e,Ho(l);var u=Z;i[a]=10<=u?c+250:6<=u?c+5e3:-1}}else c<=e&&(t.expiredLanes|=l);s&=~l}if(o=ri(t,t===Be?Ie:0),e=Z,o===0)n!==null&&(n!==zu&&Iu(n),t.callbackNode=null,t.callbackPriority=0);else{if(n!==null){if(t.callbackPriority===e)return;n!==zu&&Iu(n)}e===15?(n=Sd.bind(null,t),Ft===null?(Ft=[n],ua=Pu(ca,ay)):Ft.push(n),n=zu):e===14?n=hi(99,Sd.bind(null,t)):(n=$k(e),n=hi(n,o0.bind(null,t))),t.callbackPriority=e,t.callbackNode=n}}function o0(t){if(Ra=-1,Oa=Ut=0,z&48)throw Error(A(327));var e=t.callbackNode;if(Nn()&&t.callbackNode!==e)return null;var n=ri(t,t===Be?Ie:0);if(n===0)return null;var o=n,r=z;z|=16;var i=a0();(Be!==t||Ie!==o)&&(rr(),sr(t,o));do try{I$();break}catch(a){s0(t,a)}while(1);if(Hu(),Na.current=i,z=r,fe!==null?o=0:(Be=null,Ie=0,o=Ne),nr&or)sr(t,0);else if(o!==0){if(o===2&&(z|=64,t.hydrate&&(t.hydrate=!1,Ou(t.containerInfo)),n=pg(t),n!==0&&(o=Ti(t,n))),o===1)throw e=Da,sr(t,0),ir(t,n),ct(t,je()),e;switch(t.finishedWork=t.current.alternate,t.finishedLanes=n,o){case 0:case 1:throw Error(A(345));case 2:lo(t);break;case 3:if(ir(t,n),(n&62914560)===n&&(o=hd+500-je(),10<o)){if(ri(t,0)!==0)break;if(r=t.suspendedLanes,(r&n)!==n){Qe(),t.pingedLanes|=t.suspendedLanes&r;break}t.timeoutHandle=Kg(lo.bind(null,t),o);break}lo(t);break;case 4:if(ir(t,n),(n&4186112)===n)break;for(o=t.eventTimes,r=-1;0<n;){var s=31-hn(n);i=1<<s,s=o[s],s>r&&(r=s),n&=~i}if(n=r,n=je()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*T$(n/1960))-n,10<n){t.timeoutHandle=Kg(lo.bind(null,t),n);break}lo(t);break;case 5:lo(t);break;default:throw Error(A(329))}}return ct(t,je()),t.callbackNode===e?o0.bind(null,t):null}function ir(t,e){for(e&=~fd,e&=~or,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-hn(e),o=1<<n;t[n]=-1,e&=~o}}function Sd(t){if(z&48)throw Error(A(327));if(Nn(),t===Be&&t.expiredLanes&Ie){var e=Ie,n=Ti(t,e);nr&or&&(e=ri(t,e),n=Ti(t,e))}else e=ri(t,0),n=Ti(t,e);if(t.tag!==0&&n===2&&(z|=64,t.hydrate&&(t.hydrate=!1,Ou(t.containerInfo)),e=pg(t),e!==0&&(n=Ti(t,e))),n===1)throw n=Da,sr(t,0),ir(t,e),ct(t,je()),n;return t.finishedWork=t.current.alternate,t.finishedLanes=e,lo(t),ct(t,je()),null}function j$(){if(Vt!==null){var t=Vt;Vt=null,t.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,ct(e,je())})}$t()}function r0(t,e){var n=z;z|=1;try{return t(e)}finally{z=n,z===0&&(rr(),$t())}}function i0(t,e){var n=z;z&=-2,z|=8;try{return t(e)}finally{z=n,z===0&&(rr(),$t())}}function ja(t,e){re(md,ao),ao|=e,nr|=e}function xd(){ao=md.current,te(md)}function sr(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,p$(n)),fe!==null)for(n=fe.return;n!==null;){var o=n;switch(o.tag){case 1:o=o.type.childContextTypes,o!=null&&aa();break;case 3:er(),te(_e),te(Te),Wu();break;case 5:Ju(o);break;case 4:er();break;case 13:te(ie);break;case 19:te(ie);break;case 10:Bu(o);break;case 23:case 24:xd()}n=n.return}Be=t,fe=An(t.current,null),Ie=ao=nr=e,Ne=0,Da=null,fd=or=Di=0}function s0(t,e){do{var n=fe;try{if(Hu(),Si.current=Ca,Sa){for(var o=ae.memoizedState;o!==null;){var r=o.queue;r!==null&&(r.pending=null),o=o.next}Sa=!1}if(xi=0,Ee=Pe=ae=null,ki=!1,dd.current=null,n===null||n.return===null){Ne=1,Da=e,fe=null;break}e:{var i=t,s=n.return,a=n,l=e;if(e=Ie,a.flags|=2048,a.firstEffect=a.lastEffect=null,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l;if(!(a.mode&2)){var u=a.alternate;u?(a.updateQueue=u.updateQueue,a.memoizedState=u.memoizedState,a.lanes=u.lanes):(a.updateQueue=null,a.memoizedState=null)}var m=(ie.current&1)!==0,d=s;do{var p;if(p=d.tag===13){var f=d.memoizedState;if(f!==null)p=f.dehydrated!==null;else{var y=d.memoizedProps;p=y.fallback===void 0?!1:y.unstable_avoidThisFallback!==!0?!0:!m}}if(p){var h=d.updateQueue;if(h===null){var g=new Set;g.add(c),d.updateQueue=g}else h.add(c);if(!(d.mode&2)){if(d.flags|=64,a.flags|=16384,a.flags&=-2981,a.tag===1)if(a.alternate===null)a.tag=17;else{var b=Sn(-1,1);b.tag=2,xn(a,b)}a.lanes|=1;break e}l=void 0,a=e;var v=i.pingCache;if(v===null?(v=i.pingCache=new D$,l=new Set,v.set(c,l)):(l=v.get(c),l===void 0&&(l=new Set,v.set(c,l))),!l.has(a)){l.add(a);var S=B$.bind(null,i,c,a);c.then(S,S)}d.flags|=4096,d.lanes=e;break e}d=d.return}while(d!==null);l=Error((Po(a.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
129
129
|
|
|
130
|
-
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Ne!==5&&(Ne=2),l=rd(l,a),d=s;do{switch(d.tag){case 3:i=l,d.flags|=4096,e&=-e,d.lanes|=e;var C=Ky(d,i,e);uy(d,C);break e;case 1:i=l;var x=d.type,$=d.stateNode;if(!(d.flags&64)&&(typeof x.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(At===null||!At.has($)))){d.flags|=4096,e&=-e,d.lanes|=e;var O=Wy(d,i,e);uy(d,O);break e}}d=d.return}while(d!==null)}c0(n)}catch(E){e=E,fe===n&&n!==null&&(fe=n=n.return);continue}break}while(1)}function a0(){var t=Na.current;return Na.current=Ca,t===null?Ca:t}function Ti(t,e){var n=z;z|=16;var o=a0();Be===t&&Ie===e||sr(t,e);do try{j$();break}catch(r){s0(t,r)}while(1);if(zu(),z=n,Na.current=o,fe!==null)throw Error(R(261));return Be=null,Ie=0,Ne}function j$(){for(;fe!==null;)l0(fe)}function P$(){for(;fe!==null&&!g$();)l0(fe)}function l0(t){var e=m0(t.alternate,t,ao);t.memoizedProps=t.pendingProps,e===null?c0(t):fe=e,cd.current=null}function c0(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&2048){if(n=E$(e),n!==null){n.flags&=2047,fe=n;return}t!==null&&(t.firstEffect=t.lastEffect=null,t.flags|=2048)}else{if(n=C$(n,e,ao),n!==null){fe=n;return}if(n=e,n.tag!==24&&n.tag!==23||n.memoizedState===null||ao&1073741824||!(n.mode&4)){for(var o=0,r=n.child;r!==null;)o|=r.lanes|r.childLanes,r=r.sibling;n.childLanes=o}t!==null&&!(t.flags&2048)&&(t.firstEffect===null&&(t.firstEffect=e.firstEffect),e.lastEffect!==null&&(t.lastEffect!==null&&(t.lastEffect.nextEffect=e.firstEffect),t.lastEffect=e.lastEffect),1<e.flags&&(t.lastEffect!==null?t.lastEffect.nextEffect=e:t.firstEffect=e,t.lastEffect=e))}if(e=e.sibling,e!==null){fe=e;return}fe=e=t}while(e!==null);Ne===0&&(Ne=5)}function lo(t){var e=Qo();return oo(99,I$.bind(null,t,e)),null}function I$(t,e){do Nn();while(Ri!==null);if(z&48)throw Error(R(327));var n=t.finishedWork;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(R(177));t.callbackNode=null;var o=n.lanes|n.childLanes,r=o,i=t.pendingLanes&~r;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=r,t.mutableReadLanes&=r,t.entangledLanes&=r,r=t.entanglements;for(var s=t.eventTimes,a=t.expirationTimes;0<i;){var l=31-hn(i),c=1<<l;r[l]=0,s[l]=-1,a[l]=-1,i&=~c}if(Vt!==null&&!(o&24)&&Vt.has(t)&&Vt.delete(t),t===Be&&(fe=Be=null,Ie=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,o!==null){if(r=z,z|=32,cd.current=null,Eu=Gs,s=jg(),xu(s)){if("selectionStart"in s)a={start:s.selectionStart,end:s.selectionEnd};else e:if(a=(a=s.ownerDocument)&&a.defaultView||window,(c=a.getSelection&&a.getSelection())&&c.rangeCount!==0){a=c.anchorNode,i=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{a.nodeType,l.nodeType}catch{a=null;break e}var u=0,m=-1,d=-1,p=0,f=0,y=s,h=null;t:for(;;){for(var g;y!==a||i!==0&&y.nodeType!==3||(m=u+i),y!==l||c!==0&&y.nodeType!==3||(d=u+c),y.nodeType===3&&(u+=y.nodeValue.length),(g=y.firstChild)!==null;)h=y,y=g;for(;;){if(y===s)break t;if(h===a&&++p===i&&(m=u),h===l&&++f===c&&(d=u),(g=y.nextSibling)!==null)break;y=h,h=y.parentNode}y=g}a=m===-1||d===-1?null:{start:m,end:d}}else a=null;a=a||{start:0,end:0}}else a=null;Nu={focusedElem:s,selectionRange:a},Gs=!1,Mi=null,Ma=!1,T=o;do try{L$()}catch(E){if(T===null)throw Error(R(330));An(T,E),T=T.nextEffect}while(T!==null);Mi=null,T=o;do try{for(s=t;T!==null;){var S=T.flags;if(S&16&&Wr(T.stateNode,""),S&128){var b=T.alternate;if(b!==null){var v=b.ref;v!==null&&(typeof v=="function"?v(null):v.current=null)}}switch(S&1038){case 2:e0(T),T.flags&=-3;break;case 6:e0(T),T.flags&=-3,ld(T.alternate,T);break;case 1024:T.flags&=-1025;break;case 1028:T.flags&=-1025,ld(T.alternate,T);break;case 4:ld(T.alternate,T);break;case 8:a=T,t0(s,a);var C=a.alternate;Zy(a),C!==null&&Zy(C)}T=T.nextEffect}}catch(E){if(T===null)throw Error(R(330));An(T,E),T=T.nextEffect}while(T!==null);if(v=Nu,b=jg(),S=v.focusedElem,s=v.selectionRange,b!==S&&S&&S.ownerDocument&&Tg(S.ownerDocument.documentElement,S)){for(s!==null&&xu(S)&&(b=s.start,v=s.end,v===void 0&&(v=b),"selectionStart"in S?(S.selectionStart=b,S.selectionEnd=Math.min(v,S.value.length)):(v=(b=S.ownerDocument||document)&&b.defaultView||window,v.getSelection&&(v=v.getSelection(),a=S.textContent.length,C=Math.min(s.start,a),s=s.end===void 0?C:Math.min(s.end,a),!v.extend&&C>s&&(a=s,s=C,C=a),a=Mg(S,C),i=Mg(S,s),a&&i&&(v.rangeCount!==1||v.anchorNode!==a.node||v.anchorOffset!==a.offset||v.focusNode!==i.node||v.focusOffset!==i.offset)&&(b=b.createRange(),b.setStart(a.node,a.offset),v.removeAllRanges(),C>s?(v.addRange(b),v.extend(i.node,i.offset)):(b.setEnd(i.node,i.offset),v.addRange(b)))))),b=[],v=S;v=v.parentNode;)v.nodeType===1&&b.push({element:v,left:v.scrollLeft,top:v.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<b.length;S++)v=b[S],v.element.scrollLeft=v.left,v.element.scrollTop=v.top}Gs=!!Eu,Nu=Eu=null,t.current=n,T=o;do try{for(S=t;T!==null;){var x=T.flags;if(x&36&&O$(S,T.alternate,T),x&128){b=void 0;var $=T.ref;if($!==null){var O=T.stateNode;switch(T.tag){case 5:b=O;break;default:b=O}typeof $=="function"?$(b):$.current=b}}T=T.nextEffect}}catch(E){if(T===null)throw Error(R(330));An(T,E),T=T.nextEffect}while(T!==null);T=null,w$(),z=r}else t.current=n;if($n)$n=!1,Ri=t,Oi=e;else for(T=o;T!==null;)e=T.nextEffect,T.nextEffect=null,T.flags&8&&(x=T,x.sibling=null,x.stateNode=null),T=e;if(o=t.pendingLanes,o===0&&(At=null),o===1?t===wd?Di++:(Di=0,wd=t):Di=0,n=n.stateNode,no&&typeof no.onCommitFiberRoot=="function")try{no.onCommitFiberRoot(Mu,n,void 0,(n.current.flags&64)===64)}catch{}if(lt(t,je()),Ra)throw Ra=!1,t=hd,hd=null,t;return z&8||$t(),null}function L$(){for(;T!==null;){var t=T.alternate;Ma||Mi===null||(T.flags&8?eg(T,Mi)&&(Ma=!0):T.tag===13&&D$(t,T)&&eg(T,Mi)&&(Ma=!0));var e=T.flags;e&256&&R$(t,T),!(e&512)||$n||($n=!0,hi(97,function(){return Nn(),null})),T=T.nextEffect}}function Nn(){if(Oi!==90){var t=97<Oi?97:Oi;return Oi=90,oo(t,F$)}return!1}function z$(t,e){gd.push(e,t),$n||($n=!0,hi(97,function(){return Nn(),null}))}function u0(t,e){yd.push(e,t),$n||($n=!0,hi(97,function(){return Nn(),null}))}function F$(){if(Ri===null)return!1;var t=Ri;if(Ri=null,z&48)throw Error(R(331));var e=z;z|=32;var n=yd;yd=[];for(var o=0;o<n.length;o+=2){var r=n[o],i=n[o+1],s=r.destroy;if(r.destroy=void 0,typeof s=="function")try{s()}catch(l){if(i===null)throw Error(R(330));An(i,l)}}for(n=gd,gd=[],o=0;o<n.length;o+=2){r=n[o],i=n[o+1];try{var a=r.create;r.destroy=a()}catch(l){if(i===null)throw Error(R(330));An(i,l)}}for(a=t.current.firstEffect;a!==null;)t=a.nextEffect,a.nextEffect=null,a.flags&8&&(a.sibling=null,a.stateNode=null),a=t;return z=e,$t(),!0}function d0(t,e,n){e=rd(n,e),e=Ky(t,e,1),xn(t,e),e=Qe(),t=Ta(t,1),t!==null&&(qs(t,1,e),lt(t,e))}function An(t,e){if(t.tag===3)d0(t,t,e);else for(var n=t.return;n!==null;){if(n.tag===3){d0(n,t,e);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(At===null||!At.has(o))){t=rd(e,t);var r=Wy(n,t,1);if(xn(n,r),r=Qe(),n=Ta(n,1),n!==null)qs(n,1,r),lt(n,r);else if(typeof o.componentDidCatch=="function"&&(At===null||!At.has(o)))try{o.componentDidCatch(e,t)}catch{}break}}n=n.return}}function H$(t,e,n){var o=t.pingCache;o!==null&&o.delete(e),e=Qe(),t.pingedLanes|=t.suspendedLanes&n,Be===t&&(Ie&n)===n&&(Ne===4||Ne===3&&(Ie&62914560)===Ie&&500>je()-fd?sr(t,0):dd|=n),lt(t,e)}function B$(t,e){var n=t.stateNode;n!==null&&n.delete(e),e=0,e===0&&(e=t.mode,e&2?e&4?(Ut===0&&(Ut=nr),e=Bo(62914560&~Ut),e===0&&(e=4194304)):e=Qo()===99?1:2:e=1),n=Qe(),t=Ta(t,e),t!==null&&(qs(t,e,n),lt(t,n))}var m0;m0=function(t,e,n){var o=e.lanes;if(t!==null)if(t.memoizedProps!==e.pendingProps||_e.current)wt=!0;else if(n&o)wt=!!(t.flags&16384);else{switch(wt=!1,e.tag){case 3:Ly(e),Ju();break;case 5:wy(e);break;case 1:Je(e.type)&&la(e);break;case 4:Vu(e,e.stateNode.containerInfo);break;case 10:o=e.memoizedProps.value;var r=e.type._context;re(da,r._currentValue),r._currentValue=o;break;case 13:if(e.memoizedState!==null)return n&e.child.childLanes?zy(t,e,n):(re(ie,ie.current&1),e=Bt(t,e,n),e!==null?e.sibling:null);re(ie,ie.current&1);break;case 19:if(o=(n&e.childLanes)!==0,t.flags&64){if(o)return Uy(t,e,n);e.flags|=64}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),re(ie,ie.current),o)break;return null;case 23:case 24:return e.lanes=0,Xu(t,e,n)}return Bt(t,e,n)}else wt=!1;switch(e.lanes=0,e.tag){case 2:if(o=e.type,t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),t=e.pendingProps,r=Go(e,Te.current),Xo(e,n),r=Wu(null,e,o,t,r,n),e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,Je(o)){var i=!0;la(e)}else i=!1;e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,Hu(e);var s=o.getDerivedStateFromProps;typeof s=="function"&&pa(e,o,s,t),r.updater=ha,e.stateNode=r,r._reactInternals=e,Bu(e,o,t,n),e=td(null,e,o,!0,i,n)}else e.tag=0,Ke(null,e,r,n),e=e.child;return e;case 16:r=e.elementType;e:{switch(t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=U$(r),t=yt(r,t),i){case 0:e=ed(null,e,r,t,n);break e;case 1:e=Iy(null,e,r,t,n);break e;case 11:e=My(null,e,r,t,n);break e;case 14:e=Ty(null,e,r,yt(r.type,t),o,n);break e}throw Error(R(306,r,""))}return e;case 0:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:yt(o,r),ed(t,e,o,r,n);case 1:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:yt(o,r),Iy(t,e,o,r,n);case 3:if(Ly(e),o=e.updateQueue,t===null||o===null)throw Error(R(282));if(o=e.pendingProps,r=e.memoizedState,r=r!==null?r.element:null,cy(t,e),gi(e,o,null,n),o=e.memoizedState.element,o===r)Ju(),e=Bt(t,e,n);else{if(r=e.stateNode,(i=r.hydrate)&&(kn=Yo(e.stateNode.containerInfo.firstChild),Ht=e,i=Et=!0),i){if(t=r.mutableSourceEagerHydrationData,t!=null)for(r=0;r<t.length;r+=2)i=t[r],i._workInProgressVersionPrimary=t[r+1],tr.push(i);for(n=yy(e,null,o,n),e.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else Ke(t,e,o,n),Ju();e=e.child}return e;case 5:return wy(e),t===null&&_u(e),o=e.type,r=e.pendingProps,i=t!==null?t.memoizedProps:null,s=r.children,Au(o,r)?s=null:i!==null&&Au(o,i)&&(e.flags|=16),Py(t,e),Ke(t,e,s,n),e.child;case 6:return t===null&&_u(e),null;case 13:return zy(t,e,n);case 4:return Vu(e,e.stateNode.containerInfo),o=e.pendingProps,t===null?e.child=wa(e,null,o,n):Ke(t,e,o,n),e.child;case 11:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:yt(o,r),My(t,e,o,r,n);case 7:return Ke(t,e,e.pendingProps,n),e.child;case 8:return Ke(t,e,e.pendingProps.children,n),e.child;case 12:return Ke(t,e,e.pendingProps.children,n),e.child;case 10:e:{o=e.type._context,r=e.pendingProps,s=e.memoizedProps,i=r.value;var a=e.type._context;if(re(da,a._currentValue),a._currentValue=i,s!==null)if(a=s.value,i=it(a,i)?0:(typeof o._calculateChangedBits=="function"?o._calculateChangedBits(a,i):1073741823)|0,i===0){if(s.children===r.children&&!_e.current){e=Bt(t,e,n);break e}}else for(a=e.child,a!==null&&(a.return=e);a!==null;){var l=a.dependencies;if(l!==null){s=a.child;for(var c=l.firstContext;c!==null;){if(c.context===o&&c.observedBits&i){a.tag===1&&(c=vn(-1,n&-n),c.tag=2,xn(a,c)),a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),ly(a.return,n),l.lanes|=n;break}c=c.next}}else s=a.tag===10&&a.type===e.type?null:a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}Ke(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,i=e.pendingProps,o=i.children,Xo(e,n),r=st(r,i.unstable_observedBits),o=o(r),e.flags|=1,Ke(t,e,o,n),e.child;case 14:return r=e.type,i=yt(r,e.pendingProps),i=yt(r.type,i),Ty(t,e,r,i,o,n);case 15:return jy(t,e,e.type,e.pendingProps,o,n);case 17:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:yt(o,r),t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),e.tag=1,Je(o)?(t=!0,la(e)):t=!1,Xo(e,n),py(e,o,r),Bu(e,o,r,n),td(null,e,o,!0,t,n);case 19:return Uy(t,e,n);case 23:return Xu(t,e,n);case 24:return Xu(t,e,n)}throw Error(R(156,e.tag))};function V$(t,e,n,o){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=o,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function ct(t,e,n,o){return new V$(t,e,n,o)}function vd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function U$(t){if(typeof t=="function")return vd(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Is)return 11;if(t===zs)return 14}return 2}function Rn(t,e){var n=t.alternate;return n===null?(n=ct(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.nextEffect=null,n.firstEffect=null,n.lastEffect=null),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 Pa(t,e,n,o,r,i){var s=2;if(o=t,typeof t=="function")vd(t)&&(s=1);else if(typeof t=="string")s=5;else e:switch(t){case un:return ar(n.children,r,i,e);case Mh:s=8,r|=16;break;case Dc:s=8,r|=1;break;case _r:return t=ct(12,n,e,r|8),t.elementType=_r,t.type=_r,t.lanes=i,t;case Jr:return t=ct(13,n,e,r),t.type=Jr,t.elementType=Jr,t.lanes=i,t;case Ls:return t=ct(19,n,e,r),t.elementType=Ls,t.lanes=i,t;case Lc:return xd(n,r,i,e);case zc:return t=ct(24,n,e,r),t.elementType=zc,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Mc:s=10;break e;case Tc:s=9;break e;case Is:s=11;break e;case zs:s=14;break e;case jc:s=16,o=null;break e;case Pc:s=22;break e}throw Error(R(130,t==null?t:typeof t,""))}return e=ct(s,n,e,r),e.elementType=t,e.type=o,e.lanes=i,e}function ar(t,e,n,o){return t=ct(7,t,o,e),t.lanes=n,t}function xd(t,e,n,o){return t=ct(23,t,o,e),t.elementType=Lc,t.lanes=n,t}function kd(t,e,n){return t=ct(6,t,null,e),t.lanes=n,t}function $d(t,e,n){return e=ct(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function _$(t,e,n){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=uu(0),this.expirationTimes=uu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uu(0),this.mutableSourceEagerHydrationData=null}function J$(t,e,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Qn,key:o==null?null:""+o,children:t,containerInfo:e,implementation:n}}function Ia(t,e,n,o){var r=e.current,i=Qe(),s=Cn(r);e:if(n){n=n._reactInternals;t:{if(Xn(n)!==n||n.tag!==1)throw Error(R(170));var a=n;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(Je(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(a!==null);throw Error(R(171))}if(n.tag===1){var l=n.type;if(Je(l)){n=Zg(n,l,a);break e}}n=a}else n=Sn;return e.context===null?e.context=n:e.pendingContext=n,e=vn(i,s),e.payload={element:t},o=o===void 0?null:o,o!==null&&(e.callback=o),xn(r,e),En(r,s,i),s}function Cd(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 f0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Ed(t,e){f0(t,e),(t=t.alternate)&&f0(t,e)}function Y$(){return null}function Nd(t,e,n){var o=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new _$(t,e,n!=null&&n.hydrate===!0),e=ct(3,null,null,e===2?7:e===1?3:0),n.current=e,e.stateNode=n,Hu(e),t[Ko]=n.current,Bg(t.nodeType===8?t.parentNode:t),o)for(t=0;t<o.length;t++){e=o[t];var r=e._getVersion;r=r(e._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[e,r]:n.mutableSourceEagerHydrationData.push(e,r)}this._internalRoot=n}Nd.prototype.render=function(t){Ia(t,this._internalRoot,null,null)},Nd.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;Ia(null,t,null,function(){e[Ko]=null})};function ji(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function K$(t,e){if(e||(e=t?t.nodeType===9?t.documentElement:t.firstChild:null,e=!(!e||e.nodeType!==1||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new Nd(t,0,e?{hydrate:!0}:void 0)}function La(t,e,n,o,r){var i=n._reactRootContainer;if(i){var s=i._internalRoot;if(typeof r=="function"){var a=r;r=function(){var c=Cd(s);a.call(c)}}Ia(e,s,t,r)}else{if(i=n._reactRootContainer=K$(n,o),s=i._internalRoot,typeof r=="function"){var l=r;r=function(){var c=Cd(s);l.call(c)}}i0(function(){Ia(e,s,t,r)})}return Cd(s)}tg=function(t){if(t.tag===13){var e=Qe();En(t,4,e),Ed(t,4)}},ru=function(t){if(t.tag===13){var e=Qe();En(t,67108864,e),Ed(t,67108864)}},ng=function(t){if(t.tag===13){var e=Qe(),n=Cn(t);En(t,n,e),Ed(t,n)}},og=function(t,e){return e()},Qc=function(t,e,n){switch(e){case"input":if(Vc(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 o=n[e];if(o!==t&&o.form===t.form){var r=sa(o);if(!r)throw Error(R(90));Ph(o),Vc(o,r)}}}break;case"textarea":Hh(t,n);break;case"select":e=n.value,e!=null&&Io(t,!!n.multiple,e,!1)}},Zc=r0,qh=function(t,e,n,o,r){var i=z;z|=4;try{return oo(98,t.bind(null,e,n,o,r))}finally{z=i,z===0&&(rr(),$t())}},Xc=function(){!(z&49)&&(T$(),Nn())},Gh=function(t,e){var n=z;z|=2;try{return t(e)}finally{z=n,z===0&&(rr(),$t())}};function p0(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ji(e))throw Error(R(200));return J$(t,e,null,n)}var W$={Events:[pi,Wo,sa,Kh,Wh,Nn,{current:!1}]},Pi={findFiberByHostInstance:eo,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},q$={bundleType:Pi.bundleType,version:Pi.version,rendererPackageName:Pi.rendererPackageName,rendererConfig:Pi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Gn.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Xh(t),t===null?null:t.stateNode},findFiberByHostInstance:Pi.findFiberByHostInstance||Y$,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var za=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!za.isDisabled&&za.supportsFiber)try{Mu=za.inject(q$),no=za}catch{}}rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W$,rt.createPortal=p0,rt.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(R(188)):Error(R(268,Object.keys(t)));return t=Xh(e),t=t===null?null:t.stateNode,t},rt.flushSync=function(t,e){var n=z;if(n&48)return t(e);z|=1;try{if(t)return oo(99,t.bind(null,e))}finally{z=n,$t()}},rt.hydrate=function(t,e,n){if(!ji(e))throw Error(R(200));return La(null,t,e,!0,n)},rt.render=function(t,e,n){if(!ji(e))throw Error(R(200));return La(null,t,e,!1,n)},rt.unmountComponentAtNode=function(t){if(!ji(t))throw Error(R(40));return t._reactRootContainer?(i0(function(){La(null,null,t,!1,function(){t._reactRootContainer=null,t[Ko]=null})}),!0):!1},rt.unstable_batchedUpdates=r0,rt.unstable_createPortal=function(t,e){return p0(t,e,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},rt.unstable_renderSubtreeIntoContainer=function(t,e,n,o){if(!ji(n))throw Error(R(200));if(t==null||t._reactInternals===void 0)throw Error(R(38));return La(t,e,n,!1,o)},rt.version="17.0.2";function h0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(h0)}catch(t){console.error(t)}}h0(),Ch.exports=rt;var Ad=Ch.exports;const g0=Ze(Ad);function G$(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var y0={exports:{}},Rd={};/**
|
|
130
|
+
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Ne!==5&&(Ne=2),l=sd(l,a),d=s;do{switch(d.tag){case 3:i=l,d.flags|=4096,e&=-e,d.lanes|=e;var C=Ky(d,i,e);uy(d,C);break e;case 1:i=l;var x=d.type,$=d.stateNode;if(!(d.flags&64)&&(typeof x.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(Dt===null||!Dt.has($)))){d.flags|=4096,e&=-e,d.lanes|=e;var R=Wy(d,i,e);uy(d,R);break e}}d=d.return}while(d!==null)}c0(n)}catch(E){e=E,fe===n&&n!==null&&(fe=n=n.return);continue}break}while(1)}function a0(){var t=Na.current;return Na.current=Ca,t===null?Ca:t}function Ti(t,e){var n=z;z|=16;var o=a0();Be===t&&Ie===e||sr(t,e);do try{P$();break}catch(r){s0(t,r)}while(1);if(Hu(),z=n,Na.current=o,fe!==null)throw Error(A(261));return Be=null,Ie=0,Ne}function P$(){for(;fe!==null;)l0(fe)}function I$(){for(;fe!==null&&!y$();)l0(fe)}function l0(t){var e=m0(t.alternate,t,ao);t.memoizedProps=t.pendingProps,e===null?c0(t):fe=e,dd.current=null}function c0(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&2048){if(n=N$(e),n!==null){n.flags&=2047,fe=n;return}t!==null&&(t.firstEffect=t.lastEffect=null,t.flags|=2048)}else{if(n=E$(n,e,ao),n!==null){fe=n;return}if(n=e,n.tag!==24&&n.tag!==23||n.memoizedState===null||ao&1073741824||!(n.mode&4)){for(var o=0,r=n.child;r!==null;)o|=r.lanes|r.childLanes,r=r.sibling;n.childLanes=o}t!==null&&!(t.flags&2048)&&(t.firstEffect===null&&(t.firstEffect=e.firstEffect),e.lastEffect!==null&&(t.lastEffect!==null&&(t.lastEffect.nextEffect=e.firstEffect),t.lastEffect=e.lastEffect),1<e.flags&&(t.lastEffect!==null?t.lastEffect.nextEffect=e:t.firstEffect=e,t.lastEffect=e))}if(e=e.sibling,e!==null){fe=e;return}fe=e=t}while(e!==null);Ne===0&&(Ne=5)}function lo(t){var e=Qo();return oo(99,L$.bind(null,t,e)),null}function L$(t,e){do Nn();while(Ai!==null);if(z&48)throw Error(A(327));var n=t.finishedWork;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(A(177));t.callbackNode=null;var o=n.lanes|n.childLanes,r=o,i=t.pendingLanes&~r;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=r,t.mutableReadLanes&=r,t.entangledLanes&=r,r=t.entanglements;for(var s=t.eventTimes,a=t.expirationTimes;0<i;){var l=31-hn(i),c=1<<l;r[l]=0,s[l]=-1,a[l]=-1,i&=~c}if(Vt!==null&&!(o&24)&&Vt.has(t)&&Vt.delete(t),t===Be&&(fe=Be=null,Ie=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,o!==null){if(r=z,z|=32,dd.current=null,Du=Gs,s=jg(),$u(s)){if("selectionStart"in s)a={start:s.selectionStart,end:s.selectionEnd};else e:if(a=(a=s.ownerDocument)&&a.defaultView||window,(c=a.getSelection&&a.getSelection())&&c.rangeCount!==0){a=c.anchorNode,i=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{a.nodeType,l.nodeType}catch{a=null;break e}var u=0,m=-1,d=-1,p=0,f=0,y=s,h=null;t:for(;;){for(var g;y!==a||i!==0&&y.nodeType!==3||(m=u+i),y!==l||c!==0&&y.nodeType!==3||(d=u+c),y.nodeType===3&&(u+=y.nodeValue.length),(g=y.firstChild)!==null;)h=y,y=g;for(;;){if(y===s)break t;if(h===a&&++p===i&&(m=u),h===l&&++f===c&&(d=u),(g=y.nextSibling)!==null)break;y=h,h=y.parentNode}y=g}a=m===-1||d===-1?null:{start:m,end:d}}else a=null;a=a||{start:0,end:0}}else a=null;Au={focusedElem:s,selectionRange:a},Gs=!1,Mi=null,Ma=!1,T=o;do try{z$()}catch(E){if(T===null)throw Error(A(330));Dn(T,E),T=T.nextEffect}while(T!==null);Mi=null,T=o;do try{for(s=t;T!==null;){var b=T.flags;if(b&16&&Wr(T.stateNode,""),b&128){var v=T.alternate;if(v!==null){var S=v.ref;S!==null&&(typeof S=="function"?S(null):S.current=null)}}switch(b&1038){case 2:e0(T),T.flags&=-3;break;case 6:e0(T),T.flags&=-3,ud(T.alternate,T);break;case 1024:T.flags&=-1025;break;case 1028:T.flags&=-1025,ud(T.alternate,T);break;case 4:ud(T.alternate,T);break;case 8:a=T,t0(s,a);var C=a.alternate;Zy(a),C!==null&&Zy(C)}T=T.nextEffect}}catch(E){if(T===null)throw Error(A(330));Dn(T,E),T=T.nextEffect}while(T!==null);if(S=Au,v=jg(),b=S.focusedElem,s=S.selectionRange,v!==b&&b&&b.ownerDocument&&Tg(b.ownerDocument.documentElement,b)){for(s!==null&&$u(b)&&(v=s.start,S=s.end,S===void 0&&(S=v),"selectionStart"in b?(b.selectionStart=v,b.selectionEnd=Math.min(S,b.value.length)):(S=(v=b.ownerDocument||document)&&v.defaultView||window,S.getSelection&&(S=S.getSelection(),a=b.textContent.length,C=Math.min(s.start,a),s=s.end===void 0?C:Math.min(s.end,a),!S.extend&&C>s&&(a=s,s=C,C=a),a=Mg(b,C),i=Mg(b,s),a&&i&&(S.rangeCount!==1||S.anchorNode!==a.node||S.anchorOffset!==a.offset||S.focusNode!==i.node||S.focusOffset!==i.offset)&&(v=v.createRange(),v.setStart(a.node,a.offset),S.removeAllRanges(),C>s?(S.addRange(v),S.extend(i.node,i.offset)):(v.setEnd(i.node,i.offset),S.addRange(v)))))),v=[],S=b;S=S.parentNode;)S.nodeType===1&&v.push({element:S,left:S.scrollLeft,top:S.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<v.length;b++)S=v[b],S.element.scrollLeft=S.left,S.element.scrollTop=S.top}Gs=!!Du,Au=Du=null,t.current=n,T=o;do try{for(b=t;T!==null;){var x=T.flags;if(x&36&&O$(b,T.alternate,T),x&128){v=void 0;var $=T.ref;if($!==null){var R=T.stateNode;switch(T.tag){case 5:v=R;break;default:v=R}typeof $=="function"?$(v):$.current=v}}T=T.nextEffect}}catch(E){if(T===null)throw Error(A(330));Dn(T,E),T=T.nextEffect}while(T!==null);T=null,b$(),z=r}else t.current=n;if($n)$n=!1,Ai=t,Ri=e;else for(T=o;T!==null;)e=T.nextEffect,T.nextEffect=null,T.flags&8&&(x=T,x.sibling=null,x.stateNode=null),T=e;if(o=t.pendingLanes,o===0&&(Dt=null),o===1?t===vd?Oi++:(Oi=0,vd=t):Oi=0,n=n.stateNode,no&&typeof no.onCommitFiberRoot=="function")try{no.onCommitFiberRoot(ju,n,void 0,(n.current.flags&64)===64)}catch{}if(ct(t,je()),Aa)throw Aa=!1,t=yd,yd=null,t;return z&8||$t(),null}function z$(){for(;T!==null;){var t=T.alternate;Ma||Mi===null||(T.flags&8?eg(T,Mi)&&(Ma=!0):T.tag===13&&M$(t,T)&&eg(T,Mi)&&(Ma=!0));var e=T.flags;e&256&&R$(t,T),!(e&512)||$n||($n=!0,hi(97,function(){return Nn(),null})),T=T.nextEffect}}function Nn(){if(Ri!==90){var t=97<Ri?97:Ri;return Ri=90,oo(t,H$)}return!1}function F$(t,e){wd.push(e,t),$n||($n=!0,hi(97,function(){return Nn(),null}))}function u0(t,e){bd.push(e,t),$n||($n=!0,hi(97,function(){return Nn(),null}))}function H$(){if(Ai===null)return!1;var t=Ai;if(Ai=null,z&48)throw Error(A(331));var e=z;z|=32;var n=bd;bd=[];for(var o=0;o<n.length;o+=2){var r=n[o],i=n[o+1],s=r.destroy;if(r.destroy=void 0,typeof s=="function")try{s()}catch(l){if(i===null)throw Error(A(330));Dn(i,l)}}for(n=wd,wd=[],o=0;o<n.length;o+=2){r=n[o],i=n[o+1];try{var a=r.create;r.destroy=a()}catch(l){if(i===null)throw Error(A(330));Dn(i,l)}}for(a=t.current.firstEffect;a!==null;)t=a.nextEffect,a.nextEffect=null,a.flags&8&&(a.sibling=null,a.stateNode=null),a=t;return z=e,$t(),!0}function d0(t,e,n){e=sd(n,e),e=Ky(t,e,1),xn(t,e),e=Qe(),t=Ta(t,1),t!==null&&(qs(t,1,e),ct(t,e))}function Dn(t,e){if(t.tag===3)d0(t,t,e);else for(var n=t.return;n!==null;){if(n.tag===3){d0(n,t,e);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Dt===null||!Dt.has(o))){t=sd(e,t);var r=Wy(n,t,1);if(xn(n,r),r=Qe(),n=Ta(n,1),n!==null)qs(n,1,r),ct(n,r);else if(typeof o.componentDidCatch=="function"&&(Dt===null||!Dt.has(o)))try{o.componentDidCatch(e,t)}catch{}break}}n=n.return}}function B$(t,e,n){var o=t.pingCache;o!==null&&o.delete(e),e=Qe(),t.pingedLanes|=t.suspendedLanes&n,Be===t&&(Ie&n)===n&&(Ne===4||Ne===3&&(Ie&62914560)===Ie&&500>je()-hd?sr(t,0):fd|=n),ct(t,e)}function V$(t,e){var n=t.stateNode;n!==null&&n.delete(e),e=0,e===0&&(e=t.mode,e&2?e&4?(Ut===0&&(Ut=nr),e=Bo(62914560&~Ut),e===0&&(e=4194304)):e=Qo()===99?1:2:e=1),n=Qe(),t=Ta(t,e),t!==null&&(qs(t,e,n),ct(t,n))}var m0;m0=function(t,e,n){var o=e.lanes;if(t!==null)if(t.memoizedProps!==e.pendingProps||_e.current)wt=!0;else if(n&o)wt=!!(t.flags&16384);else{switch(wt=!1,e.tag){case 3:Ly(e),Ku();break;case 5:wy(e);break;case 1:Je(e.type)&&la(e);break;case 4:_u(e,e.stateNode.containerInfo);break;case 10:o=e.memoizedProps.value;var r=e.type._context;re(da,r._currentValue),r._currentValue=o;break;case 13:if(e.memoizedState!==null)return n&e.child.childLanes?zy(t,e,n):(re(ie,ie.current&1),e=Bt(t,e,n),e!==null?e.sibling:null);re(ie,ie.current&1);break;case 19:if(o=(n&e.childLanes)!==0,t.flags&64){if(o)return Uy(t,e,n);e.flags|=64}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),re(ie,ie.current),o)break;return null;case 23:case 24:return e.lanes=0,td(t,e,n)}return Bt(t,e,n)}else wt=!1;switch(e.lanes=0,e.tag){case 2:if(o=e.type,t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),t=e.pendingProps,r=Go(e,Te.current),Xo(e,n),r=Gu(null,e,o,t,r,n),e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,Je(o)){var i=!0;la(e)}else i=!1;e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,Vu(e);var s=o.getDerivedStateFromProps;typeof s=="function"&&pa(e,o,s,t),r.updater=ha,e.stateNode=r,r._reactInternals=e,Uu(e,o,t,n),e=od(null,e,o,!0,i,n)}else e.tag=0,Ke(null,e,r,n),e=e.child;return e;case 16:r=e.elementType;e:{switch(t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=_$(r),t=yt(r,t),i){case 0:e=nd(null,e,r,t,n);break e;case 1:e=Iy(null,e,r,t,n);break e;case 11:e=My(null,e,r,t,n);break e;case 14:e=Ty(null,e,r,yt(r.type,t),o,n);break e}throw Error(A(306,r,""))}return e;case 0:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:yt(o,r),nd(t,e,o,r,n);case 1:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:yt(o,r),Iy(t,e,o,r,n);case 3:if(Ly(e),o=e.updateQueue,t===null||o===null)throw Error(A(282));if(o=e.pendingProps,r=e.memoizedState,r=r!==null?r.element:null,cy(t,e),gi(e,o,null,n),o=e.memoizedState.element,o===r)Ku(),e=Bt(t,e,n);else{if(r=e.stateNode,(i=r.hydrate)&&(kn=Yo(e.stateNode.containerInfo.firstChild),Ht=e,i=Et=!0),i){if(t=r.mutableSourceEagerHydrationData,t!=null)for(r=0;r<t.length;r+=2)i=t[r],i._workInProgressVersionPrimary=t[r+1],tr.push(i);for(n=yy(e,null,o,n),e.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else Ke(t,e,o,n),Ku();e=e.child}return e;case 5:return wy(e),t===null&&Yu(e),o=e.type,r=e.pendingProps,i=t!==null?t.memoizedProps:null,s=r.children,Ru(o,r)?s=null:i!==null&&Ru(o,i)&&(e.flags|=16),Py(t,e),Ke(t,e,s,n),e.child;case 6:return t===null&&Yu(e),null;case 13:return zy(t,e,n);case 4:return _u(e,e.stateNode.containerInfo),o=e.pendingProps,t===null?e.child=wa(e,null,o,n):Ke(t,e,o,n),e.child;case 11:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:yt(o,r),My(t,e,o,r,n);case 7:return Ke(t,e,e.pendingProps,n),e.child;case 8:return Ke(t,e,e.pendingProps.children,n),e.child;case 12:return Ke(t,e,e.pendingProps.children,n),e.child;case 10:e:{o=e.type._context,r=e.pendingProps,s=e.memoizedProps,i=r.value;var a=e.type._context;if(re(da,a._currentValue),a._currentValue=i,s!==null)if(a=s.value,i=st(a,i)?0:(typeof o._calculateChangedBits=="function"?o._calculateChangedBits(a,i):1073741823)|0,i===0){if(s.children===r.children&&!_e.current){e=Bt(t,e,n);break e}}else for(a=e.child,a!==null&&(a.return=e);a!==null;){var l=a.dependencies;if(l!==null){s=a.child;for(var c=l.firstContext;c!==null;){if(c.context===o&&c.observedBits&i){a.tag===1&&(c=Sn(-1,n&-n),c.tag=2,xn(a,c)),a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),ly(a.return,n),l.lanes|=n;break}c=c.next}}else s=a.tag===10&&a.type===e.type?null:a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}Ke(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,i=e.pendingProps,o=i.children,Xo(e,n),r=at(r,i.unstable_observedBits),o=o(r),e.flags|=1,Ke(t,e,o,n),e.child;case 14:return r=e.type,i=yt(r,e.pendingProps),i=yt(r.type,i),Ty(t,e,r,i,o,n);case 15:return jy(t,e,e.type,e.pendingProps,o,n);case 17:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:yt(o,r),t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),e.tag=1,Je(o)?(t=!0,la(e)):t=!1,Xo(e,n),py(e,o,r),Uu(e,o,r,n),od(null,e,o,!0,t,n);case 19:return Uy(t,e,n);case 23:return td(t,e,n);case 24:return td(t,e,n)}throw Error(A(156,e.tag))};function U$(t,e,n,o){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=o,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function ut(t,e,n,o){return new U$(t,e,n,o)}function kd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function _$(t){if(typeof t=="function")return kd(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Is)return 11;if(t===zs)return 14}return 2}function An(t,e){var n=t.alternate;return n===null?(n=ut(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.nextEffect=null,n.firstEffect=null,n.lastEffect=null),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 Pa(t,e,n,o,r,i){var s=2;if(o=t,typeof t=="function")kd(t)&&(s=1);else if(typeof t=="string")s=5;else e:switch(t){case un:return ar(n.children,r,i,e);case Mh:s=8,r|=16;break;case Tc:s=8,r|=1;break;case _r:return t=ut(12,n,e,r|8),t.elementType=_r,t.type=_r,t.lanes=i,t;case Jr:return t=ut(13,n,e,r),t.type=Jr,t.elementType=Jr,t.lanes=i,t;case Ls:return t=ut(19,n,e,r),t.elementType=Ls,t.lanes=i,t;case Fc:return $d(n,r,i,e);case Hc:return t=ut(24,n,e,r),t.elementType=Hc,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case jc:s=10;break e;case Pc:s=9;break e;case Is:s=11;break e;case zs:s=14;break e;case Ic:s=16,o=null;break e;case Lc:s=22;break e}throw Error(A(130,t==null?t:typeof t,""))}return e=ut(s,n,e,r),e.elementType=t,e.type=o,e.lanes=i,e}function ar(t,e,n,o){return t=ut(7,t,o,e),t.lanes=n,t}function $d(t,e,n,o){return t=ut(23,t,o,e),t.elementType=Fc,t.lanes=n,t}function Cd(t,e,n){return t=ut(6,t,null,e),t.lanes=n,t}function Ed(t,e,n){return e=ut(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function J$(t,e,n){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=mu(0),this.expirationTimes=mu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mu(0),this.mutableSourceEagerHydrationData=null}function Y$(t,e,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Qn,key:o==null?null:""+o,children:t,containerInfo:e,implementation:n}}function Ia(t,e,n,o){var r=e.current,i=Qe(),s=Cn(r);e:if(n){n=n._reactInternals;t:{if(Xn(n)!==n||n.tag!==1)throw Error(A(170));var a=n;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(Je(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(a!==null);throw Error(A(171))}if(n.tag===1){var l=n.type;if(Je(l)){n=Zg(n,l,a);break e}}n=a}else n=bn;return e.context===null?e.context=n:e.pendingContext=n,e=Sn(i,s),e.payload={element:t},o=o===void 0?null:o,o!==null&&(e.callback=o),xn(r,e),En(r,s,i),s}function Nd(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 f0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Dd(t,e){f0(t,e),(t=t.alternate)&&f0(t,e)}function K$(){return null}function Ad(t,e,n){var o=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new J$(t,e,n!=null&&n.hydrate===!0),e=ut(3,null,null,e===2?7:e===1?3:0),n.current=e,e.stateNode=n,Vu(e),t[Ko]=n.current,Bg(t.nodeType===8?t.parentNode:t),o)for(t=0;t<o.length;t++){e=o[t];var r=e._getVersion;r=r(e._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[e,r]:n.mutableSourceEagerHydrationData.push(e,r)}this._internalRoot=n}Ad.prototype.render=function(t){Ia(t,this._internalRoot,null,null)},Ad.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;Ia(null,t,null,function(){e[Ko]=null})};function ji(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function W$(t,e){if(e||(e=t?t.nodeType===9?t.documentElement:t.firstChild:null,e=!(!e||e.nodeType!==1||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new Ad(t,0,e?{hydrate:!0}:void 0)}function La(t,e,n,o,r){var i=n._reactRootContainer;if(i){var s=i._internalRoot;if(typeof r=="function"){var a=r;r=function(){var c=Nd(s);a.call(c)}}Ia(e,s,t,r)}else{if(i=n._reactRootContainer=W$(n,o),s=i._internalRoot,typeof r=="function"){var l=r;r=function(){var c=Nd(s);l.call(c)}}i0(function(){Ia(e,s,t,r)})}return Nd(s)}tg=function(t){if(t.tag===13){var e=Qe();En(t,4,e),Dd(t,4)}},su=function(t){if(t.tag===13){var e=Qe();En(t,67108864,e),Dd(t,67108864)}},ng=function(t){if(t.tag===13){var e=Qe(),n=Cn(t);En(t,n,e),Dd(t,n)}},og=function(t,e){return e()},Xc=function(t,e,n){switch(e){case"input":if(_c(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 o=n[e];if(o!==t&&o.form===t.form){var r=sa(o);if(!r)throw Error(A(90));Ph(o),_c(o,r)}}}break;case"textarea":Hh(t,n);break;case"select":e=n.value,e!=null&&Io(t,!!n.multiple,e,!1)}},eu=r0,qh=function(t,e,n,o,r){var i=z;z|=4;try{return oo(98,t.bind(null,e,n,o,r))}finally{z=i,z===0&&(rr(),$t())}},tu=function(){!(z&49)&&(j$(),Nn())},Gh=function(t,e){var n=z;z|=2;try{return t(e)}finally{z=n,z===0&&(rr(),$t())}};function p0(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ji(e))throw Error(A(200));return Y$(t,e,null,n)}var q$={Events:[pi,Wo,sa,Kh,Wh,Nn,{current:!1}]},Pi={findFiberByHostInstance:eo,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},G$={bundleType:Pi.bundleType,version:Pi.version,rendererPackageName:Pi.rendererPackageName,rendererConfig:Pi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Gn.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Xh(t),t===null?null:t.stateNode},findFiberByHostInstance:Pi.findFiberByHostInstance||K$,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var za=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!za.isDisabled&&za.supportsFiber)try{ju=za.inject(G$),no=za}catch{}}it.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q$,it.createPortal=p0,it.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(A(188)):Error(A(268,Object.keys(t)));return t=Xh(e),t=t===null?null:t.stateNode,t},it.flushSync=function(t,e){var n=z;if(n&48)return t(e);z|=1;try{if(t)return oo(99,t.bind(null,e))}finally{z=n,$t()}},it.hydrate=function(t,e,n){if(!ji(e))throw Error(A(200));return La(null,t,e,!0,n)},it.render=function(t,e,n){if(!ji(e))throw Error(A(200));return La(null,t,e,!1,n)},it.unmountComponentAtNode=function(t){if(!ji(t))throw Error(A(40));return t._reactRootContainer?(i0(function(){La(null,null,t,!1,function(){t._reactRootContainer=null,t[Ko]=null})}),!0):!1},it.unstable_batchedUpdates=r0,it.unstable_createPortal=function(t,e){return p0(t,e,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},it.unstable_renderSubtreeIntoContainer=function(t,e,n,o){if(!ji(n))throw Error(A(200));if(t==null||t._reactInternals===void 0)throw Error(A(38));return La(t,e,n,!1,o)},it.version="17.0.2";function h0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(h0)}catch(t){console.error(t)}}h0(),Ch.exports=it;var Rd=Ch.exports;const g0=Ze(Rd);function Q$(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var y0={exports:{}},Od={};/**
|
|
131
131
|
* @license React
|
|
132
132
|
* use-sync-external-store-shim.production.min.js
|
|
133
133
|
*
|
|
@@ -135,7 +135,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
135
135
|
*
|
|
136
136
|
* This source code is licensed under the MIT license found in the
|
|
137
137
|
* LICENSE file in the root directory of this source tree.
|
|
138
|
-
*/var w0;function
|
|
138
|
+
*/var w0;function Z$(){if(w0)return Od;w0=1;var t=_;function e(m,d){return m===d&&(m!==0||1/m===1/d)||m!==m&&d!==d}var n=typeof Object.is=="function"?Object.is:e,o=t.useState,r=t.useEffect,i=t.useLayoutEffect,s=t.useDebugValue;function a(m,d){var p=d(),f=o({inst:{value:p,getSnapshot:d}}),y=f[0].inst,h=f[1];return i(function(){y.value=p,y.getSnapshot=d,l(y)&&h({inst:y})},[m,p,d]),r(function(){return l(y)&&h({inst:y}),m(function(){l(y)&&h({inst:y})})},[m]),s(p),p}function l(m){var d=m.getSnapshot;m=m.value;try{var p=d();return!n(m,p)}catch{return!0}}function c(m,d){return d()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return Od.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:u,Od}y0.exports=Z$();var Md=y0.exports;const X$=(...t)=>e=>{t.forEach(n=>{typeof n=="function"?n(e):n&&(n.current=e)})},eC=({contentComponent:t})=>{const e=Md.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return _.createElement(_.Fragment,null,Object.values(e))};function tC(){const t=new Set;let e={};return{subscribe(n){return t.add(n),()=>{t.delete(n)}},getSnapshot(){return e},getServerSnapshot(){return e},setRenderer(n,o){e={...e,[n]:g0.createPortal(o.reactElement,o.element,n)},t.forEach(r=>r())},removeRenderer(n){const o={...e};delete o[n],e=o,t.forEach(r=>r())}}}class nC extends _.Component{constructor(e){var n;super(e),this.editorContentRef=_.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!(!((n=e.editor)===null||n===void 0)&&n.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){const e=this.props.editor;if(e&&!e.isDestroyed&&e.options.element){if(e.contentComponent)return;const n=this.editorContentRef.current;n.append(...e.options.element.childNodes),e.setOptions({element:n}),e.contentComponent=tC(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=e.contentComponent.subscribe(()=>{this.setState(o=>o.hasContentComponentInitialized?o:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),e.createNodeViews(),this.initialized=!0}}componentWillUnmount(){const e=this.props.editor;if(!e||(this.initialized=!1,e.isDestroyed||e.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),e.contentComponent=null,!e.options.element.firstChild))return;const n=document.createElement("div");n.append(...e.options.element.childNodes),e.setOptions({element:n})}render(){const{editor:e,innerRef:n,...o}=this.props;return _.createElement(_.Fragment,null,_.createElement("div",{ref:X$(n,this.editorContentRef),...o}),(e==null?void 0:e.contentComponent)&&_.createElement(eC,{contentComponent:e.contentComponent}))}}const oC=k.forwardRef((t,e)=>{const n=_.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[t.editor]);return _.createElement(nC,{key:n,innerRef:e,...t})}),rC=_.memo(oC);var iC=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var o,r,i;if(Array.isArray(e)){if(o=e.length,o!=n.length)return!1;for(r=o;r--!==0;)if(!t(e[r],n[r]))return!1;return!0}if(e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(r of e.entries())if(!n.has(r[0]))return!1;for(r of e.entries())if(!t(r[1],n.get(r[0])))return!1;return!0}if(e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(r of e.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(n)){if(o=e.length,o!=n.length)return!1;for(r=o;r--!==0;)if(e[r]!==n[r])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(i=Object.keys(e),o=i.length,o!==Object.keys(n).length)return!1;for(r=o;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;r--!==0;){var s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n},sC=Q$(iC),b0={exports:{}},Td={};/**
|
|
139
139
|
* @license React
|
|
140
140
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
141
141
|
*
|
|
@@ -143,15 +143,15 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
143
143
|
*
|
|
144
144
|
* This source code is licensed under the MIT license found in the
|
|
145
145
|
* LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/var b0;function sC(){if(b0)return Dd;b0=1;var t=_,e=Od;function n(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var o=typeof Object.is=="function"?Object.is:n,r=e.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,l=t.useDebugValue;return Dd.useSyncExternalStoreWithSelector=function(c,u,m,d,p){var f=i(null);if(f.current===null){var y={hasValue:!1,value:null};f.current=y}else y=f.current;f=a(function(){function g(x){if(!S){if(S=!0,b=x,x=d(x),p!==void 0&&y.hasValue){var $=y.value;if(p($,x))return v=$}return v=x}if($=v,o(b,x))return $;var O=d(x);return p!==void 0&&p($,O)?$:(b=x,v=O)}var S=!1,b,v,C=m===void 0?null:m;return[function(){return g(u())},C===null?void 0:function(){return g(C())}]},[u,m,d,p]);var h=r(c,f[0],f[1]);return s(function(){y.hasValue=!0,y.value=h},[h]),l(h),h},Dd}S0.exports=sC();var aC=S0.exports;class lC{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){const n=()=>{this.transactionNumber+=1,this.subscribers.forEach(r=>r())},o=this.editor;return o.on("transaction",n),()=>{o.off("transaction",n)}}}}function cC(t){var e;const[n]=k.useState(()=>new lC(t.editor)),o=aC.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,t.selector,(e=t.equalityFn)!==null&&e!==void 0?e:iC);return k.useEffect(()=>n.watch(t.editor),[t.editor,n]),k.useDebugValue(o),o}const uC=!1,Md=typeof window>"u",dC=Md||!!(typeof window<"u"&&window.next);class mC{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(n=>n())}getInitialEditor(){if(this.options.current.immediatelyRender===void 0)return Md||dC?null:this.createEditor();if(this.options.current.immediatelyRender&&Md&&uC)throw new Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");return this.options.current.immediatelyRender?this.createEditor():null}createEditor(){const e={...this.options.current,onBeforeCreate:(...o)=>{var r,i;return(i=(r=this.options.current).onBeforeCreate)===null||i===void 0?void 0:i.call(r,...o)},onBlur:(...o)=>{var r,i;return(i=(r=this.options.current).onBlur)===null||i===void 0?void 0:i.call(r,...o)},onCreate:(...o)=>{var r,i;return(i=(r=this.options.current).onCreate)===null||i===void 0?void 0:i.call(r,...o)},onDestroy:(...o)=>{var r,i;return(i=(r=this.options.current).onDestroy)===null||i===void 0?void 0:i.call(r,...o)},onFocus:(...o)=>{var r,i;return(i=(r=this.options.current).onFocus)===null||i===void 0?void 0:i.call(r,...o)},onSelectionUpdate:(...o)=>{var r,i;return(i=(r=this.options.current).onSelectionUpdate)===null||i===void 0?void 0:i.call(r,...o)},onTransaction:(...o)=>{var r,i;return(i=(r=this.options.current).onTransaction)===null||i===void 0?void 0:i.call(r,...o)},onUpdate:(...o)=>{var r,i;return(i=(r=this.options.current).onUpdate)===null||i===void 0?void 0:i.call(r,...o)},onContentError:(...o)=>{var r,i;return(i=(r=this.options.current).onContentError)===null||i===void 0?void 0:i.call(r,...o)},onDrop:(...o)=>{var r,i;return(i=(r=this.options.current).onDrop)===null||i===void 0?void 0:i.call(r,...o)},onPaste:(...o)=>{var r,i;return(i=(r=this.options.current).onPaste)===null||i===void 0?void 0:i.call(r,...o)}};return new Zx(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&e.length===0?this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(e),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((o,r)=>o===e[r]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){const e=this.instanceId,n=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){n&&n.setOptions(this.options.current);return}n&&!n.isDestroyed&&(n.destroy(),this.instanceId===e&&this.setEditor(null))},1)}}function Td(t={},e=[]){const n=k.useRef(t);n.current=t;const[o]=k.useState(()=>new mC(n)),r=Od.useSyncExternalStore(o.subscribe,o.getEditor,o.getServerSnapshot);return k.useDebugValue(r),k.useEffect(o.onRender(e)),cC({editor:r,selector:({transactionNumber:i})=>t.shouldRerenderOnTransaction===!1?null:t.immediatelyRender&&i===0?0:i+1}),r}k.createContext({editor:null}).Consumer;const fC=k.createContext({onDragStart:void 0}),pC=()=>k.useContext(fC);_.forwardRef((t,e)=>{const{onDragStart:n}=pC(),o=t.as||"div";return _.createElement(o,{...t,ref:e,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...t.style}})});const jd=t=>k.createElement("svg",{id:"loader-1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 50 50",style:{enableBackground:"new 0 0 50 50"},xmlSpace:"preserve",...t},k.createElement("path",{d:"M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"},k.createElement("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"0.6s",repeatCount:"indefinite"})));var hC=Object.defineProperty,gC=(t,e,n)=>e in t?hC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Pd=(t,e,n)=>(gC(t,typeof e!="symbol"?e+"":e,n),n);let yC=class{constructor(){Pd(this,"current",this.detect()),Pd(this,"handoffState","pending"),Pd(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Fa=new yC,Ii=(t,e)=>{Fa.isServer?k.useEffect(t,e):k.useLayoutEffect(t,e)};function lr(t){let e=k.useRef(t);return Ii(()=>{e.current=t},[t]),e}let _t=function(t){let e=lr(t);return _.useCallback((...n)=>e.current(...n),[e])};function wC(t){typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t).catch(e=>setTimeout(()=>{throw e}))}function Li(){let t=[],e={addEventListener(n,o,r,i){return n.addEventListener(o,r,i),e.add(()=>n.removeEventListener(o,r,i))},requestAnimationFrame(...n){let o=requestAnimationFrame(...n);return e.add(()=>cancelAnimationFrame(o))},nextFrame(...n){return e.requestAnimationFrame(()=>e.requestAnimationFrame(...n))},setTimeout(...n){let o=setTimeout(...n);return e.add(()=>clearTimeout(o))},microTask(...n){let o={current:!0};return wC(()=>{o.current&&n[0]()}),e.add(()=>{o.current=!1})},style(n,o,r){let i=n.style.getPropertyValue(o);return Object.assign(n.style,{[o]:r}),this.add(()=>{Object.assign(n.style,{[o]:i})})},group(n){let o=Li();return n(o),this.add(()=>o.dispose())},add(n){return t.push(n),()=>{let o=t.indexOf(n);if(o>=0)for(let r of t.splice(o,1))r()}},dispose(){for(let n of t.splice(0))n()}};return e}function v0(){let[t]=k.useState(Li);return k.useEffect(()=>()=>t.dispose(),[t]),t}function SC(){let t=typeof document>"u";return"useSyncExternalStore"in jm?(e=>e.useSyncExternalStore)(jm)(()=>()=>{},()=>!1,()=>!t):!1}function x0(){let t=SC(),[e,n]=k.useState(Fa.isHandoffComplete);return e&&Fa.isHandoffComplete===!1&&n(!1),k.useEffect(()=>{e!==!0&&n(!0)},[e]),k.useEffect(()=>Fa.handoff(),[]),t?!1:e}function Rt(t,e,...n){if(t in e){let r=e[t];return typeof r=="function"?r(...n):r}let o=new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,Rt),o}let bC=Symbol();function k0(...t){let e=k.useRef(t);k.useEffect(()=>{e.current=t},[t]);let n=_t(o=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(o):r.current=o)});return t.every(o=>o==null||(o==null?void 0:o[bC]))?void 0:n}function Ha(...t){return Array.from(new Set(t.flatMap(e=>typeof e=="string"?e.split(" "):[]))).filter(Boolean).join(" ")}var $0=(t=>(t[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t))($0||{}),On=(t=>(t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden",t))(On||{});function C0({ourProps:t,theirProps:e,slot:n,defaultTag:o,features:r,visible:i=!0,name:s,mergeRefs:a}){a=a??vC;let l=E0(e,t);if(i)return Ba(l,n,o,s,a);let c=r??0;if(c&2){let{static:u=!1,...m}=l;if(u)return Ba(m,n,o,s,a)}if(c&1){let{unmount:u=!0,...m}=l;return Rt(u?0:1,{0(){return null},1(){return Ba({...m,hidden:!0,style:{display:"none"}},n,o,s,a)}})}return Ba(l,n,o,s,a)}function Ba(t,e={},n,o,r){let{as:i=n,children:s,refName:a="ref",...l}=Ld(t,["unmount","static"]),c=t.ref!==void 0?{[a]:t.ref}:{},u=typeof s=="function"?s(e):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(e));let m={};if(e){let d=!1,p=[];for(let[f,y]of Object.entries(e))typeof y=="boolean"&&(d=!0),y===!0&&p.push(f);d&&(m["data-headlessui-state"]=p.join(" "))}if(i===k.Fragment&&Object.keys(N0(l)).length>0){if(!k.isValidElement(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(y=>` - ${y}`).join(`
|
|
146
|
+
*/var v0;function aC(){if(v0)return Td;v0=1;var t=_,e=Md;function n(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var o=typeof Object.is=="function"?Object.is:n,r=e.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,l=t.useDebugValue;return Td.useSyncExternalStoreWithSelector=function(c,u,m,d,p){var f=i(null);if(f.current===null){var y={hasValue:!1,value:null};f.current=y}else y=f.current;f=a(function(){function g(x){if(!b){if(b=!0,v=x,x=d(x),p!==void 0&&y.hasValue){var $=y.value;if(p($,x))return S=$}return S=x}if($=S,o(v,x))return $;var R=d(x);return p!==void 0&&p($,R)?$:(v=x,S=R)}var b=!1,v,S,C=m===void 0?null:m;return[function(){return g(u())},C===null?void 0:function(){return g(C())}]},[u,m,d,p]);var h=r(c,f[0],f[1]);return s(function(){y.hasValue=!0,y.value=h},[h]),l(h),h},Td}b0.exports=aC();var lC=b0.exports;class cC{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){const n=()=>{this.transactionNumber+=1,this.subscribers.forEach(r=>r())},o=this.editor;return o.on("transaction",n),()=>{o.off("transaction",n)}}}}function uC(t){var e;const[n]=k.useState(()=>new cC(t.editor)),o=lC.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,t.selector,(e=t.equalityFn)!==null&&e!==void 0?e:sC);return k.useEffect(()=>n.watch(t.editor),[t.editor,n]),k.useDebugValue(o),o}const dC=!1,jd=typeof window>"u",mC=jd||!!(typeof window<"u"&&window.next);class fC{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(n=>n())}getInitialEditor(){if(this.options.current.immediatelyRender===void 0)return jd||mC?null:this.createEditor();if(this.options.current.immediatelyRender&&jd&&dC)throw new Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");return this.options.current.immediatelyRender?this.createEditor():null}createEditor(){const e={...this.options.current,onBeforeCreate:(...o)=>{var r,i;return(i=(r=this.options.current).onBeforeCreate)===null||i===void 0?void 0:i.call(r,...o)},onBlur:(...o)=>{var r,i;return(i=(r=this.options.current).onBlur)===null||i===void 0?void 0:i.call(r,...o)},onCreate:(...o)=>{var r,i;return(i=(r=this.options.current).onCreate)===null||i===void 0?void 0:i.call(r,...o)},onDestroy:(...o)=>{var r,i;return(i=(r=this.options.current).onDestroy)===null||i===void 0?void 0:i.call(r,...o)},onFocus:(...o)=>{var r,i;return(i=(r=this.options.current).onFocus)===null||i===void 0?void 0:i.call(r,...o)},onSelectionUpdate:(...o)=>{var r,i;return(i=(r=this.options.current).onSelectionUpdate)===null||i===void 0?void 0:i.call(r,...o)},onTransaction:(...o)=>{var r,i;return(i=(r=this.options.current).onTransaction)===null||i===void 0?void 0:i.call(r,...o)},onUpdate:(...o)=>{var r,i;return(i=(r=this.options.current).onUpdate)===null||i===void 0?void 0:i.call(r,...o)},onContentError:(...o)=>{var r,i;return(i=(r=this.options.current).onContentError)===null||i===void 0?void 0:i.call(r,...o)},onDrop:(...o)=>{var r,i;return(i=(r=this.options.current).onDrop)===null||i===void 0?void 0:i.call(r,...o)},onPaste:(...o)=>{var r,i;return(i=(r=this.options.current).onPaste)===null||i===void 0?void 0:i.call(r,...o)}};return new Xx(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&e.length===0?this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(e),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((o,r)=>o===e[r]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){const e=this.instanceId,n=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){n&&n.setOptions(this.options.current);return}n&&!n.isDestroyed&&(n.destroy(),this.instanceId===e&&this.setEditor(null))},1)}}function Pd(t={},e=[]){const n=k.useRef(t);n.current=t;const[o]=k.useState(()=>new fC(n)),r=Md.useSyncExternalStore(o.subscribe,o.getEditor,o.getServerSnapshot);return k.useDebugValue(r),k.useEffect(o.onRender(e)),uC({editor:r,selector:({transactionNumber:i})=>t.shouldRerenderOnTransaction===!1?null:t.immediatelyRender&&i===0?0:i+1}),r}k.createContext({editor:null}).Consumer;const pC=k.createContext({onDragStart:void 0}),hC=()=>k.useContext(pC);_.forwardRef((t,e)=>{const{onDragStart:n}=hC(),o=t.as||"div";return _.createElement(o,{...t,ref:e,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...t.style}})});const Fa=t=>k.createElement("svg",{id:"loader-1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 50 50",style:{enableBackground:"new 0 0 50 50"},xmlSpace:"preserve",...t},k.createElement("path",{d:"M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"},k.createElement("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"0.6s",repeatCount:"indefinite"})));var gC=Object.defineProperty,yC=(t,e,n)=>e in t?gC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Id=(t,e,n)=>(yC(t,typeof e!="symbol"?e+"":e,n),n);let wC=class{constructor(){Id(this,"current",this.detect()),Id(this,"handoffState","pending"),Id(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Ha=new wC,Ii=(t,e)=>{Ha.isServer?k.useEffect(t,e):k.useLayoutEffect(t,e)};function lr(t){let e=k.useRef(t);return Ii(()=>{e.current=t},[t]),e}let _t=function(t){let e=lr(t);return _.useCallback((...n)=>e.current(...n),[e])};function bC(t){typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t).catch(e=>setTimeout(()=>{throw e}))}function Li(){let t=[],e={addEventListener(n,o,r,i){return n.addEventListener(o,r,i),e.add(()=>n.removeEventListener(o,r,i))},requestAnimationFrame(...n){let o=requestAnimationFrame(...n);return e.add(()=>cancelAnimationFrame(o))},nextFrame(...n){return e.requestAnimationFrame(()=>e.requestAnimationFrame(...n))},setTimeout(...n){let o=setTimeout(...n);return e.add(()=>clearTimeout(o))},microTask(...n){let o={current:!0};return bC(()=>{o.current&&n[0]()}),e.add(()=>{o.current=!1})},style(n,o,r){let i=n.style.getPropertyValue(o);return Object.assign(n.style,{[o]:r}),this.add(()=>{Object.assign(n.style,{[o]:i})})},group(n){let o=Li();return n(o),this.add(()=>o.dispose())},add(n){return t.push(n),()=>{let o=t.indexOf(n);if(o>=0)for(let r of t.splice(o,1))r()}},dispose(){for(let n of t.splice(0))n()}};return e}function S0(){let[t]=k.useState(Li);return k.useEffect(()=>()=>t.dispose(),[t]),t}function vC(){let t=typeof document>"u";return"useSyncExternalStore"in jm?(e=>e.useSyncExternalStore)(jm)(()=>()=>{},()=>!1,()=>!t):!1}function x0(){let t=vC(),[e,n]=k.useState(Ha.isHandoffComplete);return e&&Ha.isHandoffComplete===!1&&n(!1),k.useEffect(()=>{e!==!0&&n(!0)},[e]),k.useEffect(()=>Ha.handoff(),[]),t?!1:e}function At(t,e,...n){if(t in e){let r=e[t];return typeof r=="function"?r(...n):r}let o=new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,At),o}let SC=Symbol();function k0(...t){let e=k.useRef(t);k.useEffect(()=>{e.current=t},[t]);let n=_t(o=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(o):r.current=o)});return t.every(o=>o==null||(o==null?void 0:o[SC]))?void 0:n}function Ba(...t){return Array.from(new Set(t.flatMap(e=>typeof e=="string"?e.split(" "):[]))).filter(Boolean).join(" ")}var $0=(t=>(t[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t))($0||{}),Rn=(t=>(t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden",t))(Rn||{});function C0({ourProps:t,theirProps:e,slot:n,defaultTag:o,features:r,visible:i=!0,name:s,mergeRefs:a}){a=a??xC;let l=E0(e,t);if(i)return Va(l,n,o,s,a);let c=r??0;if(c&2){let{static:u=!1,...m}=l;if(u)return Va(m,n,o,s,a)}if(c&1){let{unmount:u=!0,...m}=l;return At(u?0:1,{0(){return null},1(){return Va({...m,hidden:!0,style:{display:"none"}},n,o,s,a)}})}return Va(l,n,o,s,a)}function Va(t,e={},n,o,r){let{as:i=n,children:s,refName:a="ref",...l}=zd(t,["unmount","static"]),c=t.ref!==void 0?{[a]:t.ref}:{},u=typeof s=="function"?s(e):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(e));let m={};if(e){let d=!1,p=[];for(let[f,y]of Object.entries(e))typeof y=="boolean"&&(d=!0),y===!0&&p.push(f);d&&(m["data-headlessui-state"]=p.join(" "))}if(i===k.Fragment&&Object.keys(N0(l)).length>0){if(!k.isValidElement(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(y=>` - ${y}`).join(`
|
|
147
147
|
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(y=>` - ${y}`).join(`
|
|
148
148
|
`)].join(`
|
|
149
|
-
`));let d=u.props,p=typeof(d==null?void 0:d.className)=="function"?(...y)=>Ha(d==null?void 0:d.className(...y),l.className):Ha(d==null?void 0:d.className,l.className),f=p?{className:p}:{};return k.cloneElement(u,Object.assign({},E0(u.props,N0(Ld(l,["ref"]))),m,c,{ref:r(u.ref,c.ref)},f))}return k.createElement(i,Object.assign({},Ld(l,["ref"]),i!==k.Fragment&&c,i!==k.Fragment&&m),u)}function vC(...t){return t.every(e=>e==null)?void 0:e=>{for(let n of t)n!=null&&(typeof n=="function"?n(e):n.current=e)}}function E0(...t){if(t.length===0)return{};if(t.length===1)return t[0];let e={},n={};for(let o of t)for(let r in o)r.startsWith("on")&&typeof o[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(o[r])):e[r]=o[r];if(e.disabled||e["aria-disabled"])return Object.assign(e,Object.fromEntries(Object.keys(n).map(o=>[o,void 0])));for(let o in n)Object.assign(e,{[o](r,...i){let s=n[o];for(let a of s){if((r instanceof Event||(r==null?void 0:r.nativeEvent)instanceof Event)&&r.defaultPrevented)return;a(r,...i)}}});return e}function Id(t){var e;return Object.assign(k.forwardRef(t),{displayName:(e=t.displayName)!=null?e:t.name})}function N0(t){let e=Object.assign({},t);for(let n in e)e[n]===void 0&&delete e[n];return e}function Ld(t,e=[]){let n=Object.assign({},t);for(let o of e)o in n&&delete n[o];return n}let zd=k.createContext(null);zd.displayName="OpenClosedContext";var Jt=(t=>(t[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t))(Jt||{});function A0(){return k.useContext(zd)}function xC({value:t,children:e}){return _.createElement(zd.Provider,{value:t},e)}function Fd(){let t=k.useRef(!1);return Ii(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function kC(t=0){let[e,n]=k.useState(t),o=Fd(),r=k.useCallback(l=>{o.current&&n(c=>c|l)},[e,o]),i=k.useCallback(l=>!!(e&l),[e]),s=k.useCallback(l=>{o.current&&n(c=>c&~l)},[n,o]),a=k.useCallback(l=>{o.current&&n(c=>c^l)},[n]);return{flags:e,addFlag:r,hasFlag:i,removeFlag:s,toggleFlag:a}}function $C(t){let e={called:!1};return(...n)=>{if(!e.called)return e.called=!0,t(...n)}}function Hd(t,...e){t&&e.length>0&&t.classList.add(...e)}function Bd(t,...e){t&&e.length>0&&t.classList.remove(...e)}function CC(t,e){let n=Li();if(!t)return n.dispose;let{transitionDuration:o,transitionDelay:r}=getComputedStyle(t),[i,s]=[o,r].map(l=>{let[c=0]=l.split(",").filter(Boolean).map(u=>u.includes("ms")?parseFloat(u):parseFloat(u)*1e3).sort((u,m)=>m-u);return c}),a=i+s;if(a!==0){n.group(c=>{c.setTimeout(()=>{e(),c.dispose()},a),c.addEventListener(t,"transitionrun",u=>{u.target===u.currentTarget&&c.dispose()})});let l=n.addEventListener(t,"transitionend",c=>{c.target===c.currentTarget&&(e(),l())})}else e();return n.add(()=>e()),n.dispose}function EC(t,e,n,o){let r=n?"enter":"leave",i=Li(),s=o!==void 0?$C(o):()=>{};r==="enter"&&(t.removeAttribute("hidden"),t.style.display="");let a=Rt(r,{enter:()=>e.enter,leave:()=>e.leave}),l=Rt(r,{enter:()=>e.enterTo,leave:()=>e.leaveTo}),c=Rt(r,{enter:()=>e.enterFrom,leave:()=>e.leaveFrom});return Bd(t,...e.base,...e.enter,...e.enterTo,...e.enterFrom,...e.leave,...e.leaveFrom,...e.leaveTo,...e.entered),Hd(t,...e.base,...a,...c),i.nextFrame(()=>{Bd(t,...e.base,...a,...c),Hd(t,...e.base,...a,...l),CC(t,()=>(Bd(t,...e.base,...a),Hd(t,...e.base,...e.entered),s()))}),i.dispose}function NC({immediate:t,container:e,direction:n,classes:o,onStart:r,onStop:i}){let s=Fd(),a=v0(),l=lr(n);Ii(()=>{t&&(l.current="enter")},[t]),Ii(()=>{let c=Li();a.add(c.dispose);let u=e.current;if(u&&l.current!=="idle"&&s.current)return c.dispose(),r.current(l.current),c.add(EC(u,o.current,l.current==="enter",()=>{c.dispose(),i.current(l.current)})),c.dispose},[n])}function Dn(t=""){return t.split(/\s+/).filter(e=>e.length>1)}let Va=k.createContext(null);Va.displayName="TransitionContext";var AC=(t=>(t.Visible="visible",t.Hidden="hidden",t))(AC||{});function RC(){let t=k.useContext(Va);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}function OC(){let t=k.useContext(Ua);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}let Ua=k.createContext(null);Ua.displayName="NestingContext";function _a(t){return"children"in t?_a(t.children):t.current.filter(({el:e})=>e.current!==null).filter(({state:e})=>e==="visible").length>0}function R0(t,e){let n=lr(t),o=k.useRef([]),r=Fd(),i=v0(),s=_t((p,f=On.Hidden)=>{let y=o.current.findIndex(({el:h})=>h===p);y!==-1&&(Rt(f,{[On.Unmount](){o.current.splice(y,1)},[On.Hidden](){o.current[y].state="hidden"}}),i.microTask(()=>{var h;!_a(o)&&r.current&&((h=n.current)==null||h.call(n))}))}),a=_t(p=>{let f=o.current.find(({el:y})=>y===p);return f?f.state!=="visible"&&(f.state="visible"):o.current.push({el:p,state:"visible"}),()=>s(p,On.Unmount)}),l=k.useRef([]),c=k.useRef(Promise.resolve()),u=k.useRef({enter:[],leave:[],idle:[]}),m=_t((p,f,y)=>{l.current.splice(0),e&&(e.chains.current[f]=e.chains.current[f].filter(([h])=>h!==p)),e==null||e.chains.current[f].push([p,new Promise(h=>{l.current.push(h)})]),e==null||e.chains.current[f].push([p,new Promise(h=>{Promise.all(u.current[f].map(([g,S])=>S)).then(()=>h())})]),f==="enter"?c.current=c.current.then(()=>e==null?void 0:e.wait.current).then(()=>y(f)):y(f)}),d=_t((p,f,y)=>{Promise.all(u.current[f].splice(0).map(([h,g])=>g)).then(()=>{var h;(h=l.current.shift())==null||h()}).then(()=>y(f))});return k.useMemo(()=>({children:o,register:a,unregister:s,onStart:m,onStop:d,wait:c,chains:u}),[a,s,o,m,d,u,c])}function DC(){}let MC=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function O0(t){var e;let n={};for(let o of MC)n[o]=(e=t[o])!=null?e:DC;return n}function TC(t){let e=k.useRef(O0(t));return k.useEffect(()=>{e.current=O0(t)},[t]),e}let jC="div",D0=$0.RenderStrategy;function PC(t,e){var n,o;let{beforeEnter:r,afterEnter:i,beforeLeave:s,afterLeave:a,enter:l,enterFrom:c,enterTo:u,entered:m,leave:d,leaveFrom:p,leaveTo:f,...y}=t,h=k.useRef(null),g=k0(h,e),S=(n=y.unmount)==null||n?On.Unmount:On.Hidden,{show:b,appear:v,initial:C}=RC(),[x,$]=k.useState(b?"visible":"hidden"),O=OC(),{register:E,unregister:U}=O;k.useEffect(()=>E(h),[E,h]),k.useEffect(()=>{if(S===On.Hidden&&h.current){if(b&&x!=="visible"){$("visible");return}return Rt(x,{hidden:()=>U(h),visible:()=>E(h)})}},[x,h,E,U,b,S]);let se=lr({base:Dn(y.className),enter:Dn(l),enterFrom:Dn(c),enterTo:Dn(u),entered:Dn(m),leave:Dn(d),leaveFrom:Dn(p),leaveTo:Dn(f)}),X=TC({beforeEnter:r,afterEnter:i,beforeLeave:s,afterLeave:a}),G=x0();k.useEffect(()=>{if(G&&x==="visible"&&h.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[h,x,G]);let Ae=C&&!v,le=v&&b&&C,pe=(()=>!G||Ae?"idle":b?"enter":"leave")(),de=kC(0),Q=_t(W=>Rt(W,{enter:()=>{de.addFlag(Jt.Opening),X.current.beforeEnter()},leave:()=>{de.addFlag(Jt.Closing),X.current.beforeLeave()},idle:()=>{}})),ce=_t(W=>Rt(W,{enter:()=>{de.removeFlag(Jt.Opening),X.current.afterEnter()},leave:()=>{de.removeFlag(Jt.Closing),X.current.afterLeave()},idle:()=>{}})),ve=R0(()=>{$("hidden"),U(h)},O),D=k.useRef(!1);NC({immediate:le,container:h,classes:se,direction:pe,onStart:lr(W=>{D.current=!0,ve.onStart(h,W,Q)}),onStop:lr(W=>{D.current=!1,ve.onStop(h,W,ce),W==="leave"&&!_a(ve)&&($("hidden"),U(h))})});let I=y,H={ref:g};return le?I={...I,className:Ha(y.className,...se.current.enter,...se.current.enterFrom)}:D.current&&(I.className=Ha(y.className,(o=h.current)==null?void 0:o.className),I.className===""&&delete I.className),_.createElement(Ua.Provider,{value:ve},_.createElement(xC,{value:Rt(x,{visible:Jt.Open,hidden:Jt.Closed})|de.flags},C0({ourProps:H,theirProps:I,defaultTag:jC,features:D0,visible:x==="visible",name:"Transition.Child"})))}function IC(t,e){let{show:n,appear:o=!1,unmount:r=!0,...i}=t,s=k.useRef(null),a=k0(s,e);x0();let l=A0();if(n===void 0&&l!==null&&(n=(l&Jt.Open)===Jt.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=k.useState(n?"visible":"hidden"),m=R0(()=>{u("hidden")}),[d,p]=k.useState(!0),f=k.useRef([n]);Ii(()=>{d!==!1&&f.current[f.current.length-1]!==n&&(f.current.push(n),p(!1))},[f,n]);let y=k.useMemo(()=>({show:n,appear:o,initial:d}),[n,o,d]);k.useEffect(()=>{if(n)u("visible");else if(!_a(m))u("hidden");else{let b=s.current;if(!b)return;let v=b.getBoundingClientRect();v.x===0&&v.y===0&&v.width===0&&v.height===0&&u("hidden")}},[n,m]);let h={unmount:r},g=_t(()=>{var b;d&&p(!1),(b=t.beforeEnter)==null||b.call(t)}),S=_t(()=>{var b;d&&p(!1),(b=t.beforeLeave)==null||b.call(t)});return _.createElement(Ua.Provider,{value:m},_.createElement(Va.Provider,{value:y},C0({ourProps:{...h,as:k.Fragment,children:_.createElement(M0,{ref:a,...h,...i,beforeEnter:g,beforeLeave:S})},theirProps:{},defaultTag:k.Fragment,features:D0,visible:c==="visible",name:"Transition"})))}function LC(t,e){let n=k.useContext(Va)!==null,o=A0()!==null;return _.createElement(_.Fragment,null,!n&&o?_.createElement(Vd,{ref:e,...t}):_.createElement(M0,{ref:e,...t}))}let Vd=Id(IC),M0=Id(PC),zC=Id(LC),co=Object.assign(Vd,{Child:zC,Root:Vd});function FC(t,e){const n=k.useRef(null),o=k.useCallback(r=>{n.current&&e&&e(n.current),r&&t&&t(r),n.current=r},[t,e]);return[n,o]}function HC(t){const{popup:e}=B();return(e==null?void 0:e.type)===t}function BC(t){const{t:e}=B();return k.useMemo(()=>Q1(t,e),[t])}const VC=({comment:t,submit:e,progress:n,setProgress:o,close:r,reduced:i,isOpen:s,editor:a,submitText:l,submitSize:c,openForm:u})=>{const m=mt(),{dispatchAction:d,t:p}=B();let f=null;const[y,h]=k.useState(!1);k.useEffect(()=>{if(a){const v=()=>{const C=!a.isEmpty;if(h(C),u){const x=t&&u.type==="edit"?a.getHTML()!==t.html:C;u.hasUnsavedChanges!==x&&d("setCommentFormHasUnsavedChanges",{id:u.id,hasUnsavedChanges:x})}};return a.on("update",v),a.on("transaction",v),v(),()=>{a.off("update",v),a.off("transaction",v)}}},[a,t,u,d]),n==="sending"&&(l=null,f=w.jsx(jd,{className:"h-[24px] w-[24px] fill-white dark:fill-black","data-testid":"button-spinner"}));const g=k.useCallback(v=>{if(a!=null&&a.isFocused){v.stopPropagation();return}},[a]),S=k.useCallback(async()=>{if(!(!a||a.isEmpty)){o("sending");try{await e({html:a.getHTML()})}catch{o("error");return}return r?r():(o("sent"),a.chain().clearContent().blur().run()),!1}},[o,a,e,r]);k.useEffect(()=>{const v=C=>{if(C.metaKey||C.ctrlKey){C.key==="Enter"&&(a!=null&&a.isFocused)&&(S(),a==null||a.commands.blur());return}if(C.key==="Escape"){a!=null&&a.isFocused&&(r?r():a==null||a.commands.blur());return}};return window.addEventListener("keydown",v,{passive:!0}),()=>{window.removeEventListener("keydown",v,{passive:!0})}},[a,r,S]);let b="";return s&&(b=m.commentImprovements&&!!(u!=null&&u.in_reply_to_snippet)?"pl-[1px] pt-[68px] sm:pl-[44px] sm:pt-[56px]":"pl-[1px] pt-[48px] sm:pl-[44px] sm:pt-[40px]"),w.jsxs("div",{className:`relative w-full pl-[40px] transition-[padding] delay-100 duration-150 sm:pl-[44px] ${i&&"pl-0"} ${b}`,children:[w.jsx("div",{className:`text-md min-h-[120px] w-full rounded-lg border border-black/10 bg-white/75 p-2 pb-[68px] font-sans leading-normal transition-all delay-100 duration-150 focus:outline-0 sm:px-3 sm:text-lg dark:bg-white/10 dark:text-neutral-300 ${s?"cursor-text":"cursor-pointer"}
|
|
150
|
-
`,"data-testid":"form-editor",children:w.jsx(
|
|
151
|
-
`},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:o})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:r,storedMarks:i}=n;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:a}=o.extensionManager,l=i||r.$to.parentOffset&&r.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&l&&s){const m=l.filter(d=>a.includes(d.type.name));c.ensureMarks(m)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),
|
|
152
|
-
`,
|
|
149
|
+
`));let d=u.props,p=typeof(d==null?void 0:d.className)=="function"?(...y)=>Ba(d==null?void 0:d.className(...y),l.className):Ba(d==null?void 0:d.className,l.className),f=p?{className:p}:{};return k.cloneElement(u,Object.assign({},E0(u.props,N0(zd(l,["ref"]))),m,c,{ref:r(u.ref,c.ref)},f))}return k.createElement(i,Object.assign({},zd(l,["ref"]),i!==k.Fragment&&c,i!==k.Fragment&&m),u)}function xC(...t){return t.every(e=>e==null)?void 0:e=>{for(let n of t)n!=null&&(typeof n=="function"?n(e):n.current=e)}}function E0(...t){if(t.length===0)return{};if(t.length===1)return t[0];let e={},n={};for(let o of t)for(let r in o)r.startsWith("on")&&typeof o[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(o[r])):e[r]=o[r];if(e.disabled||e["aria-disabled"])return Object.assign(e,Object.fromEntries(Object.keys(n).map(o=>[o,void 0])));for(let o in n)Object.assign(e,{[o](r,...i){let s=n[o];for(let a of s){if((r instanceof Event||(r==null?void 0:r.nativeEvent)instanceof Event)&&r.defaultPrevented)return;a(r,...i)}}});return e}function Ld(t){var e;return Object.assign(k.forwardRef(t),{displayName:(e=t.displayName)!=null?e:t.name})}function N0(t){let e=Object.assign({},t);for(let n in e)e[n]===void 0&&delete e[n];return e}function zd(t,e=[]){let n=Object.assign({},t);for(let o of e)o in n&&delete n[o];return n}let Fd=k.createContext(null);Fd.displayName="OpenClosedContext";var Jt=(t=>(t[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t))(Jt||{});function D0(){return k.useContext(Fd)}function kC({value:t,children:e}){return _.createElement(Fd.Provider,{value:t},e)}function Hd(){let t=k.useRef(!1);return Ii(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function $C(t=0){let[e,n]=k.useState(t),o=Hd(),r=k.useCallback(l=>{o.current&&n(c=>c|l)},[e,o]),i=k.useCallback(l=>!!(e&l),[e]),s=k.useCallback(l=>{o.current&&n(c=>c&~l)},[n,o]),a=k.useCallback(l=>{o.current&&n(c=>c^l)},[n]);return{flags:e,addFlag:r,hasFlag:i,removeFlag:s,toggleFlag:a}}function CC(t){let e={called:!1};return(...n)=>{if(!e.called)return e.called=!0,t(...n)}}function Bd(t,...e){t&&e.length>0&&t.classList.add(...e)}function Vd(t,...e){t&&e.length>0&&t.classList.remove(...e)}function EC(t,e){let n=Li();if(!t)return n.dispose;let{transitionDuration:o,transitionDelay:r}=getComputedStyle(t),[i,s]=[o,r].map(l=>{let[c=0]=l.split(",").filter(Boolean).map(u=>u.includes("ms")?parseFloat(u):parseFloat(u)*1e3).sort((u,m)=>m-u);return c}),a=i+s;if(a!==0){n.group(c=>{c.setTimeout(()=>{e(),c.dispose()},a),c.addEventListener(t,"transitionrun",u=>{u.target===u.currentTarget&&c.dispose()})});let l=n.addEventListener(t,"transitionend",c=>{c.target===c.currentTarget&&(e(),l())})}else e();return n.add(()=>e()),n.dispose}function NC(t,e,n,o){let r=n?"enter":"leave",i=Li(),s=o!==void 0?CC(o):()=>{};r==="enter"&&(t.removeAttribute("hidden"),t.style.display="");let a=At(r,{enter:()=>e.enter,leave:()=>e.leave}),l=At(r,{enter:()=>e.enterTo,leave:()=>e.leaveTo}),c=At(r,{enter:()=>e.enterFrom,leave:()=>e.leaveFrom});return Vd(t,...e.base,...e.enter,...e.enterTo,...e.enterFrom,...e.leave,...e.leaveFrom,...e.leaveTo,...e.entered),Bd(t,...e.base,...a,...c),i.nextFrame(()=>{Vd(t,...e.base,...a,...c),Bd(t,...e.base,...a,...l),EC(t,()=>(Vd(t,...e.base,...a),Bd(t,...e.base,...e.entered),s()))}),i.dispose}function DC({immediate:t,container:e,direction:n,classes:o,onStart:r,onStop:i}){let s=Hd(),a=S0(),l=lr(n);Ii(()=>{t&&(l.current="enter")},[t]),Ii(()=>{let c=Li();a.add(c.dispose);let u=e.current;if(u&&l.current!=="idle"&&s.current)return c.dispose(),r.current(l.current),c.add(NC(u,o.current,l.current==="enter",()=>{c.dispose(),i.current(l.current)})),c.dispose},[n])}function On(t=""){return t.split(/\s+/).filter(e=>e.length>1)}let Ua=k.createContext(null);Ua.displayName="TransitionContext";var AC=(t=>(t.Visible="visible",t.Hidden="hidden",t))(AC||{});function RC(){let t=k.useContext(Ua);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}function OC(){let t=k.useContext(_a);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}let _a=k.createContext(null);_a.displayName="NestingContext";function Ja(t){return"children"in t?Ja(t.children):t.current.filter(({el:e})=>e.current!==null).filter(({state:e})=>e==="visible").length>0}function A0(t,e){let n=lr(t),o=k.useRef([]),r=Hd(),i=S0(),s=_t((p,f=Rn.Hidden)=>{let y=o.current.findIndex(({el:h})=>h===p);y!==-1&&(At(f,{[Rn.Unmount](){o.current.splice(y,1)},[Rn.Hidden](){o.current[y].state="hidden"}}),i.microTask(()=>{var h;!Ja(o)&&r.current&&((h=n.current)==null||h.call(n))}))}),a=_t(p=>{let f=o.current.find(({el:y})=>y===p);return f?f.state!=="visible"&&(f.state="visible"):o.current.push({el:p,state:"visible"}),()=>s(p,Rn.Unmount)}),l=k.useRef([]),c=k.useRef(Promise.resolve()),u=k.useRef({enter:[],leave:[],idle:[]}),m=_t((p,f,y)=>{l.current.splice(0),e&&(e.chains.current[f]=e.chains.current[f].filter(([h])=>h!==p)),e==null||e.chains.current[f].push([p,new Promise(h=>{l.current.push(h)})]),e==null||e.chains.current[f].push([p,new Promise(h=>{Promise.all(u.current[f].map(([g,b])=>b)).then(()=>h())})]),f==="enter"?c.current=c.current.then(()=>e==null?void 0:e.wait.current).then(()=>y(f)):y(f)}),d=_t((p,f,y)=>{Promise.all(u.current[f].splice(0).map(([h,g])=>g)).then(()=>{var h;(h=l.current.shift())==null||h()}).then(()=>y(f))});return k.useMemo(()=>({children:o,register:a,unregister:s,onStart:m,onStop:d,wait:c,chains:u}),[a,s,o,m,d,u,c])}function MC(){}let TC=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function R0(t){var e;let n={};for(let o of TC)n[o]=(e=t[o])!=null?e:MC;return n}function jC(t){let e=k.useRef(R0(t));return k.useEffect(()=>{e.current=R0(t)},[t]),e}let PC="div",O0=$0.RenderStrategy;function IC(t,e){var n,o;let{beforeEnter:r,afterEnter:i,beforeLeave:s,afterLeave:a,enter:l,enterFrom:c,enterTo:u,entered:m,leave:d,leaveFrom:p,leaveTo:f,...y}=t,h=k.useRef(null),g=k0(h,e),b=(n=y.unmount)==null||n?Rn.Unmount:Rn.Hidden,{show:v,appear:S,initial:C}=RC(),[x,$]=k.useState(v?"visible":"hidden"),R=OC(),{register:E,unregister:U}=R;k.useEffect(()=>E(h),[E,h]),k.useEffect(()=>{if(b===Rn.Hidden&&h.current){if(v&&x!=="visible"){$("visible");return}return At(x,{hidden:()=>U(h),visible:()=>E(h)})}},[x,h,E,U,v,b]);let se=lr({base:On(y.className),enter:On(l),enterFrom:On(c),enterTo:On(u),entered:On(m),leave:On(d),leaveFrom:On(p),leaveTo:On(f)}),X=jC({beforeEnter:r,afterEnter:i,beforeLeave:s,afterLeave:a}),G=x0();k.useEffect(()=>{if(G&&x==="visible"&&h.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[h,x,G]);let De=C&&!S,le=S&&v&&C,pe=(()=>!G||De?"idle":v?"enter":"leave")(),de=$C(0),Q=_t(W=>At(W,{enter:()=>{de.addFlag(Jt.Opening),X.current.beforeEnter()},leave:()=>{de.addFlag(Jt.Closing),X.current.beforeLeave()},idle:()=>{}})),ce=_t(W=>At(W,{enter:()=>{de.removeFlag(Jt.Opening),X.current.afterEnter()},leave:()=>{de.removeFlag(Jt.Closing),X.current.afterLeave()},idle:()=>{}})),Se=A0(()=>{$("hidden"),U(h)},R),O=k.useRef(!1);DC({immediate:le,container:h,classes:se,direction:pe,onStart:lr(W=>{O.current=!0,Se.onStart(h,W,Q)}),onStop:lr(W=>{O.current=!1,Se.onStop(h,W,ce),W==="leave"&&!Ja(Se)&&($("hidden"),U(h))})});let I=y,H={ref:g};return le?I={...I,className:Ba(y.className,...se.current.enter,...se.current.enterFrom)}:O.current&&(I.className=Ba(y.className,(o=h.current)==null?void 0:o.className),I.className===""&&delete I.className),_.createElement(_a.Provider,{value:Se},_.createElement(kC,{value:At(x,{visible:Jt.Open,hidden:Jt.Closed})|de.flags},C0({ourProps:H,theirProps:I,defaultTag:PC,features:O0,visible:x==="visible",name:"Transition.Child"})))}function LC(t,e){let{show:n,appear:o=!1,unmount:r=!0,...i}=t,s=k.useRef(null),a=k0(s,e);x0();let l=D0();if(n===void 0&&l!==null&&(n=(l&Jt.Open)===Jt.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=k.useState(n?"visible":"hidden"),m=A0(()=>{u("hidden")}),[d,p]=k.useState(!0),f=k.useRef([n]);Ii(()=>{d!==!1&&f.current[f.current.length-1]!==n&&(f.current.push(n),p(!1))},[f,n]);let y=k.useMemo(()=>({show:n,appear:o,initial:d}),[n,o,d]);k.useEffect(()=>{if(n)u("visible");else if(!Ja(m))u("hidden");else{let v=s.current;if(!v)return;let S=v.getBoundingClientRect();S.x===0&&S.y===0&&S.width===0&&S.height===0&&u("hidden")}},[n,m]);let h={unmount:r},g=_t(()=>{var v;d&&p(!1),(v=t.beforeEnter)==null||v.call(t)}),b=_t(()=>{var v;d&&p(!1),(v=t.beforeLeave)==null||v.call(t)});return _.createElement(_a.Provider,{value:m},_.createElement(Ua.Provider,{value:y},C0({ourProps:{...h,as:k.Fragment,children:_.createElement(M0,{ref:a,...h,...i,beforeEnter:g,beforeLeave:b})},theirProps:{},defaultTag:k.Fragment,features:O0,visible:c==="visible",name:"Transition"})))}function zC(t,e){let n=k.useContext(Ua)!==null,o=D0()!==null;return _.createElement(_.Fragment,null,!n&&o?_.createElement(Ud,{ref:e,...t}):_.createElement(M0,{ref:e,...t}))}let Ud=Ld(LC),M0=Ld(IC),FC=Ld(zC),co=Object.assign(Ud,{Child:FC,Root:Ud});function HC(t,e){const n=k.useRef(null),o=k.useCallback(r=>{n.current&&e&&e(n.current),r&&t&&t(r),n.current=r},[t,e]);return[n,o]}function BC(t){const{popup:e}=B();return(e==null?void 0:e.type)===t}function VC(t){const{t:e}=B();return k.useMemo(()=>Z1(t,e),[t])}const UC=({comment:t,submit:e,progress:n,setProgress:o,close:r,reduced:i,isOpen:s,editor:a,submitText:l,submitSize:c,openForm:u})=>{const m=Xe(),{dispatchAction:d,t:p}=B();let f=null;const[y,h]=k.useState(!1);k.useEffect(()=>{if(a){const S=()=>{const C=!a.isEmpty;if(h(C),u){const x=t&&u.type==="edit"?a.getHTML()!==t.html:C;u.hasUnsavedChanges!==x&&d("setCommentFormHasUnsavedChanges",{id:u.id,hasUnsavedChanges:x})}};return a.on("update",S),a.on("transaction",S),S(),()=>{a.off("update",S),a.off("transaction",S)}}},[a,t,u,d]),n==="sending"&&(f=w.jsx(Fa,{className:`h-[24px] w-[24px] fill-white ${m.commentImprovements?"":"dark:fill-black"}`,"data-testid":"button-spinner"}));const g=k.useCallback(S=>{if(a!=null&&a.isFocused){S.stopPropagation();return}},[a]),b=k.useCallback(async()=>{if(!(!a||a.isEmpty)){o("sending");try{await e({html:a.getHTML()})}catch{o("error");return}return r?r():(o("sent"),a.chain().clearContent().blur().run()),!1}},[o,a,e,r]);k.useEffect(()=>{const S=C=>{if(C.metaKey||C.ctrlKey){C.key==="Enter"&&(a!=null&&a.isFocused)&&(b(),a==null||a.commands.blur());return}if(C.key==="Escape"){a!=null&&a.isFocused&&(r?r():a==null||a.commands.blur());return}};return window.addEventListener("keydown",S,{passive:!0}),()=>{window.removeEventListener("keydown",S,{passive:!0})}},[a,r,b]);let v="";return s&&(v=m.commentImprovements&&!!(u!=null&&u.in_reply_to_snippet)?"pl-[1px] pt-[68px] sm:pl-[44px] sm:pt-[56px]":"pl-[1px] pt-[48px] sm:pl-[44px] sm:pt-[40px]"),w.jsxs("div",{className:`relative w-full pl-[40px] transition-[padding] delay-100 duration-150 sm:pl-[44px] ${i&&"pl-0"} ${v}`,children:[w.jsx("div",{className:`text-md min-h-[120px] w-full rounded-lg border border-black/10 bg-white/75 p-2 pb-[68px] font-sans leading-normal transition-all delay-100 duration-150 focus:outline-0 sm:px-3 sm:text-lg dark:bg-white/10 dark:text-neutral-300 ${s?"cursor-text":"cursor-pointer"}
|
|
150
|
+
`,"data-testid":"form-editor",children:w.jsx(rC,{editor:a,onMouseDown:g,onTouchStart:g})}),w.jsxs("div",{className:"absolute bottom-1 right-1 flex space-x-4 transition-[opacity] duration-150 sm:bottom-2 sm:right-2",children:[r&&w.jsx("button",{className:"ml-2.5 font-sans text-sm font-medium text-neutral-900/50 outline-0 transition-all hover:text-neutral-900/70 dark:text-white/60 dark:hover:text-white/75",type:"button",onClick:r,children:p("Cancel")}),m.commentImprovements?w.jsxs("button",{className:`flex w-auto items-center justify-center ${c==="medium"&&"sm:min-w-[100px]"} ${c==="small"&&"sm:min-w-[64px]"} h-[40px] rounded-md bg-[var(--gh-accent-color)] px-3 py-2 text-center font-sans text-base font-medium text-white outline-0 transition-colors duration-200 hover:brightness-105 disabled:bg-black/5 disabled:text-neutral-900/30 sm:text-sm dark:disabled:bg-white/15 dark:disabled:text-white/35`,"data-testid":"submit-form-button",disabled:!y,type:"button",onClick:b,children:[f&&w.jsx("span",{className:"mr-1",children:f}),l&&w.jsx("span",{children:l})]}):w.jsxs("button",{className:`flex w-auto items-center justify-center ${c==="medium"&&"sm:min-w-[100px]"} ${c==="small"&&"sm:min-w-[64px]"} h-[40px] rounded-[6px] bg-neutral-900 px-3 py-2 text-center font-sans text-base font-medium text-white/95 outline-0 transition-all duration-150 hover:bg-black hover:text-white sm:text-sm dark:bg-white/95 dark:text-neutral-800 dark:hover:bg-white dark:hover:text-neutral-900`,"data-testid":"submit-form-button",type:"button",onClick:b,children:[w.jsx("span",{children:f}),l&&w.jsx("span",{children:l})]})]})]})},_C=({show:t,name:e,expertise:n,replyingToText:o,editName:r,editExpertise:i})=>{const{t:s}=B(),l=Xe().commentImprovements&&o;return w.jsxs(co,{enter:"transition duration-500 delay-100 ease-in-out",enterFrom:"opacity-0 -translate-x-2",enterTo:"opacity-100 translate-x-0",leave:"transition-none duration-0",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:t,children:[w.jsxs("div",{className:"flex flex-wrap",children:[w.jsx("div",{className:"w-full font-sans text-base font-bold leading-snug text-neutral-900 sm:w-auto sm:text-sm dark:text-white/85","data-testid":"member-name",onClick:r,children:e||"Anonymous"}),w.jsx("div",{className:"flex items-baseline justify-start",children:w.jsxs("button",{className:`group flex items-center justify-start whitespace-nowrap text-left font-sans text-base leading-snug text-neutral-900/50 transition duration-150 hover:text-black/75 sm:text-sm dark:text-white/60 dark:hover:text-white/75 ${!n&&"text-black/30 hover:text-black/50 dark:text-white/30 dark:hover:text-white/50"}`,"data-testid":"expertise-button",type:"button",onClick:i,children:[w.jsxs("span",{children:[w.jsx("span",{className:"mx-[0.3em] hidden sm:inline",children:"·"}),n||"Add your expertise"]}),n&&w.jsx(iw,{className:"ml-1 h-[12px] w-[12px] translate-x-[-6px] stroke-black/50 opacity-0 transition-all duration-100 ease-out group-hover:translate-x-0 group-hover:stroke-black/75 group-hover:opacity-100 dark:stroke-white/60 dark:group-hover:stroke-white/75"})]})})]}),l&&w.jsxs("div",{className:"mt-0.5 line-clamp-1 font-sans text-base leading-snug text-neutral-900/50 sm:text-sm dark:text-white/60","data-testid":"replying-to",children:[w.jsxs("span",{children:[s("Reply to"),":"]})," ",w.jsx("span",{className:"font-semibold text-neutral-900/60 dark:text-white/70",children:o})]})]})},_d=({comment:t,submit:e,submitText:n,submitSize:o,close:r,editor:i,reduced:s,isOpen:a,openForm:l})=>{var x,$;const{member:c,dispatchAction:u}=B(),m=BC("addDetailsPopup"),[d,p]=k.useState("default"),f=k.useRef(null),y=(c==null?void 0:c.name)??((x=t==null?void 0:t.member)==null?void 0:x.name),h=(c==null?void 0:c.expertise)??(($=t==null?void 0:t.member)==null?void 0:$.expertise);(d==="sending"||y&&m)&&(a=!0);const g=R=>{if(i!=null&&i.isFocused){R.preventDefault();return}},b=k.useCallback(R=>{var E;(E=i==null?void 0:i.commands)==null||E.blur(),u("openPopup",{type:"addDetailsPopup",expertiseAutofocus:R.expertiseAutofocus??!1,callback:function(U){!i||!f.current||U&&(i.setEditable(!0),i.commands.focus())}})},[i,u,f]),v=k.useCallback(()=>{b({expertiseAutofocus:!1})},[b]),S=k.useCallback(()=>{b({expertiseAutofocus:!0})},[b]),C=k.useCallback(()=>{if(i&&!i.isFocused){if(!y){v();return}i.commands.focus()}},[i,v,y]);return k.useEffect(()=>{i&&i.setEditable(!!y&&d!=="sending")},[i,y,d]),w.jsx("form",{ref:f,className:`-mx-2 mb-7 mt-[-10px] rounded-md transition duration-200 ${a?"cursor-default":"cursor-pointer"}`,"data-testid":"form",onClick:C,onMouseDown:g,onTouchStart:g,children:w.jsxs("div",{className:"relative w-full",children:[w.jsx("div",{className:"pr-[1px] font-sans leading-normal dark:text-neutral-300",children:w.jsx(UC,{close:r,comment:t,editor:i,isOpen:a,openForm:l,progress:d,reduced:s,setProgress:p,submit:e,submitSize:o,submitText:n})}),w.jsxs("div",{className:"absolute left-0 top-1 flex h-11 w-full items-start justify-start sm:h-12",children:[w.jsx("div",{className:"pointer-events-none mr-2 grow-0 sm:mr-3",children:w.jsx(Ml,{comment:t})}),w.jsx("div",{className:"grow-1 mt-0.5 w-full",children:w.jsx(_C,{editExpertise:S,editName:v,expertise:h,name:y,replyingToId:l==null?void 0:l.in_reply_to_id,replyingToText:l==null?void 0:l.in_reply_to_snippet,show:a})})]})]})})},JC=/^\s*>\s$/,YC=cn.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",Mo(this.options.HTMLAttributes,t),0]},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[ek({find:JC,type:this.type})]}}),KC=cn.create({name:"doc",topNode:!0,content:"block+"}),WC=cn.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",Mo(this.options.HTMLAttributes,t)]},renderText(){return`
|
|
151
|
+
`},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:o})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:r,storedMarks:i}=n;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:a}=o.extensionManager,l=i||r.$to.parentOffset&&r.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&l&&s){const m=l.filter(d=>a.includes(d.type.name));c.ensureMarks(m)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),qC="aaa1rp3barth4b0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re2s2c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y0eats7k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking0channel11l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t0isalat7u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0at2delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d0network8tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0eles2s3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster5ia3d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0cys3drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7serati6ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic3tual5v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rthwesternmutual14on4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cher3ks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w0time7i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0channel7ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",GC="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5تصالات6رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",cr=(t,e)=>{for(const n in e)t[n]=e[n];return t},Jd="numeric",Yd="ascii",Kd="alpha",Ya="asciinumeric",Ka="alphanumeric",Wd="domain",T0="emoji",QC="scheme",ZC="slashscheme",j0="whitespace";function XC(t,e){return t in e||(e[t]=[]),e[t]}function uo(t,e,n){e[Jd]&&(e[Ya]=!0,e[Ka]=!0),e[Yd]&&(e[Ya]=!0,e[Kd]=!0),e[Ya]&&(e[Ka]=!0),e[Kd]&&(e[Ka]=!0),e[Ka]&&(e[Wd]=!0),e[T0]&&(e[Wd]=!0);for(const o in e){const r=XC(o,n);r.indexOf(t)<0&&r.push(t)}}function eE(t,e){const n={};for(const o in e)e[o].indexOf(t)>=0&&(n[o]=!0);return n}function We(t){t===void 0&&(t=null),this.j={},this.jr=[],this.jd=null,this.t=t}We.groups={},We.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let o=0;o<e.jr.length;o++){const r=e.jr[o][0],i=e.jr[o][1];if(i&&r.test(t))return i}return e.jd},has(t,e){return e===void 0&&(e=!1),e?t in this.j:!!this.go(t)},ta(t,e,n,o){for(let r=0;r<t.length;r++)this.tt(t[r],e,n,o)},tr(t,e,n,o){o=o||We.groups;let r;return e&&e.j?r=e:(r=new We(e),n&&o&&uo(e,n,o)),this.jr.push([t,r]),r},ts(t,e,n,o){let r=this;const i=t.length;if(!i)return r;for(let s=0;s<i-1;s++)r=r.tt(t[s]);return r.tt(t[i-1],e,n,o)},tt(t,e,n,o){o=o||We.groups;const r=this;if(e&&e.j)return r.j[t]=e,e;const i=e;let s,a=r.go(t);if(a?(s=new We,cr(s.j,a.j),s.jr.push.apply(s.jr,a.jr),s.jd=a.jd,s.t=a.t):s=new We,i){if(o)if(s.t&&typeof s.t=="string"){const l=cr(eE(s.t,o),n);uo(i,l,o)}else n&&uo(i,n,o);s.t=i}return r.j[t]=s,s}};const P=(t,e,n,o,r)=>t.ta(e,n,o,r),dt=(t,e,n,o,r)=>t.tr(e,n,o,r),P0=(t,e,n,o,r)=>t.ts(e,n,o,r),D=(t,e,n,o,r)=>t.tt(e,n,o,r),Yt="WORD",qd="UWORD",zi="LOCALHOST",Gd="TLD",Qd="UTLD",Wa="SCHEME",ur="SLASH_SCHEME",Zd="NUM",I0="WS",Xd="NL",dr="OPENBRACE",Fi="OPENBRACKET",Hi="OPENANGLEBRACKET",Bi="OPENPAREN",mo="CLOSEBRACE",mr="CLOSEBRACKET",fr="CLOSEANGLEBRACKET",fo="CLOSEPAREN",qa="AMPERSAND",Ga="APOSTROPHE",Qa="ASTERISK",Mn="AT",Za="BACKSLASH",Xa="BACKTICK",el="CARET",Tn="COLON",em="COMMA",tl="DOLLAR",Rt="DOT",nl="EQUALS",tm="EXCLAMATION",Ot="HYPHEN",ol="PERCENT",rl="PIPE",il="PLUS",sl="POUND",al="QUERY",nm="QUOTE",om="SEMI",Mt="SLASH",Vi="TILDE",ll="UNDERSCORE",L0="EMOJI",cl="SYM";var z0=Object.freeze({__proto__:null,WORD:Yt,UWORD:qd,LOCALHOST:zi,TLD:Gd,UTLD:Qd,SCHEME:Wa,SLASH_SCHEME:ur,NUM:Zd,WS:I0,NL:Xd,OPENBRACE:dr,OPENBRACKET:Fi,OPENANGLEBRACKET:Hi,OPENPAREN:Bi,CLOSEBRACE:mo,CLOSEBRACKET:mr,CLOSEANGLEBRACKET:fr,CLOSEPAREN:fo,AMPERSAND:qa,APOSTROPHE:Ga,ASTERISK:Qa,AT:Mn,BACKSLASH:Za,BACKTICK:Xa,CARET:el,COLON:Tn,COMMA:em,DOLLAR:tl,DOT:Rt,EQUALS:nl,EXCLAMATION:tm,HYPHEN:Ot,PERCENT:ol,PIPE:rl,PLUS:il,POUND:sl,QUERY:al,QUOTE:nm,SEMI:om,SLASH:Mt,TILDE:Vi,UNDERSCORE:ll,EMOJI:L0,SYM:cl});const pr=/[a-z]/,rm=/\p{L}/u,im=/\p{Emoji}/u,sm=/\d/,F0=/\s/,H0=`
|
|
152
|
+
`,tE="️",nE="";let ul=null,dl=null;function oE(t){t===void 0&&(t=[]);const e={};We.groups=e;const n=new We;ul==null&&(ul=B0(qC)),dl==null&&(dl=B0(GC)),D(n,"'",Ga),D(n,"{",dr),D(n,"[",Fi),D(n,"<",Hi),D(n,"(",Bi),D(n,"}",mo),D(n,"]",mr),D(n,">",fr),D(n,")",fo),D(n,"&",qa),D(n,"*",Qa),D(n,"@",Mn),D(n,"`",Xa),D(n,"^",el),D(n,":",Tn),D(n,",",em),D(n,"$",tl),D(n,".",Rt),D(n,"=",nl),D(n,"!",tm),D(n,"-",Ot),D(n,"%",ol),D(n,"|",rl),D(n,"+",il),D(n,"#",sl),D(n,"?",al),D(n,'"',nm),D(n,"/",Mt),D(n,";",om),D(n,"~",Vi),D(n,"_",ll),D(n,"\\",Za);const o=dt(n,sm,Zd,{[Jd]:!0});dt(o,sm,o);const r=dt(n,pr,Yt,{[Yd]:!0});dt(r,pr,r);const i=dt(n,rm,qd,{[Kd]:!0});dt(i,pr),dt(i,rm,i);const s=dt(n,F0,I0,{[j0]:!0});D(n,H0,Xd,{[j0]:!0}),D(s,H0),dt(s,F0,s);const a=dt(n,im,L0,{[T0]:!0});dt(a,im,a),D(a,tE,a);const l=D(a,nE);dt(l,im,a);const c=[[pr,r]],u=[[pr,null],[rm,i]];for(let m=0;m<ul.length;m++)jn(n,ul[m],Gd,Yt,c);for(let m=0;m<dl.length;m++)jn(n,dl[m],Qd,qd,u);uo(Gd,{tld:!0,ascii:!0},e),uo(Qd,{utld:!0,alpha:!0},e),jn(n,"file",Wa,Yt,c),jn(n,"mailto",Wa,Yt,c),jn(n,"http",ur,Yt,c),jn(n,"https",ur,Yt,c),jn(n,"ftp",ur,Yt,c),jn(n,"ftps",ur,Yt,c),uo(Wa,{scheme:!0,ascii:!0},e),uo(ur,{slashscheme:!0,ascii:!0},e),t=t.sort((m,d)=>m[0]>d[0]?1:-1);for(let m=0;m<t.length;m++){const d=t[m][0],f=t[m][1]?{[QC]:!0}:{[ZC]:!0};d.indexOf("-")>=0?f[Wd]=!0:pr.test(d)?sm.test(d)?f[Ya]=!0:f[Yd]=!0:f[Jd]=!0,P0(n,d,d,f)}return P0(n,"localhost",zi,{ascii:!0}),n.jd=new We(cl),{start:n,tokens:cr({groups:e},z0)}}function rE(t,e){const n=iE(e.replace(/[A-Z]/g,a=>a.toLowerCase())),o=n.length,r=[];let i=0,s=0;for(;s<o;){let a=t,l=null,c=0,u=null,m=-1,d=-1;for(;s<o&&(l=a.go(n[s]));)a=l,a.accepts()?(m=0,d=0,u=a):m>=0&&(m+=n[s].length,d++),c+=n[s].length,i+=n[s].length,s++;i-=m,s-=d,c-=m,r.push({t:u.t,v:e.slice(i-c,i),s:i-c,e:i})}return r}function iE(t){const e=[],n=t.length;let o=0;for(;o<n;){let r=t.charCodeAt(o),i,s=r<55296||r>56319||o+1===n||(i=t.charCodeAt(o+1))<56320||i>57343?t[o]:t.slice(o,o+2);e.push(s),o+=s.length}return e}function jn(t,e,n,o,r){let i;const s=e.length;for(let a=0;a<s-1;a++){const l=e[a];t.j[l]?i=t.j[l]:(i=new We(o),i.jr=r.slice(),t.j[l]=i),t=i}return i=new We(n),i.jr=r.slice(),t.j[e[s-1]]=i,i}function B0(t){const e=[],n=[];let o=0,r="0123456789";for(;o<t.length;){let i=0;for(;r.indexOf(t[o+i])>=0;)i++;if(i>0){e.push(n.join(""));for(let s=parseInt(t.substring(o,o+i),10);s>0;s--)n.pop();o+=i}else n.push(t[o]),o++}return e}const Ui={defaultProtocol:"http",events:null,format:V0,formatHref:V0,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function am(t,e){e===void 0&&(e=null);let n=cr({},Ui);t&&(n=cr(n,t instanceof am?t.o:t));const o=n.ignoreTags,r=[];for(let i=0;i<o.length;i++)r.push(o[i].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=r}am.prototype={o:Ui,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const o=e!=null;let r=this.o[t];return r&&(typeof r=="object"?(r=n.t in r?r[n.t]:Ui[t],typeof r=="function"&&o&&(r=r(e,n))):typeof r=="function"&&o&&(r=r(e,n.t,n)),r)},getObj(t,e,n){let o=this.o[t];return typeof o=="function"&&e!=null&&(o=o(e,n.t,n)),o},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function V0(t){return t}function U0(t,e){this.t="token",this.v=t,this.tk=e}U0.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),o=t.get("format",e,this);return n&&o.length>n?o.substring(0,n)+"…":o},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t){return t===void 0&&(t=Ui.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),o=t.get("formatHref",n,this),r=t.get("tagName",n,e),i=this.toFormattedString(t),s={},a=t.get("className",n,e),l=t.get("target",n,e),c=t.get("rel",n,e),u=t.getObj("attributes",n,e),m=t.getObj("events",n,e);return s.href=o,a&&(s.class=a),l&&(s.target=l),c&&(s.rel=c),u&&cr(s,u),{tagName:r,attributes:s,content:i,eventListeners:m}}};function ml(t,e){class n extends U0{constructor(r,i){super(r,i),this.t=t}}for(const o in e)n.prototype[o]=e[o];return n.t=t,n}const _0=ml("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),J0=ml("text"),sE=ml("nl"),po=ml("url",{isLink:!0,toHref(t){return t===void 0&&(t=Ui.defaultProtocol),this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==zi&&t[1].t===Tn}}),ve=t=>new We(t);function aE(t){let{groups:e}=t;const n=e.domain.concat([qa,Qa,Mn,Za,Xa,el,tl,nl,Ot,Zd,ol,rl,il,sl,Mt,cl,Vi,ll]),o=[Ga,fr,mo,mr,fo,Tn,em,Rt,tm,Hi,dr,Fi,Bi,al,nm,om],r=[qa,Ga,Qa,Za,Xa,el,mo,tl,nl,Ot,dr,ol,rl,il,sl,al,Mt,cl,Vi,ll],i=ve(),s=D(i,Vi);P(s,r,s),P(s,e.domain,s);const a=ve(),l=ve(),c=ve();P(i,e.domain,a),P(i,e.scheme,l),P(i,e.slashscheme,c),P(a,r,s),P(a,e.domain,a);const u=D(a,Mn);D(s,Mn,u),D(l,Mn,u),D(c,Mn,u);const m=D(s,Rt);P(m,r,s),P(m,e.domain,s);const d=ve();P(u,e.domain,d),P(d,e.domain,d);const p=D(d,Rt);P(p,e.domain,d);const f=ve(_0);P(p,e.tld,f),P(p,e.utld,f),D(u,zi,f);const y=D(d,Ot);P(y,e.domain,d),P(f,e.domain,d),D(f,Rt,p),D(f,Ot,y);const h=D(f,Tn);P(h,e.numeric,_0);const g=D(a,Ot),b=D(a,Rt);P(g,e.domain,a),P(b,r,s),P(b,e.domain,a);const v=ve(po);P(b,e.tld,v),P(b,e.utld,v),P(v,e.domain,a),P(v,r,s),D(v,Rt,b),D(v,Ot,g),D(v,Mn,u);const S=D(v,Tn),C=ve(po);P(S,e.numeric,C);const x=ve(po),$=ve();P(x,n,x),P(x,o,$),P($,n,x),P($,o,$),D(v,Mt,x),D(C,Mt,x);const R=D(l,Tn),E=D(c,Tn),U=D(E,Mt),se=D(U,Mt);P(l,e.domain,a),D(l,Rt,b),D(l,Ot,g),P(c,e.domain,a),D(c,Rt,b),D(c,Ot,g),P(R,e.domain,x),D(R,Mt,x),P(se,e.domain,x),P(se,n,x),D(se,Mt,x);const X=D(x,dr),G=D(x,Fi),De=D(x,Hi),le=D(x,Bi);D($,dr,X),D($,Fi,G),D($,Hi,De),D($,Bi,le),D(X,mo,x),D(G,mr,x),D(De,fr,x),D(le,fo,x),D(X,mo,x);const pe=ve(po),de=ve(po),Q=ve(po),ce=ve(po);P(X,n,pe),P(G,n,de),P(De,n,Q),P(le,n,ce);const Se=ve(),O=ve(),I=ve(),H=ve();return P(X,o),P(G,o),P(De,o),P(le,o),P(pe,n,pe),P(de,n,de),P(Q,n,Q),P(ce,n,ce),P(pe,o,pe),P(de,o,de),P(Q,o,Q),P(ce,o,ce),P(Se,n,Se),P(O,n,de),P(I,n,Q),P(H,n,ce),P(Se,o,Se),P(O,o,O),P(I,o,I),P(H,o,H),D(de,mr,x),D(Q,fr,x),D(ce,fo,x),D(pe,mo,x),D(O,mr,x),D(I,fr,x),D(H,fo,x),D(Se,fo,x),D(i,zi,v),D(i,Xd,sE),{start:i,tokens:z0}}function lE(t,e,n){let o=n.length,r=0,i=[],s=[];for(;r<o;){let a=t,l=null,c=null,u=0,m=null,d=-1;for(;r<o&&!(l=a.go(n[r].t));)s.push(n[r++]);for(;r<o&&(c=l||a.go(n[r].t));)l=null,a=c,a.accepts()?(d=0,m=a):d>=0&&d++,r++,u++;if(d<0)r-=u,r<o&&(s.push(n[r]),r++);else{s.length>0&&(i.push(lm(J0,e,s)),s=[]),r-=d,u-=d;const p=m.t,f=n.slice(r-u,r);i.push(lm(p,e,f))}}return s.length>0&&i.push(lm(J0,e,s)),i}function lm(t,e,n){const o=n[0].s,r=n[n.length-1].e,i=e.slice(o,r);return new t(i,n)}const cE=typeof console<"u"&&console&&console.warn||(()=>{}),uE="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",oe={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function dE(){We.groups={},oe.scanner=null,oe.parser=null,oe.tokenQueue=[],oe.pluginQueue=[],oe.customSchemes=[],oe.initialized=!1}function Y0(t,e){if(e===void 0&&(e=!1),oe.initialized&&cE(`linkifyjs: already initialized - will not register custom scheme "${t}" ${uE}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
|
|
153
153
|
1. Must only contain digits, lowercase ASCII letters or "-"
|
|
154
154
|
2. Cannot start or end with "-"
|
|
155
|
-
3. "-" cannot repeat`);oe.customSchemes.push([t,e])}function dE(){oe.scanner=nE(oe.customSchemes);for(let t=0;t<oe.tokenQueue.length;t++)oe.tokenQueue[t][1]({scanner:oe.scanner});oe.parser=sE(oe.scanner.tokens);for(let t=0;t<oe.pluginQueue.length;t++)oe.pluginQueue[t][1]({scanner:oe.scanner,parser:oe.parser});oe.initialized=!0}function K0(t){return oe.initialized||dE(),aE(oe.parser.start,t,oE(oe.scanner.start,t))}function W0(t,e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const o=new sm(n),r=K0(t),i=[];for(let s=0;s<r.length;s++){const a=r[s];a.isLink&&(!e||a.t===e)&&i.push(a.toFormattedObject(o))}return i}function mE(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function fE(t){return new Ve({key:new pt("autolink"),appendTransaction:(e,n,o)=>{const r=e.some(c=>c.docChanged)&&!n.doc.eq(o.doc),i=e.some(c=>c.getMeta("preventAutolink"));if(!r||i)return;const{tr:s}=o,a=xx(n.doc,[...e]);if(Dx(a).forEach(({newRange:c})=>{const u=$x(o.doc,c,p=>p.isTextblock);let m,d;if(u.length>1?(m=u[0],d=o.doc.textBetween(m.pos,m.pos+m.node.nodeSize,void 0," ")):u.length&&o.doc.textBetween(c.from,c.to," "," ").endsWith(" ")&&(m=u[0],d=o.doc.textBetween(m.pos,c.to,void 0," ")),m&&d){const p=d.split(" ").filter(g=>g!=="");if(p.length<=0)return!1;const f=p[p.length-1],y=m.pos+d.lastIndexOf(f);if(!f)return!1;const h=K0(f).map(g=>g.toObject(t.defaultProtocol));if(!mE(h))return!1;h.filter(g=>g.isLink).map(g=>({...g,from:y+g.start+1,to:y+g.end+1})).filter(g=>o.schema.marks.code?!o.doc.rangeHasMark(g.from,g.to,o.schema.marks.code):!0).filter(g=>t.validate(g.value)).forEach(g=>{xh(g.from,g.to,o.doc).some(S=>S.mark.type===t.type)||s.addMark(g.from,g.to,t.type.create({href:g.href}))})}}),!!s.steps.length)return s}})}function pE(t){return new Ve({key:new pt("handleClickLink"),props:{handleClick:(e,n,o)=>{var r,i;if(o.button!==0||!e.editable)return!1;let s=o.target;const a=[];for(;s.nodeName!=="DIV";)a.push(s),s=s.parentNode;if(!a.find(d=>d.nodeName==="A"))return!1;const l=vh(e.state,t.type.name),c=o.target,u=(r=c==null?void 0:c.href)!==null&&r!==void 0?r:l.href,m=(i=c==null?void 0:c.target)!==null&&i!==void 0?i:l.target;return c&&u?(window.open(u,m),!0):!1}}})}function hE(t){return new Ve({key:new pt("handlePasteLink"),props:{handlePaste:(e,n,o)=>{const{state:r}=e,{selection:i}=r,{empty:s}=i;if(s)return!1;let a="";o.content.forEach(c=>{a+=c.textContent});const l=W0(a,{defaultProtocol:t.defaultProtocol}).find(c=>c.isLink&&c.value===a);return!a||!l?!1:(t.editor.commands.setMark(t.type,{href:l.href}),!0)}}})}const gE=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function q0(t,e){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(o=>{const r=typeof o=="string"?o:o.scheme;r&&n.push(r)}),!t||t.replace(gE,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`,"i"))}const yE=Hr.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.protocols.forEach(t=>{if(typeof t=="string"){Y0(t);return}Y0(t.scheme,t.optionalSlashes)})},onDestroy(){uE()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:t=>!!t}},addAttributes(){return{href:{default:null,parseHTML(t){return t.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href");return!e||!q0(e,this.options.protocols)?!1:null}}]},renderHTML({HTMLAttributes:t}){return q0(t.href,this.options.protocols)?["a",Mo(this.options.HTMLAttributes,t),0]:["a",Mo(this.options.HTMLAttributes,{...t,href:""}),0]},addCommands(){return{setLink:t=>({chain:e})=>e().setMark(this.name,t).setMeta("preventAutolink",!0).run(),toggleLink:t=>({chain:e})=>e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[ek({find:t=>{const e=[];if(t){const{validate:n}=this.options,o=W0(t).filter(r=>r.isLink&&n(r.value));o.length&&o.forEach(r=>e.push({text:r.value,data:{href:r.href},index:r.start}))}return e},type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[];return this.options.autolink&&t.push(fE({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:this.options.validate})),this.options.openOnClick===!0&&t.push(pE({type:this.type})),this.options.linkOnPaste&&t.push(hE({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),t}}),wE=cn.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Mo(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),SE=ot.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new Ve({key:new pt("placeholder"),props:{decorations:({doc:t,selection:e})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:o}=e,r=[];if(!n)return null;const i=this.editor.isEmpty;return t.descendants((s,a)=>{const l=o>=a&&o<=a+s.nodeSize,c=!s.isLeaf&&js(s);if((l||!this.options.showOnlyCurrent)&&c){const u=[this.options.emptyNodeClass];i&&u.push(this.options.emptyEditorClass);const m=nt.node(a,a+s.nodeSize,{class:u.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:s,pos:a,hasAnchor:l}):this.options.placeholder});r.push(m)}return this.options.includeChildren}),me.create(t,r)}}})]}}),bE=cn.create({name:"text",group:"inline"});function lm({placeholder:t,autofocus:e=!1,content:n=""}){return{extensions:[YC,bE,wE,yE.configure({openOnClick:!1}),SE.configure({placeholder:t,showOnlyWhenEditable:!1}),JC.configure({}),KC.configure({})],content:n,autofocus:e,editorProps:{attributes:{class:"gh-comment-content focus:outline-0","data-testid":"editor"}},parseOptions:{preserveWhitespace:"full"}}}const vE=({comment:t,openForm:e,parent:n})=>{const{dispatchAction:o,t:r}=B(),i={placeholder:r("Edit this comment"),autofocus:!1,content:t.html},s=Td({...lm(i)});k.useEffect(()=>{s&&s.chain().focus().command(({tr:c,commands:u})=>u.setTextSelection({from:c.doc.content.size,to:c.doc.content.size})).run()},[s]);const a=k.useCallback(async({html:c})=>{await o("editComment",{comment:{id:t.id,html:c},parent:n})},[n,t,o]),l=k.useCallback(()=>{o("closeCommentForm",e.id)},[o,e]);return w.jsx("div",{className:"px-3 pb-2 pt-3",children:w.jsx("div",{className:"mt-[-16px] pr-3",children:w.jsx(Ud,{close:l,comment:t,editor:s,isOpen:!0,openForm:e,reduced:Rl(),submit:a,submitSize:"small",submitText:r("Save")})})})},G0=t=>k.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"black",...t},k.createElement("path",{d:"M8.00025 13.8739L2.46073 8.09636C1.97388 7.60989 1.65255 6.98248 1.54231 6.30312C1.43208 5.62376 1.53853 4.92694 1.84658 4.31148V4.31148C2.07887 3.84703 2.41819 3.44443 2.83659 3.13684C3.25499 2.82925 3.74049 2.62547 4.25308 2.54231C4.76567 2.45914 5.29069 2.49896 5.78488 2.65849C6.27906 2.81802 6.72827 3.09269 7.09549 3.45987L8.00025 4.36406L8.90502 3.45987C9.27224 3.09269 9.72145 2.81802 10.2156 2.65849C10.7098 2.49896 11.2348 2.45914 11.7474 2.54231C12.26 2.62547 12.7455 2.82925 13.1639 3.13684C13.5823 3.44443 13.9216 3.84703 14.1539 4.31148C14.4616 4.9267 14.5678 5.62311 14.4577 6.30208C14.3476 6.98105 14.0267 7.60817 13.5404 8.09462L8.00025 13.8739Z",strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round"})),Q0=({comment:t})=>{const{dispatchAction:e,member:n,commentsEnabled:o}=B(),r=mt(),[i,s]=k.useState(""),a=o==="paid",l=n&&!!n.paid,c=n&&(l||!a),u=()=>{if(!c&&r&&r.commentImprovements){e("openPopup",{type:"ctaPopup"});return}else if(!c)return;t.liked?e("unlikeComment",t):(e("likeComment",t),s("animate-heartbeat"),setTimeout(()=>{s("")},400))},m=c?"button":"span";let d="cursor-pointer";return c||(d="cursor-text"),r&&r.commentImprovements?w.jsxs("button",{className:`duration-50 group flex cursor-pointer items-center font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${t.liked?"text-black/90 dark:text-white/90":"text-black/50 hover:text-black/75 dark:text-white/60 dark:hover:text-white/75"}`,"data-testid":"like-button",type:"button",onClick:u,children:[w.jsx(G0,{className:i+` mr-[6px] ${t.liked?"fill-black dark:fill-white stroke-black dark:stroke-white":"stroke-black/50 group-hover:stroke-black/75 dark:stroke-white/60 dark:group-hover:stroke-white/75"} ${!t.liked&&c&&"group-hover:stroke-black/75 dark:group-hover:stroke-white/75"} transition duration-50 ease-linear`}),t.count.likes]}):w.jsxs(m,{className:`duration-50 group flex items-center font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${t.liked?"text-black/90 dark:text-white/90":"text-black/50 hover:text-black/75 dark:text-white/60 dark:hover:text-white/75"} ${d}`,"data-testid":"like-button",type:"button",onClick:u,children:[w.jsx(G0,{className:i+` mr-[6px] ${t.liked?"fill-black dark:fill-white stroke-black dark:stroke-white":"stroke-black/50 group-hover:stroke-black/75 dark:stroke-white/60 dark:group-hover:stroke-white/75"} ${!t.liked&&c&&"group-hover:stroke-black/75 dark:group-hover:stroke-white/75"} transition duration-50 ease-linear`}),t.count.likes]})},Z0=({comment:t,close:e})=>{const{dispatchAction:n,t:o}=B(),r=()=>{n("hideComment",t),e()},i=()=>{n("showComment",t),e()},s=t.status!=="published";return w.jsx("div",{className:"flex flex-col",children:s?w.jsxs("button",{className:"w-full text-left text-[14px]",type:"button",onClick:i,children:[w.jsx("span",{className:"hidden sm:inline",children:o("Show comment")}),w.jsx("span",{className:"sm:hidden",children:o("Show")})]}):w.jsxs("button",{className:"w-full text-left text-[14px]",type:"button",onClick:r,children:[w.jsx("span",{className:"hidden text-red-600 sm:inline",children:o("Hide comment")}),w.jsx("span",{className:"text-red-600 sm:hidden",children:o("Hide")})]})})},xE=({comment:t,close:e,toggleEdit:n})=>{const{dispatchAction:o,t:r}=B(),i=()=>{o("deleteComment",t),e()};return w.jsxs("div",{className:"flex flex-col",children:[w.jsx("button",{className:"mb-3 w-full text-left text-[14px]","data-testid":"edit",type:"button",onClick:n,children:r("Edit")}),w.jsx("button",{className:"w-full text-left text-[14px] text-red-600",type:"button",onClick:i,children:r("Delete")})]})},kE=({comment:t,close:e})=>{const{dispatchAction:n,t:o}=B(),r=()=>{n("openPopup",{type:"reportPopup",comment:t}),e()};return w.jsx("div",{className:"flex flex-col",children:w.jsxs("button",{className:"w-full text-left text-[14px]",type:"button",onClick:r,children:[w.jsx("span",{className:"hidden sm:inline",children:o("Report comment")}),w.jsx("span",{className:"sm:hidden",children:o("Report")})]})})},$E=({comment:t,close:e,toggleEdit:n,isLastComment:o})=>{var d;const{member:r,admin:i}=B(),s=r&&((d=t.member)==null?void 0:d.uuid)===(r==null?void 0:r.uuid),a=!!i,l=k.useRef(null),c=mt();k.useEffect(()=>{var y,h;const p=()=>{e()};window.addEventListener("click",p,{passive:!0});const f=(h=(y=l.current)==null?void 0:y.ownerDocument)==null?void 0:h.defaultView;return f&&f!==window&&f.addEventListener("click",p,{passive:!0}),()=>{window.removeEventListener("click",p,{passive:!0}),f&&f!==window&&f.removeEventListener("click",p,{passive:!0})}},[e]),k.useEffect(()=>{const p=f=>{f.key==="Escape"&&e()};return window.addEventListener("keydown",p,{passive:!0}),()=>{window.removeEventListener("keydown",p,{passive:!0})}},[e]);const u=p=>{p.stopPropagation()};let m=null;if(t.status==="published")s?m=w.jsx(xE,{close:e,comment:t,toggleEdit:n}):a?m=w.jsx(Z0,{close:e,comment:t}):m=w.jsx(kE,{close:e,comment:t});else if(a)m=w.jsx(Z0,{close:e,comment:t});else return null;return c.commentImprovements?w.jsx("div",{ref:l,className:"relative",onClick:u,children:w.jsx("div",{className:`absolute z-10 min-w-min whitespace-nowrap rounded bg-white py-3 pl-4 pr-8 font-sans text-sm shadow-lg outline-0 sm:min-w-36 dark:bg-neutral-800 dark:text-white ${o?"bottom-full mb-6":"top-0"}`,children:m})}):w.jsx("div",{ref:l,onClick:u,children:w.jsx("div",{className:"absolute z-10 min-w-min whitespace-nowrap rounded bg-white py-3 pl-4 pr-8 font-sans text-sm shadow-lg outline-0 sm:min-w-36 dark:bg-neutral-800 dark:text-white",children:m})})},CE=t=>k.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},k.createElement("path",{d:"M3 12C3.82843 12 4.5 11.3284 4.5 10.5C4.5 9.67157 3.82843 9 3 9C2.17157 9 1.5 9.67157 1.5 10.5C1.5 11.3284 2.17157 12 3 12Z"}),k.createElement("path",{d:"M8 12C8.82843 12 9.5 11.3284 9.5 10.5C9.5 9.67157 8.82843 9 8 9C7.17157 9 6.5 9.67157 6.5 10.5C6.5 11.3284 7.17157 12 8 12Z"}),k.createElement("path",{d:"M13 12C13.8284 12 14.5 11.3284 14.5 10.5C14.5 9.67157 13.8284 9 13 9C12.1716 9 11.5 9.67157 11.5 10.5C11.5 11.3284 12.1716 12 13 12Z"})),ml=({comment:t,toggleEdit:e})=>{var p;const[n,o]=k.useState(!1),{member:r,admin:i,pagination:s,comments:a}=B(),l=!!i,c=()=>{o(f=>!f)},u=()=>{o(!1)},m=(!s||s.total<=s.page*s.limit)&&((p=a[a.length-1])==null?void 0:p.id)===t.id;return!!r&&t.status==="published"||l?w.jsxs("div",{"data-testid":"more-button",children:[w.jsx("button",{className:"outline-0",type:"button",onClick:c,children:w.jsx(CE,{className:`duration-50 gh-comments-icon gh-comments-icon-more outline-0 transition ease-linear hover:fill-black/75 dark:hover:fill-white/75 ${n?"fill-black/75 dark:fill-white/75":"fill-black/50 dark:fill-white/60"}`})}),n?w.jsx($E,{close:u,comment:t,isLastComment:m,toggleEdit:e}):null]}):null},EE=({loadMore:t,count:e})=>{const{t:n}=B(),o=e===1?n("Show 1 more reply"):n("Show {{amount}} more replies",{amount:vr(e)}),r=n("{{amount}} more",{amount:vr(e)});return w.jsx("div",{className:"flex w-full items-center justify-start",children:w.jsx("button",{className:"text-md group mb-10 ml-[48px] flex w-auto items-center px-0 pb-2 pt-0 text-left font-sans font-semibold text-neutral-700 sm:mb-12 dark:text-white ","data-testid":"reply-pagination-button",type:"button",onClick:t,children:w.jsxs("span",{className:"flex h-[40px] w-auto items-center justify-center whitespace-nowrap rounded-[6px] bg-black/5 px-4 py-2 text-center font-sans text-sm font-semibold text-neutral-700 outline-0 transition-all duration-150 hover:bg-black/10 dark:bg-white/15 dark:text-neutral-300 dark:hover:bg-white/20 dark:hover:text-neutral-100",children:["↓ ",w.jsx("span",{className:"ml-1 hidden sm:inline",children:o}),w.jsx("span",{className:"ml-1 inline sm:hidden",children:r})," "]})})})},NE=({comment:t})=>{const{dispatchAction:e}=B(),n=t.count.replies-t.replies.length,o=()=>{e("loadMoreReplies",{comment:t})};return w.jsxs("div",{children:[t.replies.map(r=>w.jsx(cm,{comment:r,parent:t},r.id)),n>0&&w.jsx(EE,{count:n,loadMore:o})]})},AE=t=>k.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",stroke:"black",xmlns:"http://www.w3.org/2000/svg",...t},k.createElement("path",{d:"M7.17463 2.98741C7.17439 2.7888 7.11434 2.59487 7.00229 2.43088C6.89025 2.26689 6.73141 2.14046 6.54647 2.06805C6.36153 1.99564 6.15907 1.98061 5.96546 2.02492C5.77186 2.06923 5.5961 2.17083 5.46107 2.31648L1.86192 6.21418C1.69351 6.39677 1.60001 6.63606 1.60001 6.88445C1.60001 7.13284 1.69351 7.37213 1.86192 7.55472L5.45909 11.4524C5.59412 11.5981 5.76988 11.6997 5.96349 11.744C6.15709 11.7883 6.35955 11.7733 6.54449 11.7009C6.72943 11.6284 6.88827 11.502 7.00032 11.338C7.11236 11.174 7.17242 10.9801 7.17265 10.7815V8.86164H9.12703C10.438 8.86164 11.6953 9.38241 12.6222 10.3094C13.5492 11.2364 14.07 12.4937 14.07 13.8046V9.85023C14.07 8.53927 13.5492 7.28201 12.6222 6.35502C11.6953 5.42803 10.438 4.90726 9.12703 4.90726H7.17265L7.17463 2.98741Z",strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round"})),X0=({disabled:t,isReplying:e,openReplyForm:n})=>{const{member:o,t:r,dispatchAction:i,commentsEnabled:s}=B(),a=mt(),l=s==="paid",c=o&&!!o.paid,u=o&&(c||!l),m=()=>{if(!u&&a&&a.commentImprovements){i("openPopup",{type:"ctaPopup"});return}n()};return!o&&!(a!=null&&a.commentImprovements)?null:w.jsxs("button",{className:`duration-50 group flex items-center font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${e?"text-black/90 dark:text-white/90":"text-black/50 hover:text-black/75 dark:text-white/60 dark:hover:text-white/75"}`,"data-testid":"reply-button",disabled:!!t,type:"button",onClick:m,children:[w.jsx(AE,{className:`mr-[6px] ${e?"fill-black dark:fill-white":"stroke-black/50 group-hover:stroke-black/75 dark:stroke-white/60 dark:group-hover:stroke-white/75"} duration-50 transition ease-linear`}),r("Reply")]})},RE=({openForm:t,parent:e})=>{const{postId:n,dispatchAction:o,t:r}=B(),[,i]=FC(Um),s={placeholder:r("Reply to comment"),autofocus:!0},a=Td({...lm(s)}),l=k.useCallback(async({html:m})=>{await o("addReply",{parent:e,reply:{post_id:n,in_reply_to_id:t.in_reply_to_id,status:"published",html:m}})},[e,n,t,o]),c=k.useCallback(()=>{o("closeCommentForm",t.id)},[o,t]),u=w.jsxs(w.Fragment,{children:[w.jsx("span",{className:"hidden sm:inline",children:r("Add reply")}),w.jsx("span",{className:"sm:hidden",children:r("Reply")})]});return w.jsx("div",{ref:i,children:w.jsx("div",{className:"mt-[-16px] pr-3",children:w.jsx(Ud,{close:c,editor:a,isOpen:!0,openForm:t,reduced:Rl(),submit:l,submitSize:"medium",submitText:u})})})},cm=({comment:t,parent:e})=>w.jsx(co,{"data-testid":"animated-comment",enter:"transition-opacity duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",id:t.id,leave:"transition-opacity duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:!0,appear:!0,children:w.jsx(OE,{comment:t,parent:e})}),OE=({comment:t,parent:e})=>{const{openCommentForms:n}=B(),o=n.find(i=>i.id===t.id&&i.type==="edit");return o?w.jsx(vE,{comment:t,openForm:o,parent:e}):w.jsx(ME,{comment:t,parent:e})},DE=(t,e,n)=>{const o=t.replies&&t.replies.length>0,r=t.status==="deleted",i=t.status==="hidden";return n!=null&&n.commentImprovements?{showDeletedMessage:r&&o,showHiddenMessage:o&&i&&!e,showCommentContent:!r&&(e||t.status==="published")}:{showDeletedMessage:!1,showHiddenMessage:!1,showCommentContent:t.status==="published"}},ME=({comment:t,parent:e})=>{const{dispatchAction:n,admin:o}=B(),r=mt(),{showDeletedMessage:i,showHiddenMessage:s,showCommentContent:a}=DE(t,o,r),l=k.useCallback(()=>{const c={id:t.id,type:"edit",hasUnsavedChanges:!1,in_reply_to_id:t.in_reply_to_id,in_reply_to_snippet:t.in_reply_to_snippet};n("openCommentForm",c)},[t.id,n]);return i?w.jsx(e1,{comment:t,openEditMode:l}):a&&!s?w.jsx(TE,{comment:t,openEditMode:l,parent:e}):!r.commentImprovements&&t.status!=="published"||s?w.jsx(e1,{comment:t,openEditMode:l}):null},TE=({comment:t,parent:e,openEditMode:n})=>{const{dispatchAction:o,openCommentForms:r,admin:i}=B(),l=mt().commentImprovements&&i&&t.status==="hidden"?"opacity-30":"",c=r.find(y=>(y.id===t.id||y.parent_id===t.id)&&y.type==="reply"),u=c&&(!c.parent_id||c.parent_id===t.id),m=!!(c&&c.id===t.id),d=k.useCallback(async()=>{if(c&&c.id===t.id)o("closeCommentForm",c.id);else{const y={};e&&(y.in_reply_to_id=t.id,y.in_reply_to_snippet=nw(t));const h={id:t.id,parent_id:e==null?void 0:e.id,type:"reply",hasUnsavedChanges:!1,...y};await o("openCommentForm",h)}},[t,e,c,o]),p=u||t.replies&&t.replies.length>0,f=w.jsx(Ol,{comment:t});return w.jsxs(o1,{avatar:f,className:l,hasReplies:p,children:[w.jsx(LE,{className:l,comment:t}),w.jsx(zE,{className:l,html:t.html}),w.jsx(FE,{comment:t,highlightReplyButton:m,openEditMode:n,openReplyForm:d,parent:e}),w.jsx(t1,{comment:t}),u&&w.jsx(n1,{comment:t,openForm:c})]})},e1=({comment:t,openEditMode:e})=>{const{openCommentForms:n,t:o,labs:r,admin:i}=B(),s=r.commentImprovements&&i&&t.status!=="deleted"?w.jsx(Ol,{comment:t}):w.jsx(ow,{}),a=t.replies&&t.replies.length>0,l=t.status==="hidden"?o("This comment has been hidden."):t.status==="deleted"?o("This comment has been removed."):"",c=n.find(d=>(d.id===t.id||d.parent_id===t.id)&&d.type==="reply"),u=c&&(!c.parent_id||c.parent_id===t.id),m=i&&t.status==="hidden";return w.jsxs(o1,{avatar:s,hasReplies:a,children:[w.jsx("div",{className:"mt-[-3px] flex items-start",children:w.jsxs("div",{className:"flex h-10 flex-row items-center gap-4 pb-[8px] pr-4",children:[w.jsx("p",{className:"text-md mt-[4px] font-sans leading-normal text-neutral-900/40 sm:text-lg dark:text-white/60",children:l}),m&&w.jsx("div",{className:"mt-[4px]",children:w.jsx(ml,{comment:t,toggleEdit:e})})]})}),w.jsx(t1,{comment:t}),u&&w.jsx(n1,{comment:t,openForm:c})]})},jE=({comment:t})=>{var o;const{member:e}=B(),n=e&&t.member&&t.member.uuid===e.uuid?e.expertise:(o=t==null?void 0:t.member)==null?void 0:o.expertise;return n?w.jsxs("span",{className:"[overflow-wrap:anywhere]",children:[w.jsx("span",{className:"mx-[0.3em] hidden sm:inline-block",children:"·"}),n]}):null},PE=({comment:t})=>{const{t:e}=B();return t.edited_at?w.jsxs("span",{children:[" (",e("edited"),")"]}):null},t1=({comment:t,className:e=""})=>t.replies&&t.replies.length>0?w.jsx("div",{className:`mb-4 ml-[-1.4rem] mt-7 sm:mb-0 sm:mt-8 ${e}`,children:w.jsx(NE,{comment:t})}):null,n1=({comment:t,openForm:e})=>w.jsx("div",{className:"my-8 sm:my-10",children:w.jsx(RE,{openForm:e,parent:t})}),IE=({comment:t})=>{const{t:e}=B(),n=X1(t,e);return w.jsx("h4",{className:"font-sans text-base font-bold leading-snug text-neutral-900 sm:text-sm dark:text-white/85",children:n})},LE=({comment:t,className:e=""})=>{var c;const{t:n}=B(),o=mt(),r=BC(t.created_at),{member:i}=B(),s=i&&t.member&&t.member.uuid===i.uuid?i.expertise:(c=t==null?void 0:t.member)==null?void 0:c.expertise,a=o.commentImprovements&&t.in_reply_to_id&&t.in_reply_to_snippet,l=u=>{if(u.preventDefault(),!u.target)return;const m=u.target.ownerDocument.getElementById(t.in_reply_to_id);m&&m.scrollIntoView({behavior:"smooth",block:"center"})};return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:`mt-0.5 flex flex-wrap items-start sm:flex-row ${s?"flex-col":"flex-row"} ${a?"mb-0.5":"mb-2"} ${e}`,children:[w.jsx(IE,{comment:t}),w.jsx("div",{className:"flex items-baseline pr-4 font-sans text-base leading-snug text-neutral-900/50 sm:text-sm dark:text-white/60",children:w.jsxs("span",{children:[w.jsx(jE,{comment:t}),w.jsxs("span",{title:Z1(t.created_at),children:[w.jsx("span",{className:"mx-[0.3em]",children:"·"}),r]}),w.jsx(PE,{comment:t})]})})]}),a&&w.jsxs("a",{className:"mb-2 line-clamp-1 font-sans text-base leading-snug text-neutral-900/50 sm:text-sm dark:text-white/60",href:`#${t.in_reply_to_id}`,onClick:l,children:[w.jsx("span",{children:n("replied to comment")}),":",w.jsx("span",{className:"ml-0.5 font-semibold text-[#8B8B8B]","data-testid":"comment-in-reply-to",children:t.in_reply_to_snippet})]})]})},zE=({html:t,className:e=""})=>{const n={__html:t};return w.jsx("div",{className:`mt mb-2 flex flex-row items-center gap-4 pr-4 ${e}`,children:w.jsx("p",{dangerouslySetInnerHTML:n,className:"gh-comment-content text-md text-pretty font-sans leading-normal text-neutral-900 [overflow-wrap:anywhere] sm:text-lg dark:text-white/85","data-testid":"comment-content"})})},FE=({comment:t,openReplyForm:e,highlightReplyButton:n,openEditMode:o,parent:r,className:i=""})=>{const{member:s,commentsEnabled:a,t:l,admin:c}=B(),u=mt(),m=a==="paid",d=s&&!!s.paid,p=s&&(d||!m)&&(u.commentImprovements?!0:!r);return u.commentImprovements&&c&&t.status==="hidden"?w.jsxs("div",{className:`flex items-center gap-4 ${i}`,children:[w.jsx("span",{className:"font-sans text-base leading-snug text-red-600 sm:text-sm",children:l("Hidden for members")}),w.jsx(ml,{comment:t,toggleEdit:o})]}):u.commentImprovements?w.jsxs("div",{className:`flex items-center gap-4 ${i}`,children:[w.jsx(Q0,{comment:t}),w.jsx(X0,{isReplying:n,openReplyForm:e}),w.jsx(ml,{comment:t,toggleEdit:o})]}):w.jsxs("div",{className:`flex items-center gap-4 ${i}`,children:[w.jsx(Q0,{comment:t}),p&&w.jsx(X0,{isReplying:n,openReplyForm:e}),w.jsx(ml,{comment:t,toggleEdit:o})]})},HE=({hasReplies:t})=>t?w.jsx("div",{className:"mb-2 h-full w-px grow rounded bg-gradient-to-b from-neutral-900/10 via-neutral-900/10 to-transparent dark:from-white/10 dark:via-white/10"}):null,o1=({children:t,avatar:e,hasReplies:n,className:o=""})=>w.jsxs("div",{className:`flex w-full flex-row ${n===!0?"mb-0":"mb-7"}`,"data-testid":"comment-component",children:[w.jsxs("div",{className:"mr-2 flex flex-col items-center justify-start sm:mr-3",children:[w.jsx("div",{className:`flex-0 mb-3 sm:mb-4 ${o}`,children:e}),w.jsx(HE,{hasReplies:n})]}),w.jsx("div",{className:"grow",children:t})]}),BE=({showCount:t,count:e})=>{const{t:n}=B();return t?e===1?w.jsx("div",{className:"text-md text-neutral-900/50 sm:text-lg dark:text-white/50","data-testid":"count",children:n("1 comment")}):w.jsx("div",{className:"text-md text-neutral-900/50 sm:text-lg dark:text-white/50","data-testid":"count",children:n("{{amount}} comments",{amount:vr(e)})}):null},VE=({title:t})=>{const{t:e}=B();return t===null?w.jsxs(w.Fragment,{children:[w.jsx("span",{className:"sm:hidden",children:e("Discussion")}),w.jsx("span",{className:"hidden sm:inline",children:e("Member discussion")})]}):w.jsx(w.Fragment,{children:t})},r1=({title:t,showCount:e,count:n})=>!t&&!e&&t!==null?null:w.jsxs("div",{className:"mb-7 flex w-full items-baseline justify-between font-sans",children:[w.jsx("h2",{className:"text-[2.2rem] font-bold tracking-tight text-neutral-900 sm:text-2xl dark:text-white","data-testid":"title",children:w.jsx(VE,{title:t})}),w.jsx(BE,{count:n,showCount:e})]}),i1=({commentsCount:t})=>{const{postId:e,dispatchAction:n,t:o}=B(),r={placeholder:o(t===0?"Start the conversation":"Join the discussion"),autofocus:!1},i=Td({...lm(r)},[t]),s=k.useCallback(async({html:u})=>{await n("addComment",{post_id:e,status:"published",html:u}),i==null||i.commands.clearContent()},[e,n,i]),a=k.useRef(null);k.useEffect(()=>{if(!i)return;const u=m=>{var f;if(!i||m.metaKey||m.ctrlKey)return;let d=document.activeElement;for(;d&&d.tagName==="IFRAME"&&d.contentDocument;)d=((f=d.contentDocument)==null?void 0:f.activeElement)??null;const p=d&&(d.tagName==="INPUT"||d.tagName==="TEXTAREA"||d.tagName==="IFRAME"||d.contentEditable==="true");if(m.key==="c"&&!(i!=null&&i.isFocused)&&!p){i==null||i.commands.focus(),a.current&&Um(a.current);return}};return window.addEventListener("keydown",u,{passive:!0}),()=>{window.removeEventListener("keydown",u,{passive:!0})}},[i]);const l={submitText:w.jsxs(w.Fragment,{children:[w.jsxs("span",{className:"hidden sm:inline",children:[o("Add comment")," "]}),w.jsx("span",{className:"sm:hidden",children:o("Comment")})]}),submitSize:"large",submit:s},c=(i==null?void 0:i.isFocused)??!1;return w.jsx("div",{ref:a,className:"px-3 pb-2 pt-3","data-testid":"main-form",children:w.jsx(Ud,{editor:i,isOpen:c,reduced:!1,...l})})},s1=()=>{const{pagination:t,dispatchAction:e,t:n}=B(),o=mt(),r=()=>{e("loadMoreComments",{})};if(!t)return null;const i=t.total-t.page*t.limit;if(i<=0)return null;const s=o.commentImprovements?i===1?"Load more (1)":`Load more (${vr(i)})`:i===1?n("Show 1 previous comment"):n("Show {{amount}} previous comments",{amount:vr(i)});return o.commentImprovements?w.jsx("button",{className:"text-md group mb-10 flex items-center px-0 pb-2 pt-0 text-left font-sans font-semibold text-neutral-700 dark:text-white","data-testid":"pagination-component",type:"button",onClick:r,children:w.jsx("span",{className:"flex h-[40px] items-center justify-center whitespace-nowrap rounded-[6px] bg-black/5 px-4 py-2 text-center font-sans text-sm font-semibold text-neutral-700 outline-0 transition-all duration-150 hover:bg-black/10 dark:bg-white/15 dark:text-neutral-300 dark:hover:bg-white/20 dark:hover:text-neutral-100",children:s})}):w.jsx("button",{className:"text-md group mb-10 flex w-full items-center px-0 pb-2 pt-0 text-left font-sans font-semibold text-neutral-700 dark:text-white","data-testid":"pagination-component",type:"button",onClick:r,children:w.jsxs("span",{className:"flex h-[40px] w-full items-center justify-center whitespace-nowrap rounded-[6px] bg-black/5 px-3 py-2 text-center font-sans text-sm font-semibold text-neutral-700 outline-0 transition-all duration-150 hover:bg-black/10 dark:bg-white/15 dark:text-neutral-300 dark:hover:bg-white/20 dark:hover:text-neutral-100",children:["↑ ",s]})})},fl="ghost-comments-root",UE=t=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},k.createElement("path",{d:"M23.25,7.311,12.53,18.03a.749.749,0,0,1-1.06,0L.75,7.311",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",fillRule:"evenodd"})),_E=()=>{var c;const t=G1(),[e,n]=k.useState(!1),[o,r]=k.useState("count__likes desc, created_at desc"),i=k.useRef(null),s=[{value:"count__likes desc, created_at desc",label:"Best"},{value:"created_at desc",label:"Newest"},{value:"created_at asc",label:"Oldest"}],a=u=>{r(u),t(u),n(!1)};k.useEffect(()=>{var d,p;const u=()=>{n(!1)};window.addEventListener("click",u,{passive:!0});const m=(p=(d=i.current)==null?void 0:d.ownerDocument)==null?void 0:p.defaultView;return m&&m!==window&&m.addEventListener("click",u,{passive:!0}),()=>{window.removeEventListener("click",u,{passive:!0}),m&&m!==window&&m.removeEventListener("click",u,{passive:!0})}},[]);const l=u=>{u.stopPropagation()};return w.jsxs("div",{ref:i,className:"relative","data-testid":"comments-sorting-form",onClick:l,children:[w.jsxs("button",{className:"flex w-full items-center justify-between gap-2 text-sm font-medium text-neutral-900 focus-visible:outline-none dark:text-neutral-100",type:"button",onClick:()=>n(!e),children:[(c=s.find(u=>u.value===o))==null?void 0:c.label,w.jsx("span",{className:"h-2 w-2 stroke-[3px]",children:w.jsx(UE,{})})]}),e&&w.jsx("div",{className:"absolute -left-4 mt-1.5 w-36 origin-top-right rounded-md bg-white shadow-lg dark:bg-neutral-800",children:w.jsx("div",{"aria-labelledby":"options-menu","aria-orientation":"vertical",className:"py-1","data-testid":"comments-sorting-form-dropdown",role:"menu",children:s.map(u=>w.jsx("button",{className:"block w-full px-4 py-1.5 text-left text-sm text-neutral-600 transition-all hover:text-neutral-900 dark:text-neutral-200 dark:hover:text-white",role:"menuitem",type:"button",onClick:()=>a(u.value),children:u.label},u.value))})})]})},JE=()=>{const t=mt(),{pagination:e,member:n,comments:o,commentCount:r,commentsEnabled:i,title:s,showCount:a,openFormCount:l,t:c}=B();let u;const m=o;t&&t.commentImprovements?u=m.slice().map(h=>w.jsx(cm,{comment:h},h.id)):u=m.slice().reverse().map(h=>w.jsx(cm,{comment:h},h.id)),k.useEffect(()=>{const h=document.getElementById(fl);h&&window.location.hash==="#ghost-comments"&&window.scrollY===0&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{h.scrollIntoView()})})},[]);const d=i==="paid",p=n&&!!n.paid,f=(e==null?void 0:e.total)===0,y=l>0;return t.commentImprovements?w.jsxs(w.Fragment,{children:[w.jsx(r1,{count:r,showCount:a,title:s}),w.jsx("div",{children:n&&(p||!d)?w.jsx(i1,{commentsCount:o.length}):w.jsx("section",{className:"flex flex-col items-center py-6 sm:px-8 sm:py-10","data-testid":"cta-box",children:w.jsx(Gi,{isFirst:f,isPaid:d})})}),r>1&&w.jsx("div",{className:"z-20 mb-7 mt-3",children:w.jsxs("span",{className:"flex items-center gap-1.5 text-sm font-medium text-neutral-900 dark:text-neutral-100",children:[c("Sort by"),": ",w.jsx(_E,{})]})}),w.jsx("div",{className:"z-10","data-test":"comment-elements",children:u}),w.jsx(s1,{}),t!=null&&t.testFlag?w.jsx("div",{"data-testid":"this-comes-from-a-flag",style:{display:"none"}}):null]}):w.jsxs(w.Fragment,{children:[w.jsx(r1,{count:r,showCount:a,title:s}),w.jsx(s1,{}),w.jsx("div",{className:e?"":"mt-4","data-test":"comment-elements",children:u}),w.jsx("div",{children:y?null:n?p||!d?w.jsx(i1,{commentsCount:r}):w.jsx("section",{className:`flex flex-col items-center pt-[40px] ${n?"pb-[32px]":"pb-[48px]"} ${!f&&"mt-4"} ${(!n||n&&d)&&r?"border-t":"border-none"} border-[rgba(0,0,0,0.075)] sm:px-8 dark:border-[rgba(255,255,255,0.1)]`,"data-testid":"cta-box",children:w.jsx(Gi,{isFirst:f,isPaid:d})}):w.jsx("section",{className:`flex flex-col items-center pt-[40px] ${n?"pb-[32px]":"pb-[48px]"} ${!f&&"mt-4"} ${(!n||n&&d)&&r?"border-t":"border-none"} border-[rgba(0,0,0,0.075)] sm:px-8 dark:border-[rgba(255,255,255,0.1)]`,"data-testid":"cta-box",children:w.jsx(Gi,{isFirst:f,isPaid:d})})}),t!=null&&t.testFlag?w.jsx("div",{"data-testid":"this-comes-from-a-flag",style:{display:"none"}}):null]})};function YE(){return w.jsx("div",{className:"flex h-32 w-full items-center justify-center","data-testid":"loading",children:w.jsx(jd,{className:"mb-6 h-12 w-12 fill-white/90 dark:fill-white/60"})})}const KE=({done:t})=>{const e=(l,c,u)=>{const m=[l,c,u].map(function(d){return d/=255,d<=.03928?d/12.92:Math.pow((d+.055)/1.055,2.4)});return m[0]*.2126+m[1]*.7152+m[2]*.0722},n=(l,c)=>{const u=e(l[0],l[1],l[2]),m=e(c[0],c[1],c[2]),d=Math.max(u,m),p=Math.min(u,m);return(d+.05)/(p+.05)},{accentColor:o,colorScheme:r}=B(),s=(()=>{if(r==="light")return!1;if(r==="dark")return!0;{const l=document.getElementById(fl);if(!l||!l.parentElement)return!1;const c=getComputedStyle(l.parentElement).getPropertyValue("color"),u=c.substring(c.indexOf("(")+1,c.lastIndexOf(")")).split(/,\s*/),m=parseInt(u[0]),d=parseInt(u[1]),p=parseInt(u[2]);return n([255,255,255],[m,d,p])<5}})()?"dark":"",a={"--gh-accent-color":o??"black",paddingTop:0,paddingBottom:24};return w.jsx("section",{className:"ghost-display "+s,"data-loaded":t,"data-testid":"content-box",style:a,children:t?w.jsx(JE,{}):w.jsx(YE,{})})};class WE extends k.Component{constructor(n){super(n);wr(this,"node");wr(this,"iframeHtml");wr(this,"iframeHead");wr(this,"iframeRoot");wr(this,"handleLoad",()=>{this.setupFrameBaseStyle()});this.setNode=this.setNode.bind(this),this.node=null}componentDidMount(){this.node.addEventListener("load",this.handleLoad)}componentWillUnmount(){this.node.removeEventListener("load",this.handleLoad)}setupFrameBaseStyle(){var n,o;this.node.contentDocument&&(this.iframeHtml=this.node.contentDocument.documentElement,this.iframeHead=this.node.contentDocument.head,this.iframeRoot=this.node.contentDocument.body,this.forceUpdate(),this.props.onResize&&((o=(n=new ResizeObserver(r=>{window.requestAnimationFrame(()=>{this.props.onResize(this.iframeRoot)})}))==null?void 0:n.observe)==null||o.call(n,this.iframeRoot)),this.node.contentWindow.addEventListener("keydown",r=>{window.dispatchEvent(new KeyboardEvent("keydown",r))}))}setNode(n){this.node=n,this.props.innerRef&&(this.props.innerRef.current=n)}render(){const{children:n,head:o,title:r="",style:i={},...s}=this.props;return w.jsxs("iframe",{srcDoc:"<!DOCTYPE html>",...s,ref:this.setNode,frameBorder:"0",style:i,title:r,children:[this.iframeHead&&Ad.createPortal(o,this.iframeHead),this.iframeRoot&&Ad.createPortal(n,this.iframeRoot)]})}}const qE=k.forwardRef(function(e,n){return w.jsx(WE,{...e,innerRef:n})}),GE=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-left-4{left:-1.6rem}.bottom-1{bottom:.4rem}.bottom-full{bottom:100%}.left-0{left:0px}.right-1{right:.4rem}.right-6{right:2.4rem}.top-0{top:0px}.top-1{top:.4rem}.top-5{top:2rem}.z-10{z-index:10}.z-20{z-index:20}.-mx-3{margin-left:-1.2rem;margin-right:-1.2rem}.mx-\\[0\\.3em\\]{margin-left:.3em;margin-right:.3em}.my-8{margin-top:3.2rem;margin-bottom:3.2rem}.mb-0{margin-bottom:0}.mb-0\\.5{margin-bottom:.2rem}.mb-1{margin-bottom:.4rem}.mb-1\\.5{margin-bottom:.6rem}.mb-10{margin-bottom:4rem}.mb-2{margin-bottom:.8rem}.mb-3{margin-bottom:1.2rem}.mb-4{margin-bottom:1.6rem}.mb-6{margin-bottom:2.4rem}.mb-7{margin-bottom:2.8rem}.mb-\\[12px\\]{margin-bottom:12px}.mb-\\[28px\\]{margin-bottom:28px}.mb-\\[8px\\]{margin-bottom:8px}.ml-0\\.5{margin-left:.2rem}.ml-1{margin-left:.4rem}.ml-2\\.5{margin-left:1rem}.ml-\\[-1\\.4rem\\]{margin-left:-1.4rem}.ml-\\[48px\\]{margin-left:48px}.mr-1{margin-right:.4rem}.mr-2{margin-right:.8rem}.mr-\\[6px\\]{margin-right:6px}.mt-0\\.5{margin-top:.2rem}.mt-1\\.5{margin-top:.6rem}.mt-10{margin-top:4rem}.mt-3{margin-top:1.2rem}.mt-4{margin-top:1.6rem}.mt-6{margin-top:2.4rem}.mt-7{margin-top:2.8rem}.mt-8{margin-top:3.2rem}.mt-\\[-10px\\]{margin-top:-10px}.mt-\\[-16px\\]{margin-top:-16px}.mt-\\[-1px\\]{margin-top:-1px}.mt-\\[-3px\\]{margin-top:-3px}.mt-\\[4px\\]{margin-top:4px}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.contents{display:contents}.hidden{display:none}.h-10{height:4rem}.h-11{height:4.4rem}.h-12{height:4.8rem}.h-2{height:.8rem}.h-32{height:12.8rem}.h-5{height:2rem}.h-8{height:3.2rem}.h-\\[12px\\]{height:12px}.h-\\[16px\\]{height:16px}.h-\\[24px\\]{height:24px}.h-\\[40px\\]{height:40px}.h-\\[42px\\]{height:42px}.h-\\[44px\\]{height:44px}.h-full{height:100%}.h-screen{height:100vh}.min-h-\\[120px\\]{min-height:120px}.w-10{width:4rem}.w-12{width:4.8rem}.w-2{width:.8rem}.w-36{width:14.4rem}.w-5{width:2rem}.w-8{width:3.2rem}.w-\\[12px\\]{width:12px}.w-\\[16px\\]{width:16px}.w-\\[24px\\]{width:24px}.w-\\[50\\%\\]{width:50%}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.min-w-min{min-width:min-content}.grow{flex-grow:1}.grow-0{flex-grow:0}.origin-top-right{transform-origin:top right}.-translate-x-2{--tw-translate-x: -.8rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[-6px\\]{--tw-translate-x: -6px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-2{--tw-translate-y: .8rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y: 1.6rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes heartbeat{0%,to{transform:scale(1)}50%{transform:scale(1.3)}}.animate-heartbeat{animation:heartbeat .35s ease-in-out forwards}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1\\.5{gap:.6rem}.gap-2{gap:.8rem}.gap-3{gap:1.2rem}.gap-4{gap:1.6rem}.gap-9{gap:3.6rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.6rem * var(--tw-space-x-reverse));margin-left:calc(1.6rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.text-pretty{text-wrap:pretty}.rounded{border-radius:.4rem}.rounded-\\[6px\\]{border-radius:6px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.8rem}.rounded-md{border-radius:.6rem}.border{border-width:1px}.border-2{border-width:2px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-\\[rgba\\(0\\,0\\,0\\,0\\.075\\)\\]{border-color:#00000013}.border-black\\/10{border-color:#0000001a}.border-neutral-200{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.bg-\\[var\\(--gh-accent-color\\)\\]{background-color:var(--gh-accent-color)}.bg-black\\/10{background-color:#0000001a}.bg-black\\/5{background-color:#0000000d}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.bg-neutral-800{--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity))}.bg-neutral-900{--tw-bg-opacity: 1;background-color:rgb(23 23 23 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\\/75{background-color:#ffffffbf}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-\\[rgba\\(0\\,0\\,0\\,0\\.2\\)\\]{--tw-gradient-from: rgba(0,0,0,.2) var(--tw-gradient-from-position);--tw-gradient-to: rgba(0, 0, 0, 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-neutral-900\\/10{--tw-gradient-from: rgb(23 23 23 / .1) var(--tw-gradient-from-position);--tw-gradient-to: rgb(23 23 23 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-neutral-900\\/10{--tw-gradient-to: rgb(23 23 23 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(23 23 23 / .1) var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.bg-cover{background-size:cover}.bg-no-repeat{background-repeat:no-repeat}.fill-black{fill:#000}.fill-black\\/50{fill:#00000080}.fill-black\\/75{fill:#000000bf}.fill-white{fill:#fff}.fill-white\\/90{fill:#ffffffe6}.stroke-black{stroke:#000}.stroke-black\\/50{stroke:#00000080}.stroke-white{stroke:#fff}.stroke-\\[3px\\]{stroke-width:3px}.p-0{padding:0}.p-1{padding:.4rem}.p-2{padding:.8rem}.p-\\[28px\\]{padding:28px}.px-0{padding-left:0;padding-right:0}.px-2{padding-left:.8rem;padding-right:.8rem}.px-3{padding-left:1.2rem;padding-right:1.2rem}.px-4{padding-left:1.6rem;padding-right:1.6rem}.px-5{padding-left:2rem;padding-right:2rem}.px-8{padding-left:3.2rem;padding-right:3.2rem}.py-1{padding-top:.4rem;padding-bottom:.4rem}.py-1\\.5{padding-top:.6rem;padding-bottom:.6rem}.py-2{padding-top:.8rem;padding-bottom:.8rem}.py-3{padding-top:1.2rem;padding-bottom:1.2rem}.py-6{padding-top:2.4rem;padding-bottom:2.4rem}.py-\\[14px\\]{padding-top:14px;padding-bottom:14px}.pb-2{padding-bottom:.8rem}.pb-3{padding-bottom:1.2rem}.pb-\\[32px\\]{padding-bottom:32px}.pb-\\[48px\\]{padding-bottom:48px}.pb-\\[68px\\]{padding-bottom:68px}.pb-\\[8px\\]{padding-bottom:8px}.pl-0{padding-left:0}.pl-4{padding-left:1.6rem}.pl-\\[1px\\]{padding-left:1px}.pl-\\[40px\\]{padding-left:40px}.pr-0{padding-right:0}.pr-3{padding-right:1.2rem}.pr-4{padding-right:1.6rem}.pr-8{padding-right:3.2rem}.pr-\\[1px\\]{padding-right:1px}.pt-0{padding-top:0}.pt-10{padding-top:4rem}.pt-3{padding-top:1.2rem}.pt-6{padding-top:2.4rem}.pt-\\[40px\\]{padding-top:40px}.pt-\\[48px\\]{padding-top:48px}.pt-\\[68px\\]{padding-top:68px}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:2.4rem}.text-\\[14px\\]{font-size:14px}.text-\\[15px\\]{font-size:15px}.text-\\[16px\\]{font-size:16px}.text-\\[2\\.2rem\\]{font-size:2.2rem}.text-base{font-size:1.3rem}.text-lg{font-size:1.65rem}.text-md{font-size:1.5rem}.text-sm{font-size:1.4rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-9{line-height:2.25rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-snug{line-height:1.375}.tracking-tight{letter-spacing:-.018em}.text-\\[\\#8B8B8B\\]{--tw-text-opacity: 1;color:rgb(139 139 139 / var(--tw-text-opacity))}.text-\\[rgba\\(0\\,0\\,0\\,0\\.4\\)\\]{color:#0006}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-black\\/30{color:#0000004d}.text-black\\/50{color:#00000080}.text-black\\/90{color:#000000e6}.text-neutral-400{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.text-neutral-600{--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity))}.text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity))}.text-neutral-900{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity))}.text-neutral-900\\/40{color:#17171766}.text-neutral-900\\/50{color:#17171780}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-white\\/95{color:#fffffff2}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-80{opacity:.8}.shadow-lg{--tw-shadow: rgba(0, 0, 0, .06) 0px 0px 0px 1px, rgba(0, 0, 0, .04) 0px 2px 2px -1px, rgba(0, 0, 0, .04) 0px 3px 3px -1px, rgba(0, 0, 0, .03) 0px 5px 5px -2px, rgba(0, 0, 0, .03) 0px 10px 10px -3px, rgba(0, 0, 0, .03) 0px 24px 24px -8px;--tw-shadow-colored: 0px 0px 0px 1px var(--tw-shadow-color), 0px 2px 2px -1px var(--tw-shadow-color), 0px 3px 3px -1px var(--tw-shadow-color), 0px 5px 5px -2px var(--tw-shadow-color), 0px 10px 10px -3px var(--tw-shadow-color), 0px 24px 24px -8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-modal{--tw-shadow: 0 3.8px 2.2px rgba(0, 0, 0, .028), 0 9.2px 5.3px rgba(0, 0, 0, .04), 0 17.3px 10px rgba(0, 0, 0, .05), 0 30.8px 17.9px rgba(0, 0, 0, .06), 0 57.7px 33.4px rgba(0, 0, 0, .072), 0 138px 80px rgba(0, 0, 0, .1);--tw-shadow-colored: 0 3.8px 2.2px var(--tw-shadow-color), 0 9.2px 5.3px var(--tw-shadow-color), 0 17.3px 10px var(--tw-shadow-color), 0 30.8px 17.9px var(--tw-shadow-color), 0 57.7px 33.4px var(--tw-shadow-color), 0 138px 80px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-0{outline-width:0px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-\\[2px\\]{--tw-backdrop-blur: blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[border-color\\]{transition-property:border-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[padding\\]{transition-property:padding;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-none{transition-property:none}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.delay-100{transition-delay:.1s}.delay-150{transition-delay:.15s}.delay-\\[400ms\\]{transition-delay:.4s}.duration-0{transition-duration:0s}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.\\[overflow-wrap\\:anywhere\\]{overflow-wrap:anywhere}body,html{overflow:hidden}:host{all:initial!important}html{font-size:62.5%}body{font-size:1.5rem}.gh-comment-content p:empty:after{content:" "}.gh-comment-content a{word-break:break-word;text-decoration:underline;color:var(--gh-accent-color)}.gh-comment-content blockquote{border-left:3px solid rgba(13,13,13,.1);padding-left:1rem;margin:0 0 1.2rem}.gh-comment-content p{margin:0 0 1.2rem}.gh-comment-content p:last-child,.gh-comment-content blockquote:last-child{margin:0}.gh-comment-content p.is-editor-empty:first-child:before{color:#0000004d!important}.dark .gh-comment-content p.is-editor-empty:first-child:before{color:#fff6!important}.ProseMirror p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;height:0;pointer-events:none;--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}.ProseMirror *{white-space:pre-wrap;word-wrap:break-word}[contenteditable]:focus{outline:0px solid transparent}.ghost-display{display:block!important}.hover\\:bg-black:hover{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.hover\\:bg-black\\/10:hover{background-color:#0000001a}.hover\\:fill-black\\/75:hover{fill:#000000bf}.hover\\:text-black\\/50:hover{color:#00000080}.hover\\:text-black\\/75:hover{color:#000000bf}.hover\\:text-neutral-900:hover{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity))}.hover\\:text-neutral-900\\/70:hover{color:#171717b3}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\\:opacity-40:hover{opacity:.4}.hover\\:opacity-90:hover{opacity:.9}.hover\\:brightness-105:hover{--tw-brightness: brightness(1.05);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:border-neutral-300:focus{--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity))}.focus\\:border-red-500:focus{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.focus\\:outline-0:focus{outline-width:0px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.group:hover .group-hover\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\\:stroke-black\\/75{stroke:#000000bf}.group:hover .group-hover\\:opacity-100{opacity:1}.dark\\:border-\\[rgba\\(255\\,255\\,255\\,0\\.1\\)\\]:is(.dark *){border-color:#ffffff1a}.dark\\:bg-neutral-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity))}.dark\\:bg-white\\/10:is(.dark *){background-color:#ffffff1a}.dark\\:bg-white\\/15:is(.dark *){background-color:#ffffff26}.dark\\:bg-white\\/70:is(.dark *){background-color:#ffffffb3}.dark\\:bg-white\\/95:is(.dark *){background-color:#fffffff2}.dark\\:from-white\\/10:is(.dark *){--tw-gradient-from: rgb(255 255 255 / .1) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\\:via-white\\/10:is(.dark *){--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(255 255 255 / .1) var(--tw-gradient-via-position), var(--tw-gradient-to)}.dark\\:fill-black:is(.dark *){fill:#000}.dark\\:fill-white:is(.dark *){fill:#fff}.dark\\:fill-white\\/60:is(.dark *){fill:#fff9}.dark\\:fill-white\\/75:is(.dark *){fill:#ffffffbf}.dark\\:stroke-black\\/60:is(.dark *){stroke:#0009}.dark\\:stroke-white:is(.dark *){stroke:#fff}.dark\\:stroke-white\\/60:is(.dark *){stroke:#fff9}.dark\\:text-\\[rgba\\(255\\,255\\,255\\,0\\.5\\)\\]:is(.dark *){color:#ffffff80}.dark\\:text-\\[rgba\\(255\\,255\\,255\\,0\\.85\\)\\]:is(.dark *){color:#ffffffd9}.dark\\:text-neutral-100:is(.dark *){--tw-text-opacity: 1;color:rgb(245 245 245 / var(--tw-text-opacity))}.dark\\:text-neutral-200:is(.dark *){--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity))}.dark\\:text-neutral-300:is(.dark *){--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}.dark\\:text-neutral-400:is(.dark *){--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity))}.dark\\:text-neutral-800:is(.dark *){--tw-text-opacity: 1;color:rgb(38 38 38 / var(--tw-text-opacity))}.dark\\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\\:text-white\\/30:is(.dark *){color:#ffffff4d}.dark\\:text-white\\/50:is(.dark *){color:#ffffff80}.dark\\:text-white\\/60:is(.dark *){color:#fff9}.dark\\:text-white\\/85:is(.dark *){color:#ffffffd9}.dark\\:text-white\\/90:is(.dark *){color:#ffffffe6}.dark\\:hover\\:bg-white:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.dark\\:hover\\:bg-white\\/20:hover:is(.dark *){background-color:#fff3}.dark\\:hover\\:fill-white\\/75:hover:is(.dark *){fill:#ffffffbf}.dark\\:hover\\:text-neutral-100:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(245 245 245 / var(--tw-text-opacity))}.dark\\:hover\\:text-neutral-900:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity))}.dark\\:hover\\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\\:hover\\:text-white\\/50:hover:is(.dark *){color:#ffffff80}.dark\\:hover\\:text-white\\/75:hover:is(.dark *){color:#ffffffbf}.group:hover .dark\\:group-hover\\:stroke-white\\/75:is(.dark *){stroke:#ffffffbf}@media (min-width: 481px){.sm\\:bottom-2{bottom:.8rem}.sm\\:right-2{right:.8rem}.sm\\:right-8{right:3.2rem}.sm\\:top-9{top:3.6rem}.sm\\:my-10{margin-top:4rem;margin-bottom:4rem}.sm\\:mb-0{margin-bottom:0}.sm\\:mb-12{margin-bottom:4.8rem}.sm\\:mb-4{margin-bottom:1.6rem}.sm\\:mr-3{margin-right:1.2rem}.sm\\:mt-8{margin-top:3.2rem}.sm\\:block{display:block}.sm\\:inline-block{display:inline-block}.sm\\:inline{display:inline}.sm\\:hidden{display:none}.sm\\:h-12{height:4.8rem}.sm\\:h-auto{height:auto}.sm\\:w-\\[500px\\]{width:500px}.sm\\:w-\\[720px\\]{width:720px}.sm\\:w-auto{width:auto}.sm\\:w-fit{width:-moz-fit-content;width:fit-content}.sm\\:min-w-\\[100px\\]{min-width:100px}.sm\\:min-w-\\[64px\\]{min-width:64px}.sm\\:flex-row{flex-direction:row}.sm\\:justify-normal{justify-content:normal}.sm\\:rounded-xl{border-radius:1.2rem}.sm\\:p-0{padding:0}.sm\\:p-8{padding:3.2rem}.sm\\:px-3{padding-left:1.2rem;padding-right:1.2rem}.sm\\:px-8{padding-left:3.2rem;padding-right:3.2rem}.sm\\:py-10{padding-top:4rem;padding-bottom:4rem}.sm\\:pl-0{padding-left:0}.sm\\:pl-\\[44px\\]{padding-left:44px}.sm\\:pr-10{padding-right:4rem}.sm\\:pr-4{padding-right:1.6rem}.sm\\:pt-0{padding-top:0}.sm\\:pt-\\[40px\\]{padding-top:40px}.sm\\:pt-\\[4vmin\\]{padding-top:4vmin}.sm\\:pt-\\[56px\\]{padding-top:56px}.sm\\:text-left{text-align:left}.sm\\:text-2xl{font-size:2.4rem}.sm\\:text-lg{font-size:1.65rem}.sm\\:text-sm{font-size:1.4rem}}
|
|
156
|
-
`,a1=_.forwardRef(function({children:e,onResize:n,style:o,title:r},i){const s=w.jsxs(w.Fragment,{children:[w.jsx("style",{dangerouslySetInnerHTML:{__html:GE}}),w.jsx("meta",{content:"width=device-width, initial-scale=1.0, maximum-scale=1.0",name:"viewport"})]});return w.jsx(qE,{ref:i,head:s,style:o,title:r,onResize:n,children:e})}),QE=_.forwardRef(function({children:e,style:n,title:o},r){const[i,s]=k.useState(n),a=k.useCallback(l=>{s(c=>({...c,height:`${l.scrollHeight}px`}))},[]);return w.jsx(a1,{ref:r,style:i,title:o,onResize:a,children:e})}),ZE=_.forwardRef(function({children:e},n){const o={width:"100%",height:"400px"};return w.jsx(QE,{ref:n,style:o,title:"comments-frame",children:e})}),XE=({children:t,title:e})=>{const n={zIndex:"3999999",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",overflow:"hidden"};return w.jsx(a1,{style:n,title:e,children:t})},eN=({show:t,children:e,title:n,callback:o})=>{const{dispatchAction:r}=B(),i=()=>{r("closePopup",{}),o&&o(!1)};return k.useEffect(()=>{const s=a=>{a.key==="Escape"&&i()};return window.addEventListener("keydown",s,{passive:!0}),()=>{window.removeEventListener("keydown",s,{passive:!0})}}),w.jsx(co,{appear:!0,show:t,children:w.jsx(XE,{title:n,children:w.jsx("div",{children:w.jsx(co.Child,{enter:"transition duration-200 linear",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition duration-200 linear",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:w.jsx("div",{className:"to-rgba(0,0,0,0.1) fixed left-0 top-0 flex h-screen w-screen justify-center overflow-hidden bg-gradient-to-b from-[rgba(0,0,0,0.2)] pt-0 backdrop-blur-[2px] sm:pt-[4vmin]",onMouseDown:i,children:w.jsx(co.Child,{enter:"transition duration-200 delay-150 linear",enterFrom:"translate-y-4 opacity-0",enterTo:"translate-y-0 opacity-100",leave:"transition duration-200 linear",leaveFrom:"translate-y-0 opacity-100",leaveTo:"translate-y-4 opacity-0",children:e})})})})})})},tN=t=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"gh-portal-closeicon",alt:"Close",...t},k.createElement("defs",null,k.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px !important;}")),k.createElement("path",{className:"a",d:"M.75 23.249l22.5-22.5M23.25 23.249L.75.749"})),um=({close:t})=>w.jsx("button",{className:"absolute right-6 top-5 opacity-30 transition-opacity duration-100 ease-out hover:opacity-40 sm:right-8 sm:top-9",type:"button",onClick:t,children:w.jsx(tN,{className:"h-5 w-5 p-1 pr-0"})}),nN=t=>{const e=k.useRef(null),n=k.useRef(null),{dispatchAction:o,member:r,accentColor:i,t:s}=B(),[a,l]=k.useState(r.name??""),[c,u]=k.useState(r.expertise??""),m=50;let d=m;r.expertise&&(d-=r.expertise.length);const[p,f]=k.useState(d),[y,h]=k.useState({name:"",expertise:""}),g=x=>{x.stopPropagation()},S=x=>{o("closePopup",{}),t.callback(x)},b=async()=>{var x;a.trim()!==""?(await o("updateMember",{name:a,expertise:c}),S(!0)):(h({name:s("Enter your name"),expertise:""}),l(""),(x=e.current)==null||x.focus())};k.useEffect(()=>{if(!Rl()){const x=setTimeout(()=>{var $,O;t.expertiseAutofocus?($=n.current)==null||$.focus():(O=e.current)==null||O.focus()},200);return()=>{clearTimeout(x)}}},[e,n,t.expertiseAutofocus]);const v=()=>{const x=E=>w.jsx(co,{enter:"transition duration-200 delay-[400ms] ease-out",enterFrom:"opacity-0 translate-y-2",enterTo:"opacity-100 translate-y-0",leave:"transition duration-200 ease-in",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-2",appear:!0,children:w.jsxs("div",{className:"flex flex-row items-center justify-start gap-3 pr-4",children:[w.jsx("div",{className:"h-10 w-10 rounded-full border-2 border-white bg-cover bg-no-repeat",style:{backgroundImage:`url(${E.avatar})`}}),w.jsxs("div",{className:"flex flex-col items-start justify-center",children:[w.jsx("div",{className:"font-sans text-base font-semibold tracking-tight text-white",children:E.name}),w.jsx("div",{className:"font-sans text-sm tracking-tight text-neutral-400",children:E.expertise})]})]})},E.name),$=[],O=[{avatar:"https://randomuser.me/api/portraits/men/32.jpg",name:"James Fletcher",expertise:s("Full-time parent")},{avatar:"https://randomuser.me/api/portraits/women/30.jpg",name:"Naomi Schiff",expertise:s("Founder @ Acme Inc")},{avatar:"https://randomuser.me/api/portraits/men/4.jpg",name:"Franz Tost",expertise:s("Neurosurgeon")},{avatar:"https://randomuser.me/api/portraits/women/51.jpg",name:"Katrina Klosp",expertise:s("Local resident")}];for(let E=0;E<O.length;E++)$.push(x(O[E]));return $},C=Fm(s("{{amount}} characters left"),"{{amount}}",()=>w.jsx("b",{children:p}));return w.jsx("div",{className:"shadow-modal relative h-screen w-screen overflow-hidden rounded-none bg-white p-[28px] text-center sm:h-auto sm:w-[720px] sm:rounded-xl sm:p-0","data-testid":"profile-modal",onMouseDown:g,children:w.jsxs("div",{className:"flex",children:[w.jsx("div",{className:"hidden w-[50%] flex-col items-center justify-center bg-neutral-800 sm:block sm:p-8",children:w.jsx("div",{className:"mt-[-1px] flex flex-col gap-9 text-left",children:v()})}),w.jsxs("div",{className:"p-0 sm:p-8",children:[w.jsxs("h1",{className:"mb-1 text-center font-sans text-2xl font-bold tracking-tight text-black sm:text-left",children:[s("Complete your profile"),w.jsx("span",{className:"hidden sm:inline",children:"."})]}),w.jsx("p",{className:"text-md pr-0 text-center font-sans leading-snug text-neutral-500 sm:pr-10 sm:text-left",children:s("Add context to your comment, share your name and expertise to foster a healthy discussion.")}),w.jsxs("section",{className:"mt-8 text-left",children:[w.jsxs("div",{className:"mb-2 flex flex-row justify-between",children:[w.jsx("label",{className:"font-sans text-base font-semibold",htmlFor:"comments-name",children:s("Name")}),w.jsx(co,{enter:"transition duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition duration-100 ease-out",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:!!y.name,children:w.jsx("div",{className:"font-sans text-sm text-red-500",children:y.name})})]}),w.jsx("input",{ref:e,className:`flex h-[42px] w-full items-center rounded border border-neutral-200 px-3 font-sans text-[16px] outline-0 transition-[border-color] duration-200 focus:border-neutral-300 ${y.name&&"border-red-500 focus:border-red-500"}`,"data-testid":"name-input",id:"comments-name",maxLength:64,name:"name",placeholder:s("Jamie Larson"),type:"text",value:a,onChange:x=>{l(x.currentTarget.value)},onKeyDown:x=>{x.key==="Enter"&&(l(x.currentTarget.value),b().catch(console.error))}}),w.jsxs("div",{className:"mb-2 mt-6 flex flex-row justify-between",children:[w.jsx("label",{className:"font-sans text-base font-semibold",htmlFor:"comments-name",children:s("Expertise")}),w.jsx("div",{className:`font-sans text-base text-neutral-400 ${p===0&&"text-red-500"}`,children:C})]}),w.jsx("input",{ref:n,className:`flex h-[42px] w-full items-center rounded border border-neutral-200 px-3 font-sans text-[16px] outline-0 transition-[border-color] duration-200 focus:border-neutral-300 ${p===0&&"border-red-500 focus:border-red-500"}`,"data-testid":"expertise-input",id:"comments-expertise",maxLength:m,name:"expertise",placeholder:s("Head of Marketing at Acme, Inc"),type:"text",value:c,onChange:x=>{const $=x.currentTarget.value;f(m-$.length),u($)},onKeyDown:x=>{x.key==="Enter"&&(u(x.currentTarget.value),b().catch(console.error))}}),w.jsx("button",{className:"text-md mt-10 flex h-[42px] w-full items-center justify-center rounded-md px-8 font-sans font-semibold text-white opacity-100 transition-opacity duration-200 ease-linear hover:opacity-90","data-testid":"save-button",style:{backgroundColor:i??"#000000"},type:"button",onClick:()=>{b().catch(console.error)},children:s("Save")})]})]}),w.jsx(um,{close:()=>S(!1)})]})})},oN=()=>{const{dispatchAction:t,member:e,commentsEnabled:n}=B(),o=a=>{a.stopPropagation()},r=()=>{t("closePopup",{})},i=n==="paid",s=!e;return w.jsx("div",{className:"shadow-modal relative h-screen w-screen rounded-none bg-white p-[28px] text-center sm:h-auto sm:w-[500px] sm:rounded-xl sm:p-8 sm:text-left",onClick:r,onMouseDown:o,children:w.jsxs("div",{className:"flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0",children:[w.jsx("div",{className:"flex flex-col items-center pb-3 pt-6","data-testid":"cta-box",children:w.jsx(Gi,{isFirst:s,isPaid:i})}),w.jsx(um,{close:r})]})})},rN=t=>k.createElement("svg",{width:"26px",height:"26px",viewBox:"-1 -1 26 26",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...t},k.createElement("g",{id:"check-circle",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},k.createElement("path",{className:"animated-check-circle",d:"M19.6004116,2.71490714 C17.5353801,1.0196018 14.8927356,0 12,0 C5.38938053,0 0,5.38938053 0,12 C0,18.6106195 5.38938053,24 12,24 C18.6106195,24 24,18.6106195 24,12 C24,9.71681416 23.3628319,7.59292035 22.2743363,5.78761062 L11.0442478,17.0442478 L5.49557522,11.4955752",id:"Shape",stroke:"#FFFFFF",strokeWidth:2}))),iN={addDetailsPopup:nN,reportPopup:({comment:t})=>{const{dispatchAction:e,t:n}=B(),[o,r]=k.useState("default");let i="bg-red-600";o==="sent"&&(i="bg-green-600");let s=n("Report");const a=s;o==="sending"?s=n("Sending"):o==="sent"&&(s=n("Sent"));const l=w.jsx(jd,{className:"mr-2 h-[24px] w-[24px] fill-white"}),c=w.jsx(rN,{className:"mr-2 h-[16px] w-[16px]"});let u=null;o==="sending"?u=l:o==="sent"&&(u=c);const m=f=>{f.stopPropagation()},d=()=>{e("closePopup",{})},p=f=>{f.stopPropagation(),r("sending"),setTimeout(()=>{r("sent"),e("reportComment",t),setTimeout(()=>{d()},750)},1e3)};return w.jsx("div",{className:"shadow-modal relative h-screen w-screen rounded-none bg-white p-[28px] text-center sm:h-auto sm:w-[500px] sm:rounded-xl sm:p-8 sm:text-left",onMouseDown:m,children:w.jsxs("div",{className:"flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0",children:[w.jsx("h1",{className:"mb-1.5 font-sans text-[2.2rem] font-bold tracking-tight text-black",children:w.jsx("span",{children:n("Report this comment?")})}),w.jsx("p",{className:"text-md px-4 font-sans leading-9 text-black sm:pl-0 sm:pr-4",children:n("Your request will be sent to the owner of this site.")}),w.jsxs("div",{className:"mt-auto flex flex-col items-center justify-start gap-4 sm:mt-8 sm:flex-row",children:[w.jsxs("button",{className:`text-md flex h-[44px] w-full items-center justify-center rounded-md px-4 font-sans font-medium text-white transition duration-200 ease-linear sm:w-fit ${i} opacity-100 hover:opacity-90`,style:{backgroundColor:i??"#000000"},type:"button",onClick:p,children:[w.jsxs("span",{className:"invisible whitespace-nowrap",children:[a,w.jsx("br",{}),w.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[l,n("Sending")]}),w.jsx("br",{}),w.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[c,n("Sent")]})]}),w.jsxs("span",{className:"absolute flex h-[44px] items-center justify-center whitespace-nowrap",children:[u,s]})]}),w.jsx("button",{className:"text-md h-[44px] w-full px-2 font-sans font-medium text-neutral-500 sm:w-fit dark:text-neutral-400",type:"button",onClick:d,children:n("Cancel")})]}),w.jsx(um,{close:d})]})})},ctaPopup:oN},sN=()=>{const{popup:t}=B(),[e,n]=k.useState(t);if(k.useEffect(()=>{if(t!==null&&n(t),t===null){const a=setTimeout(()=>{n(null)},250);return()=>{clearTimeout(a)}}},[t,n]),!e||!e.type)return null;const{type:o,...r}=t??e,i=iN[o];if(!i)return console.warn("Unknown popup of type ",o),null;const s=t===e;return w.jsx(w.Fragment,{children:w.jsx(eN,{callback:r.callback,show:s,title:o,children:w.jsx(i,{...r})})})},aN={"{{amount}} characters left":"{{amount}} karakters oor","{{amount}} comments":"{{amount}} kommentaar","{{amount}} hrs ago":"{{amount}} ure gelede","{{amount}} mins ago":"{{amount}} minute gelede","{{amount}} more":"{{amount}} meer","1 comment":"1 kommentaar","Add comment":"Voeg kommentaar by","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Voeg konteks by jou kommentaar, deel jou naam en kundigheid om 'n gesonde bespreking te bevorder.","Add reply":"Voeg antwoord by","Already a member?":"Reeds 'n lid?",Anonymous:"Anoniem","Become a member of {{publication}} to start commenting.":"Word 'n lid van {{publication}} om kommentaar te lewer.","Become a paid member of {{publication}} to start commenting.":"Word 'n betaalde lid van {{publication}} om kommentaar te lewer.",Cancel:"Kanselleer",Comment:"Kommentaar","Complete your profile":"Voltooi jou profiel",Delete:"Skrap","Deleted member":"Geskrapte lid",Discussion:"Bespreking",Edit:"Redigeer","Edit this comment":"Redigeer hierdie kommentaar",edited:"geredigeer","Enter your name":"Voer jou naam in",Expertise:"Kundigheid","Founder @ Acme Inc":"Stigter @ Acme Inc","Full-time parent":"Voltydse ouer","Head of Marketing at Acme, Inc":"Hoof van Bemarking by Acme, Inc","Hidden for members":"",Hide:"Versteek","Hide comment":"Versteek kommentaar","Jamie Larson":"Jamie Larson","Join the discussion":"Sluit aan by die bespreking","Just now":"Sopas","Local resident":"Plaaslike inwoner","Member discussion":"Lidmaat bespreking",Name:"Naam",Neurosurgeon:"Neurochirurg","One hour ago":"Een uur gelede","One min ago":"Een minuut gelede","replied to comment":"",Reply:"Antwoord","reply to comment":"","Reply to comment":"Antwoord op kommentaar",Report:"Rapporteer","Report comment":"Rapporteer kommentaar","Report this comment?":"Rapporteer hierdie kommentaar?",Save:"Stoor",Sending:"Besig om te stuur",Sent:"Gestuur",Show:"Wys","Show {{amount}} more replies":"Wys {{amount}} meer antwoorde","Show {{amount}} previous comments":"Wys {{amount}} vorige kommentaar","Show 1 more reply":"Wys nog 1 antwoord","Show 1 previous comment":"Wys 1 vorige kommentaar","Show comment":"Wys kommentaar","Sign in":"Teken in","Sign up now":"Sluit nou aan","Sort by":"","Start the conversation":"Begin die gesprek","This comment has been hidden.":"Hierdie kommentaar is weggesteek.","This comment has been removed.":"Hierdie kommentaar is verwyder.","Upgrade now":"Gradeer nou op",Yesterday:"Gister","Your request will be sent to the owner of this site.":"Jou versoek sal aan die eienaar van hierdie webwerf gestuur word."},lN={"{{amount}} characters left":"الحروف المتبقية : {{amount}}","{{amount}} comments":"{{amount}} تعليق/ات","{{amount}} hrs ago":"منذ {{amount}} ساعات","{{amount}} mins ago":"منذ {{amount}} دقيقة","{{amount}} more":"{{amount}} المزيد","1 comment":"تعليق واحد","Add comment":"اضف تعليق","Add context to your comment, share your name and expertise to foster a healthy discussion.":"قم بإضافة سياق لتعليقك، شارك اسمك و مجال خبرتك لكي نرعى محادثة مثمرة","Add reply":"ردّ","Already a member?":"هل انت مسجل بالفعل؟",Anonymous:"مجهول","Become a member of {{publication}} to start commenting.":"يجب أن تصبح عضوًا فى {{publication}} لتستطيع التعليق","Become a paid member of {{publication}} to start commenting.":"يجب ان تكون عضويتك مدفوعة فى {{publication}} لكي تستطيع التعليق",Cancel:"إلغاء",Comment:"تعليق","Complete your profile":"إكمال ملفك الشخصى",Delete:"حذف","Deleted member":"الاعضاء المحذوفين",Discussion:"النقاش",Edit:"تعديل","Edit this comment":"عدّل هذا التعليق",edited:"تم التعديل","Enter your name":"اكتب اسمك",Expertise:"مجال تخصصك","Founder @ Acme Inc":"مؤسس لدى شركة أكمي","Full-time parent":"أب بدوام كامل","Head of Marketing at Acme, Inc":"رئيس وحدة التسويق لدى شركة أكمى","Hidden for members":"",Hide:"اخفاء","Hide comment":"اخف التعليق","Jamie Larson":"فلان الفلانى","Join the discussion":"انضم للمحادثة","Just now":"الآن","Local resident":"مقيم محلى","Member discussion":"مناقشة الاعضاء",Name:"الاسم",Neurosurgeon:"جراح المخ و الاعصاب","One hour ago":"منذ ساعة واحدة","One min ago":" منذ دقيقة واحدة","replied to comment":"",Reply:"رد","reply to comment":"","Reply to comment":"رد على هذا التعليق",Report:"الإبلاغ","Report comment":"ابلغ عن هذا التعليق","Report this comment?":"الإبلاغ عن التعليق؟",Save:"حفظ",Sending:"جارى الارسال",Sent:"تم الارسال",Show:"اظهر","Show {{amount}} more replies":"اظهر {{amount}} ردود","Show {{amount}} previous comments":"اظهر {{amount}} تعليقات سابقة","Show 1 more reply":"اظهر تعليق وحيد","Show 1 previous comment":"اظهر التعليق السابق","Show comment":"اظهر التعليق","Sign in":"تسجيل الدخول","Sign up now":"قم بالتسجيل الآن","Sort by":"ترتيب بحسب","Start the conversation":"ابدأ النقاش","This comment has been hidden.":"تم اخفاء هذا التعليق","This comment has been removed.":"تم حذف هذا التعليق","Upgrade now":"قم بالترقية الآن",Yesterday:"أمس","Your request will be sent to the owner of this site.":"سيتم ارسال طلبك لصاحب الموقع"},cN={"{{amount}} characters left":"Остават {{amount}} знака","{{amount}} comments":"{{amount}} коментара","{{amount}} hrs ago":"Преди {{amount}} часа","{{amount}} mins ago":"Преди {{amount}} минути","{{amount}} more":"Още {{amount}}","1 comment":"1 коментар","Add comment":"Нов коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Добавете контекст към коментара си, споделете името си и опита си, за да насърчите полезна дискусия.","Add reply":"Отговор","Already a member?":"Вече сте абонат?",Anonymous:"Анонимен","Become a member of {{publication}} to start commenting.":"Абонирайте се за {{publication}}, за да коментирате.","Become a paid member of {{publication}} to start commenting.":"Станете платен абонат на {{publication}}, за да коментирате.",Cancel:"Отказ",Comment:"Коментар","Complete your profile":"Попълнете профила си",Delete:"Изтриване","Deleted member":"Изтрит абонат",Discussion:"Дискусия",Edit:"Редактиране","Edit this comment":"Редактиране на коментара",edited:"редактиран","Enter your name":"Попълнете името си",Expertise:"Опит","Founder @ Acme Inc":"Основател на Компания ООД","Full-time parent":"Родител на пълно работно време","Head of Marketing at Acme, Inc":"Директор маркетинг в Компания ООД","Hidden for members":"",Hide:"Скриване","Hide comment":"Скриване на коментара","Jamie Larson":"Иван Иванов","Join the discussion":"Участвайте в дискусията","Just now":"Току-що","Local resident":"Местен жител","Member discussion":"Дискусия за абонатите",Name:"Име",Neurosurgeon:"Неврохирург","One hour ago":"Преди час","One min ago":"Преди минута","replied to comment":"",Reply:"Отговор","reply to comment":"","Reply to comment":"Отгговор на коментара",Report:"Докладване","Report comment":"Докладване на коментара","Report this comment?":"Ще докладвате ли коментара?",Save:"Запис",Sending:"Изпращане",Sent:"Изпратен",Show:"Показване","Show {{amount}} more replies":"Покажи още {{amount}} отговора","Show {{amount}} previous comments":"Покажи {{amount}} предишни коментара","Show 1 more reply":"Покажи още един отговор","Show 1 previous comment":"Покажи един предишен коментар","Show comment":"Покажи коментар","Sign in":"Вход","Sign up now":"Регистрация","Sort by":"Сортиране по","Start the conversation":"Започнете дискусия","This comment has been hidden.":"Този коментар е скрит.","This comment has been removed.":"Този коментар е премахнат.","Upgrade now":"Надградете сега",Yesterday:"Вчера","Your request will be sent to the owner of this site.":"Искането ви ще бъде изпратено до собственика на сайта."},uN={"{{amount}} characters left":"{{amount}} অক্ষর বাকি","{{amount}} comments":"{{amount}} মন্তব্য","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"{{amount}}টি আরও","1 comment":"১টি মন্তব্য","Add comment":"মন্তব্য যোগ করুন","Add context to your comment, share your name and expertise to foster a healthy discussion.":"আপনার মন্তব্যে প্রসঙ্গ যোগ করুন, একটি সুস্থ আলোচনা করতে আপনার নাম ও অভিজ্ঞতা শেয়ার করুন।","Add reply":"উত্তর যোগ করুন","Already a member?":"ইত:পূর্বে সদস্য?",Anonymous:"অজ্ঞাতনামা","Become a member of {{publication}} to start commenting.":"{{publication}} এর সদস্য হন মন্তব্য করার জন্য।","Become a paid member of {{publication}} to start commenting.":"{{publication}} এর পেইড সদস্য হন মন্তব্য করার জন্য।",Cancel:"বাতিল করুন",Comment:"মন্তব্য","Complete your profile":"আপনার প্রোফাইল সম্পূর্ণ করুন",Delete:"মুছে ফেলুন","Deleted member":"মুছে ফেলা সদস্য",Discussion:"আলোচনা",Edit:"সম্পাদনা","Edit this comment":"এই মন্তব্য সম্পাদনা করুন",edited:"","Enter your name":"আপনার নাম লিখুন",Expertise:"বিশেষজ্ঞতা","Founder @ Acme Inc":"প্রতিষ্ঠাতা @ বাংলাদেশ ট্রেড হাব","Full-time parent":"পূর্ণকালীন অভিভাবক","Head of Marketing at Acme, Inc":"মার্কেটিং প্রধান @ বাংলাদেশ ট্রেড হাব","Hidden for members":"",Hide:"লুকান","Hide comment":"মন্তব্য লুকান","Jamie Larson":"শাহ নেওয়াজ","Join the discussion":"আলোচনায় যোগ দিন","Just now":"এখনই","Local resident":"স্থানীয় বাসিন্দা","Member discussion":"সদস্য আলোচনা",Name:"নাম",Neurosurgeon:"নিউরোসার্জন","One hour ago":"এক ঘণ্টা পূর্বে","One min ago":"","replied to comment":"",Reply:"উত্তর","reply to comment":"","Reply to comment":"মন্তব্যের উত্তর দিন",Report:"প্রতিবেদন","Report comment":"মন্তব্য প্রতিবেদন করুন","Report this comment?":"এই মন্তব্য প্রতিবেদন করবেন?",Save:"সংরক্ষণ করুন",Sending:"পাঠানো হচ্ছে",Sent:"পাঠানো হয়েছে",Show:"দেখান","Show {{amount}} more replies":" আরো {{amount}}টি উত্তর দেখান","Show {{amount}} previous comments":"পূর্বের {{amount}}টি মন্তব্য দেখান","Show 1 more reply":"১টি আরো উত্তর দেখান","Show 1 previous comment":"১টি পূর্বের মন্তব্য দেখান","Show comment":"মন্তব্য দেখান","Sign in":"সাইন ইন করুন","Sign up now":"এখনই সাইন আপ করুন","Sort by":"","Start the conversation":"আলোচনা শুরু করুন","This comment has been hidden.":"এই মন্তব্য লুকানো হয়েছে।","This comment has been removed.":"এই মন্তব্য মুছে ফেলা হয়েছে।","Upgrade now":"এখনই আপগ্রেড করুন",Yesterday:"গতকাল","Your request will be sent to the owner of this site.":"আপনার অনুরোধ সাইটের মালিকের কাছে পাঠানো হবে।"},dN={"{{amount}} characters left":"Preostalo {{amount}} karaktera","{{amount}} comments":"{{amount}} komentara","{{amount}} hrs ago":"Prije {{amount}} sati","{{amount}} mins ago":"Prije {{amount}} minuta","{{amount}} more":"Još {{amount}}","1 comment":"1 komentar","Add comment":"Dodaj komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dodaj kontekst svom komentaru, podijeli svoje ime i stručnost u svrhu kvalitetnije diskusije.","Add reply":"Objavi komentar","Already a member?":"Već si član?",Anonymous:"Anoniman","Become a member of {{publication}} to start commenting.":"Postani član portala {{publication}} za pristup diskusiji.","Become a paid member of {{publication}} to start commenting.":"Postani plaćeni član portala {{publication}} za pristup diskusiji.",Cancel:"Otkaži",Comment:"Komentar","Complete your profile":"Dovrši svoj profil",Delete:"Obriši","Deleted member":"Obrisan član",Discussion:"Diskusija",Edit:"Uredi","Edit this comment":"Uredi komentar",edited:"uređeno","Enter your name":"Unesi ime",Expertise:"Stručnost","Founder @ Acme Inc":"Acme Inc osnivač","Full-time parent":"Full time roditelj","Head of Marketing at Acme, Inc":"Šef marketinga u kompaniji Acme d.o.o","Hidden for members":"",Hide:"Sakrij","Hide comment":"Sakrij komentar","Jamie Larson":"Vanja Larsić","Join the discussion":"Pridruži se diskusiji","Just now":"Upravo sada","Local resident":"Lokalni stanovnik","Member discussion":"Diskusija članova",Name:"Ime",Neurosurgeon:"Neurohirurg","One hour ago":"Prije jedan sat","One min ago":"Prije jedan minut","replied to comment":"",Reply:"Odgovori","reply to comment":"","Reply to comment":"Odgovori na komentar",Report:"Prijavi","Report comment":"Prijavi komentar","Report this comment?":"Prijavi ovaj komentar?",Save:"Sačuvaj",Sending:"Šaljem",Sent:"Poslano",Show:"Prikaži","Show {{amount}} more replies":"Prikaži još {{amount}} odgovora","Show {{amount}} previous comments":"Prikaži prethodnih {{amount}} komentara","Show 1 more reply":"Prikaži još jedan odgovor","Show 1 previous comment":"Prikaži prethodni komentar","Show comment":"Prikaži komentar","Sign in":"Prijavi se","Sign up now":"Postani član","Sort by":"","Start the conversation":"Započni diskusiju","This comment has been hidden.":"Ovaj komentar je sakriven.","This comment has been removed.":"Ovaj komentar je uklonjen.","Upgrade now":"Nadogradi račun sada",Yesterday:"Jučer","Your request will be sent to the owner of this site.":"Tvoj zahtjev je poslan vlasniku stranice."},mN={"{{amount}} characters left":"{{amount}} caràcters restants","{{amount}} comments":"{{amount}} comentaris","{{amount}} hrs ago":"Fa {{amount}} hores","{{amount}} mins ago":"Fa {{amount}} minuts","{{amount}} more":"","1 comment":"Un comentari","Add comment":"Afegeix un comentari","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Afegeix context al teu comentari, comparteix el teu nom i experiència per fomentar una discussió sana.","Add reply":"Afegeix una resposta","Already a member?":"Ja ets membre?",Anonymous:"Anònim","Become a member of {{publication}} to start commenting.":"Fes-te membre de {{publication}} per començar a comentar.","Become a paid member of {{publication}} to start commenting.":"Fes-te membre de pagament de {{publication}} per començar a comentar",Cancel:"Cancel·lar",Comment:"Comentari","Complete your profile":"Completa el teu perfil",Delete:"Esborrar","Deleted member":"Membre esborrat",Discussion:"Debat",Edit:"Editar","Edit this comment":"Editar aquest comentari",edited:"editat","Enter your name":"Escriu el teu nom",Expertise:"Conéixement","Founder @ Acme Inc":"Fundador @ Acme Inc","Full-time parent":"Pare a temps complert","Head of Marketing at Acme, Inc":"Cap de màrqueting a Acme, Inc","Hidden for members":"",Hide:"Amaga","Hide comment":"Amaga el comentari","Jamie Larson":"Jamie Larson","Join the discussion":"Uneix-te al debat","Just now":"Just ara","Local resident":"Resiudent local","Member discussion":"Debat de membres",Name:"Nom",Neurosurgeon:"Neurocirurgià","One hour ago":"Fa una hora","One min ago":"Fa un minut","replied to comment":"",Reply:"Respondre","reply to comment":"","Reply to comment":"Respondre al comentari",Report:"Reportar","Report comment":"Reportar comentari","Report this comment?":"Reportar aquest comentari?",Save:"Desa",Sending:"Enviant",Sent:"Enviar",Show:"Mostra","Show {{amount}} more replies":"Mostra {{amount}} respostes més","Show {{amount}} previous comments":"Mostra {{amount}} comentaris previs","Show 1 more reply":"Mostra 1 resposta més","Show 1 previous comment":"Mostra 1 comentari previ","Show comment":"Mostra el comentari","Sign in":"Inici de sessió","Sign up now":"Registrar-se ara","Sort by":"","Start the conversation":"Comença la conversa","This comment has been hidden.":"Aquest comentari s'ha amagat.","This comment has been removed.":"Aquest comantari s'ha esborrat.","Upgrade now":"Millora ara",Yesterday:"Ahir","Your request will be sent to the owner of this site.":"La vostra sol·licitud s'enviarà al propietari d'aquest lloc."},fN={"{{amount}} characters left":"Zbývá {{amount}} znaků","{{amount}} comments":"{{amount}} komentářů","{{amount}} hrs ago":"Před {{amount}} hodinami","{{amount}} mins ago":"Před {{amount}} minutami","{{amount}} more":"Dalších {{amount}}","1 comment":"1 komentář","Add comment":"Přidat komentář","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Pro podporu zdravé diskuse přidejte ke svému komentáři kontext, své jméno a odbornost.","Add reply":"Přidat odpověď","Already a member?":"Už jste členem?",Anonymous:"Anonymní","Become a member of {{publication}} to start commenting.":"Staňte se členem {{publication}}, abyste mohli začít komentovat.","Become a paid member of {{publication}} to start commenting.":"Staňte se placeným členem {{publication}}, abyste mohli začít komentovat.",Cancel:"Zrušit",Comment:"Komentář","Complete your profile":"Dokončete svůj profil",Delete:"Smazat","Deleted member":"Smazaný člen",Discussion:"Diskuse",Edit:"Upravit","Edit this comment":"Upravit tento komentář",edited:"upraveno","Enter your name":"Zadejte své jméno",Expertise:"Odbornost","Founder @ Acme Inc":"Zakladatel @ Acme Inc","Full-time parent":"Rodič na plný úvazek","Head of Marketing at Acme, Inc":"Vedoucí marketingu v Acme, Inc","Hidden for members":"",Hide:"Skrýt","Hide comment":"Skrýt komentář","Jamie Larson":"Jamie Larson","Join the discussion":"Připojte se k diskusi","Just now":"Právě teď","Local resident":"Místní obyvatel","Member discussion":"Diskuse členů",Name:"Jméno",Neurosurgeon:"Neurochirurg","One hour ago":"Před jednou hodinou","One min ago":"Před jednou minutou","replied to comment":"",Reply:"Odpovědět","reply to comment":"","Reply to comment":"Odpovědět na komentář",Report:"Nahlásit","Report comment":"Nahlásit komentář","Report this comment?":"Nahlásit tento komentář?",Save:"Uložit",Sending:"Odesílání",Sent:"Odesláno",Show:"Zobrazit","Show {{amount}} more replies":"Zobrazit {{amount}} dalších odpovědí","Show {{amount}} previous comments":"Zobrazit {{amount}} předchozích komentářů","Show 1 more reply":"Zobrazit 1 další odpověď","Show 1 previous comment":"Zobrazit 1 předchozí komentář","Show comment":"Zobrazit komentář","Sign in":"Přihlásit se","Sign up now":"Zaregistrujte se nyní","Sort by":"","Start the conversation":"Začněte konverzaci","This comment has been hidden.":"Tento komentář byl skryt.","This comment has been removed.":"Tento komentář byl odstraněn.","Upgrade now":"Upgradovat",Yesterday:"Včera","Your request will be sent to the owner of this site.":"Vaše žádost bude odeslána vlastníkovi tohoto webu."},pN={"{{amount}} characters left":"{{amount}} tegn tilbage","{{amount}} comments":"{{amount}} kommentarer","{{amount}} hrs ago":"{{amount}} timer siden","{{amount}} mins ago":"{{amount}} minutter siden","{{amount}} more":"{{amount}} mere","1 comment":"1 kommentar","Add comment":"Tilføj kommentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Tilføj kontekst til din kommentar, del dit navn og ekspertise for at fremme en sund diskussion.","Add reply":"Tilføj svar","Already a member?":"Allerede medlem?",Anonymous:"Anonym","Become a member of {{publication}} to start commenting.":"Bliv medlem af {{publication}} for at kunne skrive kommentarer.","Become a paid member of {{publication}} to start commenting.":"Bliv betalende medlem af {{publication}} for at kunne skrive kommentarer.",Cancel:"Annuller",Comment:"Kommentér","Complete your profile":"Færdiggør din profil",Delete:"Slet","Deleted member":"Slettet medlem",Discussion:"Diskussion",Edit:"Rediger","Edit this comment":"Rediger denne kommentar",edited:"redigeret","Enter your name":"Indtast dit navn",Expertise:"Ekspertise","Founder @ Acme Inc":"Grundlægger @ Acme Inc","Full-time parent":"Forældre på fuld tid","Head of Marketing at Acme, Inc":"Chef for marking hos Acme, Inc","Hidden for members":"",Hide:"Skjul","Hide comment":"Skjul kommentar","Jamie Larson":"Jamie Larson","Join the discussion":"Bliv en del af diskussionen","Just now":"Lige nu","Local resident":"Lokal borger","Member discussion":"Medlemsdiskussion",Name:"Navn",Neurosurgeon:"Neurokirurg","One hour ago":"En time siden","One min ago":"Et minut siden","replied to comment":"",Reply:"Svar","reply to comment":"","Reply to comment":"Svar på kommentar",Report:"Rapportér","Report comment":"Rapportér kommentar","Report this comment?":"Rapportér denne kommentar?",Save:"Gem",Sending:"Sender",Sent:"Sendt",Show:"Vis","Show {{amount}} more replies":"Vis {{amount}} flere svar","Show {{amount}} previous comments":"Vis {{amount}} tidligere kommentarer","Show 1 more reply":"Vis 1 mere svar","Show 1 previous comment":"Vis 1 tidligere kommentar","Show comment":"Vis kommentar","Sign in":"Log ind","Sign up now":"Tilmed dig nu","Sort by":"Sorter efter","Start the conversation":"Start samtalen","This comment has been hidden.":"Denne kommentar er blevet skjult.","This comment has been removed.":"Denne kommentar er blevet fjernet.","Upgrade now":"Opgrader nu",Yesterday:"I går","Your request will be sent to the owner of this site.":"Din anmodning vil blive sendt til ejeren af dette site."},hN={"{{amount}} characters left":"{{amount}} Zeichen übrig","{{amount}} comments":"{{amount}} Kommentare","{{amount}} hrs ago":"Vor {{amount}} Stunden","{{amount}} mins ago":"Vor {{amount}} Minuten","{{amount}} more":"{{amount}} weitere","1 comment":"1 Kommentar","Add comment":"Kommentar hinzufügen","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Füge deinem Kommentar Kontext hinzu, teile deinen Namen und deine Expertise, um eine gesunde Diskussion zu fördern.","Add reply":"Antwort hinzufügen","Already a member?":"Bist du bereits Mitglied?",Anonymous:"Anonym","Become a member of {{publication}} to start commenting.":"Werde Mitglied bei {{publication}}, um Kommentare zu schreiben.","Become a paid member of {{publication}} to start commenting.":"Werde zahlendes Mitglied bei {{publication}}, um Kommentare zu schreiben.",Cancel:"Abbrechen",Comment:"Kommentar","Complete your profile":"Vervollständige dein Profil",Delete:"Löschen","Deleted member":"Gelöschtes Mitglied",Discussion:"Diskussion",Edit:"Bearbeiten","Edit this comment":"Diesen Kommentar bearbeiten",edited:"bearbeitet","Enter your name":"Gib deinen Namen ein",Expertise:"Expertise","Founder @ Acme Inc":"Gründer bei Acme Inc","Full-time parent":"Vollzeit-Elternteil","Head of Marketing at Acme, Inc":"Leiter Marketing bei Acme, Inc","Hidden for members":"",Hide:"Verbergen","Hide comment":"Kommentar verbergen","Jamie Larson":"Jamie Larson","Join the discussion":"Nimm an der Diskussion teil","Just now":"Gerade eben","Local resident":"Ortsansässiger","Member discussion":"Mitgliederdiskussion",Name:"Name",Neurosurgeon:"Neurochirurg","One hour ago":"Vor einer Stunde","One min ago":"Vor einer Minute","replied to comment":"",Reply:"Antworten","reply to comment":"","Reply to comment":"Auf Kommentar antworten",Report:"Melden","Report comment":"Kommentar melden","Report this comment?":"Diesen Kommentar melden?",Save:"Speichern",Sending:"Senden",Sent:"Gesendet",Show:"Anzeigen","Show {{amount}} more replies":"{{amount}} weitere Antworten anzeigen","Show {{amount}} previous comments":"{{amount}} frühere Kommentare anzeigen","Show 1 more reply":"1 weitere Antwort anzeigen","Show 1 previous comment":"1 vorherigen Kommentar anzeigen","Show comment":"Kommentar anzeigen","Sign in":"Einloggen","Sign up now":"Jetzt registrieren","Sort by":"","Start the conversation":"Beginne das Gespräch","This comment has been hidden.":"Dieser Kommentar wurde ausgeblendet.","This comment has been removed.":"Dieser Kommentar wurde entfernt.","Upgrade now":"Jetzt upgraden",Yesterday:"Gestern","Your request will be sent to the owner of this site.":"Deine Anfrage wird an den Besitzer dieser Website gesendet."},gN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One hour ago":"","One min ago":"","replied to comment":"",Reply:"Antworten","reply to comment":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"{{amount}} vorherige Kommentare anzeigen","Show 1 more reply":"","Show 1 previous comment":"Einen vorherigen Kommentar anzeigen","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},yN={"{{amount}} characters left":"Απομένουν {{amount}} χαρακτήρες","{{amount}} comments":"{{amount}} σχόλια","{{amount}} hrs ago":"πριν από {{amount}} ώρες","{{amount}} mins ago":"πριν από {{amount}} λεπτά","{{amount}} more":"{{amount}} περισσότερα","1 comment":"1 σχόλιο","Add comment":"Προσθήκη σχολίου","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Προσθέστε περιεχόμενο στο σχόλιό σας, μοιραστείτε το όνομα και την εξειδίκευσή σας για να προωθήσετε μια υγιή συζήτηση.","Add reply":"Προσθήκη απάντησης","Already a member?":"Ήδη μέλος;",Anonymous:"Ανώνυμος","Become a member of {{publication}} to start commenting.":"Γίνετε μέλος του {{publication}} για να ξεκινήσετε να σχολιάζετε.","Become a paid member of {{publication}} to start commenting.":"Γίνετε premium μέλος του {{publication}} για να ξεκινήσετε να σχολιάζετε.",Cancel:"Ακύρωση",Comment:"Σχόλιο","Complete your profile":"Ολοκληρώστε το προφίλ σας",Delete:"Διαγραφή","Deleted member":"Διαγραμμένο μέλος",Discussion:"Συζήτηση",Edit:"Επεξεργασία","Edit this comment":"Επεξεργασία αυτού του σχολίου",edited:"Επεξεργασμένο","Enter your name":"Εισάγετε το όνομά σας",Expertise:"Εξειδίκευση","Founder @ Acme Inc":"Ιδρυτής @ Acme Inc","Full-time parent":"Γονέας πλήρους απασχόλησης","Head of Marketing at Acme, Inc":"Επικεφαλής Μάρκετινγκ στην Acme, Inc","Hidden for members":"",Hide:"Απόκρυψη","Hide comment":"Απόκρυψη σχολίου","Jamie Larson":"Τζέιμι Λάρσον","Join the discussion":"Συμμετοχή στη συζήτηση","Just now":"Μόλις τώρα","Local resident":"Τοπικός κάτοικος","Member discussion":"Συζήτηση μελών",Name:"Όνομα",Neurosurgeon:"Νευροχειρουργός","One hour ago":"Πριν από μία ώρα","One min ago":"Πριν από ένα λεπτό","replied to comment":"",Reply:"Απάντηση","reply to comment":"","Reply to comment":"Απάντηση στο σχόλιο",Report:"Αναφορά","Report comment":"Αναφορά σχολίου","Report this comment?":"Αναφορά αυτού του σχολίου;",Save:"Αποθήκευση",Sending:"Αποστολή",Sent:"Απεστάλη",Show:"Εμφάνιση","Show {{amount}} more replies":"Εμφάνιση {{amount}} περισσότερων απαντήσεων","Show {{amount}} previous comments":"Εμφάνιση {{amount}} προηγούμενων σχολίων","Show 1 more reply":"Εμφάνιση 1 ακόμα απάντησης","Show 1 previous comment":"Εμφάνιση 1 προηγούμενου σχολίου","Show comment":"Εμφάνιση σχολίου","Sign in":"Σύνδεση","Sign up now":"Εγγραφείτε τώρα","Sort by":"","Start the conversation":"Ξεκινήστε τη συζήτηση","This comment has been hidden.":"Αυτό το σχόλιο έχει κρυφτεί.","This comment has been removed.":"Αυτό το σχόλιο έχει αφαιρεθεί.","Upgrade now":"Αναβάθμιση τώρα",Yesterday:"Χθες","Your request will be sent to the owner of this site.":"Το αίτημά σας θα σταλεί στον ιδιοκτήτη αυτού του ιστότοπου."},wN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One hour ago":"","One min ago":"","replied to comment":"",Reply:"","reply to comment":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},SN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One hour ago":"","One min ago":"","replied to comment":"",Reply:"","reply to comment":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},bN={"{{amount}} characters left":"{{amount}} caracteres restantes","{{amount}} comments":"{{amount}} comentarios","{{amount}} hrs ago":"{{amount}} horas atrás","{{amount}} mins ago":"{{amount}} minutos atrás","{{amount}} more":"{{amount}} más","1 comment":"1 comentario","Add comment":"Agregar comentario","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Agrega contexto a tu comentario, comparte tu nombre y experiencia para fomentar una discusión sana.","Add reply":"Agregar respuesta","Already a member?":"¿Ya eres miembro?",Anonymous:"Anónimo","Become a member of {{publication}} to start commenting.":"Hazte miembro de {{publication}} para poder comentar.","Become a paid member of {{publication}} to start commenting.":"Hazte miembro de pago para poder comentar en {{publication}}.",Cancel:"Cancelar",Comment:"Comentar","Complete your profile":"Completa tu perfil",Delete:"Eliminar","Deleted member":"Eliminar miembro",Discussion:"Discusión",Edit:"Editar","Edit this comment":"Editar este comentario",edited:"editado","Enter your name":"Ingresa tu nombre",Expertise:"Experiencia","Founder @ Acme Inc":"Fundador @ Acme Inc","Full-time parent":"Padres de tiempo completo","Head of Marketing at Acme, Inc":"Jefe de Marketing en Acme, Inc","Hidden for members":"",Hide:"Ocultar","Hide comment":"Ocultar comentario","Jamie Larson":"Jamie Larson","Join the discussion":"Únete a la discusión","Just now":"Justo ahora","Local resident":"Residente local","Member discussion":"Discusión de miembros",Name:"Nombre",Neurosurgeon:"Neurocirujano","One hour ago":"Hace una hora","One min ago":"Hace un minuto","replied to comment":"",Reply:"Responder","reply to comment":"","Reply to comment":"Responder al comentario",Report:"Reportar","Report comment":"Reportar comentario","Report this comment?":"¿Reportar este comentario?",Save:"Guardar",Sending:"Enviando",Sent:"Enviar",Show:"Mostrar","Show {{amount}} more replies":"Mostrar {{amount}} respuestas más","Show {{amount}} previous comments":"Mostrar {{amount}} comentarios previos","Show 1 more reply":"Mostrar 1 respuesta más","Show 1 previous comment":"Mostrar 1 comentario previo","Show comment":"Mostrar comentario","Sign in":"Inicia sesión","Sign up now":"Regístrate ahora","Sort by":"","Start the conversation":"Comienza la conversación","This comment has been hidden.":"Este comentario ha sido ocultado.","This comment has been removed.":"Este comentario ha sido borrado.","Upgrade now":"Actualiza tu cuenta ahora",Yesterday:"Ayer","Your request will be sent to the owner of this site.":"Tu requerimiento será enviado al dueño de este sitio web."},vN={"{{amount}} characters left":"{{amount}} tähemärki jäänud","{{amount}} comments":"{{amount}} kommentaari","{{amount}} hrs ago":"{{amount}} tundi tagasi","{{amount}} mins ago":"{{amount}} minutit tagasi","{{amount}} more":"{{amount}} veel","1 comment":"1 kommentaar","Add comment":"Lisa kommentaar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Lisa oma kommentaarile konteksti, jaga oma nime ja kogemusi, et soodustada tervislikku arutelu.","Add reply":"Lisa vastus","Already a member?":"Juba liige?",Anonymous:"Anonüümne","Become a member of {{publication}} to start commenting.":"Kommenteerimise alustamiseks saage {{publication}} liikmeks.","Become a paid member of {{publication}} to start commenting.":"Kommenteerimise alustamiseks saage {{publication}} tasuliseks liikmeks.",Cancel:"Tühista",Comment:"Kommentaar","Complete your profile":"Täida oma profiil",Delete:"Kustuta","Deleted member":"Kustutatud liige",Discussion:"Arutelu",Edit:"Muuda","Edit this comment":"Muuda seda kommentaari",edited:"muudetud","Enter your name":"Sisesta oma nimi",Expertise:"Oskused","Founder @ Acme Inc":"Asutaja @ Acme Inc","Full-time parent":"Täiskohaga lapsevanem","Head of Marketing at Acme, Inc":"Turundusjuht Acme, Inc-s","Hidden for members":"",Hide:"Peida","Hide comment":"Peida kommentaar","Jamie Larson":"Jamie Larson","Join the discussion":"Liitu aruteluga","Just now":"Just praegu","Local resident":"Kohalik elanik","Member discussion":"Liikmete arutelu",Name:"Nimi",Neurosurgeon:"Neurokirurg","One hour ago":"Üks tund tagasi","One min ago":"Üks minut tagasi","replied to comment":"",Reply:"Vasta","reply to comment":"","Reply to comment":"Vasta kommentaarile",Report:"Teata","Report comment":"Teata kommentaarist","Report this comment?":"Teatada sellest kommentaarist?",Save:"Salvesta",Sending:"Saatmine",Sent:"Saadetud",Show:"Näita","Show {{amount}} more replies":"Näita {{amount}} vastust veel","Show {{amount}} previous comments":"Näita {{amount}} eelmist kommentaari","Show 1 more reply":"Näita 1 vastus veel","Show 1 previous comment":"Näita eelmist kommentaari","Show comment":"Näita kommentaari","Sign in":"Logi sisse","Sign up now":"Registreeru nüüd","Sort by":"","Start the conversation":"Alusta vestlust","This comment has been hidden.":"See kommentaar on peidetud.","This comment has been removed.":"See kommentaar on eemaldatud.","Upgrade now":"Uuenda nüüd",Yesterday:"Eile","Your request will be sent to the owner of this site.":"Teie taotlus saadetakse selle saidi omanikule."},xN={"{{amount}} characters left":"{{amount}} حرف باقیمانده است","{{amount}} comments":"{{amount}} دیدگاه","{{amount}} hrs ago":"{{amount}} ساعت پیش","{{amount}} mins ago":"{{amount}} دقیقه پیش","{{amount}} more":"{{amount}} بیشتر","1 comment":"یک دیدگاه","Add comment":"دیدگاهی بفرستید","Add context to your comment, share your name and expertise to foster a healthy discussion.":"به دیدگاه خود موضوعیت ببخشید و با به اشتراکگذاری نام و تخصص خود یک گفتمان سالم ایجاد کنید.","Add reply":"پاسخی بدهید","Already a member?":"عضو هستید؟",Anonymous:"ناشناس","Become a member of {{publication}} to start commenting.":"عضو وبسایت {{publication}} شوید تا مجوز ارسال دیدگاه دریافت کنید.","Become a paid member of {{publication}} to start commenting.":"حق اشتراک وبسایت {{publication}} را پرداخت کنید تا مجوز ارسال دیدگاه دریافت کنید.",Cancel:"انصراف",Comment:"دیدگاه","Complete your profile":"نمایه خود را کامل کنید",Delete:"پاک کردن","Deleted member":"حساب پاکشده",Discussion:"گفتمان",Edit:"ویرایش","Edit this comment":"ویرایش این دیدگاه",edited:"ویرایششده","Enter your name":"نام خود را بنویسید",Expertise:"تخصص","Founder @ Acme Inc":"مدیر عامل یک شرکت خیالی","Full-time parent":" خانهدار تمام وقت","Head of Marketing at Acme, Inc":"سرپرست بخش بازاریابی یک شرکت خیالی","Hidden for members":"",Hide:"مخفی کردن","Hide comment":"مخفی کردن دیدگاه","Jamie Larson":"جیمی لارسن","Join the discussion":"به گفتمان بپیوندید","Just now":"پیوستن","Local resident":"ساکن محلی","Member discussion":"گفتمان کاربران",Name:"نام",Neurosurgeon:"جراح مغز و اعصاب","One hour ago":"یک ساعت پیش","One min ago":"یک دقیقه پیش","replied to comment":"",Reply:"پاسخ دادن","reply to comment":"","Reply to comment":"پاسخ دادن به دیدگاه",Report:"گزارش","Report comment":"گزارش دیدگاه","Report this comment?":"میخواهید این دیدگاه را گزارش کنید؟",Save:"ذخیره کردن",Sending:"در حال ارسال",Sent:"ارسال شد",Show:"نمایش","Show {{amount}} more replies":"نمایش {{amount}} پاسخ بیشتر","Show {{amount}} previous comments":"نمایش {{amount}} دیدگاه قبلتر","Show 1 more reply":"نمایش یک دیدگاه بیشتر","Show 1 previous comment":"نمایش یک دیدگاه قبلتر","Show comment":"نمایش دیدگاه","Sign in":"ورود به حساب","Sign up now":"ایجاد حساب","Sort by":"","Start the conversation":"گفتوگویی شروع کنید","This comment has been hidden.":"این دیدگاه مخفی شده است","This comment has been removed.":"این دیدگاه پاک شده است","Upgrade now":"ارتقاء دهید",Yesterday:"دیروز","Your request will be sent to the owner of this site.":"درخواست شما برای مدیر این وبسایت ارسال خواهد شد."},kN={"{{amount}} characters left":"{{amount}} merkkiä jäljellä","{{amount}} comments":"{{amount}} kommenttia","{{amount}} hrs ago":"{{amount}} tuntia sitten","{{amount}} mins ago":"{{amount}} minuuttia sitten","{{amount}} more":"{{amount}} vielä lisää","1 comment":"1 kommentti","Add comment":"Lisää kommentti","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Lisää sisältöä kommenttiisi, jaa nimesi ja osaamisesi saadaksesi aikaan tervettä keskustelua","Add reply":"Lisää vastaus","Already a member?":"Oletko jo jäsen?",Anonymous:"Anonyymi","Become a member of {{publication}} to start commenting.":"Ala {{publication}} jäseneksi pystyäksesi kommentoimaan","Become a paid member of {{publication}} to start commenting.":"Ota maksullinen jäsenyys sivulle {{publication}}, jotta pystyt kommentoimaan",Cancel:"Peruuta",Comment:"Kommentti","Complete your profile":"Täydennä profiilisi",Delete:"Poista","Deleted member":"Poista jäsen",Discussion:"Keskustelu",Edit:"Editoi","Edit this comment":"Editoi tätä kommenttia",edited:"editoitu","Enter your name":"Syötä nimesi",Expertise:"Osaaminen","Founder @ Acme Inc":"","Full-time parent":"Kokoaikainen vanhempi","Head of Marketing at Acme, Inc":"Markkinointijohtaja","Hidden for members":"",Hide:"Piilota","Hide comment":"Piilota kommentti","Jamie Larson":"Jamie Larson","Join the discussion":"Liity keskusteluun","Just now":"Juuri nyt","Local resident":"Paikallinen","Member discussion":"Jäsenten keskustelu",Name:"Nimi",Neurosurgeon:"Neurokirurgi","One hour ago":"Tunti sitten","One min ago":"Minuutti sitten","replied to comment":"",Reply:"Vastaa","reply to comment":"","Reply to comment":"Vastaa kommenttiin",Report:"Ilmianna","Report comment":"Ilmianna kommentti","Report this comment?":"Haluatko ilmiantaa tämän kommentin?",Save:"Tallenna",Sending:"Lähetetään",Sent:"Lähetetty",Show:"Näytä","Show {{amount}} more replies":"Näytä {{amount}} vastausta lisää ","Show {{amount}} previous comments":"Näytä {{amount}} edellistä kommenttia","Show 1 more reply":"Näytä 1 vastaus lisää","Show 1 previous comment":"Näytä edellinen kommentti","Show comment":"Näytä kommentti","Sign in":"Kirjaudu sisään","Sign up now":"Rekisteröidy nyt","Sort by":"","Start the conversation":"Aloita keskustelu","This comment has been hidden.":"Tämä kommentti on piilotettu","This comment has been removed.":"Tämä kommentti on poistettu","Upgrade now":"Korota nyt",Yesterday:"Eilen","Your request will be sent to the owner of this site.":"Sinun pyyntösi lähetetään sivun omistajalle"},$N={"{{amount}} characters left":"{{amount}} caractères restants","{{amount}} comments":"{{amount}} commentaires","{{amount}} hrs ago":"Il y a {{amount}} heures","{{amount}} mins ago":"Il y a {{amount}} minutes","{{amount}} more":"{{amount}} supplémentaire(s)","1 comment":"1 commentaire","Add comment":"Ajouter un commentaire","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Ajoutez un contexte à votre commentaire. Partagez votre nom et vos compétences pour favoriser une discussion saine.","Add reply":"Ajouter une réponse","Already a member?":"Déjà abonné ?",Anonymous:"Anonyme","Become a member of {{publication}} to start commenting.":"Abonnez-vous gratuitement à {{publication}} pour commencer à commenter.","Become a paid member of {{publication}} to start commenting.":"Choisissez un abonnement payant à {{publication}} pour commencer à commenter.",Cancel:"Annuler",Comment:"Commentaire","Complete your profile":"Complétez votre profil",Delete:"Supprimer","Deleted member":"Abonné supprimé",Discussion:"Discussion",Edit:"Modifier","Edit this comment":"Modifier ce commentaire",edited:"modifié","Enter your name":"Entrez votre nom",Expertise:"Compétences","Founder @ Acme Inc":"Fondateur @ Acme Inc","Full-time parent":"Parent à plein temps","Head of Marketing at Acme, Inc":"Responsable du marketing chez Acme, Inc","Hidden for members":"",Hide:"Masquer","Hide comment":"Masquer le commentaire","Jamie Larson":"Jean Martin","Join the discussion":"Rejoindre la discussion","Just now":"À l'instant","Local resident":"Résident local","Member discussion":"Discussion entre abonnés",Name:"Nom",Neurosurgeon:"Neurochirurgien","One hour ago":"Il y a une heure","One min ago":"Il y a une minute","replied to comment":"",Reply:"Répondre","reply to comment":"","Reply to comment":"Répondre au commentaire",Report:"Signaler","Report comment":"Signaler le commentaire","Report this comment?":"Signaler ce commentaire ?",Save:"Enregistrer",Sending:"Envoi en cours",Sent:"Envoyé",Show:"Afficher","Show {{amount}} more replies":"Afficher {{amount}} réponses supplémentaires","Show {{amount}} previous comments":"Afficher {{amount}} commentaires précédents","Show 1 more reply":"Afficher 1 réponse supplémentaire","Show 1 previous comment":"Afficher 1 commentaire précédent","Show comment":"Afficher le commentaire","Sign in":"Se connecter","Sign up now":"S'inscrire maintenant","Sort by":"Trier par","Start the conversation":"Commencer la conversation","This comment has been hidden.":"Ce commentaire a été masqué.","This comment has been removed.":"Ce commentaire a été supprimé.","Upgrade now":"Mettre à jour maintenant",Yesterday:"Hier","Your request will be sent to the owner of this site.":"Votre demande sera transférée au propriétaire de ce site."},CN={"{{amount}} characters left":"caractaran air fhàgail: {{amount}}","{{amount}} comments":"beachdan: {{amount}}","{{amount}} hrs ago":"o chionn {{amount}}u","{{amount}} mins ago":"o chionn {{amount}}m","{{amount}} more":"{{amount}} a bharrachd","1 comment":"1 bheachd","Add comment":"Fàg beachd air","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Cuir co-theacsa ris a' bheachd agad, cuir d' ainm is sàr-eòlas ris gus deasbad fallain a brosnachadh.","Add reply":"Cuir freagairt ris","Already a member?":"’Eil thu nad bhall mar-thà?",Anonymous:"Gun ainm","Become a member of {{publication}} to start commenting.":"Clàraich nad bhall an làrach-lìn, {{publication}}, gus beachd fhàgail air.","Become a paid member of {{publication}} to start commenting.":"Clàraich nad bhall phrìomhach an làrach-lìn, {{publication}}, gus beachd fhàgail air.",Cancel:"Sguir dheth",Comment:"Beachd","Complete your profile":"Lìon a-steach a' phròifil agad",Delete:"Sguab às","Deleted member":"Ball air a sguabadh às",Discussion:"Deasbad",Edit:"Deasaich","Edit this comment":"Deasaich am beachd seo",edited:"Air a dheasachad","Enter your name":"Cuir a-steach d’ ainm",Expertise:"Sàr-eòlas","Founder @ Acme Inc":"Neach-stèidheachaidh @ Acme Inc","Full-time parent":"Pàrant làn-ùine","Head of Marketing at Acme, Inc":"Àrd-cheann Margaidheachd aig Acme, Inc","Hidden for members":"",Hide:"Cuir am falach","Hide comment":"Cuir am beachd am falach","Jamie Larson":"Seamaidh Larson","Join the discussion":"Gabh pàirt san deasbad","Just now":"An-dràsta","Local resident":"Neach-còmhnaidh ionadail","Member discussion":"Deasbad",Name:"Ainm",Neurosurgeon:"Niùro-làmh-lèigh","One hour ago":"O chionn uair a thìde","One min ago":"O chionn mionaid","replied to comment":"",Reply:"Cuir freagairt","reply to comment":"","Reply to comment":"Cuir freagaist ri beachd",Report:"Dèan aithris air","Report comment":"Dèan aithris air beachd","Report this comment?":"’Eil thu airson aithris a dhèanamh air a’ bheachd seo?",Save:"Sabhail",Sending:"’Ga chur",Sent:"Air a chur",Show:"Seall","Show {{amount}} more replies":"An àireamh de bheachdan a bharrachd a chìthear: {{amount}}","Show {{amount}} previous comments":"An àireamh de bheachdan roimhe a chìthear: {{amount}}","Show 1 more reply":"Seall beachd a bharrachd","Show 1 previous comment":"Seall am beachd roimhe","Show comment":"Seall am beachd","Sign in":"Clàraich a-steach","Sign up now":"Clàraich a-nis","Sort by":"","Start the conversation":"Tòisich an deasbad","This comment has been hidden.":"Chaidh am beachd seo a chur am falach.","This comment has been removed.":"Chaidh am beachd seo a sguabadh às.","Upgrade now":"Àrdaich a-nis",Yesterday:"An-dè","Your request will be sent to the owner of this site.":"Thèid an iarrtas agad a chur gu neach-seilbh an làrach-lìn seo."},EN={"{{amount}} characters left":"נותרו עוד {{amount}} תווים","{{amount}} comments":"{{amount}} תגובות","{{amount}} hrs ago":"לפני {{amount}} שעות","{{amount}} mins ago":"לפני {{amount}} דקות","{{amount}} more":"עוד {{amount}}","1 comment":"תגובה אחת","Add comment":"הוסיפו תגובה","Add context to your comment, share your name and expertise to foster a healthy discussion.":"הוסיפו תוכן לתגובה שלכם, שתפו את שמכם ואת התמחותכם כדי לקדם דיון בריא.","Add reply":"הוסיפו תגובה","Already a member?":"כבר רשומים?",Anonymous:"אנונימי","Become a member of {{publication}} to start commenting.":"הירשמו כחברי {{publication}} כדי להתחיל להגיב.","Become a paid member of {{publication}} to start commenting.":"הירשמו כחברי משלמים של {{publication}} כדי להתחיל להגיב.",Cancel:"ביטול",Comment:"תגובה","Complete your profile":"השלימו את הפרופיל שלכם",Delete:"מחיקה","Deleted member":"חבר שנמחק",Discussion:"דיון",Edit:"עריכה","Edit this comment":"ערכו תגובה זו",edited:"נערך","Enter your name":"כתבו את שמכם",Expertise:"ניסיון","Founder @ Acme Inc":"מייסד @ Acme Inc","Full-time parent":"הורה במשרה מלאה","Head of Marketing at Acme, Inc":"ראש אגף שיווק ב- Acme, Inc","Hidden for members":"",Hide:"הסתר","Hide comment":"הסתר תגובה","Jamie Larson":"ג׳יימי לרסון","Join the discussion":"הצטרפו לדיון","Just now":"ממש עכשיו","Local resident":"תושב מקומי","Member discussion":"דיון חברים רשומים",Name:"שם",Neurosurgeon:"נוֹיְרוֹכִירוּרְג","One hour ago":"לפני שעה","One min ago":"לפני דקה","replied to comment":"",Reply:"תגובה","reply to comment":"","Reply to comment":"הגיבו לתגובה",Report:"דיווח","Report comment":"דווחו על תגובה","Report this comment?":"האם לדווח על תגובה זו?",Save:"שמירה",Sending:"שליחה",Sent:"שלחנו",Show:"להציג","Show {{amount}} more replies":"להציג עוד {{amount}} תגובות","Show {{amount}} previous comments":"להציג {{amount}} תגובות קודמות","Show 1 more reply":"להציג תגובה נוספת","Show 1 previous comment":"להציג תגובה קודמת","Show comment":"להציג תגובה","Sign in":"היכנסו","Sign up now":"הירשמו עכשיו","Sort by":"למיין לפי","Start the conversation":"התחילו את השיחה","This comment has been hidden.":"התגובה הזו הוסתרה.","This comment has been removed.":"התגובה הזו הוסרה.","Upgrade now":"שדרגו עכשיו",Yesterday:"אתמול","Your request will be sent to the owner of this site.":"בקשתך תישלח לבעלים של האתר הזה."},NN={"{{amount}} characters left":"{{amount}} अक्षर बाकी","{{amount}} comments":"{{amount}} टिप्पणियाँ","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"{{amount}} और","1 comment":"1 टिप्पणी","Add comment":"टिप्पणी जोड़ें","Add context to your comment, share your name and expertise to foster a healthy discussion.":"अपनी टिप्पणी में संदर्भ जोड़ें, स्वस्थ चर्चा के लिए अपना नाम और विशेषज्ञता साझा करें।","Add reply":"जवाब जोड़ें","Already a member?":"पहले से सदस्य हैं?",Anonymous:"अनाम","Become a member of {{publication}} to start commenting.":"टिप्पणी शुरू करने के लिए {{publication}} का सदस्य बनें।","Become a paid member of {{publication}} to start commenting.":"टिप्पणी शुरू करने के लिए {{publication}} के भुगतान सदस्य बनें।",Cancel:"रद्द करें",Comment:"टिप्पणी","Complete your profile":"अपनी प्रोफ़ाइल पूरी करें",Delete:"हटाएं","Deleted member":"हटाए गए सदस्य",Discussion:"चर्चा",Edit:"संपादित करें","Edit this comment":"इस टिप्पणी को संपादित करें",edited:"","Enter your name":"अपना नाम दर्ज करें",Expertise:"विशेषज्ञता","Founder @ Acme Inc":"संस्थापक @ Acme Inc","Full-time parent":"पूर्णकालिक माता-पिता","Head of Marketing at Acme, Inc":"Acme, Inc में विपणन प्रमुख","Hidden for members":"",Hide:"छिपाएं","Hide comment":"टिप्पणी छिपाएं","Jamie Larson":"राहुल शर्मा","Join the discussion":"चर्चा में शामिल हों","Just now":"अभी","Local resident":"स्थानीय निवासी","Member discussion":"सदस्य चर्चा",Name:"नाम",Neurosurgeon:"न्यूरोसर्जन","One hour ago":"एक घंटा पहले","One min ago":"","replied to comment":"",Reply:"जवाब दें","reply to comment":"","Reply to comment":"टिप्पणी का जवाब दें",Report:"रिपोर्ट","Report comment":"टिप्पणी की रिपोर्ट करें","Report this comment?":"क्या आप इस टिप्पणी की रिपोर्ट करना चाहते हैं?",Save:"सहेजें",Sending:"भेजा जा रहा है",Sent:"भेजा गया",Show:"दिखाएं","Show {{amount}} more replies":"{{amount}} और जवाब दिखाएं","Show {{amount}} previous comments":"{{amount}} पिछली टिप्पणियाँ दिखाएं","Show 1 more reply":"1 और जवाब दिखाएं","Show 1 previous comment":"1 पिछली टिप्पणी दिखाएं","Show comment":"टिप्पणी दिखाएं","Sign in":"साइन इन करें","Sign up now":"अभी साइन अप करें","Sort by":"","Start the conversation":"बातचीत शुरू करें","This comment has been hidden.":"इस टिप्पणी को छिपा दिया गया है।","This comment has been removed.":"इस टिप्पणी को हटा दिया गया है।","Upgrade now":"अब उन्नत करें",Yesterday:"कल","Your request will be sent to the owner of this site.":"आपका अनुरोध इस साइट के मालिक को भेजा जाएगा।"},AN={"{{amount}} characters left":"{{amount}} znakova preostalo","{{amount}} comments":"{{amount}} komentara","{{amount}} hrs ago":"Prije {{amount}} sati","{{amount}} mins ago":"Prije {{amount}} minuta","{{amount}} more":"{{amount}} više","1 comment":"1 komentar","Add comment":"Dodaj komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dajte kontekts vašem komentaru, podijelite vaše ime i znanje za unaprijeđenje svake rasprave.","Add reply":"Dodaj odgovor","Already a member?":"Već si član?",Anonymous:"Anonimus","Become a member of {{publication}} to start commenting.":"Postani član {{publication}} za mogućnost komentiranja.","Become a paid member of {{publication}} to start commenting.":"Plati pretplatu na {{publication}} za mogućnost komentiranja.",Cancel:"Prekini",Comment:"Komentar","Complete your profile":"Dovrši svoj profil",Delete:"Obriši","Deleted member":"Obrisan član",Discussion:"Rasprava",Edit:"Uredi","Edit this comment":"Uredi ovaj komentar",edited:"uređen","Enter your name":"Unesite vaše ime",Expertise:"Stručnost","Founder @ Acme Inc":"Osnivač Acme Inc","Full-time parent":"Full-time Roditelj","Head of Marketing at Acme, Inc":"Voditelj marketinga Acme, Inc","Hidden for members":"",Hide:"Sakrij","Hide comment":"Sakrij komentar","Jamie Larson":"Jamie Larson","Join the discussion":"Pridruži se raspravi","Just now":"Upravo sada","Local resident":"Lokalni stanovnik","Member discussion":"Rasprava članova",Name:"Ime",Neurosurgeon:"Neurokirurg","One hour ago":"Prije jednog sata","One min ago":"Prije jedne minute","replied to comment":"",Reply:"Odgovori","reply to comment":"","Reply to comment":"Odgovori na komentar",Report:"Prijavi","Report comment":"Prijavi komentar","Report this comment?":"Prijaviti ovaj komentar?",Save:"Spremi",Sending:"Slanje",Sent:"Poslano",Show:"Prikaži","Show {{amount}} more replies":"Prikaži još {{amount}} odgovora","Show {{amount}} previous comments":"Prikaži {{amount}} prethodnih komentara","Show 1 more reply":"Prikaži još jedan odgovor","Show 1 previous comment":"Prikaži prethodan komentar","Show comment":"Prikaži komentar","Sign in":"Prijava","Sign up now":"Registriraj se sada","Sort by":"","Start the conversation":"Pokreni razgovor","This comment has been hidden.":"Ovaj komentar je skriven","This comment has been removed.":"Ovaj komentar je maknut","Upgrade now":"Nadogradite sada",Yesterday:"Jučer","Your request will be sent to the owner of this site.":"Vaš zahtjev će se poslati vasniku ovih web stranica."},RN={"{{amount}} characters left":"{{amount}} karakter maradt","{{amount}} comments":"{{amount}} hozzászólás","{{amount}} hrs ago":"{{amount}} órája","{{amount}} mins ago":"{{amount}} perce","{{amount}} more":"","1 comment":"1 hozzászólás","Add comment":"Hozzászólás","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Adjon kontextust hozzászólásaihoz: ossza meg nevét és foglalkozását az egészséges vita elősegítése érdekében.","Add reply":"Válasz","Already a member?":"Már van fiókja?",Anonymous:"Anonim","Become a member of {{publication}} to start commenting.":"Regisztráljon a hozzászólások írásához.","Become a paid member of {{publication}} to start commenting.":"Regisztráljon fizetős fiókot a hozzászólások írásához.",Cancel:"Mégse",Comment:"Hozzászólás","Complete your profile":"Profil befejezése",Delete:"Törlés","Deleted member":"Törölt tag",Discussion:"Hozzászólások",Edit:"Szerkesztés","Edit this comment":"Hozzászólás szerkesztése",edited:"szerkesztve","Enter your name":"Adja meg a nevét",Expertise:"Foglalkozás","Founder @ Acme Inc":"Acme Kft. alapító","Full-time parent":"Főállású szülő","Head of Marketing at Acme, Inc":"Marketing vezető — Acme Kft.","Hidden for members":"",Hide:"Elrejtés","Hide comment":"Hozzászólás elrejtése","Jamie Larson":"Kiss Sára","Join the discussion":"Csatlakozzon a beszélgetéshez","Just now":"Épp most","Local resident":"Helyi lakos","Member discussion":"Hozzászólások",Name:"Név",Neurosurgeon:"Idegsebész","One hour ago":"Egy órája","One min ago":"Egy perce","replied to comment":"",Reply:"Válasz","reply to comment":"","Reply to comment":"Válasz erre",Report:"Jelentés","Report comment":"Hozzászólás jelentése","Report this comment?":"Hozzászólás jelentése?",Save:"Mentés",Sending:"Küldés",Sent:"Elküldve",Show:"Mutat","Show {{amount}} more replies":"Mutass még {{amount}} választ","Show {{amount}} previous comments":"Mutass {{amount}} előző hozzászólást","Show 1 more reply":"Mutass még egy választ","Show 1 previous comment":"Mutass még egy hozzászólást","Show comment":"Hozzászólás mutatása","Sign in":"Bejelentkezés","Sign up now":"Regisztráljon most","Sort by":"","Start the conversation":"Kezdje el a beszélgetést","This comment has been hidden.":"Ezt a hozzászólást elrejtettük.","This comment has been removed.":"Ezt a hozzászólást töröltük.","Upgrade now":"Fizessen elő most",Yesterday:"Tegnap","Your request will be sent to the owner of this site.":"A kérését a website tulajdonosának fogjuk küldeni."},ON={"{{amount}} characters left":"{{amount}} karakter tersisa","{{amount}} comments":"{{amount}} komentar","{{amount}} hrs ago":"{{amount}} jam yang lalu","{{amount}} mins ago":"{{amount}} menit yang lalu","{{amount}} more":"{{amount}} lagi","1 comment":"1 komentar","Add comment":"Tambahkan komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Tambahkan konteks pada komentar Anda, bagikan nama dan keahlian Anda untuk mendorong diskusi yang sehat.","Add reply":"Tambahkan balasan","Already a member?":"Sudah menjadi anggota?",Anonymous:"Anonim","Become a member of {{publication}} to start commenting.":"Jadilah anggota di {{publication}} untuk mulai berkomentar.","Become a paid member of {{publication}} to start commenting.":"Jadilah anggota berbayar di {{publication}} untuk mulai berkomentar.",Cancel:"Batal",Comment:"Komentar","Complete your profile":"Lengkapi profil Anda",Delete:"Hapus","Deleted member":"Anggota dihapus",Discussion:"Diskusi",Edit:"Edit","Edit this comment":"Edit komentar ini",edited:"diedit","Enter your name":"Masukkan nama Anda",Expertise:"Keahlian","Founder @ Acme Inc":"Founder @ Acme Inc","Full-time parent":"Orang tua penuh waktu","Head of Marketing at Acme, Inc":"Direktur Pemasaran di Acme, Inc","Hidden for members":"",Hide:"Sembunyikan","Hide comment":"Sembunyikan komentar","Jamie Larson":"Sutan T. Alisjahbana","Join the discussion":"Bergabung dalam diskusi","Just now":"Baru saja","Local resident":"Penduduk lokal","Member discussion":"Diskusi anggota",Name:"Nama",Neurosurgeon:"Ahli Bedah Saraf","One hour ago":"Satu jam yang lalu","One min ago":"Satu menit yang lalu","replied to comment":"",Reply:"Balas","reply to comment":"","Reply to comment":"Balas komentar",Report:"Laporkan","Report comment":"Laporkan komentar","Report this comment?":"Laporkan komentar ini?",Save:"Simpan",Sending:"Mengirim",Sent:"Terkirim",Show:"Tampilkan","Show {{amount}} more replies":"Tampilkan {{amount}} balasan lainnya","Show {{amount}} previous comments":"Tampilkan {{amount}} komentar sebelumnya","Show 1 more reply":"Tampilkan 1 balasan lainnya","Show 1 previous comment":"Tampilkan 1 komentar sebelumnya","Show comment":"Tampilkan komentar","Sign in":"Masuk","Sign up now":"Daftar sekarang","Sort by":"","Start the conversation":"Mulai percakapan","This comment has been hidden.":"Komentar ini telah disembunyikan.","This comment has been removed.":"Komentar ini telah dihapus.","Upgrade now":"Daftar sekarang",Yesterday:"Kemarin","Your request will be sent to the owner of this site.":"Permintaan Anda akan dikirim kepada pemilik situs ini."},DN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One hour ago":"","One min ago":"","replied to comment":"",Reply:"","reply to comment":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},MN={"{{amount}} characters left":"{{amount}} caratteri rimanenti","{{amount}} comments":"{{amount}} commenti","{{amount}} hrs ago":"{{amount}} ore fa","{{amount}} mins ago":"{{amount}} minuti fa","{{amount}} more":"{{amount}} in più","1 comment":"1 commento","Add comment":"Aggiungi commento","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Aggiungi dettagli al tuo commento, condividi il tuo nome e le tue competenze per incoraggiare una conversazione sana.","Add reply":"Aggiungi risposta","Already a member?":"Sei già iscritto?",Anonymous:"Anonimo","Become a member of {{publication}} to start commenting.":"Iscriviti a {{publication}} per poter commentare.","Become a paid member of {{publication}} to start commenting.":"Abbonati a {{publication}} per poter commentare.",Cancel:"Annulla",Comment:"Commenta","Complete your profile":"Completa il tuo profilo",Delete:"Elimina","Deleted member":"Utente eliminato",Discussion:"Discussione",Edit:"Modifica","Edit this comment":"Modifica questo commento",edited:"modificato","Enter your name":"Inserisci il tuo nome",Expertise:"Competenze","Founder @ Acme Inc":"Megadirettore Galattico","Full-time parent":"Genitore a tempo pieno","Head of Marketing at Acme, Inc":"Ragioniere presso Megaditta","Hidden for members":"",Hide:"Nascondi","Hide comment":"Nascondi commento","Jamie Larson":"Andrea Rossi","Join the discussion":"Partecipa alla discussione","Just now":"Adesso","Local resident":"Paesano","Member discussion":"Commenti",Name:"Nome",Neurosurgeon:"Neurochirurgo","One hour ago":"Un'ora fa","One min ago":"Un minuto fa","replied to comment":"",Reply:"Rispondi","reply to comment":"","Reply to comment":"Rispondi al commento",Report:"Segnala","Report comment":"Segnala commento","Report this comment?":"Segnalare questo commento?",Save:"Salva",Sending:"Invio",Sent:"Inviato",Show:"Mostra","Show {{amount}} more replies":"Mostra altre {{amount}} risposte","Show {{amount}} previous comments":"Mostra altri {{amount}} commenti","Show 1 more reply":"Mostra un'altra risposta","Show 1 previous comment":"Mostra un commento precedente","Show comment":"Mostra commento","Sign in":"Accedi","Sign up now":"Accedi ora","Sort by":"Ordina per","Start the conversation":"Commenta per primo","This comment has been hidden.":"Questo commento è stato nascosto.","This comment has been removed.":"Questo commento è stato rimosso.","Upgrade now":"Abbonati ora",Yesterday:"Ieri","Your request will be sent to the owner of this site.":"La tua richiesta sarà inviata al proprietario del sito."},TN={"{{amount}} characters left":"残り{{amount}}文字","{{amount}} comments":"{{amount}}のコメント","{{amount}} hrs ago":"{{amount}}時間前","{{amount}} mins ago":"{{amount}}分前","{{amount}} more":"さらに{{amount}}個","1 comment":"1のコメント","Add comment":"コメントする","Add context to your comment, share your name and expertise to foster a healthy discussion.":"コメントはよく説明し、名前と専門分野を共有することで健全な議論をすすめましょう。","Add reply":"返信する","Already a member?":"メンバーですか?",Anonymous:"匿名","Become a member of {{publication}} to start commenting.":"{{publication}}のメンバーになってコメントを始めましょう。","Become a paid member of {{publication}} to start commenting.":"{{publication}}の有料メンバーになってコメントを始めましょう。",Cancel:"キャンセル",Comment:"コメント","Complete your profile":"プロフィールを完成させる",Delete:"削除","Deleted member":"削除されたメンバー",Discussion:"議論",Edit:"編集","Edit this comment":"このコメントを編集する",edited:"編集済み","Enter your name":"名前を記入",Expertise:"専門分野","Founder @ Acme Inc":"創業者 @ Acme Inc","Full-time parent":"専業主婦・主夫","Head of Marketing at Acme, Inc":"マーケティング責任者 @ Acme, Inc","Hidden for members":"",Hide:"非表示にする","Hide comment":"コメントを非表示にする","Jamie Larson":"ジェイミー・ラーソン","Join the discussion":"議論に参加する","Just now":"今すぐ参加する","Local resident":"地元住民","Member discussion":"メンバーによる議論",Name:"名前",Neurosurgeon:"脳神経外科医","One hour ago":"1時間前","One min ago":"1分前","replied to comment":"",Reply:"返信する","reply to comment":"","Reply to comment":"コメントに返信する",Report:"通報する","Report comment":"コメントを通報する","Report this comment?":"このコメントを通報しますか?",Save:"保存",Sending:"送信中",Sent:"送信完了",Show:"表示する","Show {{amount}} more replies":"{{amount}}個の返信を表示する","Show {{amount}} previous comments":"前のコメントを{{amount}}個表示する","Show 1 more reply":"返信をもう1つ表示する","Show 1 previous comment":"1つ前のコメントを表示する","Show comment":"コメントを表示する","Sign in":"ログイン","Sign up now":"今すぐ新規登録する","Sort by":"","Start the conversation":"会話を始める","This comment has been hidden.":"このコメントは非表示にされました。","This comment has been removed.":"このコメントは削除されました。","Upgrade now":"今すぐアップデートする",Yesterday:"昨日","Your request will be sent to the owner of this site.":"あなたのリクエストはこのサイトの管理者に送信されます。"},jN={"{{amount}} characters left":"{{amount}}글자 남음","{{amount}} comments":"{{amount}}개의 댓글","{{amount}} hrs ago":"{{amount}}시간 전","{{amount}} mins ago":"{{amount}}분 전","{{amount}} more":"{{amount}}개 더보기","1 comment":"1개의 댓글","Add comment":"댓글 추가","Add context to your comment, share your name and expertise to foster a healthy discussion.":"건설적인 토론을 위해 댓글에 맥락을 추가하고, 이름과 전문 분야를 공유해 주세요.","Add reply":"답변 추가","Already a member?":"이미 회원이신가요?",Anonymous:"익명","Become a member of {{publication}} to start commenting.":"{{publication}}의 회원이 되어 댓글을 작성해 주세요.","Become a paid member of {{publication}} to start commenting.":"{{publication}}의 유료 회원이 되어 댓글을 작성해 주세요.",Cancel:"취소",Comment:"댓글","Complete your profile":"프로필을 완성해 주세요",Delete:"삭제","Deleted member":"삭제된 회원",Discussion:"댓글",Edit:"수정","Edit this comment":"댓글 수정",edited:"수정됨","Enter your name":"이름을 입력해 주세요",Expertise:"전문분야","Founder @ Acme Inc":"Acme Inc 창업자","Full-time parent":"전업 부모","Head of Marketing at Acme, Inc":"Acme Inc 마케팅 책임자","Hidden for members":"",Hide:"숨기기","Hide comment":"댓글 숨기기","Jamie Larson":"제이미 라슨","Join the discussion":"댓글에 참여해 주세요","Just now":"방금 전","Local resident":"지역 주민","Member discussion":"회원들의 댓글",Name:"이름",Neurosurgeon:"신경외과 의사","One hour ago":"1시간 전","One min ago":"1분 전","replied to comment":"",Reply:"답변","reply to comment":"","Reply to comment":"댓글에 답변",Report:"신고","Report comment":"댓글 신고","Report this comment?":"이 댓글을 신고하시겠어요?",Save:"저장",Sending:"전송중",Sent:"전송됨",Show:"보기","Show {{amount}} more replies":"{{amount}}개의 댓글 더 보기","Show {{amount}} previous comments":"{{amount}}개의 이전 댓글 보기","Show 1 more reply":"1개의 댓글 더 보기","Show 1 previous comment":"1개의 이전 댓글 보기","Show comment":"댓글 보기","Sign in":"로그인","Sign up now":"회원가입","Sort by":"정렬 기준","Start the conversation":"댓글을 작성해 주세요","This comment has been hidden.":"숨김처리 된 댓글이에요.","This comment has been removed.":"삭제 된 댓글이에요.","Upgrade now":"업그레이드",Yesterday:"어제","Your request will be sent to the owner of this site.":"운영자에게 요구사항이 전달되었어요."},PN={"{{amount}} characters left":"{{amount}} таңба қалды","{{amount}} comments":"{{amount}} пікір","{{amount}} hrs ago":"{{amount}} сағат бұрын","{{amount}} mins ago":"{{amount}} минут бұрын","{{amount}} more":"тағы {{amount}}","1 comment":"1 пікір","Add comment":"Пікір қосу","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Талқы қызық болуы үшін өзіңіз туралы мәліметтерді қосыңыз.","Add reply":"Жауап қосу","Already a member?":"Әлдеқашан қосылдыңыз ба?",Anonymous:"Аноним","Become a member of {{publication}} to start commenting.":"Пікір қалдыру үшін {{publication}} сайтына аккаунт қажет.","Become a paid member of {{publication}} to start commenting.":"Пікір қалдыру үшін {{publication}} сайтына ақылы аккаунт қажет.",Cancel:"Бас тарту",Comment:"Пікір","Complete your profile":"Профиліңізді толтырыңыз",Delete:"Жою","Deleted member":"Жойылған аккаунт",Discussion:"Талқы",Edit:"Өңдеу","Edit this comment":"Бұл пікірді өңдеу",edited:"Өңделді","Enter your name":"Есіміңізді жазыңыз",Expertise:"Қызмет","Founder @ Acme Inc":"@ Acme Inc құрылтайшысы","Full-time parent":"Толық күн жұмыс істейтін ата-ана","Head of Marketing at Acme, Inc":"@ Acme маркетинг жетекшісі ","Hidden for members":"",Hide:"Жасыру","Hide comment":"Пікірді жасыру","Jamie Larson":"Пәленше Түгеншиев","Join the discussion":"Талқыға қосылу","Just now":"Дәл қазір","Local resident":"Жергілікті тұрғын","Member discussion":"Мүшелер талқысы",Name:"Есімі",Neurosurgeon:"Нейрохирург","One hour ago":"Бір сағат бұрын","One min ago":"Бір минут бұрын","replied to comment":"",Reply:"Жауап беру","reply to comment":"","Reply to comment":"Пікірге жауап беру",Report:"Шағымдану","Report comment":"Пікірге шағымдану","Report this comment?":"Осы пікірге шағым жіберілсін бе?",Save:"Сақтау",Sending:"Жіберілуде",Sent:"Жіберілді",Show:"Көрсету","Show {{amount}} more replies":"Тағы {{amount}} жауапты көрсету","Show {{amount}} previous comments":"Алдыңғы {{amount}} пікірді көрсету","Show 1 more reply":"Тағы 1 жауап көрсету","Show 1 previous comment":"Алдыңғы 1 пікірді көрсету","Show comment":"Пікірді көрсету","Sign in":"Кіру","Sign up now":"Қазір тіркелу","Sort by":"","Start the conversation":"Талқыны бастау","This comment has been hidden.":"Бұл пікір жасырылды.","This comment has been removed.":"Бұл пікір өшірілді.","Upgrade now":"Жаңарту ",Yesterday:"Кеше","Your request will be sent to the owner of this site.":"Өтінішіңіз сайт иесіне жіберіледі."},IN={"{{amount}} characters left":"{{amount}} likę simboliai","{{amount}} comments":"{{amount}} komentarai","{{amount}} hrs ago":"Prieš {{amount}} val.","{{amount}} mins ago":"Prieš {{amount}} min.","{{amount}} more":"{{amount}} daugiau","1 comment":"1 komentaras","Add comment":"Rašyti komentarą","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Papildykite savo komentarą, prisistatykite ir pasidalinkite savo turimomis žiniomis, kad paskatintumėte prasmingą diskusiją.","Add reply":"Atsakyti","Already a member?":"Jau turite paskyrą?",Anonymous:"Anoniminis","Become a member of {{publication}} to start commenting.":"Užsiregistruokite {{publication}}, kad galėtumėte komentuoti.","Become a paid member of {{publication}} to start commenting.":"Tapkite {{publication}} prenumeratoriumi, kad galėtumėte komentuoti.",Cancel:"Atšaukti",Comment:"Komentuoti","Complete your profile":"Pabaikite kurti savo profilį!",Delete:"Ištrinti","Deleted member":"Pašalintas narys",Discussion:"Diskusija",Edit:"Redaguoti","Edit this comment":"Redaguoti šį komentarą",edited:"redaguotas","Enter your name":"Įrašykite savo vardą",Expertise:"Specializacija","Founder @ Acme Inc":"Istorikas","Full-time parent":"Vaiką prižiūrintis tėvas","Head of Marketing at Acme, Inc":"Tyrinėtojas","Hidden for members":"",Hide:"Paslėpti","Hide comment":"Paslėpti komentarą","Jamie Larson":"Vardenis Pavardenis","Join the discussion":"Prisijunkite prie diskusijos","Just now":"Ką tik","Local resident":"Vietinis gyventojas","Member discussion":"Komentarai",Name:"Vardas",Neurosurgeon:"Neurochirurgas","One hour ago":"Prieš valandą","One min ago":"Prieš minutę","replied to comment":"",Reply:"Atsakyti","reply to comment":"","Reply to comment":"Atsakyti į komentarą",Report:"Pranešti","Report comment":"Pranešti apie komentarą","Report this comment?":"Pranešti apie šį komentarą?",Save:"Išsaugoti",Sending:"Siunčiama",Sent:"Išsiųsta",Show:"Rodyti","Show {{amount}} more replies":"Rodyti daugiau atsakymų ({{amount}})","Show {{amount}} previous comments":"Rodyti ankstesnius komentarus ({{amount}})","Show 1 more reply":"Rodyti dar 1 atsakymą","Show 1 previous comment":"Rodyti ankstesnį komentarą","Show comment":"Rodyti komentarą","Sign in":"Prisijungti","Sign up now":"Registruotis","Sort by":"","Start the conversation":"Parašykite pirmąjį komentarą","This comment has been hidden.":"Šis komentaras buvo paslėptas.","This comment has been removed.":"Šis komentaras buvo pašalintas.","Upgrade now":"Prenumeruokite",Yesterday:"Vakar","Your request will be sent to the owner of this site.":"Jūsų pranešimas bus išsiųstas svetainės savininkui."},LN={"{{amount}} characters left":"Преостануваат {{amount}} знаци.","{{amount}} comments":"{{amount}} коментари","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"Уште {{amount}}","1 comment":"1 коментар","Add comment":"Додајте коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додајте контекст за вашиот коментар, споделете го вашето име и експертиза за да одржите пристојна дискусија.","Add reply":"Одговорете","Already a member?":"Веќе сте член?",Anonymous:"Анонимен","Become a member of {{publication}} to start commenting.":"Станете член на {{publication}} за да можете да коментирате.","Become a paid member of {{publication}} to start commenting.":"Станете претплатен член на {{publication}} за да можеш да коментирате.",Cancel:"Откажете",Comment:"Коментирајте","Complete your profile":"Комплетирајте го вашиот профил",Delete:"Избришете","Deleted member":"Избришан член",Discussion:"Разговор",Edit:"Изменете","Edit this comment":"Изменете го овој коментар",edited:"","Enter your name":"Внесете го вашето име",Expertise:"Експертиза","Founder @ Acme Inc":"Основач @ Примерна Компанија","Full-time parent":"Родител","Head of Marketing at Acme, Inc":"Раководител на Маркетинг во Примерна Компанија","Hidden for members":"",Hide:"Скријте","Hide comment":"Скријте го коментарот","Jamie Larson":"Петар Петровски","Join the discussion":"Приклучете се во разговорот","Just now":"Штотуку","Local resident":"Локал жител","Member discussion":"Разговор на членовите",Name:"Име",Neurosurgeon:"Неврохирург","One hour ago":"Пред еден час","One min ago":"","replied to comment":"",Reply:"Одговорете","reply to comment":"","Reply to comment":"Одговор на коментарот",Report:"Пријавете","Report comment":"Пријавете коментар","Report this comment?":"Пријавете го овој коментар?",Save:"Зачувајте",Sending:"Се испраќа",Sent:"Испратено",Show:"Покажи","Show {{amount}} more replies":"Покажи уште {{amount}} одговори","Show {{amount}} previous comments":"Покажи {{amount}} претходни коментари","Show 1 more reply":"Покажи уште 1 одговор","Show 1 previous comment":"Покажи 1 претходен коментар","Show comment":"Покажи коментар","Sign in":"Најавете се","Sign up now":"Регистрирајте се","Sort by":"","Start the conversation":"Започнете го разговорот","This comment has been hidden.":"Овој коментар беше скриен.","This comment has been removed.":"Овој коментар беше отстранет.","Upgrade now":"Надградете",Yesterday:"Вчера","Your request will be sent to the owner of this site.":"Вашето барање ќе биде испратено на сопственикот на оваа страница."},zN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One hour ago":"","One min ago":"","replied to comment":"",Reply:"","reply to comment":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},FN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One hour ago":"","One min ago":"","replied to comment":"",Reply:"","reply to comment":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},HN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One hour ago":"","One min ago":"","replied to comment":"",Reply:"","reply to comment":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},BN={"{{amount}} characters left":"Nog {{amount}} tekens over","{{amount}} comments":"{{amount}} reacties","{{amount}} hrs ago":"{{amount}} uur geleden","{{amount}} mins ago":"{{amount}} min geleden","{{amount}} more":"","1 comment":"Eén reactie","Add comment":"Versturen","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Voeg context toe aan je reactie, deel je naam en expertise om een gezonde discussie te bevorderen.","Add reply":"Beantwoorden","Already a member?":"Al lid?",Anonymous:"Anoniem","Become a member of {{publication}} to start commenting.":"Word lid van {{publication}} om te kunnen reageren.","Become a paid member of {{publication}} to start commenting.":"Word betalend lid van {{publication}} om te kunnen reageren.",Cancel:"Annuleren",Comment:"Verstuur","Complete your profile":"Vervolledig jouw profiel",Delete:"Verwijderen","Deleted member":"Verwijderd lid",Discussion:"Gesprek",Edit:"Bewerken","Edit this comment":"Bewerk deze reactie",edited:"bewerkt","Enter your name":"Vul je naam in",Expertise:"Expertise","Founder @ Acme Inc":"Oprichter, Acme BV","Full-time parent":"Full-time ouder","Head of Marketing at Acme, Inc":"Acme BV, Hoofd Marketing","Hidden for members":"",Hide:"Verbergen","Hide comment":"Verberg reactie","Jamie Larson":"Jan Jansen","Join the discussion":"Doe mee aan het gesprek","Just now":"Zojuist","Local resident":"Lokale bewoner","Member discussion":"Gesprek",Name:"Naam",Neurosurgeon:"Neurochirurg","One hour ago":"Een uur geleden","One min ago":"Een min geleden","replied to comment":"",Reply:"Beantwoorden","reply to comment":"","Reply to comment":"Beantwoord deze reactie",Report:"Melden","Report comment":"Meld reactie","Report this comment?":"Meld deze reactie?",Save:"Opslaan",Sending:"Verzenden",Sent:"Verzonden",Show:"Tonen","Show {{amount}} more replies":"Toon {{amount}} extra antwoorden","Show {{amount}} previous comments":"Toon {{amount}} vorige reacties","Show 1 more reply":"Toon nog 1 antwoord","Show 1 previous comment":"Toon 1 vorige reactie","Show comment":"Toon reactie","Sign in":"Inloggen","Sign up now":"Registreren","Sort by":"","Start the conversation":"Begin het gesprek","This comment has been hidden.":"Deze reactie is verborgen.","This comment has been removed.":"Deze reactie is verwijderd.","Upgrade now":"Upgrade nu",Yesterday:"Gisteren","Your request will be sent to the owner of this site.":"Jouw melding zal worden verzonden naar de eigenaar van deze site."},VN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One hour ago":"","One min ago":"","replied to comment":"",Reply:"","reply to comment":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},UN={"{{amount}} characters left":"{{amount}} tegn igjen","{{amount}} comments":"{{amount}} kommentarer","{{amount}} hrs ago":"{{amount}} timer siden","{{amount}} mins ago":"{{amount}} minutter siden","{{amount}} more":"{{amount}} mer","1 comment":"1 kommentar","Add comment":"Legg til kommentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Legg til kontekst i kommentaren din, del navnet ditt og ekspertisen din for å fremme en god diskusjon.","Add reply":"Legg til svar","Already a member?":"Allerede medlem?",Anonymous:"Anonym","Become a member of {{publication}} to start commenting.":"Bli medlem av {{publication}} for å begynne å kommentere.","Become a paid member of {{publication}} to start commenting.":"Bli betalende medlem av {{publication}} for å begynne å kommentere.",Cancel:"Avbryt",Comment:"Kommentar","Complete your profile":"Fullfør profilen din",Delete:"Slett","Deleted member":"Slettet medlem",Discussion:"Diskusjon",Edit:"Rediger","Edit this comment":"Rediger denne kommentaren",edited:"redigert","Enter your name":"Skriv inn navnet ditt",Expertise:"Ekspertise","Founder @ Acme Inc":"Grunnlegger @ Acme Inc","Full-time parent":"Forelder på heltid","Head of Marketing at Acme, Inc":"Markedsføringsleder hos Acme Inc","Hidden for members":"",Hide:"Skjul","Hide comment":"Skjul kommentar","Jamie Larson":"Jamie Larson","Join the discussion":"Delta i diskusjonen","Just now":"Akkurat nå","Local resident":"Lokal innbygger","Member discussion":"Medlemsdiskusjon",Name:"Navn",Neurosurgeon:"Neurokirurg","One hour ago":"En time siden","One min ago":"Ett minutt siden","replied to comment":"",Reply:"Svar","reply to comment":"","Reply to comment":"Svar på kommentar",Report:"Rapporter","Report comment":"Rapporter kommentar","Report this comment?":"Rapportere denne kommentaren?",Save:"Lagre",Sending:"Sender",Sent:"Sendt",Show:"Vis","Show {{amount}} more replies":"Vis {{amount}} flere svar","Show {{amount}} previous comments":"Vis {{amount}} tidligere kommentarer","Show 1 more reply":"Vis ett svar til","Show 1 previous comment":"Vis én tidligere kommentar","Show comment":"Vis kommentar","Sign in":"Logg inn","Sign up now":"Registrer deg nå","Sort by":"Sorter etter","Start the conversation":"Start samtalen","This comment has been hidden.":"Denne kommentaren er skjult.","This comment has been removed.":"Denne kommentaren er fjernet.","Upgrade now":"Oppgrader nå",Yesterday:"I går","Your request will be sent to the owner of this site.":"Din forespørsel vil bli sendt til eieren av dette nettstedet."},_N={"{{amount}} characters left":"Pozostało {{amount}} znaków","{{amount}} comments":"{{amount}} komentarzy","{{amount}} hrs ago":"{{amount}} godzin temu","{{amount}} mins ago":"{{amount}} minut temu","{{amount}} more":"{{amount}} więcej","1 comment":"1 komentarz","Add comment":"Dodaj komentarz","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dodaj więcej informacji do Twojego komentarza, następnie udostępnij proszę Twoje imię i doświadczenie w celu wzbogacenia jakości dyskusji.","Add reply":"Dodaj odpowiedź","Already a member?":"Posiadasz już konto?",Anonymous:"Anonimowy","Become a member of {{publication}} to start commenting.":"Dołącz do społeczności {{publication}}, by zacząć komentować.","Become a paid member of {{publication}} to start commenting.":"Dołącz do płatnej społeczności {{publication}}, by zacząć komentować.",Cancel:"Anuluj",Comment:"Skomentuj","Complete your profile":"Skompletuj Twój profil",Delete:"Usuń","Deleted member":"Usunięte konto",Discussion:"Dyskusja",Edit:"Edytuj","Edit this comment":"Edytuj komentarz",edited:"edytowano","Enter your name":"Podaj Twoje imię",Expertise:"Doświadczenie","Founder @ Acme Inc":"Founder @ Acme Inc","Full-time parent":"","Head of Marketing at Acme, Inc":"Head of Marketing at Acme, Inc","Hidden for members":"",Hide:"Ukryj","Hide comment":"Ukryj komentarz","Jamie Larson":"Jamie Larson","Join the discussion":"Dołącz do dyskusji","Just now":"Przed chwilą","Local resident":"","Member discussion":"Członek dyskusji",Name:"Imię",Neurosurgeon:"Neurochirurg","One hour ago":"Godzinę temu","One min ago":"Minutę temu","replied to comment":"",Reply:"Odpowiedz","reply to comment":"","Reply to comment":"Napisz odpowiedź do komentarza",Report:"Zgłoś","Report comment":"Zgłoś komentarz","Report this comment?":"Czy chcesz zgłosić ten komentarz?",Save:"Zapisz",Sending:"Wysyłanie",Sent:"Wysłano",Show:"Pokza","Show {{amount}} more replies":"Pokaż {{amount}} kolejnych odpowiedzi","Show {{amount}} previous comments":"Pokaż {{amount}} poprzednich komentarzy","Show 1 more reply":"Pokaż następną odpowiedź","Show 1 previous comment":"Pokaż poprzedni komentarz","Show comment":"Pokaż komentarz","Sign in":"Zaloguj się","Sign up now":"Zarejestruj się","Sort by":"","Start the conversation":"Rozpocznij dyskusję","This comment has been hidden.":"Komentarz został ukryty.","This comment has been removed.":"Komentarz został usunięty.","Upgrade now":"Ulepsz teraz",Yesterday:"Wczoraj","Your request will be sent to the owner of this site.":"Twoje zgłoszenie zostało przesłane do administratora strony."},JN={"{{amount}} characters left":"Faltam {{amount}} caracteres ","{{amount}} comments":"{{amount}} comentários","{{amount}} hrs ago":"{{amount}} horas atrás","{{amount}} mins ago":"{{amount}} minutos atrás","{{amount}} more":"mais","1 comment":"Um comentário","Add comment":"Adicionar comentário","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Adicione o seu comentário, partilhe o seu nome e expriência de modo a promover uma discussão saudável.","Add reply":"Adicionar resposta","Already a member?":"Já é membro?",Anonymous:"Anónimo","Become a member of {{publication}} to start commenting.":"Torne-se um membro do {{publication}} para comentar.","Become a paid member of {{publication}} to start commenting.":"Torne-se um membro pago do {{publication}} para comentar. ",Cancel:"Cancelar",Comment:"Comentar","Complete your profile":"Complete o seu perfil",Delete:"Eliminar","Deleted member":"Membro eliminado",Discussion:"Discussão",Edit:"Editar","Edit this comment":"Editar este comentário",edited:"editado","Enter your name":"Insira o seu nome",Expertise:"Perícia","Founder @ Acme Inc":"Fundador @ Amce Inc","Full-time parent":"Pai a tempo inteiro","Head of Marketing at Acme, Inc":"Responsável do Marketing @ Amce, Inc","Hidden for members":"",Hide:"Esconder","Hide comment":"Esconder comentário","Jamie Larson":"Jane Doe","Join the discussion":"Junte-se à discussão","Just now":"Agora","Local resident":"Residente local","Member discussion":"Discussão para membros",Name:"Nome",Neurosurgeon:"neurocirurgião","One hour ago":"uma hora atrás","One min ago":"um minuto atrás","replied to comment":"",Reply:"Responder","reply to comment":"","Reply to comment":"Responder ao comentário",Report:"Reportar","Report comment":"Reportar comentário","Report this comment?":"Reportar este comentário?",Save:"Guardar",Sending:"Enviar",Sent:"Enviado",Show:"Mostrar","Show {{amount}} more replies":"Mostrar mais {{amount}} respostas","Show {{amount}} previous comments":"Mostrar os {{amount}} comentários anteriores","Show 1 more reply":"Mostrar mais uma resposta","Show 1 previous comment":"Mostrar mais um comentário","Show comment":"Mostrar comentário","Sign in":"Registar","Sign up now":"Registar agora","Sort by":"","Start the conversation":"Comece a conversa","This comment has been hidden.":"Este comentário foi ocultado","This comment has been removed.":"Este comentário foi removido","Upgrade now":"Atualize agora",Yesterday:"Ontem","Your request will be sent to the owner of this site.":"O seu pedido será enviado para o dono deste site."},YN={"{{amount}} characters left":"{{amount}} caracteres restantes","{{amount}} comments":"{{amount}} comentários","{{amount}} hrs ago":"{{amount}} horas atrás","{{amount}} mins ago":"{{amount}} minutos atrás","{{amount}} more":"{{amount}} mais","1 comment":"1 comentário","Add comment":"Adicionar comentário","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Adicione contexto ao seu comentário, compartilhe seu nome e expertise para promover uma discussão saudável.","Add reply":"Adicionar resposta","Already a member?":"Já é um membro?",Anonymous:"Anônimo","Become a member of {{publication}} to start commenting.":"Torne-se um membro de {{publication}} para começar a comentar.","Become a paid member of {{publication}} to start commenting.":"Torne-se um membro pago de {{publication}} para começar a comentar.",Cancel:"Cancelar",Comment:"Comentário","Complete your profile":"Complete seu perfil",Delete:"Deletar","Deleted member":"Membro deletado",Discussion:"Discussão",Edit:"Editar","Edit this comment":"Editar este comentário",edited:"editado","Enter your name":"Digite seu nome",Expertise:"Especialidade","Founder @ Acme Inc":"Fundador @ Acme Inc","Full-time parent":"Pai/Mãe em tempo integral","Head of Marketing at Acme, Inc":"Chefe de Marketing na Acme, Inc","Hidden for members":"",Hide:"Esconder","Hide comment":"Esconder comentário","Jamie Larson":"Jamie Larson","Join the discussion":"Participe da discussão","Just now":"Agora mesmo","Local resident":"Residente local","Member discussion":"Discussão entre membros",Name:"Nome",Neurosurgeon:"Neurocirurgião","One hour ago":"Uma hora atrás","One min ago":"Um minuto atrás","replied to comment":"",Reply:"Responder","reply to comment":"","Reply to comment":"Responder ao comentário",Report:"Denunciar","Report comment":"Denunciar comentário","Report this comment?":"Denunciar este comentário?",Save:"Salvar",Sending:"Enviando",Sent:"Enviado",Show:"Mostrar","Show {{amount}} more replies":"Mostrar mais {{amount}} respostas","Show {{amount}} previous comments":"Mostrar {{amount}} comentários anteriores","Show 1 more reply":"Mostrar 1 resposta adicional","Show 1 previous comment":"Mostrar 1 comentário anterior","Show comment":"Mostrar comentário","Sign in":"Entrar","Sign up now":"Inscreva-se agora","Sort by":"Ordenar por","Start the conversation":"Iniciar a conversa","This comment has been hidden.":"Este comentário foi escondido.","This comment has been removed.":"Este comentário foi removido.","Upgrade now":"Atualize agora",Yesterday:"Ontem","Your request will be sent to the owner of this site.":"Sua solicitação será enviada ao proprietário deste site."},KN={"{{amount}} characters left":"{{amount}} caractere rămase","{{amount}} comments":"{{amount}} comentarii","{{amount}} hrs ago":"acum {{amount}} ore","{{amount}} mins ago":"acum {{amount}} minute","{{amount}} more":"încă {{amount}}","1 comment":"1 comentariu","Add comment":"Adaugă comentariu","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Adăugați context comentariului dumneavoastră, împărtășiți-vă numele și expertiza pentru a favoriza o discuție sănătoasă.","Add reply":"Adaugă răspuns","Already a member?":"Deja membru?",Anonymous:"Anonim","Become a member of {{publication}} to start commenting.":"Deveniți membru al {{publication}} pentru a începe să comentați.","Become a paid member of {{publication}} to start commenting.":"Deveniți membru plătit al {{publication}} pentru a începe să comentați.",Cancel:"Anulează",Comment:"Comentează","Complete your profile":"Completează-ți profilul",Delete:"Șterge","Deleted member":"Membru șters",Discussion:"Discuție",Edit:"Editează","Edit this comment":"Editează acest comentariu",edited:"editat","Enter your name":"Introduceți numele dumneavoastră",Expertise:"Expertiză","Founder @ Acme Inc":"Fondator @ Acme Inc","Full-time parent":"Părinte cu normă întreagă","Head of Marketing at Acme, Inc":"Șef de Marketing la Acme, Inc","Hidden for members":"",Hide:"Ascunde","Hide comment":"Ascunde comentariul","Jamie Larson":"Jamie Larson","Join the discussion":"Alătură-te discuției","Just now":"Chiar acum","Local resident":"Rezident local","Member discussion":"Discuție membrii",Name:"Nume",Neurosurgeon:"Neurochirurg","One hour ago":"Acum o oră","One min ago":"Acum un minut","replied to comment":"",Reply:"Răspunde","reply to comment":"","Reply to comment":"Răspunde la comentariu",Report:"Raportează","Report comment":"Raportează comentariul","Report this comment?":"Raportezi acest comentariu?",Save:"Salvează",Sending:"Se trimite",Sent:"Trimis",Show:"Arată","Show {{amount}} more replies":"Arată încă {{amount}} răspunsuri","Show {{amount}} previous comments":"Arată {{amount}} comentarii anterioare","Show 1 more reply":"Arată încă un răspuns","Show 1 previous comment":"Arată un comentariu anterior","Show comment":"Arată comentariul","Sign in":"Autentificare","Sign up now":"Înregistrează-te acum","Sort by":"Ordonează după","Start the conversation":"Începe conversația","This comment has been hidden.":"Acest comentariu a fost ascuns.","This comment has been removed.":"Acest comentariu a fost eliminat.","Upgrade now":"Actualizează acum",Yesterday:"Ieri","Your request will be sent to the owner of this site.":"Cererea dumneavoastră va fi trimisă proprietarului acestui site."},WN={"{{amount}} characters left":"{{amount}} символа(ов) осталось","{{amount}} comments":"{{amount}} комментария(ев)","{{amount}} hrs ago":"{{amount}} часа(ов) назад","{{amount}} mins ago":"{{amount}} минут(ы) назад","{{amount}} more":"ещё {{amount}}","1 comment":"1 комментарий","Add comment":"Добавить комментарий","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Дополните свой комментарий контекстом, добавив подробности о себе и своём опыте, чтобы обсуждение стало более интересным.","Add reply":"Добавить ответ","Already a member?":"Уже присоединились?",Anonymous:"Анонимный","Become a member of {{publication}} to start commenting.":"Присоединяйтесь к {{publication}} чтобы начать комментировать.","Become a paid member of {{publication}} to start commenting.":"Станьте платным участником {{publication}} чтобы начать комментировать.",Cancel:"Отмена",Comment:"Комментарий","Complete your profile":"Заполните свой профиль",Delete:"Удалить","Deleted member":"Удалённый участник",Discussion:"Обсуждение",Edit:"Редактировать","Edit this comment":"Редактировать этот комментарий",edited:"Отредактированно","Enter your name":"Введите ваше имя",Expertise:"Деятельность","Founder @ Acme Inc":"Основатель @ Корпорация «Акме»","Full-time parent":"Родитель, работающий полный рабочий день","Head of Marketing at Acme, Inc":"Руководитель отдела маркетинга в Корпорации «Акме»","Hidden for members":"",Hide:"Скрыть","Hide comment":"Скрыть комментарий","Jamie Larson":"Павел Бид","Join the discussion":"Присоединиться к обсуждению","Just now":"Сейчас","Local resident":"Местный житель","Member discussion":"Обсуждение участников",Name:"Имя",Neurosurgeon:"Нейрохирург","One hour ago":"Час назад","One min ago":"Минуту назад","replied to comment":"",Reply:"Ответить","reply to comment":"","Reply to comment":"Ответить на комментарий",Report:"Пожаловаться","Report comment":"Пожаловаться на комментарий","Report this comment?":"Пожаловаться на этот комментарий?",Save:"Сохранить",Sending:"Отправка",Sent:"Отправлено",Show:"Показать","Show {{amount}} more replies":"Показать ещё {{amount}} ответа(ов)","Show {{amount}} previous comments":"Показать ещё {{amount}} комментария(ев)","Show 1 more reply":"Показать ответ","Show 1 previous comment":"Показать предыдущий комментарий","Show comment":"Показать комментарий","Sign in":"Войти","Sign up now":"Зарегистрироваться","Sort by":"","Start the conversation":"Начать обсуждение","This comment has been hidden.":"Этот комментарий скрыт","This comment has been removed.":"Этот комментарий был удалён","Upgrade now":"Обновить ",Yesterday:"Вчера","Your request will be sent to the owner of this site.":"Ваш запрос будет отправлен владельцу сайта."},qN={"{{amount}} characters left":"තව වචන {{amount}} යි.","{{amount}} comments":"අදහස් {{amount}} යි.","{{amount}} hrs ago":"පැය {{amount}} ට පෙර","{{amount}} mins ago":"මිනිත්තු {{amount}} ට පෙර","{{amount}} more":"","1 comment":"1 අදහසයි.","Add comment":"අදහස් එකතු කරන්න","Add context to your comment, share your name and expertise to foster a healthy discussion.":"ඉතා හොඳ සාකච්ඡාවක් රැගෙන යාම සඳහා ඔබේ අදහසට අන්තර්ගතය එක් කර ඔබේ නම සහ විශේෂඥතාව බෙදා ගන්න","Add reply":"ප්රතිචාර එකතු කරන්න","Already a member?":"දැනටමත් සාමාජිකයෙක්ද ?",Anonymous:"නිර්නාමික","Become a member of {{publication}} to start commenting.":"අදහස් දැක්වීම ආරම්භ කිරීමට {{publication}} හි සාමාජිකයෙකු වන්න","Become a paid member of {{publication}} to start commenting.":"අදහස් දැක්වීම ආරම්භ කිරීමට {{publication}} හි ගෙවීම් කරන ලද සාමාජිකයෙකු වන්න",Cancel:"අවලංගු කරන්න",Comment:"අදහස","Complete your profile":"ඔබගේ ගිණුම සම්පූර්ණ කරන්න",Delete:"Delete කරන්න","Deleted member":"සාමාජිකයාව delete කරන්න",Discussion:"සාකච්ඡාව",Edit:"සංස්කරණය කරන්න","Edit this comment":"අදහස සංස්කරණය කරන්න",edited:"සංස්කරණය කරන ලද.","Enter your name":"ඔබගේ නම සඳහන් කරන්න",Expertise:"විශේෂඥතාව","Founder @ Acme Inc":"Acme Inc හි නිර්මාතෘ","Full-time parent":"පූර්ණ කාලීන භාරකරුවන්","Head of Marketing at Acme, Inc":"Acme, Inc හි අලෙවි ප්රධානී","Hidden for members":"",Hide:"සඟවන්න","Hide comment":"අදහස සඟවන්න","Jamie Larson":"ජේමි ලාර්සන්","Join the discussion":"සාකච්ඡාවට එක්වන්න","Just now":"මේ දැන්","Local resident":"දේශීය පදිංචි","Member discussion":"සාමාජික සාකච්ඡාව",Name:"නම",Neurosurgeon:"ස්නායු ශල්ය වෛද්ය","One hour ago":"පැයකට පෙර","One min ago":"මිනිත්තුවකට පෙර","replied to comment":"",Reply:"ප්රතිචාර දක්වන්න","reply to comment":"","Reply to comment":"අදහසට රතිචාර දක්වන්න",Report:"වාර්තා කරන්න","Report comment":"අදහසට වාර්තා කරන්න","Report this comment?":"මෙම අදහසට වාර්තා කරන්නෙහිද ?",Save:"සුරකින්න",Sending:"යවමින්",Sent:"යැව්වා",Show:"පෙන්වන්න","Show {{amount}} more replies":"තවත් පිළිතුරු {{amount}} පෙන්වන්න","Show {{amount}} previous comments":"පෙර අදහස් {{amount}} පෙන්වන්න","Show 1 more reply":"තවත් පිළිතුරු 1ක් පෙන්වන්න","Show 1 previous comment":"පෙර අදහස් 1ක් පෙන්වන්න","Show comment":"අදහස පෙන්වන්න","Sign in":"Sign in වෙන්න","Sign up now":"දැන්ම Sign up වෙන්න","Sort by":"","Start the conversation":"සංවාදය ආරම්භ කරන්න","This comment has been hidden.":"මෙම අදහස සඟවා ඇත.","This comment has been removed.":"මෙම අදහස ඉවත් කර ඇත.","Upgrade now":"දැන් upgrade කරන්න",Yesterday:"ඊයෙ","Your request will be sent to the owner of this site.":"ඔබගේ ඉල්ලීම මෙම අඩවියේ හිමිකරු වෙත යවනු ලැබේ."},GN={"{{amount}} characters left":"Zostáva {{amount}} znakov","{{amount}} comments":"{{amount}} komentárov","{{amount}} hrs ago":"Pred {{amount}} hodinami","{{amount}} mins ago":"Pred {{amount}} minútami","{{amount}} more":"","1 comment":"1 komentár","Add comment":"Pridať komentár","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Pridajte kontext do váško komentára, zdielajte vaše meno, a odbornosť pre podporu zdravej diskusie.","Add reply":"Pridať odpoveď","Already a member?":"Už ste členom?",Anonymous:"Anonymne","Become a member of {{publication}} to start commenting.":"Staňte sa členom {{publication}}, aby ste mohli začať komentovať","Become a paid member of {{publication}} to start commenting.":"Staňte sa plateným členom {{publication}}, aby ste mohli začať komentovať",Cancel:"Zrušiť",Comment:"Komentár","Complete your profile":"Dokončite váš profil",Delete:"Vymazať","Deleted member":"Vymazaný člen",Discussion:"Diskusia",Edit:"Upraviť","Edit this comment":"Upraviť tento komentár",edited:"upravený","Enter your name":"Zadajte vaše meno",Expertise:"Odbornosť","Founder @ Acme Inc":"Zakladateľ @ Acme Inc","Full-time parent":"Rodič na plný úväzok","Head of Marketing at Acme, Inc":"Vedúci marketingu v spoločnosti Acme, Inc","Hidden for members":"",Hide:"Skryť","Hide comment":"Skryť komentár","Jamie Larson":"Jamie Larson","Join the discussion":"Zapojiť sa do diskusie","Just now":"Teraz","Local resident":"Miestny obyvateľ","Member discussion":"",Name:"Meno",Neurosurgeon:"Neurogirurg","One hour ago":"Pred hodinou","One min ago":"Pred minútou","replied to comment":"",Reply:"Odpovedať","reply to comment":"","Reply to comment":"Odpovedať na komentár",Report:"Nahlásiť","Report comment":"Nahlásiť komentár","Report this comment?":"Nahlásiť tento komentár?",Save:"Uložiť",Sending:"Odosielanie",Sent:"Odoslané",Show:"Zobraziť","Show {{amount}} more replies":"Zobraziť {{amount}} ďalších odpoveďí","Show {{amount}} previous comments":"Zobraziť {{amount}} predchádzajúcich komentárov","Show 1 more reply":"Zobraziť 1 ďalšiu odpoveď","Show 1 previous comment":"Zobraziť 1 predchádzajúci komentár","Show comment":"Zobraziť komentár","Sign in":"Prihlásiť","Sign up now":"Registrovať sa","Sort by":"","Start the conversation":"Začať konverzáciu","This comment has been hidden.":"Tento komentár bol skrytý.","This comment has been removed.":"Tento komentár bol vymazaný.","Upgrade now":"Upgradovať teraz",Yesterday:"Včera","Your request will be sent to the owner of this site.":"Vaša požiadavka bola odoslaná vlastníkovi stránky."},QN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One hour ago":"","One min ago":"","replied to comment":"",Reply:"","reply to comment":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},ZN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One hour ago":"","One min ago":"","replied to comment":"",Reply:"","reply to comment":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},XN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One hour ago":"","One min ago":"","replied to comment":"",Reply:"","reply to comment":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},eA={"{{amount}} characters left":"Преостало још {{amount}} карактера","{{amount}} comments":"{{amount}} коментара","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"још {{amount}}","1 comment":"1 коментар","Add comment":"Додајте коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додајте контекст свом коментару, поделите своје име и експертизу како бисте подстакли здраву дискусију.","Add reply":"Додајте одговор","Already a member?":"Већ сте члан?",Anonymous:"Анонимно","Become a member of {{publication}} to start commenting.":"Постаните члан {{publication}} да бисте почели са коментарисањем.","Become a paid member of {{publication}} to start commenting.":"Постаните плаћени члан {{publication}} да бисте почели са коментарисањем.",Cancel:"Откажи",Comment:"Коментар","Complete your profile":"Попуните свој профил",Delete:"Избриши","Deleted member":"Обрисан члан",Discussion:"Дискусија",Edit:"Уреди","Edit this comment":"Уредите овај коментар",edited:"","Enter your name":"Унесите своје име",Expertise:"Експертиза","Founder @ Acme Inc":"Оснивач @ Acme Inc","Full-time parent":"Родитељ пуним радним временом","Head of Marketing at Acme, Inc":"Шеф маркетинга у Acme, Inc","Hidden for members":"",Hide:"Сакриј","Hide comment":"Сакриј коментар","Jamie Larson":"Џејми Ларсон","Join the discussion":"Придружите се дискусији","Just now":"Управо сада","Local resident":"Мештанин","Member discussion":"Дискусија чланова",Name:"Име",Neurosurgeon:"Неурохирург","One hour ago":"Пре један сат","One min ago":"","replied to comment":"",Reply:"Одговори","reply to comment":"","Reply to comment":"Одговорите на коментар",Report:"Пријави","Report comment":"Пријави коментар","Report this comment?":"Пријавити овај коментар?",Save:"Сачувај",Sending:"Слање",Sent:"Послато",Show:"Прикажи","Show {{amount}} more replies":"Прикажи још {{amount}} одговора","Show {{amount}} previous comments":"Прикажи претходна {{amount}} коментара","Show 1 more reply":"Прикажи још 1 одговор","Show 1 previous comment":"Прикажи 1 претходни коментар","Show comment":"Прикажи коментар","Sign in":"Пријавите се","Sign up now":"Пријавите се сада","Sort by":"","Start the conversation":"Почните разговор","This comment has been hidden.":"Овај коментар је сакривен.","This comment has been removed.":"Овај коментар је уклоњен.","Upgrade now":"Надоградите сада",Yesterday:"Јуче","Your request will be sent to the owner of this site.":"Ваш захтев ће бити послат власнику овог сајта."},tA={"{{amount}} characters left":"{{amount}} tecken kvar","{{amount}} comments":"{{amount}} kommentarer","{{amount}} hrs ago":"{{amount}} timmar sedan","{{amount}} mins ago":"{{amount}} minuter sedan","{{amount}} more":"{{amount}} fler","1 comment":"1 kommentar","Add comment":"Lägg till kommentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Lägg till kontext till din kommentar, som ditt namn, din expertis för att skapa ett bra forum.","Add reply":"Lägg till svar","Already a member?":"Redan medlem?",Anonymous:"Anonym","Become a member of {{publication}} to start commenting.":"Registrera dig på {{publication}} för att börja kommentera.","Become a paid member of {{publication}} to start commenting.":"Bli betalande medlem på {{publication}} för att börja kommentera ",Cancel:"Avbryt",Comment:"Kommentar","Complete your profile":"Fyll i hela din profil",Delete:"Ta bort","Deleted member":"Borttagen medlem",Discussion:"Diskussion",Edit:"Ändra","Edit this comment":"Ändra den här kommentaren",edited:"Ändrad","Enter your name":"Skriv ditt namn",Expertise:"Expertis","Founder @ Acme Inc":"Grundare av Företaget AB","Full-time parent":"Hemmaförälder","Head of Marketing at Acme, Inc":"Marknadsföringschef på Företaget AB","Hidden for members":"",Hide:"Dölj","Hide comment":"Dölj kommentar","Jamie Larson":"Anders Andersson","Join the discussion":"Var med i diskussionen","Just now":"Nu precis","Local resident":"Lokalboende","Member discussion":"Medlemsdiskussion",Name:"Namn",Neurosurgeon:"Neurokirurg","One hour ago":"En timme sedan","One min ago":"En minut sedan","replied to comment":"",Reply:"Svar","reply to comment":"","Reply to comment":"Svara på kommentar",Report:"Anmäl","Report comment":"Anmäl kommentar","Report this comment?":"Anmäl den här kommentaren?",Save:"Spara",Sending:"Skickar",Sent:"Skickad",Show:"Visa","Show {{amount}} more replies":"Visa {{amount}} fler svar","Show {{amount}} previous comments":"Visa {{amount}} tidigare kommentarer","Show 1 more reply":"Visa 1 kommentar till","Show 1 previous comment":"Visa 1 tidigare kommentar","Show comment":"Visa kommentar","Sign in":"Logga in","Sign up now":"Registrera dig nu","Sort by":"Sortera efter","Start the conversation":"Inled konversationen","This comment has been hidden.":"Denna kommentar har dolts","This comment has been removed.":"Denna kommentar är borttagen","Upgrade now":"Uppgradera nu",Yesterday:"I går","Your request will be sent to the owner of this site.":"Din anmälan skickas till ansvarig för webbplatsen"},nA={"{{amount}} characters left":"คงเหลือ {{amount}} ตัวอักษร","{{amount}} comments":"{{amount}} ความคิดเห็น","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"อีก {{amount}}","1 comment":"1 ความคิดเห็น","Add comment":"แสดงความคิดเห็น","Add context to your comment, share your name and expertise to foster a healthy discussion.":"เพิ่มข้อมูลเสริมในความคิดเห็นของคุณ แชร์ชื่อและความเชี่ยวชาญเพื่อสนับสนุนการพูดคุยที่ดี","Add reply":"ตอบกลับ","Already a member?":"เป็นสมาชิกอยู่แล้ว?",Anonymous:"ไม่ระบุชื่อ","Become a member of {{publication}} to start commenting.":"เป็นสมาชิกของ {{publication}} เพื่อเริ่มแสดงความคิดเห็น","Become a paid member of {{publication}} to start commenting.":"เป็นสมาชิกแบบชำระเงินของ {{publication}} เพื่อเริ่มแสดงความคิดเห็น",Cancel:"ยกเลิก",Comment:"ความคิดเห็น","Complete your profile":"กรอกโปรไฟล์ของคุณให้สมบูรณ์",Delete:"ลบ","Deleted member":"ผู้ใช้ที่ถูกลบ",Discussion:"การสนทนา",Edit:"แก้ไข","Edit this comment":"แก้ไขความคิดเห็นนี้",edited:"","Enter your name":"ระบุชื่อของคุณ",Expertise:"ความเชี่ยวชาญ","Founder @ Acme Inc":"ผู้ก่อตั้ง @ Acme Inc","Full-time parent":"ผู้ปกครองเต็มเวลา","Head of Marketing at Acme, Inc":"หัวหน้าฝ่ายการตลาด ณ Acme, Inc","Hidden for members":"",Hide:"ซ่อน","Hide comment":"ซ่อนข้อความ","Jamie Larson":"กนกพัฒน์ สัณห์ฤทัย","Join the discussion":"เข้าร่วมการสนทนา","Just now":"ตอนนี้","Local resident":"ผู้อยู่อาศัยในท้องถิ่น","Member discussion":"การสนทนาของสมาชิก",Name:"ชื่อ",Neurosurgeon:"ศัลยแพทย์ระบบประสาท","One hour ago":"1 ชั่วโมงที่แล้ว","One min ago":"","replied to comment":"",Reply:"ตอบกลับ","reply to comment":"","Reply to comment":"ตอบกลับความคิดเห็น",Report:"รายงาน","Report comment":"รายงานความคิดเห็น","Report this comment?":"รายงานความคิดเห็นนี้?",Save:"บันทึก",Sending:"กำลังส่ง",Sent:"ส่งแล้ว",Show:"แสดง","Show {{amount}} more replies":"แสดง {{amount}} การตอบกลับเพิ่มเติม","Show {{amount}} previous comments":"แสดง {{amount}} ความคิดเห็นก่อนหน้า","Show 1 more reply":"แสดงอีก 1 การตอบกลับ","Show 1 previous comment":"แสดง 1 ความคิดเห็น","Show comment":"ดูความคิดเห็น","Sign in":"ลงชื่อเข้าใช้","Sign up now":"สมัครใช้งานตอนนี้เลย","Sort by":"","Start the conversation":"เริ่มการสนทนา","This comment has been hidden.":"ความคิดเห็นนี้ถูกซ่อน","This comment has been removed.":"ความคิดเห็นนี้ถูกลบ","Upgrade now":"อัพเกรดตอนนี้เลย",Yesterday:"เมื่อวาน","Your request will be sent to the owner of this site.":"คำขอของคุณจะถูกส่งไปยังผู้ดูแลเว็บไซต์"},oA={"{{amount}} characters left":"{{amount}} karakter kaldı","{{amount}} comments":"{{amount}} yorum","{{amount}} hrs ago":"{{amount}} saat önce","{{amount}} mins ago":"{{amount}} dakika önce","{{amount}} more":"Daha fazla {{amount}}","1 comment":"1 yorum","Add comment":"Yorum ekle","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Yorumunuza bağlam ekleyin, adınızı ve uzmanlık alanınızı paylaşarak sağlıklı bir tartışmayı teşvik edin.","Add reply":"Yanıt ekle","Already a member?":"Zaten üye misiniz?",Anonymous:"Anonim","Become a member of {{publication}} to start commenting.":"Yorum yapmaya başlamak için {{publication}} sitesinde hesap oluşturun.","Become a paid member of {{publication}} to start commenting.":"Yorum yapmaya başlamak için {{publication}} sitesinde ücretli hesap oluşturun.",Cancel:"İptal et",Comment:"Yorum ekle","Complete your profile":"Profilinizi tamamlayın",Delete:"Sil","Deleted member":"Silinen üye",Discussion:"Yorumlar",Edit:"Düzenle","Edit this comment":"Bu yorumu düzenle",edited:"düzenlendi","Enter your name":"Adınızı girin",Expertise:"Uzmanlık","Founder @ Acme Inc":"Kurucu @ Firma Ünvan","Full-time parent":"Tam zamanlı ebeveyn","Head of Marketing at Acme, Inc":"Firma, Ünvan'da Pazarlama Müdürü","Hidden for members":"",Hide:"Gizle","Hide comment":"Yorumu gizle","Jamie Larson":"Ad Soyad","Join the discussion":"Tartışmaya katıl","Just now":"Şu anda","Local resident":"Yerel sakini","Member discussion":"Üye tartışması",Name:"Ad",Neurosurgeon:"Beyin cerrahı","One hour ago":"Bir saat önce","One min ago":"Bir dakika önce","replied to comment":"yoruma yanıt verdi",Reply:"Cevapla","reply to comment":"yoruma cevap ver","Reply to comment":"Yoruma cevap ver",Report:"Rapor et","Report comment":"Yorumu rapor et","Report this comment?":"Bu yorum rapor edilsin mi?",Save:"Kaydet",Sending:"Gönderiliyor",Sent:"Gönderildi",Show:"Göster","Show {{amount}} more replies":"{{amount}} daha fazla yanıt göster","Show {{amount}} previous comments":"{{amount}} önceki yorumu göster","Show 1 more reply":"1 cevap daha göster","Show 1 previous comment":"1 önceki yorumu göster","Show comment":"Yorumu göster","Sign in":"Giriş yap","Sign up now":"Şimdi kayıt ol","Sort by":"Sırala","Start the conversation":"Bu konu hakkında düşüncelerini paylaş","This comment has been hidden.":"Bu yorum gizlendi.","This comment has been removed.":"Bu yorum kaldırıldı.","Upgrade now":"Şimdi yükselt",Yesterday:"Dün","Your request will be sent to the owner of this site.":"Talebiniz bu sitenin sahibine gönderilecektir."},rA={"{{amount}} characters left":"{{amount}} символів залишилось","{{amount}} comments":"{{amount}} коментарів","{{amount}} hrs ago":"{{amount}} годин тому","{{amount}} mins ago":"{{amount}} хвилин тому","{{amount}} more":"ще {{amount}}","1 comment":"1 коментар","Add comment":"Додати коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додайте контекст до свого коментаря, поділіться своїм іменем і досвідом, щоб сприяти здоровій дискусії.","Add reply":"Додати відповідь","Already a member?":"Ви є учасником?",Anonymous:"Анонім","Become a member of {{publication}} to start commenting.":"Станьте учасником {{publication}} щоб почати коментувати.","Become a paid member of {{publication}} to start commenting.":"Станьте платним учасником {{publication}} щоб почати коментувати.",Cancel:"Відмінити",Comment:"Коментувати","Complete your profile":"Заповніть свій профіль",Delete:"Видалити","Deleted member":"Видалений учасник",Discussion:"Обговорення",Edit:"Редагувати","Edit this comment":"Редагувати цей коментар",edited:"Відредагований","Enter your name":"Введіть своє імʼя",Expertise:"Експертність","Founder @ Acme Inc":"Засновник @ Acme Inc","Full-time parent":"Виховую дітей","Head of Marketing at Acme, Inc":"Голова продажів в Acme, Inc","Hidden for members":"",Hide:"Сховати","Hide comment":"Сховати коментар","Jamie Larson":"Ваше імʼя","Join the discussion":"Долучитися до обговорення","Just now":"Прямо зараз","Local resident":"Місцевий експерт","Member discussion":"Обговорення учасників",Name:"Імʼя",Neurosurgeon:"Нейрохірург","One hour ago":"Одну годину тому","One min ago":"Одну хвилину тому","replied to comment":"",Reply:"Відповісти","reply to comment":"","Reply to comment":"Відповісти на коментар",Report:"Поскаржитися","Report comment":"Поскаржитися на коментар","Report this comment?":"Поскаржитися на цей коментар?",Save:"Зберегти",Sending:"Відправка",Sent:"Відправлено",Show:"Показати","Show {{amount}} more replies":"Показати ще {{amount}} відповідей","Show {{amount}} previous comments":"Показати {{amount}} попередніх коментарів","Show 1 more reply":"Показати ще одну відповідь","Show 1 previous comment":"Показати один попередній коментар","Show comment":"Показати коментар","Sign in":"Увійти","Sign up now":"Зареєструватись зараз","Sort by":"","Start the conversation":"Почніть розмову","This comment has been hidden.":"Цей коментар було приховано.","This comment has been removed.":"Цей коментар було видалено.","Upgrade now":"Оновити зараз",Yesterday:"Вчора","Your request will be sent to the owner of this site.":"Ваш запит буде надіслано власнику цього сайту."},iA={"{{amount}} characters left":"{{amount}} حروف باقی ہیں","{{amount}} comments":"{{amount}} تبادلے","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"","1 comment":"1 تبادلہ","Add comment":"تبادلہ شامل کریں","Add context to your comment, share your name and expertise to foster a healthy discussion.":"اپنے تبادلے میں سیاق و سباق شامل کریں، اچھی گفتگو کو بڑھانے کے لئے اپنا نام اور ماہریت شیئر کریں۔","Add reply":"جواب شامل کریں","Already a member?":"پہلے ہی رکن ہیں؟",Anonymous:"ناشناس","Become a member of {{publication}} to start commenting.":"تبادلہ شروع کرنے کے لئے {{publication}} کا رکن بنیں۔","Become a paid member of {{publication}} to start commenting.":"تبادلہ شروع کرنے کے لئے {{publication}} کا ادائیگی رکن بنیں۔",Cancel:"منسوخ کریں",Comment:"تبادلہ","Complete your profile":"اپنا پروفائل مکمل کریں",Delete:"حذف کریں","Deleted member":"حذف شدہ رکن",Discussion:"تبادلہ",Edit:"ترتیب دیں","Edit this comment":"اس تبادلے کو ترتیب دیں",edited:"","Enter your name":"اپنا نام درج کریں",Expertise:"اہلیت","Founder @ Acme Inc":"ناظم @ Acme Inc","Full-time parent":"پورے وقت کا والد یا والدہ","Head of Marketing at Acme, Inc":"Acme، Inc کے مارکیٹنگ کا سربراہ","Hidden for members":"",Hide:"چھپائیں","Hide comment":"تبادلہ چھپائیں","Jamie Larson":"جیمی لارسن","Join the discussion":"تبادلے میں شامل ہوں","Just now":"ابھی","Local resident":"مقامی رہائشی","Member discussion":"رکن کا تبادلہ",Name:"نام",Neurosurgeon:"نیوروسرجن","One hour ago":"ایک گھنٹہ پہلے","One min ago":"","replied to comment":"",Reply:"جواب","reply to comment":"","Reply to comment":"تبادلے کا جواب دیں",Report:"رپورٹ","Report comment":"تبادلے کی رپورٹ","Report this comment?":"کیا آپ اس تبادلے کو رپورٹ کرنا چاہتے ہیں؟",Save:"محفوظ کریں",Sending:"بھیج رہا ہے",Sent:"بھیجا گیا",Show:"دکھائیں","Show {{amount}} more replies":"{{amount}} مزید جوابات دکھائیں","Show {{amount}} previous comments":"{{amount}} پچھلے تبادلات دکھائیں","Show 1 more reply":"1 مزید جواب دکھائیں","Show 1 previous comment":"1 پچھلا تبادلہ دکھائیں","Show comment":"تبادلہ دکھائیں","Sign in":"سائن ان کریں","Sign up now":"ابھی رجسٹر ہوں","Sort by":"","Start the conversation":"بات چیت شروع کریں","This comment has been hidden.":"یہ تبادلہ چھپا گیا ہے۔","This comment has been removed.":"یہ تبادلہ ہٹا دیا گیا ہے۔","Upgrade now":"اب اپ گریڈ کریں",Yesterday:"کل","Your request will be sent to the owner of this site.":"آپ کا درخواست اس سائٹ کے مالک کو بھیجا جائے گا۔"},sA={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One hour ago":"","One min ago":"","replied to comment":"",Reply:"","reply to comment":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},aA={"{{amount}} characters left":"{{amount}} ký tự còn lại","{{amount}} comments":"{{amount}} bình luận","{{amount}} hrs ago":"{{amount}} giờ trước","{{amount}} mins ago":"{{amount}} phút trước","{{amount}} more":"{{amount}} nữa","1 comment":"1 bình luận","Add comment":"Thêm bình luận","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Thêm ngữ cảnh, tên và chuyên môn của bạn để thúc đẩy cuộc thảo luận lành mạnh.","Add reply":"Trả lời","Already a member?":"Đã là thành viên?",Anonymous:"Ẩn danh","Become a member of {{publication}} to start commenting.":"Trở thành thành viên của {{publication}} để có thể bình luận.","Become a paid member of {{publication}} to start commenting.":"Trở thành thành viên trả phí của {{publication}} để có thể bình luận.",Cancel:"Hủy",Comment:"Bình luận","Complete your profile":"Hoàn tất hồ sơ của bạn",Delete:"Xóa","Deleted member":"Thành viên đã xóa",Discussion:"Thảo luận",Edit:"Sửa","Edit this comment":"Sửa bình luận này",edited:"đã sửa","Enter your name":"Nhập tên của bạn",Expertise:"Chuyên môn","Founder @ Acme Inc":"Nhà sáng lập @ Acme Inc","Full-time parent":"Phụ huynh toàn thời gian","Head of Marketing at Acme, Inc":"Trưởng phòng Marketing tại Acme, Inc","Hidden for members":"",Hide:"Ẩn","Hide comment":"Ẩn bình luận","Jamie Larson":"Jamie Larson","Join the discussion":"Tham gia thảo luận","Just now":"Vừa xong","Local resident":"Cư dân địa phương","Member discussion":"Thảo luận của thành viên",Name:"Tên",Neurosurgeon:"Bác sĩ phẫu thuật thần kinh","One hour ago":"Một giờ trước","One min ago":"Một phút trước","replied to comment":"",Reply:"Trả lời","reply to comment":"","Reply to comment":"Trả lời bình luận",Report:"Báo cáo","Report comment":"Báo cáo bình luận","Report this comment?":"Báo cáo bình luận này?",Save:"Lưu",Sending:"Đang gửi",Sent:"Đã gửi",Show:"Hiển thị","Show {{amount}} more replies":"Xem {{amount}} trả lời khác","Show {{amount}} previous comments":"Đọc {{amount}} bình luận trước","Show 1 more reply":"Xem 1 trả lời","Show 1 previous comment":"Đọc 1 bình luận trước","Show comment":"Đọc bình luận","Sign in":"Đăng nhập","Sign up now":"Đăng ký ngay","Sort by":"Xếp theo","Start the conversation":"Bắt đầu cuộc trò chuyện","This comment has been hidden.":"Bình luận này đã bị ẩn.","This comment has been removed.":"Bình luận này đã bị xóa.","Upgrade now":"Nâng cấp",Yesterday:"Hôm qua","Your request will be sent to the owner of this site.":"Yêu cầu của bạn sẽ được gửi đến chủ sở hữu trang web này."},lA={"{{amount}} characters left":"还剩{{amount}}字","{{amount}} comments":"{{amount}}条评论","{{amount}} hrs ago":"{{amount}}小时前","{{amount}} mins ago":"{{amount}}分钟前","{{amount}} more":"","1 comment":"一条评论","Add comment":"添加评论","Add context to your comment, share your name and expertise to foster a healthy discussion.":"为您的评论补充上下文信息、说明您的称呼与专业背景均有助于营造健康的讨论氛围。","Add reply":"添加回复","Already a member?":"已经是会员?",Anonymous:"匿名","Become a member of {{publication}} to start commenting.":"成为{{publication}}的会员以开始评论。","Become a paid member of {{publication}} to start commenting.":"成为{{publication}}的付费会员以开始评论。",Cancel:"取消",Comment:"评论","Complete your profile":"完善您的注册信息",Delete:"删除","Deleted member":"删除会员",Discussion:"讨论",Edit:"编辑","Edit this comment":"编辑此条评论",edited:"已编辑","Enter your name":"输入您的称呼",Expertise:"专业背景","Founder @ Acme Inc":"Acme Inc的创建者","Full-time parent":"全职父母","Head of Marketing at Acme, Inc":"Acme, Inc市场部负责人","Hidden for members":"",Hide:"隐藏","Hide comment":"隐藏评论","Jamie Larson":"Jamie Larson","Join the discussion":"加入讨论","Just now":"刚刚","Local resident":"本地居民","Member discussion":"会员讨论",Name:"称呼",Neurosurgeon:"神经外科医生","One hour ago":"一小时前","One min ago":"一分钟前","replied to comment":"",Reply:"回复","reply to comment":"","Reply to comment":"回复评论",Report:"举报","Report comment":"举报评论","Report this comment?":"举报此评论?",Save:"保存",Sending:"正在发送",Sent:"已发送",Show:"显示","Show {{amount}} more replies":"显示后续{{amount}}条评论","Show {{amount}} previous comments":"显示先前{{amount}}条评论","Show 1 more reply":"显示下一条评论","Show 1 previous comment":"显示前一条评论","Show comment":"显示评论","Sign in":"登录","Sign up now":"立刻注册","Sort by":"","Start the conversation":"开始对话","This comment has been hidden.":"该条评论已被隐藏。","This comment has been removed.":"该条评论已被移除。","Upgrade now":"立刻升级",Yesterday:"昨天","Your request will be sent to the owner of this site.":"您的请求将被发送给站点所有者。"},cA={"{{amount}} characters left":"還剩 {{amount}} 個字","{{amount}} comments":"{{amount}} 則留言","{{amount}} hrs ago":"{{amount}} 小時前","{{amount}} mins ago":"{{amount}} 分鐘前","{{amount}} more":"還剩 {{amount}} 則留言","1 comment":"一則留言","Add comment":"留言","Add context to your comment, share your name and expertise to foster a healthy discussion.":"為您的留言補充情境、說明您的稱呼與專業背景均有助於健康的討論氛圍。","Add reply":"回覆","Already a member?":"已經是會員?",Anonymous:"匿名","Become a member of {{publication}} to start commenting.":"成為{{publication}}的會員以開始留言。","Become a paid member of {{publication}} to start commenting.":"成為{{publication}}的付費會員以開始留言。",Cancel:"取消",Comment:"留言","Complete your profile":"完善您的註冊資訊",Delete:"刪除","Deleted member":"刪除會員",Discussion:"討論",Edit:"編輯","Edit this comment":"編輯此則留言",edited:"已編輯","Enter your name":"輸入您的稱呼",Expertise:"專業背景","Founder @ Acme Inc":"Acme Inc的創辦人","Full-time parent":"全職父母","Head of Marketing at Acme, Inc":"Acme, Inc市場部負責人","Hidden for members":"",Hide:"隱藏","Hide comment":"隱藏留言","Jamie Larson":"Jamie Larson","Join the discussion":"加入討論","Just now":"剛剛","Local resident":"本地居民","Member discussion":"會員討論",Name:"稱呼",Neurosurgeon:"神經外科醫生","One hour ago":"一小時前","One min ago":"一分鐘前","replied to comment":"",Reply:"回覆","reply to comment":"","Reply to comment":"回覆留言",Report:"舉報","Report comment":"舉報留言","Report this comment?":"舉報此留言?",Save:"儲存",Sending:"正在發送",Sent:"已發送",Show:"顯示","Show {{amount}} more replies":"顯示後續 {{amount}} 則留言","Show {{amount}} previous comments":"顯示先前 {{amount}} 則留言","Show 1 more reply":"顯示下一則留言","Show 1 previous comment":"顯示前一則留言","Show comment":"顯示留言","Sign in":"登錄","Sign up now":"立即註冊","Sort by":"排序方式","Start the conversation":"開始對話","This comment has been hidden.":"該則留言已被隱藏。","This comment has been removed.":"該則留言已被移除。","Upgrade now":"立即升級",Yesterday:"昨天","Your request will be sent to the owner of this site.":"您的請求將被發送給所有者。"},uA={"{{amount}} characters left":"{{amount}} herufi zimebaki","{{amount}} comments":"{{amount}} maoni","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"{{amount}} zaidi","1 comment":"maoni 1","Add comment":"Ongeza maoni","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Ongeza muktadha kwa maoni yako, shiriki jina lako na utaalamu ili kuendeleza mjadala wenye afya.","Add reply":"Ongeza jibu","Already a member?":"Tayari ni mwanachama?",Anonymous:"Asiyetambulika","Become a member of {{publication}} to start commenting.":"Jiunge kama mwanachama wa {{publication}} ili kuanza kutoa maoni.","Become a paid member of {{publication}} to start commenting.":"Jiunge kama mwanachama anayelipa wa {{publication}} ili kuanza kutoa maoni.",Cancel:"Ghairi",Comment:"Maoni","Complete your profile":"Kamilisha wasifu wako",Delete:"Futa","Deleted member":"Mwanachama aliyefutwa",Discussion:"Majadiliano",Edit:"Hariri","Edit this comment":"Hariri maoni haya",edited:"","Enter your name":"Weka jina lako",Expertise:"Utaalamu","Founder @ Acme Inc":"Mwanzilishi @ Acme Inc","Full-time parent":"Mzazi wa muda wote","Head of Marketing at Acme, Inc":"Mkuu wa Masoko katika Acme, Inc","Hidden for members":"",Hide:"Ficha","Hide comment":"Ficha maoni","Jamie Larson":"Jamie Larson","Join the discussion":"Jiunge na mjadala","Just now":"Hivi sasa","Local resident":"Mkazi wa eneo","Member discussion":"Mjadala wa wanachama",Name:"Jina",Neurosurgeon:"Daktari wa ubongo","One hour ago":"Saa moja iliyopita","One min ago":"","replied to comment":"",Reply:"Jibu","reply to comment":"","Reply to comment":"Jibu maoni",Report:"Ripoti","Report comment":"Ripoti maoni","Report this comment?":"Unataka kuripoti maoni haya?",Save:"Hifadhi",Sending:"Inatuma",Sent:"Imetumwa",Show:"Onyesha","Show {{amount}} more replies":"Onyesha majibu {{amount}} zaidi","Show {{amount}} previous comments":"Onyesha maoni {{amount}} ya awali","Show 1 more reply":"Onyesha jibu 1 zaidi","Show 1 previous comment":"Onyesha maoni 1 ya awali","Show comment":"Onyesha maoni","Sign in":"Ingia","Sign up now":"Jisajili sasa","Sort by":"","Start the conversation":"Anzisha mazungumzo","This comment has been hidden.":"Maoni haya yamefichwa.","This comment has been removed.":"Maoni haya yameondolewa.","Upgrade now":"Boresha sasa",Yesterday:"Jana","Your request will be sent to the owner of this site.":"Ombi lako litatumwa kwa mmiliki wa tovuti hii."},dA={"{{amount}} characters left":"{{amount}} எழுத்துக்கள் எஞ்சியுள்ளன","{{amount}} comments":"{{amount}} கருத்துக்கள்","{{amount}} hrs ago":"{{amount}} மணி நேரத்திற்கு முன்பு","{{amount}} mins ago":"{{amount}} நிமிடங்களுக்கு முன்பு","{{amount}} more":"{{amount}} மேலும்","1 comment":"1 கருத்து","Add comment":"கருத்தைச் சேர்க்கவும்","Add context to your comment, share your name and expertise to foster a healthy discussion.":"உங்கள் கருத்துக்கு சூழலைச் சேர்க்கவும், ஆரோக்கியமான விவாதத்தை வளர்க்க உங்கள் பெயரையும் நிபுணத்துவத்தையும் பகிர்ந்து கொள்ளுங்கள்.","Add reply":"பதில் சேர்க்கவும்","Already a member?":"ஏற்கனவே உறுப்பினரா?",Anonymous:"அடையாளம் தெரியாத","Become a member of {{publication}} to start commenting.":"கருத்துத் தெரிவிக்க {{publication}} இல் உறுப்பினராகுங்கள்.","Become a paid member of {{publication}} to start commenting.":"கருத்துத் தெரிவிக்க {{publication}} இல் கட்டண உறுப்பினராகுங்கள்.",Cancel:"ரத்து செய்",Comment:"கருத்து","Complete your profile":"உங்கள் சுயவிவரத்தை பூர்த்தி செய்யவும்",Delete:"நீக்கவும்","Deleted member":"நீக்கப்பட்ட உறுப்பினர்",Discussion:"கலந்துரையாடல்",Edit:"திருத்தவும்","Edit this comment":"இந்தக் கருத்தைத் திருத்தவும்",edited:"திருத்தப்பட்டது","Enter your name":"உங்கள் பெயரை உள்ளிடுக",Expertise:"நிபுணத்துவம்","Founder @ Acme Inc":"நிறுவனர் @ Acme Inc","Full-time parent":"முழுநேர பெற்றோர்","Head of Marketing at Acme, Inc":"Acme Inc நிறுவனத்தின் சந்தைப்படுத்தல் தலைவர்","Hidden for members":"",Hide:"மறைக்கவும்","Hide comment":"கருத்தை மறை","Jamie Larson":"ஜேமி லார்சன்","Join the discussion":"கலந்துரையாடலில் சேரவும்","Just now":"சற்றுமுன்னர்தான்","Local resident":"உள்ளூர்வாசி","Member discussion":"உறுப்பினர் கருத்து",Name:"பெயர்",Neurosurgeon:"நரம்பியல் அறுவை சிகிச்சை நிபுணர்","One hour ago":"ஒரு மணி முன்பு","One min ago":"ஒரு நிமிடம் முன்பு","replied to comment":"",Reply:"பதிலளிக்கவும்","reply to comment":"","Reply to comment":"கருத்துக்கு பதிலளிக்கவும்",Report:"புகாரளி","Report comment":"கருத்தைப் புகாரளி","Report this comment?":"இந்தக் கருத்தைப் புகாரளிக்கவா?",Save:"சேமிக்க",Sending:"அனுப்புகிறது",Sent:"அனுப்பப்பட்டது",Show:"காட்டு","Show {{amount}} more replies":"முந்தைய {{amount}} மேலும் பதில்கள்க் காட்டு","Show {{amount}} previous comments":"முந்தைய {{amount}} கருத்துகளைக் காட்டு","Show 1 more reply":"மேலும் 1 பதிலைக் காட்டு","Show 1 previous comment":"முந்தைய 1 கருத்தைக் காட்டு","Show comment":"கருத்தைக் காட்டு","Sign in":"உள்நுழைக","Sign up now":"இப்பொழுதே பதிவு செய்யுங்கள்","Sort by":"","Start the conversation":"உரையாடலைத் தொடங்குங்கள்","This comment has been hidden.":"இந்தக் கருத்து மறைக்கப்பட்டது.","This comment has been removed.":"இந்தக் கருத்து நீக்கப்பட்டது.","Upgrade now":"இப்போதே மேம்படுத்தவும்",Yesterday:"நேற்று","Your request will be sent to the owner of this site.":"உங்கள் கோரிக்கை இந்த தளத்தின் உரிமையாளருக்கு அனுப்பப்படும்."};var l1;function c1(){return l1||(l1={"/ghost/i18n/locales/af/comments.json":function(){return aN},"/ghost/i18n/locales/ar/comments.json":function(){return lN},"/ghost/i18n/locales/bg/comments.json":function(){return cN},"/ghost/i18n/locales/bn/comments.json":function(){return uN},"/ghost/i18n/locales/bs/comments.json":function(){return dN},"/ghost/i18n/locales/ca/comments.json":function(){return mN},"/ghost/i18n/locales/cs/comments.json":function(){return fN},"/ghost/i18n/locales/da/comments.json":function(){return pN},"/ghost/i18n/locales/de/comments.json":function(){return hN},"/ghost/i18n/locales/de-CH/comments.json":function(){return gN},"/ghost/i18n/locales/el/comments.json":function(){return yN},"/ghost/i18n/locales/en/comments.json":function(){return wN},"/ghost/i18n/locales/eo/comments.json":function(){return SN},"/ghost/i18n/locales/es/comments.json":function(){return bN},"/ghost/i18n/locales/et/comments.json":function(){return vN},"/ghost/i18n/locales/fa/comments.json":function(){return xN},"/ghost/i18n/locales/fi/comments.json":function(){return kN},"/ghost/i18n/locales/fr/comments.json":function(){return $N},"/ghost/i18n/locales/gd/comments.json":function(){return CN},"/ghost/i18n/locales/he/comments.json":function(){return EN},"/ghost/i18n/locales/hi/comments.json":function(){return NN},"/ghost/i18n/locales/hr/comments.json":function(){return AN},"/ghost/i18n/locales/hu/comments.json":function(){return RN},"/ghost/i18n/locales/id/comments.json":function(){return ON},"/ghost/i18n/locales/is/comments.json":function(){return DN},"/ghost/i18n/locales/it/comments.json":function(){return MN},"/ghost/i18n/locales/ja/comments.json":function(){return TN},"/ghost/i18n/locales/ko/comments.json":function(){return jN},"/ghost/i18n/locales/kz/comments.json":function(){return PN},"/ghost/i18n/locales/lt/comments.json":function(){return IN},"/ghost/i18n/locales/mk/comments.json":function(){return LN},"/ghost/i18n/locales/mn/comments.json":function(){return zN},"/ghost/i18n/locales/ms/comments.json":function(){return FN},"/ghost/i18n/locales/ne/comments.json":function(){return HN},"/ghost/i18n/locales/nl/comments.json":function(){return BN},"/ghost/i18n/locales/nn/comments.json":function(){return VN},"/ghost/i18n/locales/no/comments.json":function(){return UN},"/ghost/i18n/locales/pl/comments.json":function(){return _N},"/ghost/i18n/locales/pt/comments.json":function(){return JN},"/ghost/i18n/locales/pt-BR/comments.json":function(){return YN},"/ghost/i18n/locales/ro/comments.json":function(){return KN},"/ghost/i18n/locales/ru/comments.json":function(){return WN},"/ghost/i18n/locales/si/comments.json":function(){return qN},"/ghost/i18n/locales/sk/comments.json":function(){return GN},"/ghost/i18n/locales/sl/comments.json":function(){return QN},"/ghost/i18n/locales/sq/comments.json":function(){return ZN},"/ghost/i18n/locales/sr/comments.json":function(){return XN},"/ghost/i18n/locales/sr-Cyrl/comments.json":function(){return eA},"/ghost/i18n/locales/sv/comments.json":function(){return tA},"/ghost/i18n/locales/th/comments.json":function(){return nA},"/ghost/i18n/locales/tr/comments.json":function(){return oA},"/ghost/i18n/locales/uk/comments.json":function(){return rA},"/ghost/i18n/locales/ur/comments.json":function(){return iA},"/ghost/i18n/locales/uz/comments.json":function(){return sA},"/ghost/i18n/locales/vi/comments.json":function(){return aA},"/ghost/i18n/locales/zh/comments.json":function(){return lA},"/ghost/i18n/locales/zh-Hant/comments.json":function(){return cA},"/ghost/i18n/locales/sw/comments.json":function(){return uA},"/ghost/i18n/locales/ta/comments.json":function(){return dA}})}function u1(t){function e(n){var o=d1(n,t);if(o!==null)return c1()[o]();throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}return e.resolve=function(n){var o=d1(n,t);return o!==null?o:require.resolve(n)},e}function d1(t,e){var n=mA(t);t=pl(t);var o;t[0]==="/"&&(e="");for(var r=c1(),i=["",".js",".json"];n?o=pl(e+"/node_modules/"+t):o=pl(e+"/"+t),!o.endsWith("/..");){for(var s=0;s<i.length;s++){var a=o+i[s];if(r[a])return a}if(!n)break;var l=pl(e+"/..");if(l===e)break;e=l}return null}function mA(t){var e=t[0];if(e==="/"||e==="\\")return!1;var n=t[1],o=t[2];return!(e==="."&&(!n||n==="/"||n==="\\")||e==="."&&n==="."&&(!o||o==="/"||o==="\\")||n===":"&&(o==="/"||o==="\\"))}function pl(t){t=t.replace(/\\/g,"/");for(var e=t.split("/"),n=e[0]==="",o=1;o<e.length;o++)(e[o]==="."||e[o]==="")&&e.splice(o--,1);for(var o=1;o<e.length;o++)e[o]===".."&&o>0&&e[o-1]!==".."&&e[o-1]!=="."&&(e.splice(--o,2),o--);return t=e.join("/"),n&&t[0]!=="/"?t="/"+t:t.length===0&&(t="."),t}var hl={exports:{}};const F=t=>typeof t=="string",_i=()=>{let t,e;const n=new Promise((o,r)=>{t=o,e=r});return n.resolve=t,n.reject=e,n},m1=t=>t==null?"":""+t,fA=(t,e,n)=>{t.forEach(o=>{e[o]&&(n[o]=e[o])})},pA=/###/g,f1=t=>t&&t.indexOf("###")>-1?t.replace(pA,"."):t,p1=t=>!t||F(t),Ji=(t,e,n)=>{const o=F(e)?e.split("."):e;let r=0;for(;r<o.length-1;){if(p1(t))return{};const i=f1(o[r]);!t[i]&&n&&(t[i]=new n),Object.prototype.hasOwnProperty.call(t,i)?t=t[i]:t={},++r}return p1(t)?{}:{obj:t,k:f1(o[r])}},h1=(t,e,n)=>{const{obj:o,k:r}=Ji(t,e,Object);if(o!==void 0||e.length===1){o[r]=n;return}let i=e[e.length-1],s=e.slice(0,e.length-1),a=Ji(t,s,Object);for(;a.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),a=Ji(t,s,Object),a&&a.obj&&typeof a.obj[`${a.k}.${i}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},hA=(t,e,n,o)=>{const{obj:r,k:i}=Ji(t,e,Object);r[i]=r[i]||[],r[i].push(n)},gl=(t,e)=>{const{obj:n,k:o}=Ji(t,e);if(n)return n[o]},gA=(t,e,n)=>{const o=gl(t,n);return o!==void 0?o:gl(e,n)},g1=(t,e,n)=>{for(const o in e)o!=="__proto__"&&o!=="constructor"&&(o in t?F(t[o])||t[o]instanceof String||F(e[o])||e[o]instanceof String?n&&(t[o]=e[o]):g1(t[o],e[o],n):t[o]=e[o]);return t},hr=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var yA={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const wA=t=>F(t)?t.replace(/[&<>"'\/]/g,e=>yA[e]):t;class SA{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const o=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,o),this.regExpQueue.push(e),o}}const bA=[" ",",","?","!",";"],vA=new SA(20),xA=(t,e,n)=>{e=e||"",n=n||"";const o=bA.filter(s=>e.indexOf(s)<0&&n.indexOf(s)<0);if(o.length===0)return!0;const r=vA.getRegExp(`(${o.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!r.test(t);if(!i){const s=t.indexOf(n);s>0&&!r.test(t.substring(0,s))&&(i=!0)}return i},dm=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const o=e.split(n);let r=t;for(let i=0;i<o.length;){if(!r||typeof r!="object")return;let s,a="";for(let l=i;l<o.length;++l)if(l!==i&&(a+=n),a+=o[l],s=r[a],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<o.length-1)continue;i+=l-i+1;break}r=s}return r},yl=t=>t&&t.replace("_","-"),kA={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class wl{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||kA,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return this.forward(n,"log","",!0)}warn(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return this.forward(n,"warn","",!0)}error(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return this.forward(n,"error","")}deprecate(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,o,r){return r&&!this.debug?null:(F(e[0])&&(e[0]=`${o}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new wl(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new wl(this.logger,e)}}var Tt=new wl;class Sl{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(o=>{this.observers[o]||(this.observers[o]=new Map);const r=this.observers[o].get(n)||0;this.observers[o].set(n,r+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(s=>{let[a,l]=s;for(let c=0;c<l;c++)a(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[a,l]=s;for(let c=0;c<l;c++)a.apply(a,[e,...o])})}}class y1 extends Sl{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,n],o&&(Array.isArray(o)?a.push(...o):F(o)&&i?a.push(...o.split(i)):a.push(o)));const l=gl(this.data,a);return!l&&!n&&!o&&e.indexOf(".")>-1&&(e=a[0],n=a[1],o=a.slice(2).join(".")),l||!s||!F(o)?l:dm(this.data&&this.data[e]&&this.data[e][n],o,i)}addResource(e,n,o,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[e,n];o&&(a=a.concat(s?o.split(s):o)),e.indexOf(".")>-1&&(a=e.split("."),r=n,n=a[1]),this.addNamespaces(n),h1(this.data,a,r),i.silent||this.emit("added",e,n,o,r)}addResources(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in o)(F(o[i])||Array.isArray(o[i]))&&this.addResource(e,n,i,o[i],{silent:!0});r.silent||this.emit("added",e,n,o)}addResourceBundle(e,n,o,r,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[e,n];e.indexOf(".")>-1&&(a=e.split("."),r=o,o=n,n=a[1]),this.addNamespaces(n);let l=gl(this.data,a)||{};s.skipCopy||(o=JSON.parse(JSON.stringify(o))),r?g1(l,o,i):l={...l,...o},h1(this.data,a,l),s.silent||this.emit("added",e,n,o)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,n)}:this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}}var w1={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,o,r){return t.forEach(i=>{this.processors[i]&&(e=this.processors[i].process(e,n,o,r))}),e}};const S1={};class bl extends Sl{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),fA(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Tt.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const o=this.resolve(e,n);return o&&o.res!==void 0}extractFromKey(e,n){let o=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");const r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const s=o&&e.indexOf(o)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!xA(e,o,r);if(s&&!a){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:i};const c=e.split(o);(o!==r||o===r&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),e=c.join(r)}return F(i)&&(i=[i]),{key:e,namespaces:i}}translate(e,n,o){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(e[e.length-1],n),l=a[a.length-1],c=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(u){const v=n.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${v}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${v}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s}const m=this.resolve(e,n);let d=m&&m.res;const p=m&&m.usedKey||s,f=m&&m.exactUsedKey||s,y=Object.prototype.toString.apply(d),h=["[object Number]","[object Function]","[object RegExp]"],g=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject,b=!F(d)&&typeof d!="boolean"&&typeof d!="number";if(S&&d&&b&&h.indexOf(y)<0&&!(F(g)&&Array.isArray(d))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const v=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,d,{...n,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(m.res=v,m.usedParams=this.getUsedParamsDetails(n),m):v}if(i){const v=Array.isArray(d),C=v?[]:{},x=v?f:p;for(const $ in d)if(Object.prototype.hasOwnProperty.call(d,$)){const O=`${x}${i}${$}`;C[$]=this.translate(O,{...n,joinArrays:!1,ns:a}),C[$]===O&&(C[$]=d[$])}d=C}}else if(S&&F(g)&&Array.isArray(d))d=d.join(g),d&&(d=this.extendTranslation(d,e,n,o));else{let v=!1,C=!1;const x=n.count!==void 0&&!F(n.count),$=bl.hasDefaultValue(n),O=x?this.pluralResolver.getSuffix(c,n.count,n):"",E=n.ordinal&&x?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",U=x&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),se=U&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${O}`]||n[`defaultValue${E}`]||n.defaultValue;!this.isValidLookup(d)&&$&&(v=!0,d=se),this.isValidLookup(d)||(C=!0,d=s);const G=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:d,Ae=$&&se!==d&&this.options.updateMissing;if(C||v||Ae){if(this.logger.log(Ae?"updateKey":"missingKey",c,l,s,Ae?se:d),i){const Q=this.resolve(s,{...n,keySeparator:!1});Q&&Q.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let le=[];const pe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&pe&&pe[0])for(let Q=0;Q<pe.length;Q++)le.push(pe[Q]);else this.options.saveMissingTo==="all"?le=this.languageUtils.toResolveHierarchy(n.lng||this.language):le.push(n.lng||this.language);const de=(Q,ce,ve)=>{const D=$&&ve!==d?ve:G;this.options.missingKeyHandler?this.options.missingKeyHandler(Q,l,ce,D,Ae,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Q,l,ce,D,Ae,n),this.emit("missingKey",Q,l,ce,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&x?le.forEach(Q=>{const ce=this.pluralResolver.getSuffixes(Q,n);U&&n[`defaultValue${this.options.pluralSeparator}zero`]&&ce.indexOf(`${this.options.pluralSeparator}zero`)<0&&ce.push(`${this.options.pluralSeparator}zero`),ce.forEach(ve=>{de([Q],s+ve,n[`defaultValue${ve}`]||se)})}):de(le,s,se))}d=this.extendTranslation(d,e,n,m,o),C&&d===s&&this.options.appendNamespaceToMissingKey&&(d=`${l}:${s}`),(C||v)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,v?d:void 0):d=this.options.parseMissingKeyHandler(d))}return r?(m.res=d,m.usedParams=this.getUsedParamsDetails(n),m):d}extendTranslation(e,n,o,r,i){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...o},o.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init({...o,interpolation:{...this.options.interpolation,...o.interpolation}});const c=F(e)&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(c){const d=e.match(this.interpolator.nestingRegexp);u=d&&d.length}let m=o.replace&&!F(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),e=this.interpolator.interpolate(e,m,o.lng||this.language||r.usedLng,o),c){const d=e.match(this.interpolator.nestingRegexp),p=d&&d.length;u<p&&(o.nest=!1)}!o.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(o.lng=this.language||r.usedLng),o.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var d=arguments.length,p=new Array(d),f=0;f<d;f++)p[f]=arguments[f];return i&&i[0]===p[0]&&!o.context?(s.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${n[0]}`),null):s.translate(...p,n)},o)),o.interpolation&&this.interpolator.reset()}const a=o.postProcess||this.options.postProcess,l=F(a)?[a]:a;return e!=null&&l&&l.length&&o.applyPostProcessor!==!1&&(e=w1.handle(l,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),e}resolve(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,r,i,s,a;return F(e)&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(o))return;const c=this.extractFromKey(l,n),u=c.key;r=u;let m=c.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const d=n.count!==void 0&&!F(n.count),p=d&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),f=n.context!==void 0&&(F(n.context)||typeof n.context=="number")&&n.context!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(h=>{this.isValidLookup(o)||(a=h,!S1[`${y[0]}-${h}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(S1[`${y[0]}-${h}`]=!0,this.logger.warn(`key "${r}" for languages "${y.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(g=>{if(this.isValidLookup(o))return;s=g;const S=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(S,u,g,h,n);else{let v;d&&(v=this.pluralResolver.getSuffix(g,n.count,n));const C=`${this.options.pluralSeparator}zero`,x=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(S.push(u+v),n.ordinal&&v.indexOf(x)===0&&S.push(u+v.replace(x,this.options.pluralSeparator)),p&&S.push(u+C)),f){const $=`${u}${this.options.contextSeparator}${n.context}`;S.push($),d&&(S.push($+v),n.ordinal&&v.indexOf(x)===0&&S.push($+v.replace(x,this.options.pluralSeparator)),p&&S.push($+C))}}let b;for(;b=S.pop();)this.isValidLookup(o)||(i=b,o=this.getResource(g,h,b,n))}))})}),{res:o,usedKey:r,exactUsedKey:i,usedLng:s,usedNS:a}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,o,r):this.resourceStore.getResource(e,n,o,r)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=e.replace&&!F(e.replace);let r=o?e.replace:e;if(o&&typeof e.count<"u"&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!o){r={...r};for(const i of n)delete r[i]}return r}static hasDefaultValue(e){const n="defaultValue";for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&n===o.substring(0,n.length)&&e[o]!==void 0)return!0;return!1}}const mm=t=>t.charAt(0).toUpperCase()+t.slice(1);class b1{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Tt.create("languageUtils")}getScriptPartFromCode(e){if(e=yl(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=yl(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(F(e)&&e.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let r=Intl.getCanonicalLocales(e)[0];if(r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r)return r}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let o=e.split("-");return this.options.lowerCaseLng?o=o.map(r=>r.toLowerCase()):o.length===2?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),n.indexOf(o[1].toLowerCase())>-1&&(o[1]=mm(o[1].toLowerCase()))):o.length===3&&(o[0]=o[0].toLowerCase(),o[1].length===2&&(o[1]=o[1].toUpperCase()),o[0]!=="sgn"&&o[2].length===2&&(o[2]=o[2].toUpperCase()),n.indexOf(o[1].toLowerCase())>-1&&(o[1]=mm(o[1].toLowerCase())),n.indexOf(o[2].toLowerCase())>-1&&(o[2]=mm(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(o=>{if(n)return;const r=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&e.forEach(o=>{if(n)return;const r=this.getLanguagePartFromCode(o);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(i=>{if(i===r)return i;if(!(i.indexOf("-")<0&&r.indexOf("-")<0)&&(i.indexOf("-")>0&&r.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===r||i.indexOf(r)===0&&r.length>1))return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),F(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let o=e[n];return o||(o=e[this.getScriptPartFromCode(n)]),o||(o=e[this.formatLanguageCode(n)]),o||(o=e[this.getLanguagePartFromCode(n)]),o||(o=e.default),o||[]}toResolveHierarchy(e,n){const o=this.getFallbackCodes(n||this.options.fallbackLng||[],e),r=[],i=s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return F(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):F(e)&&i(this.formatLanguageCode(e)),o.forEach(s=>{r.indexOf(s)<0&&i(this.formatLanguageCode(s))}),r}}let $A=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],CA={1:t=>+(t>1),2:t=>+(t!=1),3:t=>0,4:t=>t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,5:t=>t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5,6:t=>t==1?0:t>=2&&t<=4?1:2,7:t=>t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,8:t=>t==1?0:t==2?1:t!=8&&t!=11?2:3,9:t=>+(t>=2),10:t=>t==1?0:t==2?1:t<7?2:t<11?3:4,11:t=>t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3,12:t=>+(t%10!=1||t%100==11),13:t=>+(t!==0),14:t=>t==1?0:t==2?1:t==3?2:3,15:t=>t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2,16:t=>t%10==1&&t%100!=11?0:t!==0?1:2,17:t=>t==1||t%10==1&&t%100!=11?0:1,18:t=>t==0?0:t==1?1:2,19:t=>t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3,20:t=>t==1?0:t==0||t%100>0&&t%100<20?1:2,21:t=>t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0,22:t=>t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3};const EA=["v1","v2","v3"],NA=["v4"],v1={zero:0,one:1,two:2,few:3,many:4,other:5},AA=()=>{const t={};return $A.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:CA[e.fc]}})}),t};class RA{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=Tt.create("pluralResolver"),(!this.options.compatibilityJSON||NA.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=AA(),this.pluralRulesCache={}}addRule(e,n){this.rules[e]=n}clearCache(){this.pluralRulesCache={}}getRule(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const o=yl(e==="dev"?"en":e),r=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:o,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];const s=new Intl.PluralRules(o,{type:r});return this.pluralRulesCache[i]=s,s}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=this.getRule(e,n);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}getPluralFormsOfKey(e,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,o).map(r=>`${n}${r}`)}getSuffixes(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=this.getRule(e,n);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort((r,i)=>v1[r]-v1[i]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):o.numbers.map(r=>this.getSuffix(e,r,n)):[]}getSuffix(e,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=this.getRule(e,o);return r?this.shouldUseIntlApi()?`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,n):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,n){const o=e.noAbs?e.plurals(n):e.plurals(Math.abs(n));let r=e.numbers[o];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));const i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?i():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}shouldUseIntlApi(){return!EA.includes(this.options.compatibilityJSON)}}const x1=function(t,e,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=gA(t,e,n);return!i&&r&&F(n)&&(i=dm(t,n,o),i===void 0&&(i=dm(e,n,o))),i},fm=t=>t.replace(/\$/g,"$$$$");class OA{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Tt.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:o,useRawValueToEscape:r,prefix:i,prefixEscaped:s,suffix:a,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:m,nestingPrefix:d,nestingPrefixEscaped:p,nestingSuffix:f,nestingSuffixEscaped:y,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:S}=e.interpolation;this.escape=n!==void 0?n:wA,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=i?hr(i):s||"{{",this.suffix=a?hr(a):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?hr(d):p||hr("$t("),this.nestingSuffix=f?hr(f):y||hr(")"),this.nestingOptionsSeparator=h||",",this.maxReplaces=g||1e3,this.alwaysFormat=S!==void 0?S:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,o)=>n&&n.source===o?(n.lastIndex=0,n):new RegExp(o,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,n,o,r){let i,s,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=p=>{if(p.indexOf(this.formatSeparator)<0){const g=x1(n,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(g,void 0,o,{...r,...n,interpolationkey:p}):g}const f=p.split(this.formatSeparator),y=f.shift().trim(),h=f.join(this.formatSeparator).trim();return this.format(x1(n,l,y,this.options.keySeparator,this.options.ignoreJSONStructure),h,o,{...r,...n,interpolationkey:y})};this.resetRegExp();const u=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,m=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>fm(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?fm(this.escape(p)):fm(p)}].forEach(p=>{for(a=0;i=p.regex.exec(e);){const f=i[1].trim();if(s=c(f),s===void 0)if(typeof u=="function"){const h=u(e,i,r);s=F(h)?h:""}else if(r&&Object.prototype.hasOwnProperty.call(r,f))s="";else if(m){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${f} for interpolating ${e}`),s="";else!F(s)&&!this.useRawValueToEscape&&(s=m1(s));const y=p.safeValue(s);if(e=e.replace(i[0],y),m?(p.regex.lastIndex+=s.length,p.regex.lastIndex-=i[0].length):p.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,s;const a=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const m=l.split(new RegExp(`${u}[ ]*{`));let d=`{${m[1]}`;l=m[0],d=this.interpolate(d,s);const p=d.match(/'/g),f=d.match(/"/g);(p&&p.length%2===0&&!f||f.length%2!==0)&&(d=d.replace(/'/g,'"'));try{s=JSON.parse(d),c&&(s={...c,...s})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${u}${d}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l};for(;r=this.nestingRegexp.exec(e);){let l=[];s={...o},s=s.replace&&!F(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){const u=r[1].split(this.formatSeparator).map(m=>m.trim());r[1]=u.shift(),l=u,c=!0}if(i=n(a.call(this,r[1].trim(),s),s),i&&r[0]===e&&!F(i))return i;F(i)||(i=m1(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=""),c&&(i=l.reduce((u,m)=>this.format(u,m,o.lng,{...o,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}}const DA=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const o=t.split("(");e=o[0].toLowerCase().trim();const r=o[1].substring(0,o[1].length-1);e==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):e==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){const[a,...l]=s.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=a.trim();n[u]||(n[u]=c),c==="false"&&(n[u]=!1),c==="true"&&(n[u]=!0),isNaN(c)||(n[u]=parseInt(c,10))}})}return{formatName:e,formatOptions:n}},gr=t=>{const e={};return(n,o,r)=>{let i=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(i={...i,[r.interpolationkey]:void 0});const s=o+JSON.stringify(i);let a=e[s];return a||(a=t(yl(o),r),e[s]=a),a(n)}};class MA{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Tt.create("formatter"),this.options=e,this.formats={number:gr((n,o)=>r=>new Intl.NumberFormat(n,{...o}).format(r)),currency:gr((n,o)=>r=>new Intl.NumberFormat(n,{...o,style:"currency"}).format(r)),datetime:gr((n,o)=>r=>new Intl.DateTimeFormat(n,{...o}).format(r)),relativetime:gr((n,o)=>r=>new Intl.RelativeTimeFormat(n,{...o}).format(r,o.range||"day")),list:gr((n,o)=>r=>new Intl.ListFormat(n,{...o}).format(r))},this.init(e)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=gr(n)}format(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(a=>a.indexOf(")")>-1)){const a=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,a)].join(this.formatSeparator)}return i.reduce((a,l)=>{const{formatName:c,formatOptions:u}=DA(l);if(this.formats[c]){let m=a;try{const d=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},p=d.locale||d.lng||r.locale||r.lng||o;m=this.formats[c](a,p,{...u,...r,...d})}catch(d){this.logger.warn(d)}return m}else this.logger.warn(`there was no format function for ${c}`);return a},e)}}const TA=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class jA extends Sl{constructor(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=n,this.services=o,this.languageUtils=o.languageUtils,this.options=r,this.logger=Tt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(o,r.backend,r)}queueLoad(e,n,o,r){const i={},s={},a={},l={};return e.forEach(c=>{let u=!0;n.forEach(m=>{const d=`${c}|${m}`;!o.reload&&this.store.hasResourceBundle(c,m)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?s[d]===void 0&&(s[d]=!0):(this.state[d]=1,u=!1,s[d]===void 0&&(s[d]=!0),i[d]===void 0&&(i[d]=!0),l[m]===void 0&&(l[m]=!0)))}),u||(a[c]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,n,o){const r=e.split("|"),i=r[0],s=r[1];n&&this.emit("failedLoading",i,s,n),!n&&o&&this.store.addResourceBundle(i,s,o,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&o&&(this.state[e]=0);const a={};this.queue.forEach(l=>{hA(l.loaded,[i],s),TA(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{a[c]||(a[c]={});const u=l.loaded[c];u.length&&u.forEach(m=>{a[c][m]===void 0&&(a[c][m]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:o,tried:r,wait:i,callback:s});return}this.readingCalls++;const a=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(c&&u&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,o,r+1,i*2,s)},i);return}s(c,u)},l=this.backend[o].bind(this.backend);if(l.length===2){try{const c=l(e,n);c&&typeof c.then=="function"?c.then(u=>a(null,u)).catch(a):a(null,c)}catch(c){a(c)}return}return l(e,n,a)}prepareLoading(e,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();F(e)&&(e=this.languageUtils.toResolveHierarchy(e)),F(n)&&(n=[n]);const i=this.queueLoad(e,n,o,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(e,n,o){this.prepareLoading(e,n,{},o)}reload(e,n,o){this.prepareLoading(e,n,{reload:!0},o)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const o=e.split("|"),r=o[0],i=o[1];this.read(r,i,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${n}loading namespace ${i} for language ${r} failed`,s),!s&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${r}`,a),this.loaded(e,s,a)})}saveMissing(e,n,o,r,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${o}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if(this.backend&&this.backend.create){const l={...s,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(e,n,o,r,l):u=c(e,n,o,r),u&&typeof u.then=="function"?u.then(m=>a(null,m)).catch(a):a(null,u)}catch(u){a(u)}else c(e,n,o,r,a,l)}!e||!e[0]||this.store.addResource(e[0],n,o,r)}}}const k1=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),F(t[1])&&(e.defaultValue=t[1]),F(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(o=>{e[o]=n[o]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),$1=t=>(F(t.ns)&&(t.ns=[t.ns]),F(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),F(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),vl=()=>{},PA=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class Yi extends Sl{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=$1(e),this.services={},this.logger=Tt,this.modules={external:[]},PA(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(){var e=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(o=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(F(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const r=k1();this.options={...r,...this.options,...$1(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?Tt.init(i(this.modules.logger),this.options):Tt.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=MA);const m=new b1(this.options);this.store=new y1(this.options.resources,this.options);const d=this.services;d.logger=Tt,d.resourceStore=this.store,d.languageUtils=m,d.pluralResolver=new RA(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(d.formatter=i(u),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new OA(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new jA(i(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(p){for(var f=arguments.length,y=new Array(f>1?f-1:0),h=1;h<f;h++)y[h-1]=arguments[h];e.emit(p,...y)}),this.modules.languageDetector&&(d.languageDetector=i(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=i(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new bl(this.services,this.options),this.translator.on("*",function(p){for(var f=arguments.length,y=new Array(f>1?f-1:0),h=1;h<f;h++)y[h-1]=arguments[h];e.emit(p,...y)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,o||(o=vl),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return e.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return e.store[u](...arguments),e}});const l=_i(),c=()=>{const u=(m,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(d),o(m,d)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vl;const r=F(e)?e:this.language;if(typeof e=="function"&&(o=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return o();const i=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(c=>{c!=="cimode"&&i.indexOf(c)<0&&i.push(c)})};r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload&&this.options.preload.forEach(a=>s(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(a)})}else o(null)}reloadResources(e,n,o){const r=_i();return typeof e=="function"&&(o=e,e=void 0),typeof n=="function"&&(o=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),o||(o=vl),this.services.backendConnector.reload(e,n,i=>{r.resolve(),o(i)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&w1.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let n=0;n<this.languages.length;n++){const o=this.languages[n];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}changeLanguage(e,n){var o=this;this.isLanguageChangingTo=e;const r=_i();this.emit("languageChanging",e);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,c)=>{c?(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,r.resolve(function(){return o.t(...arguments)}),n&&n(l,function(){return o.t(...arguments)})},a=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const c=F(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,u=>{s(u,c)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),r}getFixedT(e,n,o){var r=this;const i=function(s,a){let l;if(typeof a!="object"){for(var c=arguments.length,u=new Array(c>2?c-2:0),m=2;m<c;m++)u[m-2]=arguments[m];l=r.options.overloadTranslationOptionHandler([s,a].concat(u))}else l={...a};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||o||i.keyPrefix);const d=r.options.keySeparator||".";let p;return l.keyPrefix&&Array.isArray(s)?p=s.map(f=>`${l.keyPrefix}${d}${f}`):p=l.keyPrefix?`${l.keyPrefix}${d}${s}`:s,r.t(p,l)};return F(e)?i.lng=e:i.lngs=e,i.ns=n,i.keyPrefix=o,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const o=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const c=this.services.backendConnector.state[`${a}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const a=n.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(o,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(o,e)&&(!r||s(i,e)))}loadNamespaces(e,n){const o=_i();return this.options.ns?(F(e)&&(e=[e]),e.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{o.resolve(),n&&n(r)}),o):(n&&n(),Promise.resolve())}loadLanguages(e,n){const o=_i();F(e)&&(e=[e]);const r=this.options.preload||[],i=e.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return i.length?(this.options.preload=r.concat(i),this.loadResources(s=>{o.resolve(),n&&n(s)}),o):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],o=this.services&&this.services.languageUtils||new b1(k1());return n.indexOf(o.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Yi(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vl;const o=e.forkResourceStore;o&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new Yi(r);return(e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},o&&(i.store=new y1(this.store.data,r),i.services.resourceStore=i.store),i.translator=new bl(i.services,r),i.translator.on("*",function(a){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];i.emit(a,...c)}),i.init(r,n),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const C1=Yi.createInstance();C1.createInstance=Yi.createInstance;var IA=C1;const LA=IA,E1=["af","ar","bg","bn","bs","ca","cs","da","de","de-CH","el","en","eo","es","et","fa","fi","fr","gd","he","hi","hr","hu","id","is","it","ja","ko","kz","lt","mk","mn","ms","ne","nl","nn","no","pl","pt","pt-BR","ro","ru","si","sk","sl","sq","sr","sr-Cyrl","sv","th","tr","uk","ur","uz","vi","zh","zh-Hant","sw","ta"];function N1(t,e){return t.reduce((n,o)=>{let r;try{r=u1("/ghost/i18n/lib")(`../locales/${o}/${e}.json`)}catch{r=u1("/ghost/i18n/lib")(`../locales/en/${e}.json`)}return n[o]={[e]:{...r,...r.default&&typeof r.default=="object"?r.default:{}}},n},{})}hl.exports=(t="en",e="portal")=>{const n=LA.createInstance();let o={};e==="newsletter"&&(o={prefix:"{",suffix:"}"});let r=N1(E1,e);return n.init({lng:t,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:!1,ns:e,defaultNS:e,interpolation:o,resources:r}),n},hl.exports.SUPPORTED_LOCALES=E1,hl.exports.generateResources=N1;var zA=hl.exports,FA=zA;const HA=Ze(FA);function BA({siteUrl:t=window.location.origin,apiUrl:e,apiKey:n}){const o="members/api";function r({type:c,resource:u,params:m=""}){return c==="members"?`${t.replace(/\/$/,"")}/${o}/${u}/${m}`:""}function i({resource:c,params:u=""}){return e&&n?`${e.replace(/\/$/,"")}/${c}/?key=${n}&limit=all${u}`:""}function s({url:c,method:u="GET",headers:m={},credentials:d=void 0,body:p=void 0}){return fetch(c,{method:u,headers:m,credentials:d,body:p})}let a=null;const l={site:{settings(){const c=i({resource:"settings"});return s({url:c,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(u){if(u.ok)return u.json();throw new Error("Failed to fetch site data")})}},member:{identity(){const c=r({type:"members",resource:"session"});return s({url:c,credentials:"same-origin"}).then(function(u){return!u.ok||u.status===204?null:u.text()})},sessionData(){const c=r({type:"members",resource:"member"});return s({url:c,credentials:"same-origin"}).then(function(u){return!u.ok||u.status===204?null:u.json()})},update({name:c,expertise:u}){const m=r({type:"members",resource:"member"});return s({url:m,method:"PUT",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({name:c,expertise:u})}).then(function(p){return p.ok?p.json():null})}},comments:{async count({postId:c}){const u=c?`?ids=${c}`:"",m=r({type:"members",resource:"comments/counts",params:u}),p=await(await s({url:m,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"})).json();return c?p[c]:p},browse({page:c,postId:u,order:m}){let d=null;a&&!m&&(d=`created_at:<=${a}`);const p=new URLSearchParams;p.set("limit","20"),d&&p.set("filter",d),p.set("page",c.toString()),m&&p.set("order",m);const f=r({type:"members",resource:`comments/post/${u}`,params:`?${p.toString()}`}),y=s({url:f,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"}).then(function(h){if(h.ok)return h.json();throw new Error("Failed to fetch comments")});return a||y.then(h=>{const g=h.comments[0];g&&(a=g.created_at)}),y},async replies({commentId:c,afterReplyId:u,limit:m}){const d=encodeURIComponent(`id:>'${u}'`),p=r({type:"members",resource:`comments/${c}/replies`,params:`?limit=${m??5}&filter=${d}`}),f=await s({url:p,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"});if(f.ok)return f.json();throw new Error("Failed to fetch replies")},add({comment:c}){const u={comments:[c]},m=r({type:"members",resource:"comments"});return s({url:m,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)}).then(function(d){if(d.ok)return d.json();throw new Error("Failed to add comment")})},edit({comment:c}){const u={comments:[c]},m=r({type:"members",resource:`comments/${c.id}`});return s({url:m,method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)}).then(function(d){if(d.ok)return d.json();throw new Error("Failed to edit comment")})},read(c){const u=r({type:"members",resource:`comments/${c}`});return s({url:u,method:"GET",credentials:"same-origin"}).then(function(m){if(m.ok)return m.json();throw new Error("Failed to read comment")})},like({comment:c}){const u=r({type:"members",resource:`comments/${c.id}/like`});return s({url:u,method:"POST",headers:{"Content-Type":"application/json"}}).then(function(m){if(m.ok)return"Success";throw new Error("Failed to like comment")})},unlike({comment:c}){const u={comments:[c]},m=r({type:"members",resource:`comments/${c.id}/like`});return s({url:m,method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)}).then(function(d){if(d.ok)return"Success";throw new Error("Failed to unlike comment")})},report({comment:c}){const u=r({type:"members",resource:`comments/${c.id}/report`});return s({url:u,method:"POST",headers:{"Content-Type":"application/json"}}).then(function(m){if(m.ok)return"Success";throw new Error("Failed to report comment")})}},init:()=>{}};return l.init=async()=>{const[c]=await Promise.all([l.member.sessionData()]);let u={};try{const m=await l.site.settings();m.settings.labs&&Object.assign(u,m.settings.labs)}catch{u={}}return{member:c,labs:u}},l}async function VA({state:t,api:e,options:n,order:o}){let r=1;t.pagination&&t.pagination.page&&(r=t.pagination.page+1);let i;return t.admin&&t.adminApi&&t.labs.commentImprovements?i=await t.adminApi.browse({page:r,postId:n.postId,order:o||t.order}):i=await e.comments.browse({page:r,postId:n.postId,order:o||t.order}),{comments:[...t.comments,...i.comments],pagination:i.meta.pagination}}async function UA({state:t,data:{order:e},options:n,api:o}){let r;return t.admin&&t.adminApi&&t.labs.commentImprovements&&(r=await t.adminApi.browse({page:1,postId:n.postId,order:e})),r=await o.comments.browse({page:1,postId:n.postId,order:e}),{comments:[...r.comments],pagination:r.meta.pagination,order:e}}async function A1({state:t,api:e,data:{comment:n,limit:o},isReply:r}){var s,a;let i;return t.admin&&t.adminApi&&t.labs.commentImprovements&&!r?i=await t.adminApi.replies({commentId:n.id,afterReplyId:(s=n.replies[n.replies.length-1])==null?void 0:s.id,limit:o}):i=await e.comments.replies({commentId:n.id,afterReplyId:(a=n.replies[n.replies.length-1])==null?void 0:a.id,limit:o}),{comments:t.comments.map(l=>l.id===n.id?{...n,replies:[...n.replies,...i.comments]}:l)}}async function _A({state:t,api:e,data:n}){return n=(await e.comments.add({comment:n})).comments[0],{comments:[n,...t.comments],commentCount:t.commentCount+1}}async function JA({state:t,api:e,data:{reply:n,parent:o}}){let r=n;return r.parent_id=o.id,r=(await e.comments.add({comment:r})).comments[0],{comments:t.comments.map(s=>s.id===o.id?{...o,replies:[...o.replies,r],count:{...o.count,replies:o.count.replies+1}}:s),commentCount:t.commentCount+1}}async function YA({state:t,data:e}){return t.admin&&t.adminApi&&t.labs.commentImprovements&&await t.adminApi.hideComment(e.id),{comments:t.comments.map(n=>{const o=n.replies.map(r=>r.id===e.id?{...r,status:"hidden"}:r);return n.id===e.id?{...n,status:"hidden",replies:o}:{...n,replies:o}}),commentCount:t.commentCount-1}}async function KA({state:t,api:e,data:n}){t.admin&&t.adminApi&&t.labs.commentImprovements&&await t.adminApi.read({commentId:n.id});const r=(await e.comments.read(n.id)).comments[0];return{comments:t.comments.map(i=>{const s=i.replies.map(a=>a.id===n.id?r:a);return i.id===n.id?r:{...i,replies:s}}),commentCount:t.commentCount+1}}async function WA({state:t,api:e,data:n}){return await e.comments.like({comment:n}),{comments:t.comments.map(o=>{const r=o.replies.map(i=>i.id===n.id?{...i,liked:!0,count:{...i.count,likes:i.count.likes+1}}:i);return o.id===n.id?{...o,liked:!0,replies:r,count:{...o.count,likes:o.count.likes+1}}:{...o,replies:r}})}}async function qA({api:t,data:e}){return await t.comments.report({comment:e}),{}}async function GA({state:t,api:e,data:n}){return await e.comments.unlike({comment:n}),{comments:t.comments.map(o=>{const r=o.replies.map(i=>i.id===n.id?{...i,liked:!1,count:{...i.count,likes:i.count.likes-1}}:i);return o.id===n.id?{...o,liked:!1,replies:r,count:{...o.count,likes:o.count.likes-1}}:{...o,replies:r}})}}async function QA({state:t,api:e,data:n}){return await e.comments.edit({comment:{id:n.id,status:"deleted"}}),{comments:t.comments.map(o=>{const r=o.replies.map(i=>i.id===n.id?{...i,status:"deleted"}:i);return o.id===n.id?{...o,status:"deleted",replies:r}:{...o,replies:r}}),commentCount:t.commentCount-1}}async function ZA({state:t,api:e,data:{comment:n,parent:o}}){return n=(await e.comments.edit({comment:n})).comments[0],{comments:t.comments.map(i=>o&&o.id===i.id?{...i,replies:i.replies.map(s=>s.id===n.id?n:s)}:i.id===n.id?n:i)}}async function XA({data:t,state:e,api:n}){var l,c;const{name:o,expertise:r}=t,i={},s=(l=e==null?void 0:e.member)==null?void 0:l.name;o&&s!==o&&(i.name=o);const a=(c=e==null?void 0:e.member)==null?void 0:c.expertise;if(r!==void 0&&a!==r&&(i.expertise=r),Object.keys(i).length>0)try{const u=await n.member.update(i);if(!u)throw new Error("Failed to update member");return{member:u,success:!0}}catch(u){return{success:!1,error:u}}return null}function e2({data:t}){return{popup:t}}function t2(){return{popup:null}}async function n2({data:t,api:e,state:n}){let o={};const r=t.parent_id||t.id;if(t.type==="reply"&&!n.openCommentForms.some(a=>a.id===r||a.parent_id===r)){const a=n.comments.find(c=>c.id===r),l=await A1({state:n,api:e,data:{comment:a,limit:"all"},isReply:!0});o={...o,...l}}const i=n.openCommentForms.filter(a=>a.hasUnsavedChanges),s=i.findIndex(a=>a.id===t.id);return s>-1?(i[s]=t,{openCommentForms:i,...o}):{openCommentForms:[...i,t],...o}}function o2({data:{id:t,hasUnsavedChanges:e},state:n}){return{openCommentForms:n.openCommentForms.map(r=>r.id===t?{...r,hasUnsavedChanges:e}:{...r})}}function r2({data:t,state:e}){return{openCommentForms:e.openCommentForms.filter(n=>n.id!==t)}}const R1={openPopup:e2,closePopup:t2,closeCommentForm:r2,setCommentFormHasUnsavedChanges:o2},i2={addComment:_A,editComment:ZA,hideComment:YA,deleteComment:QA,showComment:KA,likeComment:WA,unlikeComment:GA,reportComment:qA,addReply:JA,loadMoreComments:VA,loadMoreReplies:A1,updateMember:XA,setOrder:UA,openCommentForm:n2};function s2(t){return!!R1[t]}async function a2({action:t,data:e,state:n,api:o,adminApi:r,options:i}){const s=i2[t];return s?await s({data:e,state:n,api:o,adminApi:r,options:i})||{}:{}}function l2({action:t,data:e,state:n,api:o,adminApi:r,options:i}){const s=R1[t];return s?s({data:e,state:n,api:o,adminApi:r,options:i})||{}:{}}function c2({adminUrl:t}){const e=document.querySelector('iframe[data-frame="admin-auth"]');let n=1;const o={},r=new URL(t).origin;let i=null;window.addEventListener("message",function(l){if(l.origin!==r)return;let c=null;try{c=JSON.parse(l.data)}catch{return}const u=o[c.uid];u&&(delete o[c.uid],u(c.error,c.result))});function s(l,c){return new Promise((u,m)=>{function d(p,f){return p?m(p):u(f)}n+=1,o[n]=d,e.contentWindow.postMessage(JSON.stringify({uid:n,action:l,...c}),r)})}return{async getUser(){const l=await s("getUser");return!l||!l.users?null:l.users[0]},async hideComment(l){return await s("hideComment",{id:l})},async showComment(l){return await s("showComment",{id:l})},async browse({page:l,postId:c,order:u}){let m=null;i&&!u&&(m=`created_at:<=${i}`);const d=new URLSearchParams;d.set("limit","20"),m&&d.set("filter",m),d.set("page",l.toString()),u&&d.set("order",u);const p=await s("browseComments",{postId:c,params:d.toString()});if(!i){const f=p.comments[0];f&&(i=f.created_at)}return p},async replies({commentId:l,afterReplyId:c,limit:u}){const m=`id:>'${c}'`,d=new URLSearchParams;return u&&d.set("limit",u.toString()),m&&d.set("filter",m),await s("getReplies",{commentId:l,params:d.toString()})},async read({commentId:l}){return await s("readComment",{commentId:l})}}}function u2(t){const e=_.useCallback(()=>{const i=t.dataset,s=i.ghostComments||window.location.origin,a=i.key,l=i.api,c=i.admin,u=i.postId||"",m=i.colorScheme,d=i.avatarSaturation?parseInt(i.avatarSaturation):void 0,p=i.accentColor??"#000000",f=i.commentsEnabled,y=i.title==="null"?null:i.title??"",h=i.count==="true",g=i.publication??"";return{locale:i.locale??"en",siteUrl:s,apiKey:a,apiUrl:l,postId:u,adminUrl:c,colorScheme:m,avatarSaturation:d,accentColor:p,commentsEnabled:f,title:y,showCount:h,publication:g}},[t]),n=k.useMemo(()=>e(),[]),[o,r]=_.useState(n);return _.useEffect(()=>{const i=new MutationObserver(s=>{s.some(a=>a.type==="attributes")&&r(e())});return i.observe(t,{attributes:!0}),()=>{i.disconnect()}},[t,e]),o}const d2=({scriptTag:t})=>{const e=u2(t),[n,o]=k.useState({initStatus:"running",member:null,admin:null,comments:[],pagination:null,commentCount:0,openCommentForms:[],popup:null,labs:{},order:"count__likes desc, created_at desc",adminApi:null}),r=_.createRef(),i=_.useMemo(()=>BA({siteUrl:e.siteUrl,apiUrl:e.apiUrl,apiKey:e.apiKey}),[e]),s=k.useCallback(f=>{o(y=>(typeof f=="function"&&(f=f(y)),{...y,...f}))},[o]),a=k.useCallback(async(f,y)=>{if(s2(f)){s(h=>l2({action:f,data:y,state:h,api:i,adminApi:h.adminApi,options:e}));return}return new Promise(h=>{s(g=>(a2({action:f,data:y,state:g,api:i,adminApi:g.adminApi,options:e}).then(S=>{const b={...S};h(b),s(b)}).catch(console.error),{}))})},[i,e]),l=k.useMemo(()=>HA(e.locale,"comments"),[e.locale]),c={...e,...n,t:l.t,dispatchAction:a,openFormCount:k.useMemo(()=>n.openCommentForms.length,[n.openCommentForms])},u=async()=>{if(!(n.adminApi||!e.adminUrl))try{const f=c2({adminUrl:e.adminUrl});let y=null;try{if(y=await f.getUser(),y&&n.labs.commentImprovements){const h=await f.browse({page:1,postId:e.postId,order:n.order});s({...n,adminApi:f,comments:h.comments,pagination:h.meta.pagination,commentCount:h.meta.pagination.total})}}catch(h){console.warn("[Comments] Failed to fetch current admin user:",h)}s({adminApi:f,admin:y})}catch(f){console.error("[Comments] Failed to initialize admin authentication:",f)}},m=async f=>{let y;f!=null&&f.commentImprovements?y=i.comments.browse({page:1,postId:e.postId,order:n.order}):y=i.comments.browse({page:1,postId:e.postId});const h=i.comments.count({postId:e.postId}),[g,S]=await Promise.all([y,h]);return{comments:g.comments,pagination:g.meta.pagination,count:S}},d=async()=>{try{const{member:f,labs:y}=await i.init(),{comments:h,pagination:g,count:S}=await m(y),b=y.commentImprovements?"count__likes desc, created_at desc":"created_at desc";s({member:f,initStatus:"success",comments:h,pagination:g,commentCount:S,order:b,labs:y})}catch(f){console.error("[Comments] Failed to initialize:",f),s({initStatus:"failed"})}};k.useEffect(()=>{const f=new IntersectionObserver(y=>{y.forEach(h=>{h.isIntersecting&&(d(),r.current&&f.unobserve(r.current))})},{root:null,rootMargin:"0px",threshold:.1});return r.current&&f.observe(r.current),()=>{r.current&&f.unobserve(r.current)}},[r.current]);const p=n.initStatus==="success";return w.jsxs(Al.Provider,{value:c,children:[w.jsx(ZE,{ref:r,children:w.jsx(KE,{done:p})}),n.comments.length>0?w.jsx(_1,{adminUrl:e.adminUrl,onLoad:u}):null,w.jsx(sN,{})]})};function m2(){let t=document.currentScript;if(!t)throw new Error("[Comments-UI] Cannot find current script tag");return t}function f2(t){if(t.previousElementSibling&&t.previousElementSibling.id===fl)return t.previousElementSibling;if(!t.parentElement)throw new Error("[Comments-UI] Script tag does not have a parent element");const e=document.createElement("div");return e.id=fl,t.parentElement.insertBefore(e,t),e}function p2(){const t=new URL(window.location.href);t.searchParams.get("token")&&(t.searchParams.delete("token"),window.history.replaceState({},document.title,t.href))}function h2(){const t=m2(),e=f2(t);try{p2(),g0.render(w.jsx(_.StrictMode,{children:w.jsx(d2,{scriptTag:t})}),e)}catch(n){console.error(n)}}h2()});
|
|
155
|
+
3. "-" cannot repeat`);oe.customSchemes.push([t,e])}function mE(){oe.scanner=oE(oe.customSchemes);for(let t=0;t<oe.tokenQueue.length;t++)oe.tokenQueue[t][1]({scanner:oe.scanner});oe.parser=aE(oe.scanner.tokens);for(let t=0;t<oe.pluginQueue.length;t++)oe.pluginQueue[t][1]({scanner:oe.scanner,parser:oe.parser});oe.initialized=!0}function K0(t){return oe.initialized||mE(),lE(oe.parser.start,t,rE(oe.scanner.start,t))}function W0(t,e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const o=new am(n),r=K0(t),i=[];for(let s=0;s<r.length;s++){const a=r[s];a.isLink&&(!e||a.t===e)&&i.push(a.toFormattedObject(o))}return i}function fE(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function pE(t){return new Ve({key:new pt("autolink"),appendTransaction:(e,n,o)=>{const r=e.some(c=>c.docChanged)&&!n.doc.eq(o.doc),i=e.some(c=>c.getMeta("preventAutolink"));if(!r||i)return;const{tr:s}=o,a=kx(n.doc,[...e]);if(Mx(a).forEach(({newRange:c})=>{const u=Cx(o.doc,c,p=>p.isTextblock);let m,d;if(u.length>1?(m=u[0],d=o.doc.textBetween(m.pos,m.pos+m.node.nodeSize,void 0," ")):u.length&&o.doc.textBetween(c.from,c.to," "," ").endsWith(" ")&&(m=u[0],d=o.doc.textBetween(m.pos,c.to,void 0," ")),m&&d){const p=d.split(" ").filter(g=>g!=="");if(p.length<=0)return!1;const f=p[p.length-1],y=m.pos+d.lastIndexOf(f);if(!f)return!1;const h=K0(f).map(g=>g.toObject(t.defaultProtocol));if(!fE(h))return!1;h.filter(g=>g.isLink).map(g=>({...g,from:y+g.start+1,to:y+g.end+1})).filter(g=>o.schema.marks.code?!o.doc.rangeHasMark(g.from,g.to,o.schema.marks.code):!0).filter(g=>t.validate(g.value)).forEach(g=>{xh(g.from,g.to,o.doc).some(b=>b.mark.type===t.type)||s.addMark(g.from,g.to,t.type.create({href:g.href}))})}}),!!s.steps.length)return s}})}function hE(t){return new Ve({key:new pt("handleClickLink"),props:{handleClick:(e,n,o)=>{var r,i;if(o.button!==0||!e.editable)return!1;let s=o.target;const a=[];for(;s.nodeName!=="DIV";)a.push(s),s=s.parentNode;if(!a.find(d=>d.nodeName==="A"))return!1;const l=Sh(e.state,t.type.name),c=o.target,u=(r=c==null?void 0:c.href)!==null&&r!==void 0?r:l.href,m=(i=c==null?void 0:c.target)!==null&&i!==void 0?i:l.target;return c&&u?(window.open(u,m),!0):!1}}})}function gE(t){return new Ve({key:new pt("handlePasteLink"),props:{handlePaste:(e,n,o)=>{const{state:r}=e,{selection:i}=r,{empty:s}=i;if(s)return!1;let a="";o.content.forEach(c=>{a+=c.textContent});const l=W0(a,{defaultProtocol:t.defaultProtocol}).find(c=>c.isLink&&c.value===a);return!a||!l?!1:(t.editor.commands.setMark(t.type,{href:l.href}),!0)}}})}const yE=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function q0(t,e){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(o=>{const r=typeof o=="string"?o:o.scheme;r&&n.push(r)}),!t||t.replace(yE,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`,"i"))}const wE=Hr.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.protocols.forEach(t=>{if(typeof t=="string"){Y0(t);return}Y0(t.scheme,t.optionalSlashes)})},onDestroy(){dE()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:t=>!!t}},addAttributes(){return{href:{default:null,parseHTML(t){return t.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href");return!e||!q0(e,this.options.protocols)?!1:null}}]},renderHTML({HTMLAttributes:t}){return q0(t.href,this.options.protocols)?["a",Mo(this.options.HTMLAttributes,t),0]:["a",Mo(this.options.HTMLAttributes,{...t,href:""}),0]},addCommands(){return{setLink:t=>({chain:e})=>e().setMark(this.name,t).setMeta("preventAutolink",!0).run(),toggleLink:t=>({chain:e})=>e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[tk({find:t=>{const e=[];if(t){const{validate:n}=this.options,o=W0(t).filter(r=>r.isLink&&n(r.value));o.length&&o.forEach(r=>e.push({text:r.value,data:{href:r.href},index:r.start}))}return e},type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[];return this.options.autolink&&t.push(pE({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:this.options.validate})),this.options.openOnClick===!0&&t.push(hE({type:this.type})),this.options.linkOnPaste&&t.push(gE({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),t}}),bE=cn.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Mo(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),vE=rt.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new Ve({key:new pt("placeholder"),props:{decorations:({doc:t,selection:e})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:o}=e,r=[];if(!n)return null;const i=this.editor.isEmpty;return t.descendants((s,a)=>{const l=o>=a&&o<=a+s.nodeSize,c=!s.isLeaf&&js(s);if((l||!this.options.showOnlyCurrent)&&c){const u=[this.options.emptyNodeClass];i&&u.push(this.options.emptyEditorClass);const m=ot.node(a,a+s.nodeSize,{class:u.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:s,pos:a,hasAnchor:l}):this.options.placeholder});r.push(m)}return this.options.includeChildren}),me.create(t,r)}}})]}}),SE=cn.create({name:"text",group:"inline"});function cm({placeholder:t,autofocus:e=!1,content:n=""}){return{extensions:[KC,SE,bE,wE.configure({openOnClick:!1}),vE.configure({placeholder:t,showOnlyWhenEditable:!1}),YC.configure({}),WC.configure({})],content:n,autofocus:e,editorProps:{attributes:{class:"gh-comment-content focus:outline-0","data-testid":"editor"}},parseOptions:{preserveWhitespace:"full"}}}const xE=({comment:t,openForm:e,parent:n})=>{const{dispatchAction:o,t:r}=B(),i={placeholder:r("Edit this comment"),autofocus:!1,content:t.html},s=Pd({...cm(i)});k.useEffect(()=>{s&&s.chain().focus().command(({tr:c,commands:u})=>u.setTextSelection({from:c.doc.content.size,to:c.doc.content.size})).run()},[s]);const a=k.useCallback(async({html:c})=>{await o("editComment",{comment:{id:t.id,html:c},parent:n})},[n,t,o]),l=k.useCallback(()=>{o("closeCommentForm",e.id)},[o,e]);return w.jsx("div",{className:"px-2 pb-2 pt-3",children:w.jsx("div",{className:"mt-[-16px] pr-3",children:w.jsx(_d,{close:l,comment:t,editor:s,isOpen:!0,openForm:e,reduced:Ol(),submit:a,submitSize:"small",submitText:r("Save")})})})},G0=t=>k.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"black",...t},k.createElement("path",{d:"M8.00025 13.8739L2.46073 8.09636C1.97388 7.60989 1.65255 6.98248 1.54231 6.30312C1.43208 5.62376 1.53853 4.92694 1.84658 4.31148V4.31148C2.07887 3.84703 2.41819 3.44443 2.83659 3.13684C3.25499 2.82925 3.74049 2.62547 4.25308 2.54231C4.76567 2.45914 5.29069 2.49896 5.78488 2.65849C6.27906 2.81802 6.72827 3.09269 7.09549 3.45987L8.00025 4.36406L8.90502 3.45987C9.27224 3.09269 9.72145 2.81802 10.2156 2.65849C10.7098 2.49896 11.2348 2.45914 11.7474 2.54231C12.26 2.62547 12.7455 2.82925 13.1639 3.13684C13.5823 3.44443 13.9216 3.84703 14.1539 4.31148C14.4616 4.9267 14.5678 5.62311 14.4577 6.30208C14.3476 6.98105 14.0267 7.60817 13.5404 8.09462L8.00025 13.8739Z",strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round"})),Q0=({comment:t})=>{const{dispatchAction:e,member:n,commentsEnabled:o}=B(),r=Xe(),[i,s]=k.useState(""),a=o==="paid",l=n&&!!n.paid,c=n&&(l||!a),u=()=>{if(!c&&r&&r.commentImprovements){e("openPopup",{type:"ctaPopup"});return}else if(!c)return;t.liked?e("unlikeComment",t):(e("likeComment",t),s("animate-heartbeat"),setTimeout(()=>{s("")},400))},m=c?"button":"span";let d="cursor-pointer";return c||(d="cursor-text"),r&&r.commentImprovements?w.jsxs("button",{className:`duration-50 group flex cursor-pointer items-center font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${t.liked?"text-black/90 dark:text-white/90":"text-black/50 hover:text-black/75 dark:text-white/60 dark:hover:text-white/75"}`,"data-testid":"like-button",type:"button",onClick:u,children:[w.jsx(G0,{className:i+` mr-[6px] ${t.liked?"fill-black dark:fill-white stroke-black dark:stroke-white":"stroke-black/50 group-hover:stroke-black/75 dark:stroke-white/60 dark:group-hover:stroke-white/75"} ${!t.liked&&c&&"group-hover:stroke-black/75 dark:group-hover:stroke-white/75"} transition duration-50 ease-linear`}),t.count.likes]}):w.jsxs(m,{className:`duration-50 group flex items-center font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${t.liked?"text-black/90 dark:text-white/90":"text-black/50 hover:text-black/75 dark:text-white/60 dark:hover:text-white/75"} ${d}`,"data-testid":"like-button",type:"button",onClick:u,children:[w.jsx(G0,{className:i+` mr-[6px] ${t.liked?"fill-black dark:fill-white stroke-black dark:stroke-white":"stroke-black/50 group-hover:stroke-black/75 dark:stroke-white/60 dark:group-hover:stroke-white/75"} ${!t.liked&&c&&"group-hover:stroke-black/75 dark:group-hover:stroke-white/75"} transition duration-50 ease-linear`}),t.count.likes]})},Z0=({comment:t,close:e})=>{const{dispatchAction:n,t:o}=B(),r=()=>{n("hideComment",t),e()},i=()=>{n("showComment",t),e()},s=t.status!=="published";return w.jsx("div",{className:"flex w-full flex-col gap-0.5",children:s?w.jsxs("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700",type:"button",onClick:i,children:[w.jsx("span",{className:"hidden sm:inline",children:o("Show comment")}),w.jsx("span",{className:"sm:hidden",children:o("Show")})]}):w.jsxs("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] text-red-600 transition-colors hover:bg-neutral-100 dark:text-red-500 dark:hover:bg-neutral-700",type:"button",onClick:r,children:[w.jsx("span",{className:"hidden sm:inline",children:o("Hide comment")}),w.jsx("span",{className:"sm:hidden",children:o("Hide")})]})})},kE=({comment:t,close:e,toggleEdit:n})=>{const{dispatchAction:o,t:r}=B(),i=Xe(),s=()=>{i.commentImprovements?o("openPopup",{type:"deletePopup",comment:t}):o("deleteComment",t),e()};return w.jsxs("div",{className:"flex w-full flex-col gap-0.5",children:[w.jsx("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700","data-testid":"edit",type:"button",onClick:n,children:r("Edit")}),w.jsx("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] text-red-600 transition-colors hover:bg-neutral-100 dark:text-red-500 dark:hover:bg-neutral-700",type:"button",onClick:s,children:r("Delete")})]})},$E=({comment:t,close:e})=>{const{dispatchAction:n,t:o}=B(),r=()=>{n("openPopup",{type:"reportPopup",comment:t}),e()};return w.jsx("div",{className:"flex w-full flex-col gap-0.5",children:w.jsxs("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700",type:"button",onClick:r,children:[w.jsx("span",{className:"hidden sm:inline",children:o("Report comment")}),w.jsx("span",{className:"sm:hidden",children:o("Report")})]})})},CE=({comment:t,close:e,toggleEdit:n,isLastComment:o})=>{var d;const{member:r,admin:i}=B(),s=r&&((d=t.member)==null?void 0:d.uuid)===(r==null?void 0:r.uuid),a=!!i,l=k.useRef(null),c=Xe();k.useEffect(()=>{var y,h;const p=()=>{e()};window.addEventListener("click",p,{passive:!0});const f=(h=(y=l.current)==null?void 0:y.ownerDocument)==null?void 0:h.defaultView;return f&&f!==window&&f.addEventListener("click",p,{passive:!0}),()=>{window.removeEventListener("click",p,{passive:!0}),f&&f!==window&&f.removeEventListener("click",p,{passive:!0})}},[e]),k.useEffect(()=>{const p=f=>{f.key==="Escape"&&e()};return window.addEventListener("keydown",p,{passive:!0}),()=>{window.removeEventListener("keydown",p,{passive:!0})}},[e]);const u=p=>{p.stopPropagation()};let m=null;if(t.status==="published")s?m=w.jsx(kE,{close:e,comment:t,toggleEdit:n}):a?m=w.jsx(Z0,{close:e,comment:t}):m=w.jsx($E,{close:e,comment:t});else if(a)m=w.jsx(Z0,{close:e,comment:t});else return null;return c.commentImprovements?w.jsx("div",{ref:l,className:"relative",onClick:u,children:w.jsx("div",{className:`absolute z-10 min-w-min whitespace-nowrap rounded bg-white p-1 font-sans text-sm shadow-lg outline-0 sm:min-w-[80px] dark:bg-neutral-800 dark:text-white ${o?"bottom-full mb-6":"top-0"}`,children:m})}):w.jsx("div",{ref:l,onClick:u,children:w.jsx("div",{className:"absolute z-10 min-w-min whitespace-nowrap rounded bg-white p-1 font-sans text-sm shadow-lg outline-0 sm:min-w-[80px] dark:bg-neutral-800 dark:text-white",children:m})})},EE=t=>k.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},k.createElement("path",{d:"M3 12C3.82843 12 4.5 11.3284 4.5 10.5C4.5 9.67157 3.82843 9 3 9C2.17157 9 1.5 9.67157 1.5 10.5C1.5 11.3284 2.17157 12 3 12Z"}),k.createElement("path",{d:"M8 12C8.82843 12 9.5 11.3284 9.5 10.5C9.5 9.67157 8.82843 9 8 9C7.17157 9 6.5 9.67157 6.5 10.5C6.5 11.3284 7.17157 12 8 12Z"}),k.createElement("path",{d:"M13 12C13.8284 12 14.5 11.3284 14.5 10.5C14.5 9.67157 13.8284 9 13 9C12.1716 9 11.5 9.67157 11.5 10.5C11.5 11.3284 12.1716 12 13 12Z"})),fl=({comment:t,toggleEdit:e})=>{var p;const[n,o]=k.useState(!1),{member:r,admin:i,pagination:s,comments:a}=B(),l=!!i,c=()=>{o(f=>!f)},u=()=>{o(!1)},m=(!s||s.total<=s.page*s.limit)&&((p=a[a.length-1])==null?void 0:p.id)===t.id;return!!r&&t.status==="published"||l?w.jsxs("div",{"data-testid":"more-button",children:[w.jsx("button",{className:"outline-0",type:"button",onClick:c,children:w.jsx(EE,{className:`duration-50 gh-comments-icon gh-comments-icon-more outline-0 transition ease-linear hover:fill-black/75 dark:hover:fill-white/75 ${n?"fill-black/75 dark:fill-white/75":"fill-black/50 dark:fill-white/60"}`})}),n?w.jsx(CE,{close:u,comment:t,isLastComment:m,toggleEdit:e}):null]}):null},NE=({loadMore:t,count:e})=>{const{t:n}=B(),o=e===1?n("Show 1 more reply"):n("Show {{amount}} more replies",{amount:Sr(e)}),r=n("{{amount}} more",{amount:Sr(e)});return w.jsx("div",{className:"flex w-full items-center justify-start",children:w.jsx("button",{className:"text-md group mb-10 ml-[48px] flex w-auto items-center px-0 pb-2 pt-0 text-left font-sans font-semibold text-neutral-700 sm:mb-12 dark:text-white ","data-testid":"reply-pagination-button",type:"button",onClick:t,children:w.jsxs("span",{className:"flex h-[40px] w-auto items-center justify-center whitespace-nowrap rounded-[6px] bg-black/5 px-4 py-2 text-center font-sans text-sm font-semibold text-neutral-700 outline-0 transition-all duration-150 hover:bg-black/10 dark:bg-white/15 dark:text-neutral-300 dark:hover:bg-white/20 dark:hover:text-neutral-100",children:["↓ ",w.jsx("span",{className:"ml-1 hidden sm:inline",children:o}),w.jsx("span",{className:"ml-1 inline sm:hidden",children:r})," "]})})})},DE=({comment:t})=>{const{dispatchAction:e}=B(),n=t.count.replies-t.replies.length,o=()=>{e("loadMoreReplies",{comment:t})};return w.jsxs("div",{children:[t.replies.map(r=>w.jsx(um,{comment:r,parent:t},r.id)),n>0&&w.jsx(NE,{count:n,loadMore:o})]})},AE=t=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"black",width:16,height:16,viewBox:"0 0 16 16",...t},k.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.3,d:"M1.333 7.206 6.539 2v3.254c3.645 0 8.461 1.432 8.461 7.81-1.757-2.994-3.58-3.905-8.46-3.905v3.254L1.332 7.206Z"})),X0=({disabled:t,isReplying:e,openReplyForm:n})=>{const{member:o,t:r,dispatchAction:i,commentsEnabled:s}=B(),a=Xe(),l=s==="paid",c=o&&!!o.paid,u=o&&(c||!l),m=()=>{if(!u&&a&&a.commentImprovements){i("openPopup",{type:"ctaPopup"});return}n()};return!o&&!(a!=null&&a.commentImprovements)?null:w.jsxs("button",{className:`duration-50 group flex items-center font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${e?"text-black/90 dark:text-white/90":"text-black/50 hover:text-black/75 dark:text-white/60 dark:hover:text-white/75"}`,"data-testid":"reply-button",disabled:!!t,type:"button",onClick:m,children:[w.jsx(AE,{className:`mr-[6px] ${e?"fill-black dark:fill-white":"stroke-black/50 group-hover:stroke-black/75 dark:stroke-white/60 dark:group-hover:stroke-white/75"} duration-50 transition ease-linear`}),r("Reply")]})},RE=({openForm:t,parent:e})=>{const{postId:n,dispatchAction:o,t:r}=B(),[,i]=HC(Um),s={placeholder:r("Reply to comment"),autofocus:!0},a=Pd({...cm(s)}),l=k.useCallback(async({html:m})=>{await o("addReply",{parent:e,reply:{post_id:n,in_reply_to_id:t.in_reply_to_id,status:"published",html:m}})},[e,n,t,o]),c=k.useCallback(()=>{o("closeCommentForm",t.id)},[o,t]),u=w.jsxs(w.Fragment,{children:[w.jsx("span",{className:"hidden sm:inline",children:r("Add reply")}),w.jsx("span",{className:"sm:hidden",children:r("Reply")})]});return w.jsx("div",{ref:i,children:w.jsx("div",{className:"mt-[-16px] pr-2",children:w.jsx(_d,{close:c,editor:a,isOpen:!0,openForm:t,reduced:Ol(),submit:l,submitSize:"medium",submitText:u})})})},um=({comment:t,parent:e})=>w.jsx(co,{"data-testid":"animated-comment",enter:"transition-opacity duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",id:t.id,leave:"transition-opacity duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:!0,appear:!0,children:w.jsx(OE,{comment:t,parent:e})}),OE=({comment:t,parent:e})=>{const{openCommentForms:n}=B(),o=n.find(i=>i.id===t.id&&i.type==="edit");return o?w.jsx(xE,{comment:t,openForm:o,parent:e}):w.jsx(TE,{comment:t,parent:e})},ME=(t,e,n)=>{const o=t.replies&&t.replies.length>0,r=t.status==="deleted",i=t.status==="hidden";return n!=null&&n.commentImprovements?{showDeletedMessage:r&&o,showHiddenMessage:o&&i&&!e,showCommentContent:!r&&(e||t.status==="published")}:{showDeletedMessage:!1,showHiddenMessage:!1,showCommentContent:t.status==="published"}},TE=({comment:t,parent:e})=>{const{dispatchAction:n,admin:o}=B(),r=Xe(),{showDeletedMessage:i,showHiddenMessage:s,showCommentContent:a}=ME(t,o,r),l=k.useCallback(()=>{const c={id:t.id,type:"edit",hasUnsavedChanges:!1,in_reply_to_id:t.in_reply_to_id,in_reply_to_snippet:t.in_reply_to_snippet};n("openCommentForm",c)},[t.id,n]);return i?w.jsx(e1,{comment:t,openEditMode:l}):a&&!s?w.jsx(jE,{comment:t,openEditMode:l,parent:e}):!r.commentImprovements&&t.status!=="published"||s?w.jsx(e1,{comment:t,openEditMode:l}):null},jE=({comment:t,parent:e,openEditMode:n})=>{const{dispatchAction:o,openCommentForms:r,admin:i}=B(),l=Xe().commentImprovements&&i&&t.status==="hidden"?"opacity-30":"",c=r.find(y=>(y.id===t.id||y.parent_id===t.id)&&y.type==="reply"),u=c&&(!c.parent_id||c.parent_id===t.id),m=!!(c&&c.id===t.id),d=k.useCallback(async()=>{if(c&&c.id===t.id)o("closeCommentForm",c.id);else{const y={};e&&(y.in_reply_to_id=t.id,y.in_reply_to_snippet=ow(t));const h={id:t.id,parent_id:e==null?void 0:e.id,type:"reply",hasUnsavedChanges:!1,...y};await o("openCommentForm",h)}},[t,e,c,o]),p=u||t.replies&&t.replies.length>0,f=w.jsx(Ml,{comment:t});return w.jsxs(o1,{avatar:f,className:l,hasReplies:p,children:[w.jsx(zE,{className:l,comment:t}),w.jsx(FE,{className:l,html:t.html}),w.jsx(HE,{comment:t,highlightReplyButton:m,openEditMode:n,openReplyForm:d,parent:e}),w.jsx(t1,{comment:t}),u&&w.jsx(n1,{comment:t,openForm:c})]})},e1=({comment:t,openEditMode:e})=>{const{openCommentForms:n,t:o,labs:r,admin:i}=B(),s=r.commentImprovements&&i&&t.status!=="deleted"?w.jsx(Ml,{comment:t}):w.jsx(rw,{}),a=t.replies&&t.replies.length>0,l=t.status==="hidden"?o("This comment has been hidden."):t.status==="deleted"?o("This comment has been removed."):"",c=n.find(d=>(d.id===t.id||d.parent_id===t.id)&&d.type==="reply"),u=c&&(!c.parent_id||c.parent_id===t.id),m=i&&t.status==="hidden";return w.jsxs(o1,{avatar:s,hasReplies:a,children:[w.jsx("div",{className:"mt-[-3px] flex items-start",children:w.jsxs("div",{className:"flex h-10 flex-row items-center gap-4 pb-[8px] pr-4",children:[w.jsx("p",{className:"text-md mt-[4px] font-sans leading-normal text-neutral-900/40 sm:text-lg dark:text-white/60",children:l}),m&&w.jsx("div",{className:"mt-[4px]",children:w.jsx(fl,{comment:t,toggleEdit:e})})]})}),w.jsx(t1,{comment:t}),u&&w.jsx(n1,{comment:t,openForm:c})]})},PE=({comment:t})=>{var o;const{member:e}=B(),n=e&&t.member&&t.member.uuid===e.uuid?e.expertise:(o=t==null?void 0:t.member)==null?void 0:o.expertise;return n?w.jsxs("span",{className:"[overflow-wrap:anywhere]",children:[w.jsx("span",{className:"mx-[0.3em] hidden sm:inline-block",children:"·"}),n]}):null},IE=({comment:t})=>{const{t:e}=B();return t.edited_at?w.jsxs("span",{children:[" (",e("edited"),")"]}):null},t1=({comment:t,className:e=""})=>t.replies&&t.replies.length>0?w.jsx("div",{className:`-ml-2 mb-4 mt-7 sm:mb-0 sm:mt-8 ${e}`,children:w.jsx(DE,{comment:t})}):null,n1=({comment:t,openForm:e})=>w.jsx("div",{className:"my-8 sm:my-10",children:w.jsx(RE,{openForm:e,parent:t})}),LE=({comment:t})=>{const{t:e}=B(),n=ew(t,e);return w.jsx("h4",{className:"font-sans text-base font-bold leading-snug text-neutral-900 sm:text-sm dark:text-white/85",children:n})},zE=({comment:t,className:e=""})=>{var c;const{t:n}=B(),o=Xe(),r=VC(t.created_at),{member:i}=B(),s=i&&t.member&&t.member.uuid===i.uuid?i.expertise:(c=t==null?void 0:t.member)==null?void 0:c.expertise,a=o.commentImprovements&&t.in_reply_to_id&&t.in_reply_to_snippet,l=u=>{if(u.preventDefault(),!u.target)return;const m=u.target.ownerDocument.getElementById(t.in_reply_to_id);m&&m.scrollIntoView({behavior:"smooth",block:"center"})};return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:`mt-0.5 flex flex-wrap items-start sm:flex-row ${s?"flex-col":"flex-row"} ${a?"mb-0.5":"mb-2"} ${e}`,children:[w.jsx(LE,{comment:t}),w.jsx("div",{className:"flex items-baseline pr-4 font-sans text-base leading-snug text-neutral-900/50 sm:text-sm dark:text-white/60",children:w.jsxs("span",{children:[w.jsx(PE,{comment:t}),w.jsxs("span",{title:X1(t.created_at),children:[w.jsx("span",{className:"mx-[0.3em]",children:"·"}),r]}),w.jsx(IE,{comment:t})]})})]}),a&&w.jsxs("div",{className:"mb-2 line-clamp-1 font-sans text-base leading-snug text-neutral-900/50 sm:text-sm dark:text-white/60",children:[w.jsx("span",{children:n("Replied to")}),": ",w.jsx("a",{className:"font-semibold text-neutral-900/60 transition-colors hover:text-neutral-900/70 dark:text-white/70 dark:hover:text-white/80","data-testid":"comment-in-reply-to",href:`#${t.in_reply_to_id}`,onClick:l,children:t.in_reply_to_snippet})]})]})},FE=({html:t,className:e=""})=>{const n={__html:t};return w.jsx("div",{className:`mt mb-2 flex flex-row items-center gap-4 pr-4 ${e}`,children:w.jsx("p",{dangerouslySetInnerHTML:n,className:"gh-comment-content text-md text-pretty font-sans leading-normal text-neutral-900 [overflow-wrap:anywhere] sm:text-lg dark:text-white/85","data-testid":"comment-content"})})},HE=({comment:t,openReplyForm:e,highlightReplyButton:n,openEditMode:o,parent:r,className:i=""})=>{const{member:s,commentsEnabled:a,t:l,admin:c}=B(),u=Xe(),m=a==="paid",d=s&&!!s.paid,p=s&&(d||!m)&&(u.commentImprovements?!0:!r);return u.commentImprovements&&c&&t.status==="hidden"?w.jsxs("div",{className:`flex items-center gap-4 ${i}`,children:[w.jsx("span",{className:"font-sans text-base leading-snug text-red-600 sm:text-sm",children:l("Hidden for members")}),w.jsx(fl,{comment:t,toggleEdit:o})]}):u.commentImprovements?w.jsxs("div",{className:`flex items-center gap-4 ${i}`,children:[w.jsx(Q0,{comment:t}),w.jsx(X0,{isReplying:n,openReplyForm:e}),w.jsx(fl,{comment:t,toggleEdit:o})]}):w.jsxs("div",{className:`flex items-center gap-4 ${i}`,children:[w.jsx(Q0,{comment:t}),p&&w.jsx(X0,{isReplying:n,openReplyForm:e}),w.jsx(fl,{comment:t,toggleEdit:o})]})},BE=({hasReplies:t})=>t?w.jsx("div",{className:"mb-2 h-full w-px grow rounded bg-gradient-to-b from-neutral-900/10 via-neutral-900/10 to-transparent dark:from-white/10 dark:via-white/10"}):null,o1=({children:t,avatar:e,hasReplies:n,className:o=""})=>w.jsxs("div",{className:`flex w-full flex-row ${n===!0?"mb-0":"mb-7"}`,"data-testid":"comment-component",children:[w.jsxs("div",{className:"mr-2 flex flex-col items-center justify-start sm:mr-3",children:[w.jsx("div",{className:`flex-0 mb-3 sm:mb-4 ${o}`,children:e}),w.jsx(BE,{hasReplies:n})]}),w.jsx("div",{className:"grow",children:t})]}),VE=({showCount:t,count:e})=>{const{t:n}=B();return t?e===1?w.jsx("div",{className:"text-md text-neutral-900/50 sm:text-lg dark:text-white/50","data-testid":"count",children:n("1 comment")}):w.jsx("div",{className:"text-md text-neutral-900/50 sm:text-lg dark:text-white/50","data-testid":"count",children:n("{{amount}} comments",{amount:Sr(e)})}):null},UE=({title:t})=>{const{t:e}=B();return t===null?w.jsxs(w.Fragment,{children:[w.jsx("span",{className:"sm:hidden",children:e("Discussion")}),w.jsx("span",{className:"hidden sm:inline",children:e("Member discussion")})]}):w.jsx(w.Fragment,{children:t})},r1=({title:t,showCount:e,count:n})=>!t&&!e&&t!==null?null:w.jsxs("div",{className:"mb-7 flex w-full items-baseline justify-between font-sans",children:[w.jsx("h2",{className:"text-[2.2rem] font-bold tracking-tight text-neutral-900 sm:text-2xl dark:text-white","data-testid":"title",children:w.jsx(UE,{title:t})}),w.jsx(VE,{count:n,showCount:e})]}),i1=({commentsCount:t})=>{const{postId:e,dispatchAction:n,t:o}=B(),r={placeholder:o(t===0?"Start the conversation":"Join the discussion"),autofocus:!1},i=Pd({...cm(r)},[t]),s=k.useCallback(async({html:u})=>{await n("addComment",{post_id:e,status:"published",html:u}),i==null||i.commands.clearContent()},[e,n,i]),a=k.useRef(null);k.useEffect(()=>{if(!i)return;const u=m=>{var f;if(!i||m.metaKey||m.ctrlKey)return;let d=document.activeElement;for(;d&&d.tagName==="IFRAME"&&d.contentDocument;)d=((f=d.contentDocument)==null?void 0:f.activeElement)??null;const p=d&&(d.tagName==="INPUT"||d.tagName==="TEXTAREA"||d.tagName==="IFRAME"||d.contentEditable==="true");if(m.key==="c"&&!(i!=null&&i.isFocused)&&!p){i==null||i.commands.focus(),a.current&&Um(a.current);return}};return window.addEventListener("keydown",u,{passive:!0}),()=>{window.removeEventListener("keydown",u,{passive:!0})}},[i]);const l={submitText:w.jsxs(w.Fragment,{children:[w.jsxs("span",{className:"hidden sm:inline",children:[o("Add comment")," "]}),w.jsx("span",{className:"sm:hidden",children:o("Comment")})]}),submitSize:"large",submit:s},c=(i==null?void 0:i.isFocused)??!1;return w.jsx("div",{ref:a,className:"px-3 pb-2 pt-3","data-testid":"main-form",children:w.jsx(_d,{editor:i,isOpen:c,reduced:!1,...l})})},s1=()=>{const{pagination:t,dispatchAction:e,t:n}=B(),o=Xe(),r=()=>{e("loadMoreComments",{})};if(!t)return null;const i=t.total-t.page*t.limit;if(i<=0)return null;const s=o.commentImprovements?i===1?"Load more (1)":`Load more (${Sr(i)})`:i===1?n("Show 1 previous comment"):n("Show {{amount}} previous comments",{amount:Sr(i)});return o.commentImprovements?w.jsx("button",{className:"text-md group mb-10 flex items-center px-0 pb-2 pt-0 text-left font-sans font-semibold text-neutral-700 dark:text-white","data-testid":"pagination-component",type:"button",onClick:r,children:w.jsx("span",{className:"flex h-[40px] items-center justify-center whitespace-nowrap rounded-[6px] bg-black/5 px-4 py-2 text-center font-sans text-sm font-semibold text-neutral-700 outline-0 transition-all duration-150 hover:bg-black/10 dark:bg-white/15 dark:text-neutral-300 dark:hover:bg-white/20 dark:hover:text-neutral-100",children:s})}):w.jsx("button",{className:"text-md group mb-10 flex w-full items-center px-0 pb-2 pt-0 text-left font-sans font-semibold text-neutral-700 dark:text-white","data-testid":"pagination-component",type:"button",onClick:r,children:w.jsxs("span",{className:"flex h-[40px] w-full items-center justify-center whitespace-nowrap rounded-[6px] bg-black/5 px-3 py-2 text-center font-sans text-sm font-semibold text-neutral-700 outline-0 transition-all duration-150 hover:bg-black/10 dark:bg-white/15 dark:text-neutral-300 dark:hover:bg-white/20 dark:hover:text-neutral-100",children:["↑ ",s]})})},pl="ghost-comments-root",_E=t=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},k.createElement("path",{d:"M23.25,7.311,12.53,18.03a.749.749,0,0,1-1.06,0L.75,7.311",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",fillRule:"evenodd"})),JE=()=>{var c;const t=Q1(),[e,n]=k.useState(!1),[o,r]=k.useState("count__likes desc, created_at desc"),i=k.useRef(null),s=[{value:"count__likes desc, created_at desc",label:"Best"},{value:"created_at desc",label:"Newest"},{value:"created_at asc",label:"Oldest"}],a=u=>{r(u),t(u),n(!1)};k.useEffect(()=>{var d,p;const u=()=>{n(!1)};window.addEventListener("click",u,{passive:!0});const m=(p=(d=i.current)==null?void 0:d.ownerDocument)==null?void 0:p.defaultView;return m&&m!==window&&m.addEventListener("click",u,{passive:!0}),()=>{window.removeEventListener("click",u,{passive:!0}),m&&m!==window&&m.removeEventListener("click",u,{passive:!0})}},[]);const l=u=>{u.stopPropagation()};return w.jsxs("div",{ref:i,className:"relative","data-testid":"comments-sorting-form",onClick:l,children:[w.jsxs("button",{className:"flex w-full items-center justify-between gap-2 text-sm font-medium text-neutral-900 focus-visible:outline-none dark:text-neutral-100",type:"button",onClick:()=>n(!e),children:[(c=s.find(u=>u.value===o))==null?void 0:c.label,w.jsx("span",{className:"h-2 w-2 stroke-[3px]",children:w.jsx(_E,{})})]}),e&&w.jsx("div",{className:"absolute -left-4 mt-1.5 w-36 origin-top-right rounded-md bg-white shadow-lg dark:bg-neutral-800",children:w.jsx("div",{"aria-labelledby":"options-menu","aria-orientation":"vertical",className:"py-1","data-testid":"comments-sorting-form-dropdown",role:"menu",children:s.map(u=>w.jsx("button",{className:"block w-full px-4 py-1.5 text-left text-sm text-neutral-600 transition-all hover:text-neutral-900 dark:text-neutral-200 dark:hover:text-white",role:"menuitem",type:"button",onClick:()=>a(u.value),children:u.label},u.value))})})]})},YE=()=>{const t=Xe(),{pagination:e,member:n,comments:o,commentCount:r,commentsEnabled:i,title:s,showCount:a,openFormCount:l,t:c}=B();let u;const m=o;t&&t.commentImprovements?u=m.slice().map(h=>w.jsx(um,{comment:h},h.id)):u=m.slice().reverse().map(h=>w.jsx(um,{comment:h},h.id)),k.useEffect(()=>{const h=document.getElementById(pl);h&&window.location.hash==="#ghost-comments"&&window.scrollY===0&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{h.scrollIntoView()})})},[]);const d=i==="paid",p=n&&!!n.paid,f=(e==null?void 0:e.total)===0,y=l>0;return t.commentImprovements?w.jsxs(w.Fragment,{children:[w.jsx(r1,{count:r,showCount:a,title:s}),w.jsx("div",{children:n&&(p||!d)?w.jsx(i1,{commentsCount:o.length}):w.jsx("section",{className:"flex flex-col items-center py-6 sm:px-8 sm:py-10","data-testid":"cta-box",children:w.jsx(Gi,{isFirst:f,isPaid:d})})}),r>1&&w.jsx("div",{className:"z-20 mb-7 mt-3",children:w.jsxs("span",{className:"flex items-center gap-1.5 text-sm font-medium text-neutral-900 dark:text-neutral-100",children:[c("Sort by"),": ",w.jsx(JE,{})]})}),w.jsx("div",{className:"z-10","data-test":"comment-elements",children:u}),w.jsx(s1,{}),t!=null&&t.testFlag?w.jsx("div",{"data-testid":"this-comes-from-a-flag",style:{display:"none"}}):null]}):w.jsxs(w.Fragment,{children:[w.jsx(r1,{count:r,showCount:a,title:s}),w.jsx(s1,{}),w.jsx("div",{className:e?"":"mt-4","data-test":"comment-elements",children:u}),w.jsx("div",{children:y?null:n?p||!d?w.jsx(i1,{commentsCount:r}):w.jsx("section",{className:`flex flex-col items-center pt-[40px] ${n?"pb-[32px]":"pb-[48px]"} ${!f&&"mt-4"} ${(!n||n&&d)&&r?"border-t":"border-none"} border-[rgba(0,0,0,0.075)] sm:px-8 dark:border-[rgba(255,255,255,0.1)]`,"data-testid":"cta-box",children:w.jsx(Gi,{isFirst:f,isPaid:d})}):w.jsx("section",{className:`flex flex-col items-center pt-[40px] ${n?"pb-[32px]":"pb-[48px]"} ${!f&&"mt-4"} ${(!n||n&&d)&&r?"border-t":"border-none"} border-[rgba(0,0,0,0.075)] sm:px-8 dark:border-[rgba(255,255,255,0.1)]`,"data-testid":"cta-box",children:w.jsx(Gi,{isFirst:f,isPaid:d})})}),t!=null&&t.testFlag?w.jsx("div",{"data-testid":"this-comes-from-a-flag",style:{display:"none"}}):null]})};function KE(){return w.jsx("div",{className:"flex h-32 w-full items-center justify-center","data-testid":"loading",children:w.jsx(Fa,{className:"mb-6 h-12 w-12 fill-white/90 dark:fill-white/60"})})}const WE=({done:t})=>{const e=(l,c,u)=>{const m=[l,c,u].map(function(d){return d/=255,d<=.03928?d/12.92:Math.pow((d+.055)/1.055,2.4)});return m[0]*.2126+m[1]*.7152+m[2]*.0722},n=(l,c)=>{const u=e(l[0],l[1],l[2]),m=e(c[0],c[1],c[2]),d=Math.max(u,m),p=Math.min(u,m);return(d+.05)/(p+.05)},{accentColor:o,colorScheme:r}=B(),s=(()=>{if(r==="light")return!1;if(r==="dark")return!0;{const l=document.getElementById(pl);if(!l||!l.parentElement)return!1;const c=getComputedStyle(l.parentElement).getPropertyValue("color"),u=c.substring(c.indexOf("(")+1,c.lastIndexOf(")")).split(/,\s*/),m=parseInt(u[0]),d=parseInt(u[1]),p=parseInt(u[2]);return n([255,255,255],[m,d,p])<5}})()?"dark":"",a={"--gh-accent-color":o??"black",paddingTop:0,paddingBottom:24};return w.jsx("section",{className:"ghost-display "+s,"data-loaded":t,"data-testid":"content-box",style:a,children:t?w.jsx(YE,{}):w.jsx(KE,{})})};class qE extends k.Component{constructor(n){super(n);wr(this,"node");wr(this,"iframeHtml");wr(this,"iframeHead");wr(this,"iframeRoot");wr(this,"handleLoad",()=>{this.setupFrameBaseStyle()});this.setNode=this.setNode.bind(this),this.node=null}componentDidMount(){this.node.addEventListener("load",this.handleLoad)}componentWillUnmount(){this.node.removeEventListener("load",this.handleLoad)}setupFrameBaseStyle(){var n,o;this.node.contentDocument&&(this.iframeHtml=this.node.contentDocument.documentElement,this.iframeHead=this.node.contentDocument.head,this.iframeRoot=this.node.contentDocument.body,this.forceUpdate(),this.props.onResize&&((o=(n=new ResizeObserver(r=>{window.requestAnimationFrame(()=>{this.props.onResize(this.iframeRoot)})}))==null?void 0:n.observe)==null||o.call(n,this.iframeRoot)),this.node.contentWindow.addEventListener("keydown",r=>{window.dispatchEvent(new KeyboardEvent("keydown",r))}))}setNode(n){this.node=n,this.props.innerRef&&(this.props.innerRef.current=n)}render(){const{children:n,head:o,title:r="",style:i={},...s}=this.props;return w.jsxs("iframe",{srcDoc:"<!DOCTYPE html>",...s,ref:this.setNode,frameBorder:"0",style:i,title:r,children:[this.iframeHead&&Rd.createPortal(o,this.iframeHead),this.iframeRoot&&Rd.createPortal(n,this.iframeRoot)]})}}const GE=k.forwardRef(function(e,n){return w.jsx(qE,{...e,innerRef:n})}),QE=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-left-4{left:-1.6rem}.bottom-1{bottom:.4rem}.bottom-full{bottom:100%}.left-0{left:0px}.right-1{right:.4rem}.right-6{right:2.4rem}.top-0{top:0px}.top-1{top:.4rem}.top-5{top:2rem}.z-10{z-index:10}.z-20{z-index:20}.-mx-2{margin-left:-.8rem;margin-right:-.8rem}.mx-\\[0\\.3em\\]{margin-left:.3em;margin-right:.3em}.my-8{margin-top:3.2rem;margin-bottom:3.2rem}.-ml-2{margin-left:-.8rem}.mb-0{margin-bottom:0}.mb-0\\.5{margin-bottom:.2rem}.mb-1{margin-bottom:.4rem}.mb-1\\.5{margin-bottom:.6rem}.mb-10{margin-bottom:4rem}.mb-2{margin-bottom:.8rem}.mb-3{margin-bottom:1.2rem}.mb-4{margin-bottom:1.6rem}.mb-6{margin-bottom:2.4rem}.mb-7{margin-bottom:2.8rem}.mb-\\[12px\\]{margin-bottom:12px}.mb-\\[28px\\]{margin-bottom:28px}.mb-\\[8px\\]{margin-bottom:8px}.ml-1{margin-left:.4rem}.ml-2\\.5{margin-left:1rem}.ml-\\[48px\\]{margin-left:48px}.mr-1{margin-right:.4rem}.mr-2{margin-right:.8rem}.mr-\\[6px\\]{margin-right:6px}.mt-0\\.5{margin-top:.2rem}.mt-1\\.5{margin-top:.6rem}.mt-10{margin-top:4rem}.mt-3{margin-top:1.2rem}.mt-4{margin-top:1.6rem}.mt-6{margin-top:2.4rem}.mt-7{margin-top:2.8rem}.mt-8{margin-top:3.2rem}.mt-\\[-10px\\]{margin-top:-10px}.mt-\\[-16px\\]{margin-top:-16px}.mt-\\[-1px\\]{margin-top:-1px}.mt-\\[-3px\\]{margin-top:-3px}.mt-\\[4px\\]{margin-top:4px}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.contents{display:contents}.hidden{display:none}.h-10{height:4rem}.h-11{height:4.4rem}.h-12{height:4.8rem}.h-2{height:.8rem}.h-32{height:12.8rem}.h-5{height:2rem}.h-8{height:3.2rem}.h-\\[12px\\]{height:12px}.h-\\[16px\\]{height:16px}.h-\\[24px\\]{height:24px}.h-\\[40px\\]{height:40px}.h-\\[42px\\]{height:42px}.h-\\[44px\\]{height:44px}.h-full{height:100%}.h-screen{height:100vh}.min-h-\\[120px\\]{min-height:120px}.w-10{width:4rem}.w-12{width:4.8rem}.w-2{width:.8rem}.w-36{width:14.4rem}.w-5{width:2rem}.w-8{width:3.2rem}.w-\\[12px\\]{width:12px}.w-\\[16px\\]{width:16px}.w-\\[24px\\]{width:24px}.w-\\[50\\%\\]{width:50%}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.min-w-min{min-width:min-content}.grow{flex-grow:1}.grow-0{flex-grow:0}.origin-top-right{transform-origin:top right}.-translate-x-2{--tw-translate-x: -.8rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[-6px\\]{--tw-translate-x: -6px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-2{--tw-translate-y: .8rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y: 1.6rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes heartbeat{0%,to{transform:scale(1)}50%{transform:scale(1.3)}}.animate-heartbeat{animation:heartbeat .35s ease-in-out forwards}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\\.5{gap:.2rem}.gap-1\\.5{gap:.6rem}.gap-2{gap:.8rem}.gap-3{gap:1.2rem}.gap-4{gap:1.6rem}.gap-9{gap:3.6rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.6rem * var(--tw-space-x-reverse));margin-left:calc(1.6rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.text-pretty{text-wrap:pretty}.rounded{border-radius:.4rem}.rounded-\\[6px\\]{border-radius:6px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.8rem}.rounded-md{border-radius:.6rem}.border{border-width:1px}.border-2{border-width:2px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-\\[rgba\\(0\\,0\\,0\\,0\\.075\\)\\]{border-color:#00000013}.border-black\\/10{border-color:#0000001a}.border-neutral-200{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.bg-\\[var\\(--gh-accent-color\\)\\]{background-color:var(--gh-accent-color)}.bg-black\\/10{background-color:#0000001a}.bg-black\\/5{background-color:#0000000d}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.bg-neutral-800{--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity))}.bg-neutral-900{--tw-bg-opacity: 1;background-color:rgb(23 23 23 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\\/75{background-color:#ffffffbf}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-\\[rgba\\(0\\,0\\,0\\,0\\.2\\)\\]{--tw-gradient-from: rgba(0,0,0,.2) var(--tw-gradient-from-position);--tw-gradient-to: rgba(0, 0, 0, 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-neutral-900\\/10{--tw-gradient-from: rgb(23 23 23 / .1) var(--tw-gradient-from-position);--tw-gradient-to: rgb(23 23 23 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-neutral-900\\/10{--tw-gradient-to: rgb(23 23 23 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(23 23 23 / .1) var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.bg-cover{background-size:cover}.bg-no-repeat{background-repeat:no-repeat}.fill-black{fill:#000}.fill-black\\/50{fill:#00000080}.fill-black\\/75{fill:#000000bf}.fill-white{fill:#fff}.fill-white\\/90{fill:#ffffffe6}.stroke-black{stroke:#000}.stroke-black\\/50{stroke:#00000080}.stroke-white{stroke:#fff}.stroke-\\[3px\\]{stroke-width:3px}.p-0{padding:0}.p-1{padding:.4rem}.p-2{padding:.8rem}.p-\\[28px\\]{padding:28px}.px-0{padding-left:0;padding-right:0}.px-2{padding-left:.8rem;padding-right:.8rem}.px-2\\.5{padding-left:1rem;padding-right:1rem}.px-3{padding-left:1.2rem;padding-right:1.2rem}.px-4{padding-left:1.6rem;padding-right:1.6rem}.px-5{padding-left:2rem;padding-right:2rem}.px-8{padding-left:3.2rem;padding-right:3.2rem}.py-1{padding-top:.4rem;padding-bottom:.4rem}.py-1\\.5{padding-top:.6rem;padding-bottom:.6rem}.py-2{padding-top:.8rem;padding-bottom:.8rem}.py-6{padding-top:2.4rem;padding-bottom:2.4rem}.py-\\[14px\\]{padding-top:14px;padding-bottom:14px}.pb-2{padding-bottom:.8rem}.pb-3{padding-bottom:1.2rem}.pb-\\[32px\\]{padding-bottom:32px}.pb-\\[48px\\]{padding-bottom:48px}.pb-\\[68px\\]{padding-bottom:68px}.pb-\\[8px\\]{padding-bottom:8px}.pl-0{padding-left:0}.pl-\\[1px\\]{padding-left:1px}.pl-\\[40px\\]{padding-left:40px}.pr-0{padding-right:0}.pr-2{padding-right:.8rem}.pr-3{padding-right:1.2rem}.pr-4{padding-right:1.6rem}.pr-\\[1px\\]{padding-right:1px}.pt-0{padding-top:0}.pt-10{padding-top:4rem}.pt-3{padding-top:1.2rem}.pt-6{padding-top:2.4rem}.pt-\\[40px\\]{padding-top:40px}.pt-\\[48px\\]{padding-top:48px}.pt-\\[68px\\]{padding-top:68px}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:2.4rem}.text-\\[14px\\]{font-size:14px}.text-\\[15px\\]{font-size:15px}.text-\\[16px\\]{font-size:16px}.text-\\[2\\.2rem\\]{font-size:2.2rem}.text-base{font-size:1.3rem}.text-lg{font-size:1.65rem}.text-md{font-size:1.5rem}.text-sm{font-size:1.4rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-9{line-height:2.25rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-snug{line-height:1.375}.tracking-tight{letter-spacing:-.018em}.text-\\[rgba\\(0\\,0\\,0\\,0\\.4\\)\\]{color:#0006}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-black\\/30{color:#0000004d}.text-black\\/50{color:#00000080}.text-black\\/90{color:#000000e6}.text-neutral-400{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.text-neutral-600{--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity))}.text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity))}.text-neutral-900{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity))}.text-neutral-900\\/40{color:#17171766}.text-neutral-900\\/50{color:#17171780}.text-neutral-900\\/60{color:#17171799}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-white\\/95{color:#fffffff2}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-80{opacity:.8}.shadow-lg{--tw-shadow: rgba(0, 0, 0, .06) 0px 0px 0px 1px, rgba(0, 0, 0, .04) 0px 2px 2px -1px, rgba(0, 0, 0, .04) 0px 3px 3px -1px, rgba(0, 0, 0, .03) 0px 5px 5px -2px, rgba(0, 0, 0, .03) 0px 10px 10px -3px, rgba(0, 0, 0, .03) 0px 24px 24px -8px;--tw-shadow-colored: 0px 0px 0px 1px var(--tw-shadow-color), 0px 2px 2px -1px var(--tw-shadow-color), 0px 3px 3px -1px var(--tw-shadow-color), 0px 5px 5px -2px var(--tw-shadow-color), 0px 10px 10px -3px var(--tw-shadow-color), 0px 24px 24px -8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-modal{--tw-shadow: 0 3.8px 2.2px rgba(0, 0, 0, .028), 0 9.2px 5.3px rgba(0, 0, 0, .04), 0 17.3px 10px rgba(0, 0, 0, .05), 0 30.8px 17.9px rgba(0, 0, 0, .06), 0 57.7px 33.4px rgba(0, 0, 0, .072), 0 138px 80px rgba(0, 0, 0, .1);--tw-shadow-colored: 0 3.8px 2.2px var(--tw-shadow-color), 0 9.2px 5.3px var(--tw-shadow-color), 0 17.3px 10px var(--tw-shadow-color), 0 30.8px 17.9px var(--tw-shadow-color), 0 57.7px 33.4px var(--tw-shadow-color), 0 138px 80px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-0{outline-width:0px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-\\[2px\\]{--tw-backdrop-blur: blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[border-color\\]{transition-property:border-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[padding\\]{transition-property:padding;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-none{transition-property:none}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.delay-100{transition-delay:.1s}.delay-150{transition-delay:.15s}.delay-\\[400ms\\]{transition-delay:.4s}.duration-0{transition-duration:0s}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.\\[overflow-wrap\\:anywhere\\]{overflow-wrap:anywhere}body,html{overflow:hidden}:host{all:initial!important}html{font-size:62.5%}body{font-size:1.5rem}.gh-comment-content p:empty:after{content:" "}.gh-comment-content a{word-break:break-word;text-decoration:underline;color:var(--gh-accent-color)}.gh-comment-content blockquote{border-left:3px solid rgba(13,13,13,.1);padding-left:1rem;margin:0 0 1.2rem}.gh-comment-content p{margin:0 0 1.2rem}.gh-comment-content p:last-child,.gh-comment-content blockquote:last-child{margin:0}.gh-comment-content p.is-editor-empty:first-child:before{color:#0000004d!important}.dark .gh-comment-content p.is-editor-empty:first-child:before{color:#fff6!important}.ProseMirror p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;height:0;pointer-events:none;--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}.ProseMirror *{white-space:pre-wrap;word-wrap:break-word}[contenteditable]:focus{outline:0px solid transparent}.ghost-display{display:block!important}.hover\\:bg-black:hover{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.hover\\:bg-black\\/10:hover{background-color:#0000001a}.hover\\:bg-neutral-100:hover{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.hover\\:fill-black\\/75:hover{fill:#000000bf}.hover\\:text-black\\/50:hover{color:#00000080}.hover\\:text-black\\/75:hover{color:#000000bf}.hover\\:text-neutral-900:hover{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity))}.hover\\:text-neutral-900\\/70:hover{color:#171717b3}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\\:opacity-40:hover{opacity:.4}.hover\\:opacity-90:hover{opacity:.9}.hover\\:brightness-105:hover{--tw-brightness: brightness(1.05);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:border-neutral-300:focus{--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity))}.focus\\:border-red-500:focus{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.focus\\:outline-0:focus{outline-width:0px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.disabled\\:bg-black\\/5:disabled{background-color:#0000000d}.disabled\\:text-neutral-900\\/30:disabled{color:#1717174d}.group:hover .group-hover\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\\:stroke-black\\/75{stroke:#000000bf}.group:hover .group-hover\\:opacity-100{opacity:1}.dark\\:border-\\[rgba\\(255\\,255\\,255\\,0\\.1\\)\\]:is(.dark *){border-color:#ffffff1a}.dark\\:bg-neutral-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity))}.dark\\:bg-white\\/10:is(.dark *){background-color:#ffffff1a}.dark\\:bg-white\\/15:is(.dark *){background-color:#ffffff26}.dark\\:bg-white\\/70:is(.dark *){background-color:#ffffffb3}.dark\\:bg-white\\/95:is(.dark *){background-color:#fffffff2}.dark\\:from-white\\/10:is(.dark *){--tw-gradient-from: rgb(255 255 255 / .1) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\\:via-white\\/10:is(.dark *){--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(255 255 255 / .1) var(--tw-gradient-via-position), var(--tw-gradient-to)}.dark\\:fill-black:is(.dark *){fill:#000}.dark\\:fill-white:is(.dark *){fill:#fff}.dark\\:fill-white\\/60:is(.dark *){fill:#fff9}.dark\\:fill-white\\/75:is(.dark *){fill:#ffffffbf}.dark\\:stroke-black\\/60:is(.dark *){stroke:#0009}.dark\\:stroke-white:is(.dark *){stroke:#fff}.dark\\:stroke-white\\/60:is(.dark *){stroke:#fff9}.dark\\:text-\\[rgba\\(255\\,255\\,255\\,0\\.5\\)\\]:is(.dark *){color:#ffffff80}.dark\\:text-\\[rgba\\(255\\,255\\,255\\,0\\.85\\)\\]:is(.dark *){color:#ffffffd9}.dark\\:text-neutral-100:is(.dark *){--tw-text-opacity: 1;color:rgb(245 245 245 / var(--tw-text-opacity))}.dark\\:text-neutral-200:is(.dark *){--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity))}.dark\\:text-neutral-300:is(.dark *){--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}.dark\\:text-neutral-400:is(.dark *){--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity))}.dark\\:text-neutral-800:is(.dark *){--tw-text-opacity: 1;color:rgb(38 38 38 / var(--tw-text-opacity))}.dark\\:text-red-500:is(.dark *){--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.dark\\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\\:text-white\\/30:is(.dark *){color:#ffffff4d}.dark\\:text-white\\/50:is(.dark *){color:#ffffff80}.dark\\:text-white\\/60:is(.dark *){color:#fff9}.dark\\:text-white\\/70:is(.dark *){color:#ffffffb3}.dark\\:text-white\\/85:is(.dark *){color:#ffffffd9}.dark\\:text-white\\/90:is(.dark *){color:#ffffffe6}.dark\\:hover\\:bg-neutral-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity))}.dark\\:hover\\:bg-white:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.dark\\:hover\\:bg-white\\/20:hover:is(.dark *){background-color:#fff3}.dark\\:hover\\:fill-white\\/75:hover:is(.dark *){fill:#ffffffbf}.dark\\:hover\\:text-neutral-100:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(245 245 245 / var(--tw-text-opacity))}.dark\\:hover\\:text-neutral-900:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity))}.dark\\:hover\\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\\:hover\\:text-white\\/50:hover:is(.dark *){color:#ffffff80}.dark\\:hover\\:text-white\\/75:hover:is(.dark *){color:#ffffffbf}.dark\\:hover\\:text-white\\/80:hover:is(.dark *){color:#fffc}.dark\\:disabled\\:bg-white\\/15:disabled:is(.dark *){background-color:#ffffff26}.dark\\:disabled\\:text-white\\/35:disabled:is(.dark *){color:#ffffff59}.group:hover .dark\\:group-hover\\:stroke-white\\/75:is(.dark *){stroke:#ffffffbf}@media (min-width: 481px){.sm\\:bottom-2{bottom:.8rem}.sm\\:right-2{right:.8rem}.sm\\:right-8{right:3.2rem}.sm\\:top-9{top:3.6rem}.sm\\:my-10{margin-top:4rem;margin-bottom:4rem}.sm\\:mb-0{margin-bottom:0}.sm\\:mb-12{margin-bottom:4.8rem}.sm\\:mb-4{margin-bottom:1.6rem}.sm\\:mr-3{margin-right:1.2rem}.sm\\:mt-8{margin-top:3.2rem}.sm\\:block{display:block}.sm\\:inline-block{display:inline-block}.sm\\:inline{display:inline}.sm\\:hidden{display:none}.sm\\:h-12{height:4.8rem}.sm\\:h-auto{height:auto}.sm\\:w-\\[500px\\]{width:500px}.sm\\:w-\\[720px\\]{width:720px}.sm\\:w-auto{width:auto}.sm\\:w-fit{width:-moz-fit-content;width:fit-content}.sm\\:min-w-\\[100px\\]{min-width:100px}.sm\\:min-w-\\[64px\\]{min-width:64px}.sm\\:min-w-\\[80px\\]{min-width:80px}.sm\\:flex-row{flex-direction:row}.sm\\:justify-normal{justify-content:normal}.sm\\:rounded-xl{border-radius:1.2rem}.sm\\:p-0{padding:0}.sm\\:p-8{padding:3.2rem}.sm\\:px-3{padding-left:1.2rem;padding-right:1.2rem}.sm\\:px-8{padding-left:3.2rem;padding-right:3.2rem}.sm\\:py-10{padding-top:4rem;padding-bottom:4rem}.sm\\:pl-0{padding-left:0}.sm\\:pl-\\[44px\\]{padding-left:44px}.sm\\:pr-10{padding-right:4rem}.sm\\:pr-4{padding-right:1.6rem}.sm\\:pt-0{padding-top:0}.sm\\:pt-\\[40px\\]{padding-top:40px}.sm\\:pt-\\[4vmin\\]{padding-top:4vmin}.sm\\:pt-\\[56px\\]{padding-top:56px}.sm\\:text-left{text-align:left}.sm\\:text-2xl{font-size:2.4rem}.sm\\:text-lg{font-size:1.65rem}.sm\\:text-sm{font-size:1.4rem}}
|
|
156
|
+
`,a1=_.forwardRef(function({children:e,onResize:n,style:o,title:r},i){const s=w.jsxs(w.Fragment,{children:[w.jsx("style",{dangerouslySetInnerHTML:{__html:QE}}),w.jsx("meta",{content:"width=device-width, initial-scale=1.0, maximum-scale=1.0",name:"viewport"})]});return w.jsx(GE,{ref:i,head:s,style:o,title:r,onResize:n,children:e})}),ZE=_.forwardRef(function({children:e,style:n,title:o},r){const[i,s]=k.useState(n),a=k.useCallback(l=>{s(c=>({...c,height:`${l.scrollHeight}px`}))},[]);return w.jsx(a1,{ref:r,style:i,title:o,onResize:a,children:e})}),XE=_.forwardRef(function({children:e},n){const o={width:"100%",height:"400px"};return w.jsx(ZE,{ref:n,style:o,title:"comments-frame",children:e})}),eN=({children:t,title:e})=>{const n={zIndex:"3999999",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",overflow:"hidden"};return w.jsx(a1,{style:n,title:e,children:t})},tN=({show:t,children:e,title:n,callback:o})=>{const{dispatchAction:r}=B(),i=()=>{r("closePopup",{}),o&&o(!1)};return k.useEffect(()=>{const s=a=>{a.key==="Escape"&&i()};return window.addEventListener("keydown",s,{passive:!0}),()=>{window.removeEventListener("keydown",s,{passive:!0})}}),w.jsx(co,{appear:!0,show:t,children:w.jsx(eN,{title:n,children:w.jsx("div",{children:w.jsx(co.Child,{enter:"transition duration-200 linear",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition duration-200 linear",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:w.jsx("div",{className:"to-rgba(0,0,0,0.1) fixed left-0 top-0 flex h-screen w-screen justify-center overflow-hidden bg-gradient-to-b from-[rgba(0,0,0,0.2)] pt-0 backdrop-blur-[2px] sm:pt-[4vmin]",onMouseDown:i,children:w.jsx(co.Child,{enter:"transition duration-200 delay-150 linear",enterFrom:"translate-y-4 opacity-0",enterTo:"translate-y-0 opacity-100",leave:"transition duration-200 linear",leaveFrom:"translate-y-0 opacity-100",leaveTo:"translate-y-4 opacity-0",children:e})})})})})})},nN=t=>k.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"gh-portal-closeicon",alt:"Close",...t},k.createElement("defs",null,k.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px !important;}")),k.createElement("path",{className:"a",d:"M.75 23.249l22.5-22.5M23.25 23.249L.75.749"})),hl=({close:t})=>w.jsx("button",{className:"absolute right-6 top-5 opacity-30 transition-opacity duration-100 ease-out hover:opacity-40 sm:right-8 sm:top-9",type:"button",onClick:t,children:w.jsx(nN,{className:"h-5 w-5 p-1 pr-0"})}),oN=t=>{const e=k.useRef(null),n=k.useRef(null),{dispatchAction:o,member:r,accentColor:i,t:s}=B(),[a,l]=k.useState(r.name??""),[c,u]=k.useState(r.expertise??""),m=50;let d=m;r.expertise&&(d-=r.expertise.length);const[p,f]=k.useState(d),[y,h]=k.useState({name:"",expertise:""}),g=x=>{x.stopPropagation()},b=x=>{o("closePopup",{}),t.callback(x)},v=async()=>{var x;a.trim()!==""?(await o("updateMember",{name:a,expertise:c}),b(!0)):(h({name:s("Enter your name"),expertise:""}),l(""),(x=e.current)==null||x.focus())};k.useEffect(()=>{if(!Ol()){const x=setTimeout(()=>{var $,R;t.expertiseAutofocus?($=n.current)==null||$.focus():(R=e.current)==null||R.focus()},200);return()=>{clearTimeout(x)}}},[e,n,t.expertiseAutofocus]);const S=()=>{const x=E=>w.jsx(co,{enter:"transition duration-200 delay-[400ms] ease-out",enterFrom:"opacity-0 translate-y-2",enterTo:"opacity-100 translate-y-0",leave:"transition duration-200 ease-in",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-2",appear:!0,children:w.jsxs("div",{className:"flex flex-row items-center justify-start gap-3 pr-4",children:[w.jsx("div",{className:"h-10 w-10 rounded-full border-2 border-white bg-cover bg-no-repeat",style:{backgroundImage:`url(${E.avatar})`}}),w.jsxs("div",{className:"flex flex-col items-start justify-center",children:[w.jsx("div",{className:"font-sans text-base font-semibold tracking-tight text-white",children:E.name}),w.jsx("div",{className:"font-sans text-sm tracking-tight text-neutral-400",children:E.expertise})]})]})},E.name),$=[],R=[{avatar:"https://randomuser.me/api/portraits/men/32.jpg",name:"James Fletcher",expertise:s("Full-time parent")},{avatar:"https://randomuser.me/api/portraits/women/30.jpg",name:"Naomi Schiff",expertise:s("Founder @ Acme Inc")},{avatar:"https://randomuser.me/api/portraits/men/4.jpg",name:"Franz Tost",expertise:s("Neurosurgeon")},{avatar:"https://randomuser.me/api/portraits/women/51.jpg",name:"Katrina Klosp",expertise:s("Local resident")}];for(let E=0;E<R.length;E++)$.push(x(R[E]));return $},C=Fm(s("{{amount}} characters left"),"{{amount}}",()=>w.jsx("b",{children:p}));return w.jsx("div",{className:"shadow-modal relative h-screen w-screen overflow-hidden rounded-none bg-white p-[28px] text-center sm:h-auto sm:w-[720px] sm:rounded-xl sm:p-0","data-testid":"profile-modal",onMouseDown:g,children:w.jsxs("div",{className:"flex",children:[w.jsx("div",{className:"hidden w-[50%] flex-col items-center justify-center bg-neutral-800 sm:block sm:p-8",children:w.jsx("div",{className:"mt-[-1px] flex flex-col gap-9 text-left",children:S()})}),w.jsxs("div",{className:"p-0 sm:p-8",children:[w.jsxs("h1",{className:"mb-1 text-center font-sans text-2xl font-bold tracking-tight text-black sm:text-left",children:[s("Complete your profile"),w.jsx("span",{className:"hidden sm:inline",children:"."})]}),w.jsx("p",{className:"text-md pr-0 text-center font-sans leading-snug text-neutral-500 sm:pr-10 sm:text-left",children:s("Add context to your comment, share your name and expertise to foster a healthy discussion.")}),w.jsxs("section",{className:"mt-8 text-left",children:[w.jsxs("div",{className:"mb-2 flex flex-row justify-between",children:[w.jsx("label",{className:"font-sans text-base font-semibold",htmlFor:"comments-name",children:s("Name")}),w.jsx(co,{enter:"transition duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition duration-100 ease-out",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:!!y.name,children:w.jsx("div",{className:"font-sans text-sm text-red-500",children:y.name})})]}),w.jsx("input",{ref:e,className:`flex h-[42px] w-full items-center rounded border border-neutral-200 px-3 font-sans text-[16px] outline-0 transition-[border-color] duration-200 focus:border-neutral-300 ${y.name&&"border-red-500 focus:border-red-500"}`,"data-testid":"name-input",id:"comments-name",maxLength:64,name:"name",placeholder:s("Jamie Larson"),type:"text",value:a,onChange:x=>{l(x.currentTarget.value)},onKeyDown:x=>{x.key==="Enter"&&(l(x.currentTarget.value),v().catch(console.error))}}),w.jsxs("div",{className:"mb-2 mt-6 flex flex-row justify-between",children:[w.jsx("label",{className:"font-sans text-base font-semibold",htmlFor:"comments-name",children:s("Expertise")}),w.jsx("div",{className:`font-sans text-base text-neutral-400 ${p===0&&"text-red-500"}`,children:C})]}),w.jsx("input",{ref:n,className:`flex h-[42px] w-full items-center rounded border border-neutral-200 px-3 font-sans text-[16px] outline-0 transition-[border-color] duration-200 focus:border-neutral-300 ${p===0&&"border-red-500 focus:border-red-500"}`,"data-testid":"expertise-input",id:"comments-expertise",maxLength:m,name:"expertise",placeholder:s("Head of Marketing at Acme, Inc"),type:"text",value:c,onChange:x=>{const $=x.currentTarget.value;f(m-$.length),u($)},onKeyDown:x=>{x.key==="Enter"&&(u(x.currentTarget.value),v().catch(console.error))}}),w.jsx("button",{className:"text-md mt-10 flex h-[42px] w-full items-center justify-center rounded-md px-8 font-sans font-semibold text-white opacity-100 transition-opacity duration-200 ease-linear hover:opacity-90","data-testid":"save-button",style:{backgroundColor:i??"#000000"},type:"button",onClick:()=>{v().catch(console.error)},children:s("Save")})]})]}),w.jsx(hl,{close:()=>b(!1)})]})})},rN=()=>{const{dispatchAction:t,member:e,commentsEnabled:n}=B(),o=a=>{a.stopPropagation()},r=()=>{t("closePopup",{})},i=n==="paid",s=!e;return w.jsx("div",{className:"shadow-modal relative h-screen w-screen rounded-none bg-white p-[28px] text-center sm:h-auto sm:w-[500px] sm:rounded-xl sm:p-8 sm:text-left",onClick:r,onMouseDown:o,children:w.jsxs("div",{className:"flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0",children:[w.jsx("div",{className:"flex flex-col items-center pb-3 pt-6","data-testid":"cta-box",children:w.jsx(Gi,{isFirst:s,isPaid:i})}),w.jsx(hl,{close:r})]})})},l1=t=>k.createElement("svg",{width:"26px",height:"26px",viewBox:"-1 -1 26 26",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...t},k.createElement("g",{id:"check-circle",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},k.createElement("path",{className:"animated-check-circle",d:"M19.6004116,2.71490714 C17.5353801,1.0196018 14.8927356,0 12,0 C5.38938053,0 0,5.38938053 0,12 C0,18.6106195 5.38938053,24 12,24 C18.6106195,24 24,18.6106195 24,12 C24,9.71681416 23.3628319,7.59292035 22.2743363,5.78761062 L11.0442478,17.0442478 L5.49557522,11.4955752",id:"Shape",stroke:"#FFFFFF",strokeWidth:2}))),iN={addDetailsPopup:oN,reportPopup:({comment:t})=>{const{dispatchAction:e,t:n}=B(),[o,r]=k.useState("default");let i="bg-red-600";o==="sent"&&(i="bg-green-600");let s=n("Report");const a=s;o==="sending"?s=n("Sending"):o==="sent"&&(s=n("Sent"));const l=w.jsx(Fa,{className:"mr-2 h-[24px] w-[24px] fill-white"}),c=w.jsx(l1,{className:"mr-2 h-[16px] w-[16px]"});let u=null;o==="sending"?u=l:o==="sent"&&(u=c);const m=f=>{f.stopPropagation()},d=()=>{e("closePopup",{})},p=f=>{f.stopPropagation(),r("sending"),setTimeout(()=>{r("sent"),e("reportComment",t),setTimeout(()=>{d()},750)},1e3)};return w.jsx("div",{className:"shadow-modal relative h-screen w-screen rounded-none bg-white p-[28px] text-center sm:h-auto sm:w-[500px] sm:rounded-xl sm:p-8 sm:text-left",onMouseDown:m,children:w.jsxs("div",{className:"flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0",children:[w.jsx("h1",{className:"mb-1.5 font-sans text-[2.2rem] font-bold tracking-tight text-black",children:w.jsx("span",{children:n("Report this comment?")})}),w.jsx("p",{className:"text-md px-4 font-sans leading-9 text-black sm:pl-0 sm:pr-4",children:n("Your request will be sent to the owner of this site.")}),w.jsxs("div",{className:"mt-auto flex flex-col items-center justify-start gap-4 sm:mt-8 sm:flex-row",children:[w.jsxs("button",{className:`text-md flex h-[44px] w-full items-center justify-center rounded-md px-4 font-sans font-medium text-white transition duration-200 ease-linear sm:w-fit ${i} opacity-100 hover:opacity-90`,style:{backgroundColor:i??"#000000"},type:"button",onClick:p,children:[w.jsxs("span",{className:"invisible whitespace-nowrap",children:[a,w.jsx("br",{}),w.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[l,n("Sending")]}),w.jsx("br",{}),w.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[c,n("Sent")]})]}),w.jsxs("span",{className:"absolute flex h-[44px] items-center justify-center whitespace-nowrap",children:[u,s]})]}),w.jsx("button",{className:"text-md h-[44px] w-full px-2 font-sans font-medium text-neutral-500 sm:w-fit dark:text-neutral-400",type:"button",onClick:d,children:n("Cancel")})]}),w.jsx(hl,{close:d})]})})},ctaPopup:rN,deletePopup:({comment:t})=>{const{dispatchAction:e,t:n}=B(),[o,r]=k.useState("default");let i="bg-red-600";o==="sent"&&(i="bg-green-600");let s=n("Delete");const a=s;o==="sending"?s=n("Deleting"):o==="sent"&&(s=n("Deleted"));const l=w.jsx(Fa,{className:"mr-2 h-[24px] w-[24px] fill-white"}),c=w.jsx(l1,{className:"mr-2 h-[16px] w-[16px]"});let u=null;o==="sending"?u=l:o==="sent"&&(u=c);const m=f=>{f.stopPropagation()},d=()=>{e("closePopup",{})},p=f=>{f.stopPropagation(),r("sending"),setTimeout(()=>{r("sent"),e("deleteComment",t),setTimeout(()=>{d()},750)},1e3)};return w.jsx("div",{className:"shadow-modal relative h-screen w-screen rounded-none bg-white p-[28px] text-center sm:h-auto sm:w-[500px] sm:rounded-xl sm:p-8 sm:text-left",onMouseDown:m,children:w.jsxs("div",{className:"flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0",children:[w.jsx("h1",{className:"mb-1.5 font-sans text-[2.2rem] font-bold tracking-tight text-black",children:w.jsx("span",{children:n("Are you sure?")})}),w.jsx("p",{className:"text-md px-4 font-sans leading-9 text-black sm:pl-0 sm:pr-4",children:n("Once deleted, this comment can’t be recovered.")}),w.jsxs("div",{className:"mt-auto flex flex-col items-center justify-start gap-4 sm:mt-8 sm:flex-row",children:[w.jsxs("button",{className:`text-md flex h-[44px] w-full items-center justify-center rounded-md px-4 font-sans font-medium text-white transition duration-200 ease-linear sm:w-fit ${i} opacity-100 hover:opacity-90`,type:"button",onClick:p,children:[w.jsxs("span",{className:"invisible whitespace-nowrap",children:[a,w.jsx("br",{}),w.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[l,n("Deleting")]}),w.jsx("br",{}),w.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[c,n("Deleted")]})]}),w.jsxs("span",{className:"absolute flex h-[44px] items-center justify-center whitespace-nowrap",children:[u,s]})]}),w.jsx("button",{className:"text-md h-[44px] w-full px-2 font-sans font-medium text-neutral-500 sm:w-fit dark:text-neutral-400",type:"button",onClick:d,children:n("Cancel")})]}),w.jsx(hl,{close:d})]})})}},sN=()=>{const{popup:t}=B(),[e,n]=k.useState(t);if(k.useEffect(()=>{if(t!==null&&n(t),t===null){const a=setTimeout(()=>{n(null)},250);return()=>{clearTimeout(a)}}},[t,n]),!e||!e.type)return null;const{type:o,...r}=t??e,i=iN[o];if(!i)return console.warn("Unknown popup of type ",o),null;const s=t===e;return w.jsx(w.Fragment,{children:w.jsx(tN,{callback:r.callback,show:s,title:o,children:w.jsx(i,{...r})})})},aN={"{{amount}} characters left":"{{amount}} karakters oor","{{amount}} comments":"{{amount}} kommentaar","{{amount}} hrs ago":"{{amount}} ure gelede","{{amount}} mins ago":"{{amount}} minute gelede","{{amount}} more":"{{amount}} meer","1 comment":"1 kommentaar","Add comment":"Voeg kommentaar by","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Voeg konteks by jou kommentaar, deel jou naam en kundigheid om 'n gesonde bespreking te bevorder.","Add reply":"Voeg antwoord by","Already a member?":"Reeds 'n lid?",Anonymous:"Anoniem","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Word 'n lid van {{publication}} om kommentaar te lewer.","Become a paid member of {{publication}} to start commenting.":"Word 'n betaalde lid van {{publication}} om kommentaar te lewer.",Cancel:"Kanselleer",Comment:"Kommentaar","Complete your profile":"Voltooi jou profiel",Delete:"Skrap",Deleted:"","Deleted member":"Geskrapte lid",Deleting:"",Discussion:"Bespreking",Edit:"Redigeer","Edit this comment":"Redigeer hierdie kommentaar",edited:"geredigeer","Enter your name":"Voer jou naam in",Expertise:"Kundigheid","Founder @ Acme Inc":"Stigter @ Acme Inc","Full-time parent":"Voltydse ouer","Head of Marketing at Acme, Inc":"Hoof van Bemarking by Acme, Inc","Hidden for members":"",Hide:"Versteek","Hide comment":"Versteek kommentaar","Jamie Larson":"Jamie Larson","Join the discussion":"Sluit aan by die bespreking","Just now":"Sopas","Local resident":"Plaaslike inwoner","Member discussion":"Lidmaat bespreking",Name:"Naam",Neurosurgeon:"Neurochirurg","Once deleted, this comment can’t be recovered.":"","One hour ago":"Een uur gelede","One min ago":"Een minuut gelede","Replied to":"",Reply:"Antwoord","Reply to":"","Reply to comment":"Antwoord op kommentaar",Report:"Rapporteer","Report comment":"Rapporteer kommentaar","Report this comment?":"Rapporteer hierdie kommentaar?",Save:"Stoor",Sending:"Besig om te stuur",Sent:"Gestuur",Show:"Wys","Show {{amount}} more replies":"Wys {{amount}} meer antwoorde","Show {{amount}} previous comments":"Wys {{amount}} vorige kommentaar","Show 1 more reply":"Wys nog 1 antwoord","Show 1 previous comment":"Wys 1 vorige kommentaar","Show comment":"Wys kommentaar","Sign in":"Teken in","Sign up now":"Sluit nou aan","Sort by":"","Start the conversation":"Begin die gesprek","This comment has been hidden.":"Hierdie kommentaar is weggesteek.","This comment has been removed.":"Hierdie kommentaar is verwyder.","Upgrade now":"Gradeer nou op",Yesterday:"Gister","Your request will be sent to the owner of this site.":"Jou versoek sal aan die eienaar van hierdie webwerf gestuur word."},lN={"{{amount}} characters left":"الحروف المتبقية : {{amount}}","{{amount}} comments":"{{amount}} تعليق/ات","{{amount}} hrs ago":"منذ {{amount}} ساعات","{{amount}} mins ago":"منذ {{amount}} دقيقة","{{amount}} more":"{{amount}} المزيد","1 comment":"تعليق واحد","Add comment":"اضف تعليق","Add context to your comment, share your name and expertise to foster a healthy discussion.":"قم بإضافة سياق لتعليقك، شارك اسمك و مجال خبرتك لكي نرعى محادثة مثمرة","Add reply":"ردّ","Already a member?":"هل انت مسجل بالفعل؟",Anonymous:"مجهول","Are you sure?":"","Become a member of {{publication}} to start commenting.":"يجب أن تصبح عضوًا فى {{publication}} لتستطيع التعليق","Become a paid member of {{publication}} to start commenting.":"يجب ان تكون عضويتك مدفوعة فى {{publication}} لكي تستطيع التعليق",Cancel:"إلغاء",Comment:"تعليق","Complete your profile":"إكمال ملفك الشخصى",Delete:"حذف",Deleted:"","Deleted member":"الاعضاء المحذوفين",Deleting:"",Discussion:"النقاش",Edit:"تعديل","Edit this comment":"عدّل هذا التعليق",edited:"تم التعديل","Enter your name":"اكتب اسمك",Expertise:"مجال تخصصك","Founder @ Acme Inc":"مؤسس لدى شركة أكمي","Full-time parent":"أب بدوام كامل","Head of Marketing at Acme, Inc":"رئيس وحدة التسويق لدى شركة أكمى","Hidden for members":"",Hide:"اخفاء","Hide comment":"اخف التعليق","Jamie Larson":"فلان الفلانى","Join the discussion":"انضم للمحادثة","Just now":"الآن","Local resident":"مقيم محلى","Member discussion":"مناقشة الاعضاء",Name:"الاسم",Neurosurgeon:"جراح المخ و الاعصاب","Once deleted, this comment can’t be recovered.":"","One hour ago":"منذ ساعة واحدة","One min ago":" منذ دقيقة واحدة","Replied to":"",Reply:"رد","Reply to":"","Reply to comment":"رد على هذا التعليق",Report:"الإبلاغ","Report comment":"ابلغ عن هذا التعليق","Report this comment?":"الإبلاغ عن التعليق؟",Save:"حفظ",Sending:"جارى الارسال",Sent:"تم الارسال",Show:"اظهر","Show {{amount}} more replies":"اظهر {{amount}} ردود","Show {{amount}} previous comments":"اظهر {{amount}} تعليقات سابقة","Show 1 more reply":"اظهر تعليق وحيد","Show 1 previous comment":"اظهر التعليق السابق","Show comment":"اظهر التعليق","Sign in":"تسجيل الدخول","Sign up now":"قم بالتسجيل الآن","Sort by":"ترتيب بحسب","Start the conversation":"ابدأ النقاش","This comment has been hidden.":"تم اخفاء هذا التعليق","This comment has been removed.":"تم حذف هذا التعليق","Upgrade now":"قم بالترقية الآن",Yesterday:"أمس","Your request will be sent to the owner of this site.":"سيتم ارسال طلبك لصاحب الموقع"},cN={"{{amount}} characters left":"Остават {{amount}} знака","{{amount}} comments":"{{amount}} коментара","{{amount}} hrs ago":"Преди {{amount}} часа","{{amount}} mins ago":"Преди {{amount}} минути","{{amount}} more":"Още {{amount}}","1 comment":"1 коментар","Add comment":"Нов коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Добавете контекст към коментара си, споделете името си и опита си, за да насърчите полезна дискусия.","Add reply":"Отговор","Already a member?":"Вече сте абонат?",Anonymous:"Анонимен","Are you sure?":"Убедени ли сте?","Become a member of {{publication}} to start commenting.":"Абонирайте се за {{publication}}, за да коментирате.","Become a paid member of {{publication}} to start commenting.":"Станете платен абонат на {{publication}}, за да коментирате.",Cancel:"Отказ",Comment:"Коментар","Complete your profile":"Попълнете профила си",Delete:"Изтриване",Deleted:"Изтрито","Deleted member":"Изтрит абонат",Deleting:"Изтриване",Discussion:"Дискусия",Edit:"Редактиране","Edit this comment":"Редактиране на коментара",edited:"редактиран","Enter your name":"Попълнете името си",Expertise:"Опит","Founder @ Acme Inc":"Основател на Компания ООД","Full-time parent":"Родител на пълно работно време","Head of Marketing at Acme, Inc":"Директор маркетинг в Компания ООД","Hidden for members":"",Hide:"Скриване","Hide comment":"Скриване на коментара","Jamie Larson":"Иван Иванов","Join the discussion":"Участвайте в дискусията","Just now":"Току-що","Local resident":"Местен жител","Member discussion":"Дискусия за абонатите",Name:"Име",Neurosurgeon:"Неврохирург","Once deleted, this comment can’t be recovered.":"Веднъж изтрит, коментарът не може да бъде възстановен.","One hour ago":"Преди час","One min ago":"Преди минута","Replied to":"Отговорено на",Reply:"Отговор","Reply to":"Отговор на","Reply to comment":"Отговор на коментара",Report:"Докладване","Report comment":"Докладване на коментара","Report this comment?":"Ще докладвате ли коментара?",Save:"Запис",Sending:"Изпращане",Sent:"Изпратен",Show:"Показване","Show {{amount}} more replies":"Покажи още {{amount}} отговора","Show {{amount}} previous comments":"Покажи {{amount}} предишни коментара","Show 1 more reply":"Покажи още един отговор","Show 1 previous comment":"Покажи един предишен коментар","Show comment":"Покажи коментар","Sign in":"Вход","Sign up now":"Регистрация","Sort by":"Сортиране по","Start the conversation":"Започнете дискусия","This comment has been hidden.":"Този коментар е скрит.","This comment has been removed.":"Този коментар е премахнат.","Upgrade now":"Надградете сега",Yesterday:"Вчера","Your request will be sent to the owner of this site.":"Искането ви ще бъде изпратено до собственика на сайта."},uN={"{{amount}} characters left":"{{amount}} অক্ষর বাকি","{{amount}} comments":"{{amount}} মন্তব্য","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"{{amount}}টি আরও","1 comment":"১টি মন্তব্য","Add comment":"মন্তব্য যোগ করুন","Add context to your comment, share your name and expertise to foster a healthy discussion.":"আপনার মন্তব্যে প্রসঙ্গ যোগ করুন, একটি সুস্থ আলোচনা করতে আপনার নাম ও অভিজ্ঞতা শেয়ার করুন।","Add reply":"উত্তর যোগ করুন","Already a member?":"ইত:পূর্বে সদস্য?",Anonymous:"অজ্ঞাতনামা","Are you sure?":"","Become a member of {{publication}} to start commenting.":"{{publication}} এর সদস্য হন মন্তব্য করার জন্য।","Become a paid member of {{publication}} to start commenting.":"{{publication}} এর পেইড সদস্য হন মন্তব্য করার জন্য।",Cancel:"বাতিল করুন",Comment:"মন্তব্য","Complete your profile":"আপনার প্রোফাইল সম্পূর্ণ করুন",Delete:"মুছে ফেলুন",Deleted:"","Deleted member":"মুছে ফেলা সদস্য",Deleting:"",Discussion:"আলোচনা",Edit:"সম্পাদনা","Edit this comment":"এই মন্তব্য সম্পাদনা করুন",edited:"","Enter your name":"আপনার নাম লিখুন",Expertise:"বিশেষজ্ঞতা","Founder @ Acme Inc":"প্রতিষ্ঠাতা @ বাংলাদেশ ট্রেড হাব","Full-time parent":"পূর্ণকালীন অভিভাবক","Head of Marketing at Acme, Inc":"মার্কেটিং প্রধান @ বাংলাদেশ ট্রেড হাব","Hidden for members":"",Hide:"লুকান","Hide comment":"মন্তব্য লুকান","Jamie Larson":"শাহ নেওয়াজ","Join the discussion":"আলোচনায় যোগ দিন","Just now":"এখনই","Local resident":"স্থানীয় বাসিন্দা","Member discussion":"সদস্য আলোচনা",Name:"নাম",Neurosurgeon:"নিউরোসার্জন","Once deleted, this comment can’t be recovered.":"","One hour ago":"এক ঘণ্টা পূর্বে","One min ago":"","Replied to":"",Reply:"উত্তর","Reply to":"","Reply to comment":"মন্তব্যের উত্তর দিন",Report:"প্রতিবেদন","Report comment":"মন্তব্য প্রতিবেদন করুন","Report this comment?":"এই মন্তব্য প্রতিবেদন করবেন?",Save:"সংরক্ষণ করুন",Sending:"পাঠানো হচ্ছে",Sent:"পাঠানো হয়েছে",Show:"দেখান","Show {{amount}} more replies":" আরো {{amount}}টি উত্তর দেখান","Show {{amount}} previous comments":"পূর্বের {{amount}}টি মন্তব্য দেখান","Show 1 more reply":"১টি আরো উত্তর দেখান","Show 1 previous comment":"১টি পূর্বের মন্তব্য দেখান","Show comment":"মন্তব্য দেখান","Sign in":"সাইন ইন করুন","Sign up now":"এখনই সাইন আপ করুন","Sort by":"","Start the conversation":"আলোচনা শুরু করুন","This comment has been hidden.":"এই মন্তব্য লুকানো হয়েছে।","This comment has been removed.":"এই মন্তব্য মুছে ফেলা হয়েছে।","Upgrade now":"এখনই আপগ্রেড করুন",Yesterday:"গতকাল","Your request will be sent to the owner of this site.":"আপনার অনুরোধ সাইটের মালিকের কাছে পাঠানো হবে।"},dN={"{{amount}} characters left":"Preostalo {{amount}} karaktera","{{amount}} comments":"{{amount}} komentara","{{amount}} hrs ago":"Prije {{amount}} sati","{{amount}} mins ago":"Prije {{amount}} minuta","{{amount}} more":"Još {{amount}}","1 comment":"1 komentar","Add comment":"Dodaj komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dodaj kontekst svom komentaru, podijeli svoje ime i stručnost u svrhu kvalitetnije diskusije.","Add reply":"Objavi komentar","Already a member?":"Već si član?",Anonymous:"Anoniman","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Postani član portala {{publication}} za pristup diskusiji.","Become a paid member of {{publication}} to start commenting.":"Postani plaćeni član portala {{publication}} za pristup diskusiji.",Cancel:"Otkaži",Comment:"Komentar","Complete your profile":"Dovrši svoj profil",Delete:"Obriši",Deleted:"","Deleted member":"Obrisan član",Deleting:"",Discussion:"Diskusija",Edit:"Uredi","Edit this comment":"Uredi komentar",edited:"uređeno","Enter your name":"Unesi ime",Expertise:"Stručnost","Founder @ Acme Inc":"Acme Inc osnivač","Full-time parent":"Full time roditelj","Head of Marketing at Acme, Inc":"Šef marketinga u kompaniji Acme d.o.o","Hidden for members":"",Hide:"Sakrij","Hide comment":"Sakrij komentar","Jamie Larson":"Vanja Larsić","Join the discussion":"Pridruži se diskusiji","Just now":"Upravo sada","Local resident":"Lokalni stanovnik","Member discussion":"Diskusija članova",Name:"Ime",Neurosurgeon:"Neurohirurg","Once deleted, this comment can’t be recovered.":"","One hour ago":"Prije jedan sat","One min ago":"Prije jedan minut","Replied to":"",Reply:"Odgovori","Reply to":"","Reply to comment":"Odgovori na komentar",Report:"Prijavi","Report comment":"Prijavi komentar","Report this comment?":"Prijavi ovaj komentar?",Save:"Sačuvaj",Sending:"Šaljem",Sent:"Poslano",Show:"Prikaži","Show {{amount}} more replies":"Prikaži još {{amount}} odgovora","Show {{amount}} previous comments":"Prikaži prethodnih {{amount}} komentara","Show 1 more reply":"Prikaži još jedan odgovor","Show 1 previous comment":"Prikaži prethodni komentar","Show comment":"Prikaži komentar","Sign in":"Prijavi se","Sign up now":"Postani član","Sort by":"","Start the conversation":"Započni diskusiju","This comment has been hidden.":"Ovaj komentar je sakriven.","This comment has been removed.":"Ovaj komentar je uklonjen.","Upgrade now":"Nadogradi račun sada",Yesterday:"Jučer","Your request will be sent to the owner of this site.":"Tvoj zahtjev je poslan vlasniku stranice."},mN={"{{amount}} characters left":"{{amount}} caràcters restants","{{amount}} comments":"{{amount}} comentaris","{{amount}} hrs ago":"Fa {{amount}} hores","{{amount}} mins ago":"Fa {{amount}} minuts","{{amount}} more":"","1 comment":"Un comentari","Add comment":"Afegeix un comentari","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Afegeix context al teu comentari, comparteix el teu nom i experiència per fomentar una discussió sana.","Add reply":"Afegeix una resposta","Already a member?":"Ja ets membre?",Anonymous:"Anònim","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Fes-te membre de {{publication}} per començar a comentar.","Become a paid member of {{publication}} to start commenting.":"Fes-te membre de pagament de {{publication}} per començar a comentar",Cancel:"Cancel·lar",Comment:"Comentari","Complete your profile":"Completa el teu perfil",Delete:"Esborrar",Deleted:"","Deleted member":"Membre esborrat",Deleting:"",Discussion:"Debat",Edit:"Editar","Edit this comment":"Editar aquest comentari",edited:"editat","Enter your name":"Escriu el teu nom",Expertise:"Conéixement","Founder @ Acme Inc":"Fundador @ Acme Inc","Full-time parent":"Pare a temps complert","Head of Marketing at Acme, Inc":"Cap de màrqueting a Acme, Inc","Hidden for members":"",Hide:"Amaga","Hide comment":"Amaga el comentari","Jamie Larson":"Jamie Larson","Join the discussion":"Uneix-te al debat","Just now":"Just ara","Local resident":"Resiudent local","Member discussion":"Debat de membres",Name:"Nom",Neurosurgeon:"Neurocirurgià","Once deleted, this comment can’t be recovered.":"","One hour ago":"Fa una hora","One min ago":"Fa un minut","Replied to":"",Reply:"Respondre","Reply to":"","Reply to comment":"Respondre al comentari",Report:"Reportar","Report comment":"Reportar comentari","Report this comment?":"Reportar aquest comentari?",Save:"Desa",Sending:"Enviant",Sent:"Enviar",Show:"Mostra","Show {{amount}} more replies":"Mostra {{amount}} respostes més","Show {{amount}} previous comments":"Mostra {{amount}} comentaris previs","Show 1 more reply":"Mostra 1 resposta més","Show 1 previous comment":"Mostra 1 comentari previ","Show comment":"Mostra el comentari","Sign in":"Inici de sessió","Sign up now":"Registrar-se ara","Sort by":"","Start the conversation":"Comença la conversa","This comment has been hidden.":"Aquest comentari s'ha amagat.","This comment has been removed.":"Aquest comantari s'ha esborrat.","Upgrade now":"Millora ara",Yesterday:"Ahir","Your request will be sent to the owner of this site.":"La vostra sol·licitud s'enviarà al propietari d'aquest lloc."},fN={"{{amount}} characters left":"Zbývá {{amount}} znaků","{{amount}} comments":"{{amount}} komentářů","{{amount}} hrs ago":"Před {{amount}} hodinami","{{amount}} mins ago":"Před {{amount}} minutami","{{amount}} more":"Dalších {{amount}}","1 comment":"1 komentář","Add comment":"Přidat komentář","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Pro podporu zdravé diskuse přidejte ke svému komentáři kontext, své jméno a odbornost.","Add reply":"Přidat odpověď","Already a member?":"Už jste členem?",Anonymous:"Anonymní","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Staňte se členem {{publication}}, abyste mohli začít komentovat.","Become a paid member of {{publication}} to start commenting.":"Staňte se placeným členem {{publication}}, abyste mohli začít komentovat.",Cancel:"Zrušit",Comment:"Komentář","Complete your profile":"Dokončete svůj profil",Delete:"Smazat",Deleted:"","Deleted member":"Smazaný člen",Deleting:"",Discussion:"Diskuse",Edit:"Upravit","Edit this comment":"Upravit tento komentář",edited:"upraveno","Enter your name":"Zadejte své jméno",Expertise:"Odbornost","Founder @ Acme Inc":"Zakladatel @ Acme Inc","Full-time parent":"Rodič na plný úvazek","Head of Marketing at Acme, Inc":"Vedoucí marketingu v Acme, Inc","Hidden for members":"",Hide:"Skrýt","Hide comment":"Skrýt komentář","Jamie Larson":"Jamie Larson","Join the discussion":"Připojte se k diskusi","Just now":"Právě teď","Local resident":"Místní obyvatel","Member discussion":"Diskuse členů",Name:"Jméno",Neurosurgeon:"Neurochirurg","Once deleted, this comment can’t be recovered.":"","One hour ago":"Před jednou hodinou","One min ago":"Před jednou minutou","Replied to":"",Reply:"Odpovědět","Reply to":"","Reply to comment":"Odpovědět na komentář",Report:"Nahlásit","Report comment":"Nahlásit komentář","Report this comment?":"Nahlásit tento komentář?",Save:"Uložit",Sending:"Odesílání",Sent:"Odesláno",Show:"Zobrazit","Show {{amount}} more replies":"Zobrazit {{amount}} dalších odpovědí","Show {{amount}} previous comments":"Zobrazit {{amount}} předchozích komentářů","Show 1 more reply":"Zobrazit 1 další odpověď","Show 1 previous comment":"Zobrazit 1 předchozí komentář","Show comment":"Zobrazit komentář","Sign in":"Přihlásit se","Sign up now":"Zaregistrujte se nyní","Sort by":"","Start the conversation":"Začněte konverzaci","This comment has been hidden.":"Tento komentář byl skryt.","This comment has been removed.":"Tento komentář byl odstraněn.","Upgrade now":"Upgradovat",Yesterday:"Včera","Your request will be sent to the owner of this site.":"Vaše žádost bude odeslána vlastníkovi tohoto webu."},pN={"{{amount}} characters left":"{{amount}} tegn tilbage","{{amount}} comments":"{{amount}} kommentarer","{{amount}} hrs ago":"{{amount}} timer siden","{{amount}} mins ago":"{{amount}} minutter siden","{{amount}} more":"{{amount}} mere","1 comment":"1 kommentar","Add comment":"Tilføj kommentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Tilføj kontekst til din kommentar, del dit navn og ekspertise for at fremme en sund diskussion.","Add reply":"Tilføj svar","Already a member?":"Allerede medlem?",Anonymous:"Anonym","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Bliv medlem af {{publication}} for at kunne skrive kommentarer.","Become a paid member of {{publication}} to start commenting.":"Bliv betalende medlem af {{publication}} for at kunne skrive kommentarer.",Cancel:"Annuller",Comment:"Kommentér","Complete your profile":"Færdiggør din profil",Delete:"Slet",Deleted:"","Deleted member":"Slettet medlem",Deleting:"",Discussion:"Diskussion",Edit:"Rediger","Edit this comment":"Rediger denne kommentar",edited:"redigeret","Enter your name":"Indtast dit navn",Expertise:"Ekspertise","Founder @ Acme Inc":"Grundlægger @ Acme Inc","Full-time parent":"Forældre på fuld tid","Head of Marketing at Acme, Inc":"Chef for marking hos Acme, Inc","Hidden for members":"",Hide:"Skjul","Hide comment":"Skjul kommentar","Jamie Larson":"Jamie Larson","Join the discussion":"Bliv en del af diskussionen","Just now":"Lige nu","Local resident":"Lokal borger","Member discussion":"Medlemsdiskussion",Name:"Navn",Neurosurgeon:"Neurokirurg","Once deleted, this comment can’t be recovered.":"","One hour ago":"En time siden","One min ago":"Et minut siden","Replied to":"",Reply:"Svar","Reply to":"","Reply to comment":"Svar på kommentar",Report:"Rapportér","Report comment":"Rapportér kommentar","Report this comment?":"Rapportér denne kommentar?",Save:"Gem",Sending:"Sender",Sent:"Sendt",Show:"Vis","Show {{amount}} more replies":"Vis {{amount}} flere svar","Show {{amount}} previous comments":"Vis {{amount}} tidligere kommentarer","Show 1 more reply":"Vis 1 mere svar","Show 1 previous comment":"Vis 1 tidligere kommentar","Show comment":"Vis kommentar","Sign in":"Log ind","Sign up now":"Tilmed dig nu","Sort by":"Sorter efter","Start the conversation":"Start samtalen","This comment has been hidden.":"Denne kommentar er blevet skjult.","This comment has been removed.":"Denne kommentar er blevet fjernet.","Upgrade now":"Opgrader nu",Yesterday:"I går","Your request will be sent to the owner of this site.":"Din anmodning vil blive sendt til ejeren af dette site."},hN={"{{amount}} characters left":"{{amount}} Zeichen übrig","{{amount}} comments":"{{amount}} Kommentare","{{amount}} hrs ago":"Vor {{amount}} Stunden","{{amount}} mins ago":"Vor {{amount}} Minuten","{{amount}} more":"{{amount}} weitere","1 comment":"1 Kommentar","Add comment":"Kommentar hinzufügen","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Füge deinem Kommentar Kontext hinzu, teile deinen Namen und deine Expertise, um eine gesunde Diskussion zu fördern.","Add reply":"Antwort hinzufügen","Already a member?":"Bist du bereits Mitglied?",Anonymous:"Anonym","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Werde Mitglied bei {{publication}}, um Kommentare zu schreiben.","Become a paid member of {{publication}} to start commenting.":"Werde zahlendes Mitglied bei {{publication}}, um Kommentare zu schreiben.",Cancel:"Abbrechen",Comment:"Kommentar","Complete your profile":"Vervollständige dein Profil",Delete:"Löschen",Deleted:"","Deleted member":"Gelöschtes Mitglied",Deleting:"",Discussion:"Diskussion",Edit:"Bearbeiten","Edit this comment":"Diesen Kommentar bearbeiten",edited:"bearbeitet","Enter your name":"Gib deinen Namen ein",Expertise:"Expertise","Founder @ Acme Inc":"Gründer bei Acme Inc","Full-time parent":"Vollzeit-Elternteil","Head of Marketing at Acme, Inc":"Leiter Marketing bei Acme, Inc","Hidden for members":"",Hide:"Verbergen","Hide comment":"Kommentar verbergen","Jamie Larson":"Jamie Larson","Join the discussion":"Nimm an der Diskussion teil","Just now":"Gerade eben","Local resident":"Ortsansässiger","Member discussion":"Mitgliederdiskussion",Name:"Name",Neurosurgeon:"Neurochirurg","Once deleted, this comment can’t be recovered.":"","One hour ago":"Vor einer Stunde","One min ago":"Vor einer Minute","Replied to":"",Reply:"Antworten","Reply to":"","Reply to comment":"Auf Kommentar antworten",Report:"Melden","Report comment":"Kommentar melden","Report this comment?":"Diesen Kommentar melden?",Save:"Speichern",Sending:"Senden",Sent:"Gesendet",Show:"Anzeigen","Show {{amount}} more replies":"{{amount}} weitere Antworten anzeigen","Show {{amount}} previous comments":"{{amount}} frühere Kommentare anzeigen","Show 1 more reply":"1 weitere Antwort anzeigen","Show 1 previous comment":"1 vorherigen Kommentar anzeigen","Show comment":"Kommentar anzeigen","Sign in":"Einloggen","Sign up now":"Jetzt registrieren","Sort by":"","Start the conversation":"Beginne das Gespräch","This comment has been hidden.":"Dieser Kommentar wurde ausgeblendet.","This comment has been removed.":"Dieser Kommentar wurde entfernt.","Upgrade now":"Jetzt upgraden",Yesterday:"Gestern","Your request will be sent to the owner of this site.":"Deine Anfrage wird an den Besitzer dieser Website gesendet."},gN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"","Replied to":"",Reply:"Antworten","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"{{amount}} vorherige Kommentare anzeigen","Show 1 more reply":"","Show 1 previous comment":"Einen vorherigen Kommentar anzeigen","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},yN={"{{amount}} characters left":"Απομένουν {{amount}} χαρακτήρες","{{amount}} comments":"{{amount}} σχόλια","{{amount}} hrs ago":"πριν από {{amount}} ώρες","{{amount}} mins ago":"πριν από {{amount}} λεπτά","{{amount}} more":"{{amount}} περισσότερα","1 comment":"1 σχόλιο","Add comment":"Προσθήκη σχολίου","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Προσθέστε περιεχόμενο στο σχόλιό σας, μοιραστείτε το όνομα και την εξειδίκευσή σας για να προωθήσετε μια υγιή συζήτηση.","Add reply":"Προσθήκη απάντησης","Already a member?":"Ήδη μέλος;",Anonymous:"Ανώνυμος","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Γίνετε μέλος του {{publication}} για να ξεκινήσετε να σχολιάζετε.","Become a paid member of {{publication}} to start commenting.":"Γίνετε premium μέλος του {{publication}} για να ξεκινήσετε να σχολιάζετε.",Cancel:"Ακύρωση",Comment:"Σχόλιο","Complete your profile":"Ολοκληρώστε το προφίλ σας",Delete:"Διαγραφή",Deleted:"","Deleted member":"Διαγραμμένο μέλος",Deleting:"",Discussion:"Συζήτηση",Edit:"Επεξεργασία","Edit this comment":"Επεξεργασία αυτού του σχολίου",edited:"Επεξεργασμένο","Enter your name":"Εισάγετε το όνομά σας",Expertise:"Εξειδίκευση","Founder @ Acme Inc":"Ιδρυτής @ Acme Inc","Full-time parent":"Γονέας πλήρους απασχόλησης","Head of Marketing at Acme, Inc":"Επικεφαλής Μάρκετινγκ στην Acme, Inc","Hidden for members":"",Hide:"Απόκρυψη","Hide comment":"Απόκρυψη σχολίου","Jamie Larson":"Τζέιμι Λάρσον","Join the discussion":"Συμμετοχή στη συζήτηση","Just now":"Μόλις τώρα","Local resident":"Τοπικός κάτοικος","Member discussion":"Συζήτηση μελών",Name:"Όνομα",Neurosurgeon:"Νευροχειρουργός","Once deleted, this comment can’t be recovered.":"","One hour ago":"Πριν από μία ώρα","One min ago":"Πριν από ένα λεπτό","Replied to":"",Reply:"Απάντηση","Reply to":"","Reply to comment":"Απάντηση στο σχόλιο",Report:"Αναφορά","Report comment":"Αναφορά σχολίου","Report this comment?":"Αναφορά αυτού του σχολίου;",Save:"Αποθήκευση",Sending:"Αποστολή",Sent:"Απεστάλη",Show:"Εμφάνιση","Show {{amount}} more replies":"Εμφάνιση {{amount}} περισσότερων απαντήσεων","Show {{amount}} previous comments":"Εμφάνιση {{amount}} προηγούμενων σχολίων","Show 1 more reply":"Εμφάνιση 1 ακόμα απάντησης","Show 1 previous comment":"Εμφάνιση 1 προηγούμενου σχολίου","Show comment":"Εμφάνιση σχολίου","Sign in":"Σύνδεση","Sign up now":"Εγγραφείτε τώρα","Sort by":"","Start the conversation":"Ξεκινήστε τη συζήτηση","This comment has been hidden.":"Αυτό το σχόλιο έχει κρυφτεί.","This comment has been removed.":"Αυτό το σχόλιο έχει αφαιρεθεί.","Upgrade now":"Αναβάθμιση τώρα",Yesterday:"Χθες","Your request will be sent to the owner of this site.":"Το αίτημά σας θα σταλεί στον ιδιοκτήτη αυτού του ιστότοπου."},wN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},bN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},vN={"{{amount}} characters left":"{{amount}} caracteres restantes","{{amount}} comments":"{{amount}} comentarios","{{amount}} hrs ago":"{{amount}} horas atrás","{{amount}} mins ago":"{{amount}} minutos atrás","{{amount}} more":"{{amount}} más","1 comment":"1 comentario","Add comment":"Agregar comentario","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Agrega contexto a tu comentario, comparte tu nombre y experiencia para fomentar una discusión sana.","Add reply":"Agregar respuesta","Already a member?":"¿Ya eres miembro?",Anonymous:"Anónimo","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Hazte miembro de {{publication}} para poder comentar.","Become a paid member of {{publication}} to start commenting.":"Hazte miembro de pago para poder comentar en {{publication}}.",Cancel:"Cancelar",Comment:"Comentar","Complete your profile":"Completa tu perfil",Delete:"Eliminar",Deleted:"","Deleted member":"Eliminar miembro",Deleting:"",Discussion:"Discusión",Edit:"Editar","Edit this comment":"Editar este comentario",edited:"editado","Enter your name":"Ingresa tu nombre",Expertise:"Experiencia","Founder @ Acme Inc":"Fundador @ Acme Inc","Full-time parent":"Padres de tiempo completo","Head of Marketing at Acme, Inc":"Jefe de Marketing en Acme, Inc","Hidden for members":"",Hide:"Ocultar","Hide comment":"Ocultar comentario","Jamie Larson":"Jamie Larson","Join the discussion":"Únete a la discusión","Just now":"Justo ahora","Local resident":"Residente local","Member discussion":"Discusión de miembros",Name:"Nombre",Neurosurgeon:"Neurocirujano","Once deleted, this comment can’t be recovered.":"","One hour ago":"Hace una hora","One min ago":"Hace un minuto","Replied to":"",Reply:"Responder","Reply to":"","Reply to comment":"Responder al comentario",Report:"Reportar","Report comment":"Reportar comentario","Report this comment?":"¿Reportar este comentario?",Save:"Guardar",Sending:"Enviando",Sent:"Enviar",Show:"Mostrar","Show {{amount}} more replies":"Mostrar {{amount}} respuestas más","Show {{amount}} previous comments":"Mostrar {{amount}} comentarios previos","Show 1 more reply":"Mostrar 1 respuesta más","Show 1 previous comment":"Mostrar 1 comentario previo","Show comment":"Mostrar comentario","Sign in":"Inicia sesión","Sign up now":"Regístrate ahora","Sort by":"","Start the conversation":"Comienza la conversación","This comment has been hidden.":"Este comentario ha sido ocultado.","This comment has been removed.":"Este comentario ha sido borrado.","Upgrade now":"Actualiza tu cuenta ahora",Yesterday:"Ayer","Your request will be sent to the owner of this site.":"Tu requerimiento será enviado al dueño de este sitio web."},SN={"{{amount}} characters left":"{{amount}} tähemärki jäänud","{{amount}} comments":"{{amount}} kommentaari","{{amount}} hrs ago":"{{amount}} tundi tagasi","{{amount}} mins ago":"{{amount}} minutit tagasi","{{amount}} more":"{{amount}} veel","1 comment":"1 kommentaar","Add comment":"Lisa kommentaar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Lisa oma kommentaarile konteksti, jaga oma nime ja kogemusi, et soodustada tervislikku arutelu.","Add reply":"Lisa vastus","Already a member?":"Juba liige?",Anonymous:"Anonüümne","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Kommenteerimise alustamiseks saage {{publication}} liikmeks.","Become a paid member of {{publication}} to start commenting.":"Kommenteerimise alustamiseks saage {{publication}} tasuliseks liikmeks.",Cancel:"Tühista",Comment:"Kommentaar","Complete your profile":"Täida oma profiil",Delete:"Kustuta",Deleted:"","Deleted member":"Kustutatud liige",Deleting:"",Discussion:"Arutelu",Edit:"Muuda","Edit this comment":"Muuda seda kommentaari",edited:"muudetud","Enter your name":"Sisesta oma nimi",Expertise:"Oskused","Founder @ Acme Inc":"Asutaja @ Acme Inc","Full-time parent":"Täiskohaga lapsevanem","Head of Marketing at Acme, Inc":"Turundusjuht Acme, Inc-s","Hidden for members":"",Hide:"Peida","Hide comment":"Peida kommentaar","Jamie Larson":"Jamie Larson","Join the discussion":"Liitu aruteluga","Just now":"Just praegu","Local resident":"Kohalik elanik","Member discussion":"Liikmete arutelu",Name:"Nimi",Neurosurgeon:"Neurokirurg","Once deleted, this comment can’t be recovered.":"","One hour ago":"Üks tund tagasi","One min ago":"Üks minut tagasi","Replied to":"",Reply:"Vasta","Reply to":"","Reply to comment":"Vasta kommentaarile",Report:"Teata","Report comment":"Teata kommentaarist","Report this comment?":"Teatada sellest kommentaarist?",Save:"Salvesta",Sending:"Saatmine",Sent:"Saadetud",Show:"Näita","Show {{amount}} more replies":"Näita {{amount}} vastust veel","Show {{amount}} previous comments":"Näita {{amount}} eelmist kommentaari","Show 1 more reply":"Näita 1 vastus veel","Show 1 previous comment":"Näita eelmist kommentaari","Show comment":"Näita kommentaari","Sign in":"Logi sisse","Sign up now":"Registreeru nüüd","Sort by":"","Start the conversation":"Alusta vestlust","This comment has been hidden.":"See kommentaar on peidetud.","This comment has been removed.":"See kommentaar on eemaldatud.","Upgrade now":"Uuenda nüüd",Yesterday:"Eile","Your request will be sent to the owner of this site.":"Teie taotlus saadetakse selle saidi omanikule."},xN={"{{amount}} characters left":"{{amount}} حرف باقیمانده است","{{amount}} comments":"{{amount}} دیدگاه","{{amount}} hrs ago":"{{amount}} ساعت پیش","{{amount}} mins ago":"{{amount}} دقیقه پیش","{{amount}} more":"{{amount}} بیشتر","1 comment":"یک دیدگاه","Add comment":"دیدگاهی بفرستید","Add context to your comment, share your name and expertise to foster a healthy discussion.":"به دیدگاه خود موضوعیت ببخشید و با به اشتراکگذاری نام و تخصص خود یک گفتمان سالم ایجاد کنید.","Add reply":"پاسخی بدهید","Already a member?":"عضو هستید؟",Anonymous:"ناشناس","Are you sure?":"","Become a member of {{publication}} to start commenting.":"عضو وبسایت {{publication}} شوید تا مجوز ارسال دیدگاه دریافت کنید.","Become a paid member of {{publication}} to start commenting.":"حق اشتراک وبسایت {{publication}} را پرداخت کنید تا مجوز ارسال دیدگاه دریافت کنید.",Cancel:"انصراف",Comment:"دیدگاه","Complete your profile":"نمایه خود را کامل کنید",Delete:"پاک کردن",Deleted:"","Deleted member":"حساب پاکشده",Deleting:"",Discussion:"گفتمان",Edit:"ویرایش","Edit this comment":"ویرایش این دیدگاه",edited:"ویرایششده","Enter your name":"نام خود را بنویسید",Expertise:"تخصص","Founder @ Acme Inc":"مدیر عامل یک شرکت خیالی","Full-time parent":" خانهدار تمام وقت","Head of Marketing at Acme, Inc":"سرپرست بخش بازاریابی یک شرکت خیالی","Hidden for members":"",Hide:"مخفی کردن","Hide comment":"مخفی کردن دیدگاه","Jamie Larson":"جیمی لارسن","Join the discussion":"به گفتمان بپیوندید","Just now":"پیوستن","Local resident":"ساکن محلی","Member discussion":"گفتمان کاربران",Name:"نام",Neurosurgeon:"جراح مغز و اعصاب","Once deleted, this comment can’t be recovered.":"","One hour ago":"یک ساعت پیش","One min ago":"یک دقیقه پیش","Replied to":"",Reply:"پاسخ دادن","Reply to":"","Reply to comment":"پاسخ دادن به دیدگاه",Report:"گزارش","Report comment":"گزارش دیدگاه","Report this comment?":"میخواهید این دیدگاه را گزارش کنید؟",Save:"ذخیره کردن",Sending:"در حال ارسال",Sent:"ارسال شد",Show:"نمایش","Show {{amount}} more replies":"نمایش {{amount}} پاسخ بیشتر","Show {{amount}} previous comments":"نمایش {{amount}} دیدگاه قبلتر","Show 1 more reply":"نمایش یک دیدگاه بیشتر","Show 1 previous comment":"نمایش یک دیدگاه قبلتر","Show comment":"نمایش دیدگاه","Sign in":"ورود به حساب","Sign up now":"ایجاد حساب","Sort by":"","Start the conversation":"گفتوگویی شروع کنید","This comment has been hidden.":"این دیدگاه مخفی شده است","This comment has been removed.":"این دیدگاه پاک شده است","Upgrade now":"ارتقاء دهید",Yesterday:"دیروز","Your request will be sent to the owner of this site.":"درخواست شما برای مدیر این وبسایت ارسال خواهد شد."},kN={"{{amount}} characters left":"{{amount}} merkkiä jäljellä","{{amount}} comments":"{{amount}} kommenttia","{{amount}} hrs ago":"{{amount}} tuntia sitten","{{amount}} mins ago":"{{amount}} minuuttia sitten","{{amount}} more":"{{amount}} vielä lisää","1 comment":"1 kommentti","Add comment":"Lisää kommentti","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Lisää sisältöä kommenttiisi, jaa nimesi ja osaamisesi saadaksesi aikaan tervettä keskustelua","Add reply":"Lisää vastaus","Already a member?":"Oletko jo jäsen?",Anonymous:"Anonyymi","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Ala {{publication}} jäseneksi pystyäksesi kommentoimaan","Become a paid member of {{publication}} to start commenting.":"Ota maksullinen jäsenyys sivulle {{publication}}, jotta pystyt kommentoimaan",Cancel:"Peruuta",Comment:"Kommentti","Complete your profile":"Täydennä profiilisi",Delete:"Poista",Deleted:"","Deleted member":"Poista jäsen",Deleting:"",Discussion:"Keskustelu",Edit:"Editoi","Edit this comment":"Editoi tätä kommenttia",edited:"editoitu","Enter your name":"Syötä nimesi",Expertise:"Osaaminen","Founder @ Acme Inc":"","Full-time parent":"Kokoaikainen vanhempi","Head of Marketing at Acme, Inc":"Markkinointijohtaja","Hidden for members":"",Hide:"Piilota","Hide comment":"Piilota kommentti","Jamie Larson":"Jamie Larson","Join the discussion":"Liity keskusteluun","Just now":"Juuri nyt","Local resident":"Paikallinen","Member discussion":"Jäsenten keskustelu",Name:"Nimi",Neurosurgeon:"Neurokirurgi","Once deleted, this comment can’t be recovered.":"","One hour ago":"Tunti sitten","One min ago":"Minuutti sitten","Replied to":"",Reply:"Vastaa","Reply to":"","Reply to comment":"Vastaa kommenttiin",Report:"Ilmianna","Report comment":"Ilmianna kommentti","Report this comment?":"Haluatko ilmiantaa tämän kommentin?",Save:"Tallenna",Sending:"Lähetetään",Sent:"Lähetetty",Show:"Näytä","Show {{amount}} more replies":"Näytä {{amount}} vastausta lisää ","Show {{amount}} previous comments":"Näytä {{amount}} edellistä kommenttia","Show 1 more reply":"Näytä 1 vastaus lisää","Show 1 previous comment":"Näytä edellinen kommentti","Show comment":"Näytä kommentti","Sign in":"Kirjaudu sisään","Sign up now":"Rekisteröidy nyt","Sort by":"","Start the conversation":"Aloita keskustelu","This comment has been hidden.":"Tämä kommentti on piilotettu","This comment has been removed.":"Tämä kommentti on poistettu","Upgrade now":"Korota nyt",Yesterday:"Eilen","Your request will be sent to the owner of this site.":"Sinun pyyntösi lähetetään sivun omistajalle"},$N={"{{amount}} characters left":"{{amount}} caractères restants","{{amount}} comments":"{{amount}} commentaires","{{amount}} hrs ago":"Il y a {{amount}} heures","{{amount}} mins ago":"Il y a {{amount}} minutes","{{amount}} more":"{{amount}} supplémentaire(s)","1 comment":"1 commentaire","Add comment":"Ajouter un commentaire","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Ajoutez un contexte à votre commentaire. Partagez votre nom et vos compétences pour favoriser une discussion saine.","Add reply":"Ajouter une réponse","Already a member?":"Déjà abonné ?",Anonymous:"Anonyme","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Abonnez-vous gratuitement à {{publication}} pour commencer à commenter.","Become a paid member of {{publication}} to start commenting.":"Choisissez un abonnement payant à {{publication}} pour commencer à commenter.",Cancel:"Annuler",Comment:"Commentaire","Complete your profile":"Complétez votre profil",Delete:"Supprimer",Deleted:"","Deleted member":"Abonné supprimé",Deleting:"",Discussion:"Discussion",Edit:"Modifier","Edit this comment":"Modifier ce commentaire",edited:"modifié","Enter your name":"Entrez votre nom",Expertise:"Compétences","Founder @ Acme Inc":"Fondateur @ Acme Inc","Full-time parent":"Parent à plein temps","Head of Marketing at Acme, Inc":"Responsable du marketing chez Acme, Inc","Hidden for members":"",Hide:"Masquer","Hide comment":"Masquer le commentaire","Jamie Larson":"Jean Martin","Join the discussion":"Rejoindre la discussion","Just now":"À l'instant","Local resident":"Résident local","Member discussion":"Discussion entre abonnés",Name:"Nom",Neurosurgeon:"Neurochirurgien","Once deleted, this comment can’t be recovered.":"","One hour ago":"Il y a une heure","One min ago":"Il y a une minute","Replied to":"",Reply:"Répondre","Reply to":"","Reply to comment":"Répondre au commentaire",Report:"Signaler","Report comment":"Signaler le commentaire","Report this comment?":"Signaler ce commentaire ?",Save:"Enregistrer",Sending:"Envoi en cours",Sent:"Envoyé",Show:"Afficher","Show {{amount}} more replies":"Afficher {{amount}} réponses supplémentaires","Show {{amount}} previous comments":"Afficher {{amount}} commentaires précédents","Show 1 more reply":"Afficher 1 réponse supplémentaire","Show 1 previous comment":"Afficher 1 commentaire précédent","Show comment":"Afficher le commentaire","Sign in":"Se connecter","Sign up now":"S'inscrire maintenant","Sort by":"Trier par","Start the conversation":"Commencer la conversation","This comment has been hidden.":"Ce commentaire a été masqué.","This comment has been removed.":"Ce commentaire a été supprimé.","Upgrade now":"Mettre à jour maintenant",Yesterday:"Hier","Your request will be sent to the owner of this site.":"Votre demande sera transférée au propriétaire de ce site."},CN={"{{amount}} characters left":"caractaran air fhàgail: {{amount}}","{{amount}} comments":"beachdan: {{amount}}","{{amount}} hrs ago":"o chionn {{amount}}u","{{amount}} mins ago":"o chionn {{amount}}m","{{amount}} more":"{{amount}} a bharrachd","1 comment":"1 bheachd","Add comment":"Fàg beachd air","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Cuir co-theacsa ris a' bheachd agad, cuir d' ainm is sàr-eòlas ris gus deasbad fallain a brosnachadh.","Add reply":"Cuir freagairt ris","Already a member?":"’Eil thu nad bhall mar-thà?",Anonymous:"Gun ainm","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Clàraich nad bhall an làrach-lìn, {{publication}}, gus beachd fhàgail air.","Become a paid member of {{publication}} to start commenting.":"Clàraich nad bhall phrìomhach an làrach-lìn, {{publication}}, gus beachd fhàgail air.",Cancel:"Sguir dheth",Comment:"Beachd","Complete your profile":"Lìon a-steach a' phròifil agad",Delete:"Sguab às",Deleted:"","Deleted member":"Ball air a sguabadh às",Deleting:"",Discussion:"Deasbad",Edit:"Deasaich","Edit this comment":"Deasaich am beachd seo",edited:"Air a dheasachad","Enter your name":"Cuir a-steach d’ ainm",Expertise:"Sàr-eòlas","Founder @ Acme Inc":"Neach-stèidheachaidh @ Acme Inc","Full-time parent":"Pàrant làn-ùine","Head of Marketing at Acme, Inc":"Àrd-cheann Margaidheachd aig Acme, Inc","Hidden for members":"",Hide:"Cuir am falach","Hide comment":"Cuir am beachd am falach","Jamie Larson":"Seamaidh Larson","Join the discussion":"Gabh pàirt san deasbad","Just now":"An-dràsta","Local resident":"Neach-còmhnaidh ionadail","Member discussion":"Deasbad",Name:"Ainm",Neurosurgeon:"Niùro-làmh-lèigh","Once deleted, this comment can’t be recovered.":"","One hour ago":"O chionn uair a thìde","One min ago":"O chionn mionaid","Replied to":"",Reply:"Cuir freagairt","Reply to":"","Reply to comment":"Cuir freagaist ri beachd",Report:"Dèan aithris air","Report comment":"Dèan aithris air beachd","Report this comment?":"’Eil thu airson aithris a dhèanamh air a’ bheachd seo?",Save:"Sabhail",Sending:"’Ga chur",Sent:"Air a chur",Show:"Seall","Show {{amount}} more replies":"An àireamh de bheachdan a bharrachd a chìthear: {{amount}}","Show {{amount}} previous comments":"An àireamh de bheachdan roimhe a chìthear: {{amount}}","Show 1 more reply":"Seall beachd a bharrachd","Show 1 previous comment":"Seall am beachd roimhe","Show comment":"Seall am beachd","Sign in":"Clàraich a-steach","Sign up now":"Clàraich a-nis","Sort by":"","Start the conversation":"Tòisich an deasbad","This comment has been hidden.":"Chaidh am beachd seo a chur am falach.","This comment has been removed.":"Chaidh am beachd seo a sguabadh às.","Upgrade now":"Àrdaich a-nis",Yesterday:"An-dè","Your request will be sent to the owner of this site.":"Thèid an iarrtas agad a chur gu neach-seilbh an làrach-lìn seo."},EN={"{{amount}} characters left":"נותרו עוד {{amount}} תווים","{{amount}} comments":"{{amount}} תגובות","{{amount}} hrs ago":"לפני {{amount}} שעות","{{amount}} mins ago":"לפני {{amount}} דקות","{{amount}} more":"עוד {{amount}}","1 comment":"תגובה אחת","Add comment":"הוסיפו תגובה","Add context to your comment, share your name and expertise to foster a healthy discussion.":"הוסיפו תוכן לתגובה שלכם, שתפו את שמכם ואת התמחותכם כדי לקדם דיון בריא.","Add reply":"הוסיפו תגובה","Already a member?":"כבר רשומים?",Anonymous:"אנונימי","Are you sure?":"","Become a member of {{publication}} to start commenting.":"הירשמו כחברי {{publication}} כדי להתחיל להגיב.","Become a paid member of {{publication}} to start commenting.":"הירשמו כחברי משלמים של {{publication}} כדי להתחיל להגיב.",Cancel:"ביטול",Comment:"תגובה","Complete your profile":"השלימו את הפרופיל שלכם",Delete:"מחיקה",Deleted:"","Deleted member":"חבר שנמחק",Deleting:"",Discussion:"דיון",Edit:"עריכה","Edit this comment":"ערכו תגובה זו",edited:"נערך","Enter your name":"כתבו את שמכם",Expertise:"ניסיון","Founder @ Acme Inc":"מייסד @ Acme Inc","Full-time parent":"הורה במשרה מלאה","Head of Marketing at Acme, Inc":"ראש אגף שיווק ב- Acme, Inc","Hidden for members":"",Hide:"הסתר","Hide comment":"הסתר תגובה","Jamie Larson":"ג׳יימי לרסון","Join the discussion":"הצטרפו לדיון","Just now":"ממש עכשיו","Local resident":"תושב מקומי","Member discussion":"דיון חברים רשומים",Name:"שם",Neurosurgeon:"נוֹיְרוֹכִירוּרְג","Once deleted, this comment can’t be recovered.":"","One hour ago":"לפני שעה","One min ago":"לפני דקה","Replied to":"",Reply:"תגובה","Reply to":"","Reply to comment":"הגיבו לתגובה",Report:"דיווח","Report comment":"דווחו על תגובה","Report this comment?":"האם לדווח על תגובה זו?",Save:"שמירה",Sending:"שליחה",Sent:"שלחנו",Show:"להציג","Show {{amount}} more replies":"להציג עוד {{amount}} תגובות","Show {{amount}} previous comments":"להציג {{amount}} תגובות קודמות","Show 1 more reply":"להציג תגובה נוספת","Show 1 previous comment":"להציג תגובה קודמת","Show comment":"להציג תגובה","Sign in":"היכנסו","Sign up now":"הירשמו עכשיו","Sort by":"למיין לפי","Start the conversation":"התחילו את השיחה","This comment has been hidden.":"התגובה הזו הוסתרה.","This comment has been removed.":"התגובה הזו הוסרה.","Upgrade now":"שדרגו עכשיו",Yesterday:"אתמול","Your request will be sent to the owner of this site.":"בקשתך תישלח לבעלים של האתר הזה."},NN={"{{amount}} characters left":"{{amount}} अक्षर बाकी","{{amount}} comments":"{{amount}} टिप्पणियाँ","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"{{amount}} और","1 comment":"1 टिप्पणी","Add comment":"टिप्पणी जोड़ें","Add context to your comment, share your name and expertise to foster a healthy discussion.":"अपनी टिप्पणी में संदर्भ जोड़ें, स्वस्थ चर्चा के लिए अपना नाम और विशेषज्ञता साझा करें।","Add reply":"जवाब जोड़ें","Already a member?":"पहले से सदस्य हैं?",Anonymous:"अनाम","Are you sure?":"","Become a member of {{publication}} to start commenting.":"टिप्पणी शुरू करने के लिए {{publication}} का सदस्य बनें।","Become a paid member of {{publication}} to start commenting.":"टिप्पणी शुरू करने के लिए {{publication}} के भुगतान सदस्य बनें।",Cancel:"रद्द करें",Comment:"टिप्पणी","Complete your profile":"अपनी प्रोफ़ाइल पूरी करें",Delete:"हटाएं",Deleted:"","Deleted member":"हटाए गए सदस्य",Deleting:"",Discussion:"चर्चा",Edit:"संपादित करें","Edit this comment":"इस टिप्पणी को संपादित करें",edited:"","Enter your name":"अपना नाम दर्ज करें",Expertise:"विशेषज्ञता","Founder @ Acme Inc":"संस्थापक @ Acme Inc","Full-time parent":"पूर्णकालिक माता-पिता","Head of Marketing at Acme, Inc":"Acme, Inc में विपणन प्रमुख","Hidden for members":"",Hide:"छिपाएं","Hide comment":"टिप्पणी छिपाएं","Jamie Larson":"राहुल शर्मा","Join the discussion":"चर्चा में शामिल हों","Just now":"अभी","Local resident":"स्थानीय निवासी","Member discussion":"सदस्य चर्चा",Name:"नाम",Neurosurgeon:"न्यूरोसर्जन","Once deleted, this comment can’t be recovered.":"","One hour ago":"एक घंटा पहले","One min ago":"","Replied to":"",Reply:"जवाब दें","Reply to":"","Reply to comment":"टिप्पणी का जवाब दें",Report:"रिपोर्ट","Report comment":"टिप्पणी की रिपोर्ट करें","Report this comment?":"क्या आप इस टिप्पणी की रिपोर्ट करना चाहते हैं?",Save:"सहेजें",Sending:"भेजा जा रहा है",Sent:"भेजा गया",Show:"दिखाएं","Show {{amount}} more replies":"{{amount}} और जवाब दिखाएं","Show {{amount}} previous comments":"{{amount}} पिछली टिप्पणियाँ दिखाएं","Show 1 more reply":"1 और जवाब दिखाएं","Show 1 previous comment":"1 पिछली टिप्पणी दिखाएं","Show comment":"टिप्पणी दिखाएं","Sign in":"साइन इन करें","Sign up now":"अभी साइन अप करें","Sort by":"","Start the conversation":"बातचीत शुरू करें","This comment has been hidden.":"इस टिप्पणी को छिपा दिया गया है।","This comment has been removed.":"इस टिप्पणी को हटा दिया गया है।","Upgrade now":"अब उन्नत करें",Yesterday:"कल","Your request will be sent to the owner of this site.":"आपका अनुरोध इस साइट के मालिक को भेजा जाएगा।"},DN={"{{amount}} characters left":"{{amount}} znakova preostalo","{{amount}} comments":"{{amount}} komentara","{{amount}} hrs ago":"Prije {{amount}} sati","{{amount}} mins ago":"Prije {{amount}} minuta","{{amount}} more":"{{amount}} više","1 comment":"1 komentar","Add comment":"Dodaj komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dajte kontekts vašem komentaru, podijelite vaše ime i znanje za unaprijeđenje svake rasprave.","Add reply":"Dodaj odgovor","Already a member?":"Već si član?",Anonymous:"Anonimus","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Postani član {{publication}} za mogućnost komentiranja.","Become a paid member of {{publication}} to start commenting.":"Plati pretplatu na {{publication}} za mogućnost komentiranja.",Cancel:"Prekini",Comment:"Komentar","Complete your profile":"Dovrši svoj profil",Delete:"Obriši",Deleted:"","Deleted member":"Obrisan član",Deleting:"",Discussion:"Rasprava",Edit:"Uredi","Edit this comment":"Uredi ovaj komentar",edited:"uređen","Enter your name":"Unesite vaše ime",Expertise:"Stručnost","Founder @ Acme Inc":"Osnivač Acme Inc","Full-time parent":"Full-time Roditelj","Head of Marketing at Acme, Inc":"Voditelj marketinga Acme, Inc","Hidden for members":"",Hide:"Sakrij","Hide comment":"Sakrij komentar","Jamie Larson":"Jamie Larson","Join the discussion":"Pridruži se raspravi","Just now":"Upravo sada","Local resident":"Lokalni stanovnik","Member discussion":"Rasprava članova",Name:"Ime",Neurosurgeon:"Neurokirurg","Once deleted, this comment can’t be recovered.":"","One hour ago":"Prije jednog sata","One min ago":"Prije jedne minute","Replied to":"",Reply:"Odgovori","Reply to":"","Reply to comment":"Odgovori na komentar",Report:"Prijavi","Report comment":"Prijavi komentar","Report this comment?":"Prijaviti ovaj komentar?",Save:"Spremi",Sending:"Slanje",Sent:"Poslano",Show:"Prikaži","Show {{amount}} more replies":"Prikaži još {{amount}} odgovora","Show {{amount}} previous comments":"Prikaži {{amount}} prethodnih komentara","Show 1 more reply":"Prikaži još jedan odgovor","Show 1 previous comment":"Prikaži prethodan komentar","Show comment":"Prikaži komentar","Sign in":"Prijava","Sign up now":"Registriraj se sada","Sort by":"","Start the conversation":"Pokreni razgovor","This comment has been hidden.":"Ovaj komentar je skriven","This comment has been removed.":"Ovaj komentar je maknut","Upgrade now":"Nadogradite sada",Yesterday:"Jučer","Your request will be sent to the owner of this site.":"Vaš zahtjev će se poslati vasniku ovih web stranica."},AN={"{{amount}} characters left":"{{amount}} karakter maradt","{{amount}} comments":"{{amount}} hozzászólás","{{amount}} hrs ago":"{{amount}} órája","{{amount}} mins ago":"{{amount}} perce","{{amount}} more":"","1 comment":"1 hozzászólás","Add comment":"Hozzászólás","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Adjon kontextust hozzászólásaihoz: ossza meg nevét és foglalkozását az egészséges vita elősegítése érdekében.","Add reply":"Válasz","Already a member?":"Már van fiókja?",Anonymous:"Anonim","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Regisztráljon a hozzászólások írásához.","Become a paid member of {{publication}} to start commenting.":"Regisztráljon fizetős fiókot a hozzászólások írásához.",Cancel:"Mégse",Comment:"Hozzászólás","Complete your profile":"Profil befejezése",Delete:"Törlés",Deleted:"","Deleted member":"Törölt tag",Deleting:"",Discussion:"Hozzászólások",Edit:"Szerkesztés","Edit this comment":"Hozzászólás szerkesztése",edited:"szerkesztve","Enter your name":"Adja meg a nevét",Expertise:"Foglalkozás","Founder @ Acme Inc":"Acme Kft. alapító","Full-time parent":"Főállású szülő","Head of Marketing at Acme, Inc":"Marketing vezető — Acme Kft.","Hidden for members":"",Hide:"Elrejtés","Hide comment":"Hozzászólás elrejtése","Jamie Larson":"Kiss Sára","Join the discussion":"Csatlakozzon a beszélgetéshez","Just now":"Épp most","Local resident":"Helyi lakos","Member discussion":"Hozzászólások",Name:"Név",Neurosurgeon:"Idegsebész","Once deleted, this comment can’t be recovered.":"","One hour ago":"Egy órája","One min ago":"Egy perce","Replied to":"",Reply:"Válasz","Reply to":"","Reply to comment":"Válasz erre",Report:"Jelentés","Report comment":"Hozzászólás jelentése","Report this comment?":"Hozzászólás jelentése?",Save:"Mentés",Sending:"Küldés",Sent:"Elküldve",Show:"Mutat","Show {{amount}} more replies":"Mutass még {{amount}} választ","Show {{amount}} previous comments":"Mutass {{amount}} előző hozzászólást","Show 1 more reply":"Mutass még egy választ","Show 1 previous comment":"Mutass még egy hozzászólást","Show comment":"Hozzászólás mutatása","Sign in":"Bejelentkezés","Sign up now":"Regisztráljon most","Sort by":"","Start the conversation":"Kezdje el a beszélgetést","This comment has been hidden.":"Ezt a hozzászólást elrejtettük.","This comment has been removed.":"Ezt a hozzászólást töröltük.","Upgrade now":"Fizessen elő most",Yesterday:"Tegnap","Your request will be sent to the owner of this site.":"A kérését a website tulajdonosának fogjuk küldeni."},RN={"{{amount}} characters left":"{{amount}} karakter tersisa","{{amount}} comments":"{{amount}} komentar","{{amount}} hrs ago":"{{amount}} jam yang lalu","{{amount}} mins ago":"{{amount}} menit yang lalu","{{amount}} more":"{{amount}} lagi","1 comment":"1 komentar","Add comment":"Tambahkan komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Tambahkan konteks pada komentar Anda, bagikan nama dan keahlian Anda untuk mendorong diskusi yang sehat.","Add reply":"Tambahkan balasan","Already a member?":"Sudah menjadi anggota?",Anonymous:"Anonim","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Jadilah anggota di {{publication}} untuk mulai berkomentar.","Become a paid member of {{publication}} to start commenting.":"Jadilah anggota berbayar di {{publication}} untuk mulai berkomentar.",Cancel:"Batal",Comment:"Komentar","Complete your profile":"Lengkapi profil Anda",Delete:"Hapus",Deleted:"","Deleted member":"Anggota dihapus",Deleting:"",Discussion:"Diskusi",Edit:"Edit","Edit this comment":"Edit komentar ini",edited:"diedit","Enter your name":"Masukkan nama Anda",Expertise:"Keahlian","Founder @ Acme Inc":"Founder @ Acme Inc","Full-time parent":"Orang tua penuh waktu","Head of Marketing at Acme, Inc":"Direktur Pemasaran di Acme, Inc","Hidden for members":"",Hide:"Sembunyikan","Hide comment":"Sembunyikan komentar","Jamie Larson":"Sutan T. Alisjahbana","Join the discussion":"Bergabung dalam diskusi","Just now":"Baru saja","Local resident":"Penduduk lokal","Member discussion":"Diskusi anggota",Name:"Nama",Neurosurgeon:"Ahli Bedah Saraf","Once deleted, this comment can’t be recovered.":"","One hour ago":"Satu jam yang lalu","One min ago":"Satu menit yang lalu","Replied to":"",Reply:"Balas","Reply to":"","Reply to comment":"Balas komentar",Report:"Laporkan","Report comment":"Laporkan komentar","Report this comment?":"Laporkan komentar ini?",Save:"Simpan",Sending:"Mengirim",Sent:"Terkirim",Show:"Tampilkan","Show {{amount}} more replies":"Tampilkan {{amount}} balasan lainnya","Show {{amount}} previous comments":"Tampilkan {{amount}} komentar sebelumnya","Show 1 more reply":"Tampilkan 1 balasan lainnya","Show 1 previous comment":"Tampilkan 1 komentar sebelumnya","Show comment":"Tampilkan komentar","Sign in":"Masuk","Sign up now":"Daftar sekarang","Sort by":"","Start the conversation":"Mulai percakapan","This comment has been hidden.":"Komentar ini telah disembunyikan.","This comment has been removed.":"Komentar ini telah dihapus.","Upgrade now":"Daftar sekarang",Yesterday:"Kemarin","Your request will be sent to the owner of this site.":"Permintaan Anda akan dikirim kepada pemilik situs ini."},ON={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},MN={"{{amount}} characters left":"{{amount}} caratteri rimanenti","{{amount}} comments":"{{amount}} commenti","{{amount}} hrs ago":"{{amount}} ore fa","{{amount}} mins ago":"{{amount}} minuti fa","{{amount}} more":"{{amount}} in più","1 comment":"1 commento","Add comment":"Aggiungi commento","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Aggiungi dettagli al tuo commento, condividi il tuo nome e le tue competenze per incoraggiare una conversazione sana.","Add reply":"Aggiungi risposta","Already a member?":"Sei già iscritto?",Anonymous:"Anonimo","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Iscriviti a {{publication}} per poter commentare.","Become a paid member of {{publication}} to start commenting.":"Abbonati a {{publication}} per poter commentare.",Cancel:"Annulla",Comment:"Commenta","Complete your profile":"Completa il tuo profilo",Delete:"Elimina",Deleted:"","Deleted member":"Utente eliminato",Deleting:"",Discussion:"Discussione",Edit:"Modifica","Edit this comment":"Modifica questo commento",edited:"modificato","Enter your name":"Inserisci il tuo nome",Expertise:"Competenze","Founder @ Acme Inc":"Megadirettore Galattico","Full-time parent":"Genitore a tempo pieno","Head of Marketing at Acme, Inc":"Ragioniere presso Megaditta","Hidden for members":"",Hide:"Nascondi","Hide comment":"Nascondi commento","Jamie Larson":"Andrea Rossi","Join the discussion":"Partecipa alla discussione","Just now":"Adesso","Local resident":"Paesano","Member discussion":"Commenti",Name:"Nome",Neurosurgeon:"Neurochirurgo","Once deleted, this comment can’t be recovered.":"","One hour ago":"Un'ora fa","One min ago":"Un minuto fa","Replied to":"",Reply:"Rispondi","Reply to":"","Reply to comment":"Rispondi al commento",Report:"Segnala","Report comment":"Segnala commento","Report this comment?":"Segnalare questo commento?",Save:"Salva",Sending:"Invio",Sent:"Inviato",Show:"Mostra","Show {{amount}} more replies":"Mostra altre {{amount}} risposte","Show {{amount}} previous comments":"Mostra altri {{amount}} commenti","Show 1 more reply":"Mostra un'altra risposta","Show 1 previous comment":"Mostra un commento precedente","Show comment":"Mostra commento","Sign in":"Accedi","Sign up now":"Accedi ora","Sort by":"Ordina per","Start the conversation":"Commenta per primo","This comment has been hidden.":"Questo commento è stato nascosto.","This comment has been removed.":"Questo commento è stato rimosso.","Upgrade now":"Abbonati ora",Yesterday:"Ieri","Your request will be sent to the owner of this site.":"La tua richiesta sarà inviata al proprietario del sito."},TN={"{{amount}} characters left":"残り{{amount}}文字","{{amount}} comments":"{{amount}}のコメント","{{amount}} hrs ago":"{{amount}}時間前","{{amount}} mins ago":"{{amount}}分前","{{amount}} more":"さらに{{amount}}個","1 comment":"1のコメント","Add comment":"コメントする","Add context to your comment, share your name and expertise to foster a healthy discussion.":"コメントはよく説明し、名前と専門分野を共有することで健全な議論をすすめましょう。","Add reply":"返信する","Already a member?":"メンバーですか?",Anonymous:"匿名","Are you sure?":"","Become a member of {{publication}} to start commenting.":"{{publication}}のメンバーになってコメントを始めましょう。","Become a paid member of {{publication}} to start commenting.":"{{publication}}の有料メンバーになってコメントを始めましょう。",Cancel:"キャンセル",Comment:"コメント","Complete your profile":"プロフィールを完成させる",Delete:"削除",Deleted:"","Deleted member":"削除されたメンバー",Deleting:"",Discussion:"議論",Edit:"編集","Edit this comment":"このコメントを編集する",edited:"編集済み","Enter your name":"名前を記入",Expertise:"専門分野","Founder @ Acme Inc":"創業者 @ Acme Inc","Full-time parent":"専業主婦・主夫","Head of Marketing at Acme, Inc":"マーケティング責任者 @ Acme, Inc","Hidden for members":"",Hide:"非表示にする","Hide comment":"コメントを非表示にする","Jamie Larson":"ジェイミー・ラーソン","Join the discussion":"議論に参加する","Just now":"今すぐ参加する","Local resident":"地元住民","Member discussion":"メンバーによる議論",Name:"名前",Neurosurgeon:"脳神経外科医","Once deleted, this comment can’t be recovered.":"","One hour ago":"1時間前","One min ago":"1分前","Replied to":"",Reply:"返信する","Reply to":"","Reply to comment":"コメントに返信する",Report:"通報する","Report comment":"コメントを通報する","Report this comment?":"このコメントを通報しますか?",Save:"保存",Sending:"送信中",Sent:"送信完了",Show:"表示する","Show {{amount}} more replies":"{{amount}}個の返信を表示する","Show {{amount}} previous comments":"前のコメントを{{amount}}個表示する","Show 1 more reply":"返信をもう1つ表示する","Show 1 previous comment":"1つ前のコメントを表示する","Show comment":"コメントを表示する","Sign in":"ログイン","Sign up now":"今すぐ新規登録する","Sort by":"","Start the conversation":"会話を始める","This comment has been hidden.":"このコメントは非表示にされました。","This comment has been removed.":"このコメントは削除されました。","Upgrade now":"今すぐアップデートする",Yesterday:"昨日","Your request will be sent to the owner of this site.":"あなたのリクエストはこのサイトの管理者に送信されます。"},jN={"{{amount}} characters left":"{{amount}}글자 남음","{{amount}} comments":"{{amount}}개의 댓글","{{amount}} hrs ago":"{{amount}}시간 전","{{amount}} mins ago":"{{amount}}분 전","{{amount}} more":"{{amount}}개 더보기","1 comment":"1개의 댓글","Add comment":"댓글 추가","Add context to your comment, share your name and expertise to foster a healthy discussion.":"건설적인 토론을 위해 댓글에 맥락을 추가하고, 이름과 전문 분야를 공유해 주세요.","Add reply":"답변 추가","Already a member?":"이미 회원이신가요?",Anonymous:"익명","Are you sure?":"","Become a member of {{publication}} to start commenting.":"{{publication}}의 회원이 되어 댓글을 작성해 주세요.","Become a paid member of {{publication}} to start commenting.":"{{publication}}의 유료 회원이 되어 댓글을 작성해 주세요.",Cancel:"취소",Comment:"댓글","Complete your profile":"프로필을 완성해 주세요",Delete:"삭제",Deleted:"","Deleted member":"삭제된 회원",Deleting:"",Discussion:"댓글",Edit:"수정","Edit this comment":"댓글 수정",edited:"수정됨","Enter your name":"이름을 입력해 주세요",Expertise:"전문분야","Founder @ Acme Inc":"Acme Inc 창업자","Full-time parent":"전업 부모","Head of Marketing at Acme, Inc":"Acme Inc 마케팅 책임자","Hidden for members":"",Hide:"숨기기","Hide comment":"댓글 숨기기","Jamie Larson":"제이미 라슨","Join the discussion":"댓글에 참여해 주세요","Just now":"방금 전","Local resident":"지역 주민","Member discussion":"회원들의 댓글",Name:"이름",Neurosurgeon:"신경외과 의사","Once deleted, this comment can’t be recovered.":"","One hour ago":"1시간 전","One min ago":"1분 전","Replied to":"",Reply:"답변","Reply to":"","Reply to comment":"댓글에 답변",Report:"신고","Report comment":"댓글 신고","Report this comment?":"이 댓글을 신고하시겠어요?",Save:"저장",Sending:"전송중",Sent:"전송됨",Show:"보기","Show {{amount}} more replies":"{{amount}}개의 댓글 더 보기","Show {{amount}} previous comments":"{{amount}}개의 이전 댓글 보기","Show 1 more reply":"1개의 댓글 더 보기","Show 1 previous comment":"1개의 이전 댓글 보기","Show comment":"댓글 보기","Sign in":"로그인","Sign up now":"회원가입","Sort by":"정렬 기준","Start the conversation":"댓글을 작성해 주세요","This comment has been hidden.":"숨김처리 된 댓글이에요.","This comment has been removed.":"삭제 된 댓글이에요.","Upgrade now":"업그레이드",Yesterday:"어제","Your request will be sent to the owner of this site.":"운영자에게 요구사항이 전달되었어요."},PN={"{{amount}} characters left":"{{amount}} таңба қалды","{{amount}} comments":"{{amount}} пікір","{{amount}} hrs ago":"{{amount}} сағат бұрын","{{amount}} mins ago":"{{amount}} минут бұрын","{{amount}} more":"тағы {{amount}}","1 comment":"1 пікір","Add comment":"Пікір қосу","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Талқы қызық болуы үшін өзіңіз туралы мәліметтерді қосыңыз.","Add reply":"Жауап қосу","Already a member?":"Әлдеқашан қосылдыңыз ба?",Anonymous:"Аноним","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Пікір қалдыру үшін {{publication}} сайтына аккаунт қажет.","Become a paid member of {{publication}} to start commenting.":"Пікір қалдыру үшін {{publication}} сайтына ақылы аккаунт қажет.",Cancel:"Бас тарту",Comment:"Пікір","Complete your profile":"Профиліңізді толтырыңыз",Delete:"Жою",Deleted:"","Deleted member":"Жойылған аккаунт",Deleting:"",Discussion:"Талқы",Edit:"Өңдеу","Edit this comment":"Бұл пікірді өңдеу",edited:"Өңделді","Enter your name":"Есіміңізді жазыңыз",Expertise:"Қызмет","Founder @ Acme Inc":"@ Acme Inc құрылтайшысы","Full-time parent":"Толық күн жұмыс істейтін ата-ана","Head of Marketing at Acme, Inc":"@ Acme маркетинг жетекшісі ","Hidden for members":"",Hide:"Жасыру","Hide comment":"Пікірді жасыру","Jamie Larson":"Пәленше Түгеншиев","Join the discussion":"Талқыға қосылу","Just now":"Дәл қазір","Local resident":"Жергілікті тұрғын","Member discussion":"Мүшелер талқысы",Name:"Есімі",Neurosurgeon:"Нейрохирург","Once deleted, this comment can’t be recovered.":"","One hour ago":"Бір сағат бұрын","One min ago":"Бір минут бұрын","Replied to":"",Reply:"Жауап беру","Reply to":"","Reply to comment":"Пікірге жауап беру",Report:"Шағымдану","Report comment":"Пікірге шағымдану","Report this comment?":"Осы пікірге шағым жіберілсін бе?",Save:"Сақтау",Sending:"Жіберілуде",Sent:"Жіберілді",Show:"Көрсету","Show {{amount}} more replies":"Тағы {{amount}} жауапты көрсету","Show {{amount}} previous comments":"Алдыңғы {{amount}} пікірді көрсету","Show 1 more reply":"Тағы 1 жауап көрсету","Show 1 previous comment":"Алдыңғы 1 пікірді көрсету","Show comment":"Пікірді көрсету","Sign in":"Кіру","Sign up now":"Қазір тіркелу","Sort by":"","Start the conversation":"Талқыны бастау","This comment has been hidden.":"Бұл пікір жасырылды.","This comment has been removed.":"Бұл пікір өшірілді.","Upgrade now":"Жаңарту ",Yesterday:"Кеше","Your request will be sent to the owner of this site.":"Өтінішіңіз сайт иесіне жіберіледі."},IN={"{{amount}} characters left":"{{amount}} likę simboliai","{{amount}} comments":"{{amount}} komentarai","{{amount}} hrs ago":"Prieš {{amount}} val.","{{amount}} mins ago":"Prieš {{amount}} min.","{{amount}} more":"{{amount}} daugiau","1 comment":"1 komentaras","Add comment":"Rašyti komentarą","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Papildykite savo komentarą, prisistatykite ir pasidalinkite savo turimomis žiniomis, kad paskatintumėte prasmingą diskusiją.","Add reply":"Atsakyti","Already a member?":"Jau turite paskyrą?",Anonymous:"Anoniminis","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Užsiregistruokite {{publication}}, kad galėtumėte komentuoti.","Become a paid member of {{publication}} to start commenting.":"Tapkite {{publication}} prenumeratoriumi, kad galėtumėte komentuoti.",Cancel:"Atšaukti",Comment:"Komentuoti","Complete your profile":"Pabaikite kurti savo profilį!",Delete:"Ištrinti",Deleted:"","Deleted member":"Pašalintas narys",Deleting:"",Discussion:"Diskusija",Edit:"Redaguoti","Edit this comment":"Redaguoti šį komentarą",edited:"redaguotas","Enter your name":"Įrašykite savo vardą",Expertise:"Specializacija","Founder @ Acme Inc":"Istorikas","Full-time parent":"Vaiką prižiūrintis tėvas","Head of Marketing at Acme, Inc":"Tyrinėtojas","Hidden for members":"",Hide:"Paslėpti","Hide comment":"Paslėpti komentarą","Jamie Larson":"Vardenis Pavardenis","Join the discussion":"Prisijunkite prie diskusijos","Just now":"Ką tik","Local resident":"Vietinis gyventojas","Member discussion":"Komentarai",Name:"Vardas",Neurosurgeon:"Neurochirurgas","Once deleted, this comment can’t be recovered.":"","One hour ago":"Prieš valandą","One min ago":"Prieš minutę","Replied to":"",Reply:"Atsakyti","Reply to":"","Reply to comment":"Atsakyti į komentarą",Report:"Pranešti","Report comment":"Pranešti apie komentarą","Report this comment?":"Pranešti apie šį komentarą?",Save:"Išsaugoti",Sending:"Siunčiama",Sent:"Išsiųsta",Show:"Rodyti","Show {{amount}} more replies":"Rodyti daugiau atsakymų ({{amount}})","Show {{amount}} previous comments":"Rodyti ankstesnius komentarus ({{amount}})","Show 1 more reply":"Rodyti dar 1 atsakymą","Show 1 previous comment":"Rodyti ankstesnį komentarą","Show comment":"Rodyti komentarą","Sign in":"Prisijungti","Sign up now":"Registruotis","Sort by":"","Start the conversation":"Parašykite pirmąjį komentarą","This comment has been hidden.":"Šis komentaras buvo paslėptas.","This comment has been removed.":"Šis komentaras buvo pašalintas.","Upgrade now":"Prenumeruokite",Yesterday:"Vakar","Your request will be sent to the owner of this site.":"Jūsų pranešimas bus išsiųstas svetainės savininkui."},LN={"{{amount}} characters left":"Преостануваат {{amount}} знаци.","{{amount}} comments":"{{amount}} коментари","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"Уште {{amount}}","1 comment":"1 коментар","Add comment":"Додајте коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додајте контекст за вашиот коментар, споделете го вашето име и експертиза за да одржите пристојна дискусија.","Add reply":"Одговорете","Already a member?":"Веќе сте член?",Anonymous:"Анонимен","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Станете член на {{publication}} за да можете да коментирате.","Become a paid member of {{publication}} to start commenting.":"Станете претплатен член на {{publication}} за да можеш да коментирате.",Cancel:"Откажете",Comment:"Коментирајте","Complete your profile":"Комплетирајте го вашиот профил",Delete:"Избришете",Deleted:"","Deleted member":"Избришан член",Deleting:"",Discussion:"Разговор",Edit:"Изменете","Edit this comment":"Изменете го овој коментар",edited:"","Enter your name":"Внесете го вашето име",Expertise:"Експертиза","Founder @ Acme Inc":"Основач @ Примерна Компанија","Full-time parent":"Родител","Head of Marketing at Acme, Inc":"Раководител на Маркетинг во Примерна Компанија","Hidden for members":"",Hide:"Скријте","Hide comment":"Скријте го коментарот","Jamie Larson":"Петар Петровски","Join the discussion":"Приклучете се во разговорот","Just now":"Штотуку","Local resident":"Локал жител","Member discussion":"Разговор на членовите",Name:"Име",Neurosurgeon:"Неврохирург","Once deleted, this comment can’t be recovered.":"","One hour ago":"Пред еден час","One min ago":"","Replied to":"",Reply:"Одговорете","Reply to":"","Reply to comment":"Одговор на коментарот",Report:"Пријавете","Report comment":"Пријавете коментар","Report this comment?":"Пријавете го овој коментар?",Save:"Зачувајте",Sending:"Се испраќа",Sent:"Испратено",Show:"Покажи","Show {{amount}} more replies":"Покажи уште {{amount}} одговори","Show {{amount}} previous comments":"Покажи {{amount}} претходни коментари","Show 1 more reply":"Покажи уште 1 одговор","Show 1 previous comment":"Покажи 1 претходен коментар","Show comment":"Покажи коментар","Sign in":"Најавете се","Sign up now":"Регистрирајте се","Sort by":"","Start the conversation":"Започнете го разговорот","This comment has been hidden.":"Овој коментар беше скриен.","This comment has been removed.":"Овој коментар беше отстранет.","Upgrade now":"Надградете",Yesterday:"Вчера","Your request will be sent to the owner of this site.":"Вашето барање ќе биде испратено на сопственикот на оваа страница."},zN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},FN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},HN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},BN={"{{amount}} characters left":"Nog {{amount}} tekens over","{{amount}} comments":"{{amount}} reacties","{{amount}} hrs ago":"{{amount}} uur geleden","{{amount}} mins ago":"{{amount}} min geleden","{{amount}} more":"","1 comment":"Eén reactie","Add comment":"Versturen","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Voeg context toe aan je reactie, deel je naam en expertise om een gezonde discussie te bevorderen.","Add reply":"Beantwoorden","Already a member?":"Al lid?",Anonymous:"Anoniem","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Word lid van {{publication}} om te kunnen reageren.","Become a paid member of {{publication}} to start commenting.":"Word betalend lid van {{publication}} om te kunnen reageren.",Cancel:"Annuleren",Comment:"Verstuur","Complete your profile":"Vervolledig jouw profiel",Delete:"Verwijderen",Deleted:"","Deleted member":"Verwijderd lid",Deleting:"",Discussion:"Gesprek",Edit:"Bewerken","Edit this comment":"Bewerk deze reactie",edited:"bewerkt","Enter your name":"Vul je naam in",Expertise:"Expertise","Founder @ Acme Inc":"Oprichter, Acme BV","Full-time parent":"Full-time ouder","Head of Marketing at Acme, Inc":"Acme BV, Hoofd Marketing","Hidden for members":"",Hide:"Verbergen","Hide comment":"Verberg reactie","Jamie Larson":"Jan Jansen","Join the discussion":"Doe mee aan het gesprek","Just now":"Zojuist","Local resident":"Lokale bewoner","Member discussion":"Gesprek",Name:"Naam",Neurosurgeon:"Neurochirurg","Once deleted, this comment can’t be recovered.":"","One hour ago":"Een uur geleden","One min ago":"Een min geleden","Replied to":"",Reply:"Beantwoorden","Reply to":"","Reply to comment":"Beantwoord deze reactie",Report:"Melden","Report comment":"Meld reactie","Report this comment?":"Meld deze reactie?",Save:"Opslaan",Sending:"Verzenden",Sent:"Verzonden",Show:"Tonen","Show {{amount}} more replies":"Toon {{amount}} extra antwoorden","Show {{amount}} previous comments":"Toon {{amount}} vorige reacties","Show 1 more reply":"Toon nog 1 antwoord","Show 1 previous comment":"Toon 1 vorige reactie","Show comment":"Toon reactie","Sign in":"Inloggen","Sign up now":"Registreren","Sort by":"","Start the conversation":"Begin het gesprek","This comment has been hidden.":"Deze reactie is verborgen.","This comment has been removed.":"Deze reactie is verwijderd.","Upgrade now":"Upgrade nu",Yesterday:"Gisteren","Your request will be sent to the owner of this site.":"Jouw melding zal worden verzonden naar de eigenaar van deze site."},VN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},UN={"{{amount}} characters left":"{{amount}} tegn igjen","{{amount}} comments":"{{amount}} kommentarer","{{amount}} hrs ago":"{{amount}} timer siden","{{amount}} mins ago":"{{amount}} minutter siden","{{amount}} more":"{{amount}} mer","1 comment":"1 kommentar","Add comment":"Legg til kommentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Legg til kontekst i kommentaren din, del navnet ditt og ekspertisen din for å fremme en god diskusjon.","Add reply":"Legg til svar","Already a member?":"Allerede medlem?",Anonymous:"Anonym","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Bli medlem av {{publication}} for å begynne å kommentere.","Become a paid member of {{publication}} to start commenting.":"Bli betalende medlem av {{publication}} for å begynne å kommentere.",Cancel:"Avbryt",Comment:"Kommentar","Complete your profile":"Fullfør profilen din",Delete:"Slett",Deleted:"","Deleted member":"Slettet medlem",Deleting:"",Discussion:"Diskusjon",Edit:"Rediger","Edit this comment":"Rediger denne kommentaren",edited:"redigert","Enter your name":"Skriv inn navnet ditt",Expertise:"Ekspertise","Founder @ Acme Inc":"Grunnlegger @ Acme Inc","Full-time parent":"Forelder på heltid","Head of Marketing at Acme, Inc":"Markedsføringsleder hos Acme Inc","Hidden for members":"",Hide:"Skjul","Hide comment":"Skjul kommentar","Jamie Larson":"Jamie Larson","Join the discussion":"Delta i diskusjonen","Just now":"Akkurat nå","Local resident":"Lokal innbygger","Member discussion":"Medlemsdiskusjon",Name:"Navn",Neurosurgeon:"Neurokirurg","Once deleted, this comment can’t be recovered.":"","One hour ago":"En time siden","One min ago":"Ett minutt siden","Replied to":"",Reply:"Svar","Reply to":"","Reply to comment":"Svar på kommentar",Report:"Rapporter","Report comment":"Rapporter kommentar","Report this comment?":"Rapportere denne kommentaren?",Save:"Lagre",Sending:"Sender",Sent:"Sendt",Show:"Vis","Show {{amount}} more replies":"Vis {{amount}} flere svar","Show {{amount}} previous comments":"Vis {{amount}} tidligere kommentarer","Show 1 more reply":"Vis ett svar til","Show 1 previous comment":"Vis én tidligere kommentar","Show comment":"Vis kommentar","Sign in":"Logg inn","Sign up now":"Registrer deg nå","Sort by":"Sorter etter","Start the conversation":"Start samtalen","This comment has been hidden.":"Denne kommentaren er skjult.","This comment has been removed.":"Denne kommentaren er fjernet.","Upgrade now":"Oppgrader nå",Yesterday:"I går","Your request will be sent to the owner of this site.":"Din forespørsel vil bli sendt til eieren av dette nettstedet."},_N={"{{amount}} characters left":"Pozostało {{amount}} znaków","{{amount}} comments":"{{amount}} komentarzy","{{amount}} hrs ago":"{{amount}} godzin temu","{{amount}} mins ago":"{{amount}} minut temu","{{amount}} more":"{{amount}} więcej","1 comment":"1 komentarz","Add comment":"Dodaj komentarz","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dodaj więcej informacji do Twojego komentarza, następnie udostępnij proszę Twoje imię i doświadczenie w celu wzbogacenia jakości dyskusji.","Add reply":"Dodaj odpowiedź","Already a member?":"Posiadasz już konto?",Anonymous:"Anonimowy","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Dołącz do społeczności {{publication}}, by zacząć komentować.","Become a paid member of {{publication}} to start commenting.":"Dołącz do płatnej społeczności {{publication}}, by zacząć komentować.",Cancel:"Anuluj",Comment:"Skomentuj","Complete your profile":"Skompletuj Twój profil",Delete:"Usuń",Deleted:"","Deleted member":"Usunięte konto",Deleting:"",Discussion:"Dyskusja",Edit:"Edytuj","Edit this comment":"Edytuj komentarz",edited:"edytowano","Enter your name":"Podaj Twoje imię",Expertise:"Doświadczenie","Founder @ Acme Inc":"Founder @ Acme Inc","Full-time parent":"","Head of Marketing at Acme, Inc":"Head of Marketing at Acme, Inc","Hidden for members":"",Hide:"Ukryj","Hide comment":"Ukryj komentarz","Jamie Larson":"Jamie Larson","Join the discussion":"Dołącz do dyskusji","Just now":"Przed chwilą","Local resident":"","Member discussion":"Członek dyskusji",Name:"Imię",Neurosurgeon:"Neurochirurg","Once deleted, this comment can’t be recovered.":"","One hour ago":"Godzinę temu","One min ago":"Minutę temu","Replied to":"",Reply:"Odpowiedz","Reply to":"","Reply to comment":"Napisz odpowiedź do komentarza",Report:"Zgłoś","Report comment":"Zgłoś komentarz","Report this comment?":"Czy chcesz zgłosić ten komentarz?",Save:"Zapisz",Sending:"Wysyłanie",Sent:"Wysłano",Show:"Pokza","Show {{amount}} more replies":"Pokaż {{amount}} kolejnych odpowiedzi","Show {{amount}} previous comments":"Pokaż {{amount}} poprzednich komentarzy","Show 1 more reply":"Pokaż następną odpowiedź","Show 1 previous comment":"Pokaż poprzedni komentarz","Show comment":"Pokaż komentarz","Sign in":"Zaloguj się","Sign up now":"Zarejestruj się","Sort by":"","Start the conversation":"Rozpocznij dyskusję","This comment has been hidden.":"Komentarz został ukryty.","This comment has been removed.":"Komentarz został usunięty.","Upgrade now":"Ulepsz teraz",Yesterday:"Wczoraj","Your request will be sent to the owner of this site.":"Twoje zgłoszenie zostało przesłane do administratora strony."},JN={"{{amount}} characters left":"Faltam {{amount}} caracteres ","{{amount}} comments":"{{amount}} comentários","{{amount}} hrs ago":"{{amount}} horas atrás","{{amount}} mins ago":"{{amount}} minutos atrás","{{amount}} more":"mais","1 comment":"Um comentário","Add comment":"Adicionar comentário","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Adicione o seu comentário, partilhe o seu nome e expriência de modo a promover uma discussão saudável.","Add reply":"Adicionar resposta","Already a member?":"Já é membro?",Anonymous:"Anónimo","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Torne-se um membro do {{publication}} para comentar.","Become a paid member of {{publication}} to start commenting.":"Torne-se um membro pago do {{publication}} para comentar. ",Cancel:"Cancelar",Comment:"Comentar","Complete your profile":"Complete o seu perfil",Delete:"Eliminar",Deleted:"","Deleted member":"Membro eliminado",Deleting:"",Discussion:"Discussão",Edit:"Editar","Edit this comment":"Editar este comentário",edited:"editado","Enter your name":"Insira o seu nome",Expertise:"Perícia","Founder @ Acme Inc":"Fundador @ Amce Inc","Full-time parent":"Pai a tempo inteiro","Head of Marketing at Acme, Inc":"Responsável do Marketing @ Amce, Inc","Hidden for members":"",Hide:"Esconder","Hide comment":"Esconder comentário","Jamie Larson":"Jane Doe","Join the discussion":"Junte-se à discussão","Just now":"Agora","Local resident":"Residente local","Member discussion":"Discussão para membros",Name:"Nome",Neurosurgeon:"neurocirurgião","Once deleted, this comment can’t be recovered.":"","One hour ago":"uma hora atrás","One min ago":"um minuto atrás","Replied to":"",Reply:"Responder","Reply to":"","Reply to comment":"Responder ao comentário",Report:"Reportar","Report comment":"Reportar comentário","Report this comment?":"Reportar este comentário?",Save:"Guardar",Sending:"Enviar",Sent:"Enviado",Show:"Mostrar","Show {{amount}} more replies":"Mostrar mais {{amount}} respostas","Show {{amount}} previous comments":"Mostrar os {{amount}} comentários anteriores","Show 1 more reply":"Mostrar mais uma resposta","Show 1 previous comment":"Mostrar mais um comentário","Show comment":"Mostrar comentário","Sign in":"Registar","Sign up now":"Registar agora","Sort by":"","Start the conversation":"Comece a conversa","This comment has been hidden.":"Este comentário foi ocultado","This comment has been removed.":"Este comentário foi removido","Upgrade now":"Atualize agora",Yesterday:"Ontem","Your request will be sent to the owner of this site.":"O seu pedido será enviado para o dono deste site."},YN={"{{amount}} characters left":"{{amount}} caracteres restantes","{{amount}} comments":"{{amount}} comentários","{{amount}} hrs ago":"{{amount}} horas atrás","{{amount}} mins ago":"{{amount}} minutos atrás","{{amount}} more":"{{amount}} mais","1 comment":"1 comentário","Add comment":"Adicionar comentário","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Adicione contexto ao seu comentário, compartilhe seu nome e expertise para promover uma discussão saudável.","Add reply":"Adicionar resposta","Already a member?":"Já é um membro?",Anonymous:"Anônimo","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Torne-se um membro de {{publication}} para começar a comentar.","Become a paid member of {{publication}} to start commenting.":"Torne-se um membro pago de {{publication}} para começar a comentar.",Cancel:"Cancelar",Comment:"Comentário","Complete your profile":"Complete seu perfil",Delete:"Deletar",Deleted:"","Deleted member":"Membro deletado",Deleting:"",Discussion:"Discussão",Edit:"Editar","Edit this comment":"Editar este comentário",edited:"editado","Enter your name":"Digite seu nome",Expertise:"Especialidade","Founder @ Acme Inc":"Fundador @ Acme Inc","Full-time parent":"Pai/Mãe em tempo integral","Head of Marketing at Acme, Inc":"Chefe de Marketing na Acme, Inc","Hidden for members":"",Hide:"Esconder","Hide comment":"Esconder comentário","Jamie Larson":"Jamie Larson","Join the discussion":"Participe da discussão","Just now":"Agora mesmo","Local resident":"Residente local","Member discussion":"Discussão entre membros",Name:"Nome",Neurosurgeon:"Neurocirurgião","Once deleted, this comment can’t be recovered.":"","One hour ago":"Uma hora atrás","One min ago":"Um minuto atrás","Replied to":"",Reply:"Responder","Reply to":"","Reply to comment":"Responder ao comentário",Report:"Denunciar","Report comment":"Denunciar comentário","Report this comment?":"Denunciar este comentário?",Save:"Salvar",Sending:"Enviando",Sent:"Enviado",Show:"Mostrar","Show {{amount}} more replies":"Mostrar mais {{amount}} respostas","Show {{amount}} previous comments":"Mostrar {{amount}} comentários anteriores","Show 1 more reply":"Mostrar 1 resposta adicional","Show 1 previous comment":"Mostrar 1 comentário anterior","Show comment":"Mostrar comentário","Sign in":"Entrar","Sign up now":"Inscreva-se agora","Sort by":"Ordenar por","Start the conversation":"Iniciar a conversa","This comment has been hidden.":"Este comentário foi escondido.","This comment has been removed.":"Este comentário foi removido.","Upgrade now":"Atualize agora",Yesterday:"Ontem","Your request will be sent to the owner of this site.":"Sua solicitação será enviada ao proprietário deste site."},KN={"{{amount}} characters left":"{{amount}} caractere rămase","{{amount}} comments":"{{amount}} comentarii","{{amount}} hrs ago":"acum {{amount}} ore","{{amount}} mins ago":"acum {{amount}} minute","{{amount}} more":"încă {{amount}}","1 comment":"1 comentariu","Add comment":"Adaugă comentariu","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Adăugați context comentariului dumneavoastră, împărtășiți-vă numele și expertiza pentru a favoriza o discuție sănătoasă.","Add reply":"Adaugă răspuns","Already a member?":"Deja membru?",Anonymous:"Anonim","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Deveniți membru al {{publication}} pentru a începe să comentați.","Become a paid member of {{publication}} to start commenting.":"Deveniți membru plătit al {{publication}} pentru a începe să comentați.",Cancel:"Anulează",Comment:"Comentează","Complete your profile":"Completează-ți profilul",Delete:"Șterge",Deleted:"","Deleted member":"Membru șters",Deleting:"",Discussion:"Discuție",Edit:"Editează","Edit this comment":"Editează acest comentariu",edited:"editat","Enter your name":"Introduceți numele dumneavoastră",Expertise:"Expertiză","Founder @ Acme Inc":"Fondator @ Acme Inc","Full-time parent":"Părinte cu normă întreagă","Head of Marketing at Acme, Inc":"Șef de Marketing la Acme, Inc","Hidden for members":"",Hide:"Ascunde","Hide comment":"Ascunde comentariul","Jamie Larson":"Jamie Larson","Join the discussion":"Alătură-te discuției","Just now":"Chiar acum","Local resident":"Rezident local","Member discussion":"Discuție membrii",Name:"Nume",Neurosurgeon:"Neurochirurg","Once deleted, this comment can’t be recovered.":"","One hour ago":"Acum o oră","One min ago":"Acum un minut","Replied to":"",Reply:"Răspunde","Reply to":"","Reply to comment":"Răspunde la comentariu",Report:"Raportează","Report comment":"Raportează comentariul","Report this comment?":"Raportezi acest comentariu?",Save:"Salvează",Sending:"Se trimite",Sent:"Trimis",Show:"Arată","Show {{amount}} more replies":"Arată încă {{amount}} răspunsuri","Show {{amount}} previous comments":"Arată {{amount}} comentarii anterioare","Show 1 more reply":"Arată încă un răspuns","Show 1 previous comment":"Arată un comentariu anterior","Show comment":"Arată comentariul","Sign in":"Autentificare","Sign up now":"Înregistrează-te acum","Sort by":"Ordonează după","Start the conversation":"Începe conversația","This comment has been hidden.":"Acest comentariu a fost ascuns.","This comment has been removed.":"Acest comentariu a fost eliminat.","Upgrade now":"Actualizează acum",Yesterday:"Ieri","Your request will be sent to the owner of this site.":"Cererea dumneavoastră va fi trimisă proprietarului acestui site."},WN={"{{amount}} characters left":"{{amount}} символа(ов) осталось","{{amount}} comments":"{{amount}} комментария(ев)","{{amount}} hrs ago":"{{amount}} часа(ов) назад","{{amount}} mins ago":"{{amount}} минут(ы) назад","{{amount}} more":"ещё {{amount}}","1 comment":"1 комментарий","Add comment":"Добавить комментарий","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Дополните свой комментарий контекстом, добавив подробности о себе и своём опыте, чтобы обсуждение стало более интересным.","Add reply":"Добавить ответ","Already a member?":"Уже присоединились?",Anonymous:"Анонимный","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Присоединяйтесь к {{publication}} чтобы начать комментировать.","Become a paid member of {{publication}} to start commenting.":"Станьте платным участником {{publication}} чтобы начать комментировать.",Cancel:"Отмена",Comment:"Комментарий","Complete your profile":"Заполните свой профиль",Delete:"Удалить",Deleted:"","Deleted member":"Удалённый участник",Deleting:"",Discussion:"Обсуждение",Edit:"Редактировать","Edit this comment":"Редактировать этот комментарий",edited:"Отредактированно","Enter your name":"Введите ваше имя",Expertise:"Деятельность","Founder @ Acme Inc":"Основатель @ Корпорация «Акме»","Full-time parent":"Родитель, работающий полный рабочий день","Head of Marketing at Acme, Inc":"Руководитель отдела маркетинга в Корпорации «Акме»","Hidden for members":"",Hide:"Скрыть","Hide comment":"Скрыть комментарий","Jamie Larson":"Павел Бид","Join the discussion":"Присоединиться к обсуждению","Just now":"Сейчас","Local resident":"Местный житель","Member discussion":"Обсуждение участников",Name:"Имя",Neurosurgeon:"Нейрохирург","Once deleted, this comment can’t be recovered.":"","One hour ago":"Час назад","One min ago":"Минуту назад","Replied to":"",Reply:"Ответить","Reply to":"","Reply to comment":"Ответить на комментарий",Report:"Пожаловаться","Report comment":"Пожаловаться на комментарий","Report this comment?":"Пожаловаться на этот комментарий?",Save:"Сохранить",Sending:"Отправка",Sent:"Отправлено",Show:"Показать","Show {{amount}} more replies":"Показать ещё {{amount}} ответа(ов)","Show {{amount}} previous comments":"Показать ещё {{amount}} комментария(ев)","Show 1 more reply":"Показать ответ","Show 1 previous comment":"Показать предыдущий комментарий","Show comment":"Показать комментарий","Sign in":"Войти","Sign up now":"Зарегистрироваться","Sort by":"","Start the conversation":"Начать обсуждение","This comment has been hidden.":"Этот комментарий скрыт","This comment has been removed.":"Этот комментарий был удалён","Upgrade now":"Обновить ",Yesterday:"Вчера","Your request will be sent to the owner of this site.":"Ваш запрос будет отправлен владельцу сайта."},qN={"{{amount}} characters left":"තව වචන {{amount}} යි.","{{amount}} comments":"අදහස් {{amount}} යි.","{{amount}} hrs ago":"පැය {{amount}} ට පෙර","{{amount}} mins ago":"මිනිත්තු {{amount}} ට පෙර","{{amount}} more":"","1 comment":"1 අදහසයි.","Add comment":"අදහස් එකතු කරන්න","Add context to your comment, share your name and expertise to foster a healthy discussion.":"ඉතා හොඳ සාකච්ඡාවක් රැගෙන යාම සඳහා ඔබේ අදහසට අන්තර්ගතය එක් කර ඔබේ නම සහ විශේෂඥතාව බෙදා ගන්න","Add reply":"ප්රතිචාර එකතු කරන්න","Already a member?":"දැනටමත් සාමාජිකයෙක්ද ?",Anonymous:"නිර්නාමික","Are you sure?":"","Become a member of {{publication}} to start commenting.":"අදහස් දැක්වීම ආරම්භ කිරීමට {{publication}} හි සාමාජිකයෙකු වන්න","Become a paid member of {{publication}} to start commenting.":"අදහස් දැක්වීම ආරම්භ කිරීමට {{publication}} හි ගෙවීම් කරන ලද සාමාජිකයෙකු වන්න",Cancel:"අවලංගු කරන්න",Comment:"අදහස","Complete your profile":"ඔබගේ ගිණුම සම්පූර්ණ කරන්න",Delete:"Delete කරන්න",Deleted:"","Deleted member":"සාමාජිකයාව delete කරන්න",Deleting:"",Discussion:"සාකච්ඡාව",Edit:"සංස්කරණය කරන්න","Edit this comment":"අදහස සංස්කරණය කරන්න",edited:"සංස්කරණය කරන ලද.","Enter your name":"ඔබගේ නම සඳහන් කරන්න",Expertise:"විශේෂඥතාව","Founder @ Acme Inc":"Acme Inc හි නිර්මාතෘ","Full-time parent":"පූර්ණ කාලීන භාරකරුවන්","Head of Marketing at Acme, Inc":"Acme, Inc හි අලෙවි ප්රධානී","Hidden for members":"",Hide:"සඟවන්න","Hide comment":"අදහස සඟවන්න","Jamie Larson":"ජේමි ලාර්සන්","Join the discussion":"සාකච්ඡාවට එක්වන්න","Just now":"මේ දැන්","Local resident":"දේශීය පදිංචි","Member discussion":"සාමාජික සාකච්ඡාව",Name:"නම",Neurosurgeon:"ස්නායු ශල්ය වෛද්ය","Once deleted, this comment can’t be recovered.":"","One hour ago":"පැයකට පෙර","One min ago":"මිනිත්තුවකට පෙර","Replied to":"",Reply:"ප්රතිචාර දක්වන්න","Reply to":"","Reply to comment":"අදහසට රතිචාර දක්වන්න",Report:"වාර්තා කරන්න","Report comment":"අදහසට වාර්තා කරන්න","Report this comment?":"මෙම අදහසට වාර්තා කරන්නෙහිද ?",Save:"සුරකින්න",Sending:"යවමින්",Sent:"යැව්වා",Show:"පෙන්වන්න","Show {{amount}} more replies":"තවත් පිළිතුරු {{amount}} පෙන්වන්න","Show {{amount}} previous comments":"පෙර අදහස් {{amount}} පෙන්වන්න","Show 1 more reply":"තවත් පිළිතුරු 1ක් පෙන්වන්න","Show 1 previous comment":"පෙර අදහස් 1ක් පෙන්වන්න","Show comment":"අදහස පෙන්වන්න","Sign in":"Sign in වෙන්න","Sign up now":"දැන්ම Sign up වෙන්න","Sort by":"","Start the conversation":"සංවාදය ආරම්භ කරන්න","This comment has been hidden.":"මෙම අදහස සඟවා ඇත.","This comment has been removed.":"මෙම අදහස ඉවත් කර ඇත.","Upgrade now":"දැන් upgrade කරන්න",Yesterday:"ඊයෙ","Your request will be sent to the owner of this site.":"ඔබගේ ඉල්ලීම මෙම අඩවියේ හිමිකරු වෙත යවනු ලැබේ."},GN={"{{amount}} characters left":"Zostáva {{amount}} znakov","{{amount}} comments":"{{amount}} komentárov","{{amount}} hrs ago":"Pred {{amount}} hodinami","{{amount}} mins ago":"Pred {{amount}} minútami","{{amount}} more":"","1 comment":"1 komentár","Add comment":"Pridať komentár","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Pridajte kontext do váško komentára, zdielajte vaše meno, a odbornosť pre podporu zdravej diskusie.","Add reply":"Pridať odpoveď","Already a member?":"Už ste členom?",Anonymous:"Anonymne","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Staňte sa členom {{publication}}, aby ste mohli začať komentovať","Become a paid member of {{publication}} to start commenting.":"Staňte sa plateným členom {{publication}}, aby ste mohli začať komentovať",Cancel:"Zrušiť",Comment:"Komentár","Complete your profile":"Dokončite váš profil",Delete:"Vymazať",Deleted:"","Deleted member":"Vymazaný člen",Deleting:"",Discussion:"Diskusia",Edit:"Upraviť","Edit this comment":"Upraviť tento komentár",edited:"upravený","Enter your name":"Zadajte vaše meno",Expertise:"Odbornosť","Founder @ Acme Inc":"Zakladateľ @ Acme Inc","Full-time parent":"Rodič na plný úväzok","Head of Marketing at Acme, Inc":"Vedúci marketingu v spoločnosti Acme, Inc","Hidden for members":"",Hide:"Skryť","Hide comment":"Skryť komentár","Jamie Larson":"Jamie Larson","Join the discussion":"Zapojiť sa do diskusie","Just now":"Teraz","Local resident":"Miestny obyvateľ","Member discussion":"",Name:"Meno",Neurosurgeon:"Neurogirurg","Once deleted, this comment can’t be recovered.":"","One hour ago":"Pred hodinou","One min ago":"Pred minútou","Replied to":"",Reply:"Odpovedať","Reply to":"","Reply to comment":"Odpovedať na komentár",Report:"Nahlásiť","Report comment":"Nahlásiť komentár","Report this comment?":"Nahlásiť tento komentár?",Save:"Uložiť",Sending:"Odosielanie",Sent:"Odoslané",Show:"Zobraziť","Show {{amount}} more replies":"Zobraziť {{amount}} ďalších odpoveďí","Show {{amount}} previous comments":"Zobraziť {{amount}} predchádzajúcich komentárov","Show 1 more reply":"Zobraziť 1 ďalšiu odpoveď","Show 1 previous comment":"Zobraziť 1 predchádzajúci komentár","Show comment":"Zobraziť komentár","Sign in":"Prihlásiť","Sign up now":"Registrovať sa","Sort by":"","Start the conversation":"Začať konverzáciu","This comment has been hidden.":"Tento komentár bol skrytý.","This comment has been removed.":"Tento komentár bol vymazaný.","Upgrade now":"Upgradovať teraz",Yesterday:"Včera","Your request will be sent to the owner of this site.":"Vaša požiadavka bola odoslaná vlastníkovi stránky."},QN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},ZN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},XN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},eD={"{{amount}} characters left":"Преостало још {{amount}} карактера","{{amount}} comments":"{{amount}} коментара","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"још {{amount}}","1 comment":"1 коментар","Add comment":"Додајте коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додајте контекст свом коментару, поделите своје име и експертизу како бисте подстакли здраву дискусију.","Add reply":"Додајте одговор","Already a member?":"Већ сте члан?",Anonymous:"Анонимно","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Постаните члан {{publication}} да бисте почели са коментарисањем.","Become a paid member of {{publication}} to start commenting.":"Постаните плаћени члан {{publication}} да бисте почели са коментарисањем.",Cancel:"Откажи",Comment:"Коментар","Complete your profile":"Попуните свој профил",Delete:"Избриши",Deleted:"","Deleted member":"Обрисан члан",Deleting:"",Discussion:"Дискусија",Edit:"Уреди","Edit this comment":"Уредите овај коментар",edited:"","Enter your name":"Унесите своје име",Expertise:"Експертиза","Founder @ Acme Inc":"Оснивач @ Acme Inc","Full-time parent":"Родитељ пуним радним временом","Head of Marketing at Acme, Inc":"Шеф маркетинга у Acme, Inc","Hidden for members":"",Hide:"Сакриј","Hide comment":"Сакриј коментар","Jamie Larson":"Џејми Ларсон","Join the discussion":"Придружите се дискусији","Just now":"Управо сада","Local resident":"Мештанин","Member discussion":"Дискусија чланова",Name:"Име",Neurosurgeon:"Неурохирург","Once deleted, this comment can’t be recovered.":"","One hour ago":"Пре један сат","One min ago":"","Replied to":"",Reply:"Одговори","Reply to":"","Reply to comment":"Одговорите на коментар",Report:"Пријави","Report comment":"Пријави коментар","Report this comment?":"Пријавити овај коментар?",Save:"Сачувај",Sending:"Слање",Sent:"Послато",Show:"Прикажи","Show {{amount}} more replies":"Прикажи још {{amount}} одговора","Show {{amount}} previous comments":"Прикажи претходна {{amount}} коментара","Show 1 more reply":"Прикажи још 1 одговор","Show 1 previous comment":"Прикажи 1 претходни коментар","Show comment":"Прикажи коментар","Sign in":"Пријавите се","Sign up now":"Пријавите се сада","Sort by":"","Start the conversation":"Почните разговор","This comment has been hidden.":"Овај коментар је сакривен.","This comment has been removed.":"Овај коментар је уклоњен.","Upgrade now":"Надоградите сада",Yesterday:"Јуче","Your request will be sent to the owner of this site.":"Ваш захтев ће бити послат власнику овог сајта."},tD={"{{amount}} characters left":"{{amount}} tecken kvar","{{amount}} comments":"{{amount}} kommentarer","{{amount}} hrs ago":"{{amount}} timmar sedan","{{amount}} mins ago":"{{amount}} minuter sedan","{{amount}} more":"{{amount}} fler","1 comment":"1 kommentar","Add comment":"Lägg till kommentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Lägg till kontext till din kommentar, som ditt namn, din expertis för att skapa ett bra forum.","Add reply":"Lägg till svar","Already a member?":"Redan medlem?",Anonymous:"Anonym","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Registrera dig på {{publication}} för att börja kommentera.","Become a paid member of {{publication}} to start commenting.":"Bli betalande medlem på {{publication}} för att börja kommentera ",Cancel:"Avbryt",Comment:"Kommentar","Complete your profile":"Fyll i hela din profil",Delete:"Ta bort",Deleted:"","Deleted member":"Borttagen medlem",Deleting:"",Discussion:"Diskussion",Edit:"Ändra","Edit this comment":"Ändra den här kommentaren",edited:"Ändrad","Enter your name":"Skriv ditt namn",Expertise:"Expertis","Founder @ Acme Inc":"Grundare av Företaget AB","Full-time parent":"Hemmaförälder","Head of Marketing at Acme, Inc":"Marknadsföringschef på Företaget AB","Hidden for members":"",Hide:"Dölj","Hide comment":"Dölj kommentar","Jamie Larson":"Anders Andersson","Join the discussion":"Var med i diskussionen","Just now":"Nu precis","Local resident":"Lokalboende","Member discussion":"Medlemsdiskussion",Name:"Namn",Neurosurgeon:"Neurokirurg","Once deleted, this comment can’t be recovered.":"","One hour ago":"En timme sedan","One min ago":"En minut sedan","Replied to":"",Reply:"Svar","Reply to":"","Reply to comment":"Svara på kommentar",Report:"Anmäl","Report comment":"Anmäl kommentar","Report this comment?":"Anmäl den här kommentaren?",Save:"Spara",Sending:"Skickar",Sent:"Skickad",Show:"Visa","Show {{amount}} more replies":"Visa {{amount}} fler svar","Show {{amount}} previous comments":"Visa {{amount}} tidigare kommentarer","Show 1 more reply":"Visa 1 kommentar till","Show 1 previous comment":"Visa 1 tidigare kommentar","Show comment":"Visa kommentar","Sign in":"Logga in","Sign up now":"Registrera dig nu","Sort by":"Sortera efter","Start the conversation":"Inled konversationen","This comment has been hidden.":"Denna kommentar har dolts","This comment has been removed.":"Denna kommentar är borttagen","Upgrade now":"Uppgradera nu",Yesterday:"I går","Your request will be sent to the owner of this site.":"Din anmälan skickas till ansvarig för webbplatsen"},nD={"{{amount}} characters left":"คงเหลือ {{amount}} ตัวอักษร","{{amount}} comments":"{{amount}} ความคิดเห็น","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"อีก {{amount}}","1 comment":"1 ความคิดเห็น","Add comment":"แสดงความคิดเห็น","Add context to your comment, share your name and expertise to foster a healthy discussion.":"เพิ่มข้อมูลเสริมในความคิดเห็นของคุณ แชร์ชื่อและความเชี่ยวชาญเพื่อสนับสนุนการพูดคุยที่ดี","Add reply":"ตอบกลับ","Already a member?":"เป็นสมาชิกอยู่แล้ว?",Anonymous:"ไม่ระบุชื่อ","Are you sure?":"","Become a member of {{publication}} to start commenting.":"เป็นสมาชิกของ {{publication}} เพื่อเริ่มแสดงความคิดเห็น","Become a paid member of {{publication}} to start commenting.":"เป็นสมาชิกแบบชำระเงินของ {{publication}} เพื่อเริ่มแสดงความคิดเห็น",Cancel:"ยกเลิก",Comment:"ความคิดเห็น","Complete your profile":"กรอกโปรไฟล์ของคุณให้สมบูรณ์",Delete:"ลบ",Deleted:"","Deleted member":"ผู้ใช้ที่ถูกลบ",Deleting:"",Discussion:"การสนทนา",Edit:"แก้ไข","Edit this comment":"แก้ไขความคิดเห็นนี้",edited:"","Enter your name":"ระบุชื่อของคุณ",Expertise:"ความเชี่ยวชาญ","Founder @ Acme Inc":"ผู้ก่อตั้ง @ Acme Inc","Full-time parent":"ผู้ปกครองเต็มเวลา","Head of Marketing at Acme, Inc":"หัวหน้าฝ่ายการตลาด ณ Acme, Inc","Hidden for members":"",Hide:"ซ่อน","Hide comment":"ซ่อนข้อความ","Jamie Larson":"กนกพัฒน์ สัณห์ฤทัย","Join the discussion":"เข้าร่วมการสนทนา","Just now":"ตอนนี้","Local resident":"ผู้อยู่อาศัยในท้องถิ่น","Member discussion":"การสนทนาของสมาชิก",Name:"ชื่อ",Neurosurgeon:"ศัลยแพทย์ระบบประสาท","Once deleted, this comment can’t be recovered.":"","One hour ago":"1 ชั่วโมงที่แล้ว","One min ago":"","Replied to":"",Reply:"ตอบกลับ","Reply to":"","Reply to comment":"ตอบกลับความคิดเห็น",Report:"รายงาน","Report comment":"รายงานความคิดเห็น","Report this comment?":"รายงานความคิดเห็นนี้?",Save:"บันทึก",Sending:"กำลังส่ง",Sent:"ส่งแล้ว",Show:"แสดง","Show {{amount}} more replies":"แสดง {{amount}} การตอบกลับเพิ่มเติม","Show {{amount}} previous comments":"แสดง {{amount}} ความคิดเห็นก่อนหน้า","Show 1 more reply":"แสดงอีก 1 การตอบกลับ","Show 1 previous comment":"แสดง 1 ความคิดเห็น","Show comment":"ดูความคิดเห็น","Sign in":"ลงชื่อเข้าใช้","Sign up now":"สมัครใช้งานตอนนี้เลย","Sort by":"","Start the conversation":"เริ่มการสนทนา","This comment has been hidden.":"ความคิดเห็นนี้ถูกซ่อน","This comment has been removed.":"ความคิดเห็นนี้ถูกลบ","Upgrade now":"อัพเกรดตอนนี้เลย",Yesterday:"เมื่อวาน","Your request will be sent to the owner of this site.":"คำขอของคุณจะถูกส่งไปยังผู้ดูแลเว็บไซต์"},oD={"{{amount}} characters left":"{{amount}} karakter kaldı","{{amount}} comments":"{{amount}} yorum","{{amount}} hrs ago":"{{amount}} saat önce","{{amount}} mins ago":"{{amount}} dakika önce","{{amount}} more":"Daha fazla {{amount}}","1 comment":"1 yorum","Add comment":"Yorum ekle","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Yorumunuza bağlam ekleyin, adınızı ve uzmanlık alanınızı paylaşarak sağlıklı bir tartışmayı teşvik edin.","Add reply":"Yanıt ekle","Already a member?":"Zaten üye misiniz?",Anonymous:"Anonim","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Yorum yapmaya başlamak için {{publication}} sitesinde hesap oluşturun.","Become a paid member of {{publication}} to start commenting.":"Yorum yapmaya başlamak için {{publication}} sitesinde ücretli hesap oluşturun.",Cancel:"İptal et",Comment:"Yorum ekle","Complete your profile":"Profilinizi tamamlayın",Delete:"Sil",Deleted:"","Deleted member":"Silinen üye",Deleting:"",Discussion:"Yorumlar",Edit:"Düzenle","Edit this comment":"Bu yorumu düzenle",edited:"düzenlendi","Enter your name":"Adınızı girin",Expertise:"Uzmanlık","Founder @ Acme Inc":"Kurucu @ Firma Ünvan","Full-time parent":"Tam zamanlı ebeveyn","Head of Marketing at Acme, Inc":"Firma, Ünvan'da Pazarlama Müdürü","Hidden for members":"",Hide:"Gizle","Hide comment":"Yorumu gizle","Jamie Larson":"Ad Soyad","Join the discussion":"Tartışmaya katıl","Just now":"Şu anda","Local resident":"Yerel sakini","Member discussion":"Üye tartışması",Name:"Ad",Neurosurgeon:"Beyin cerrahı","Once deleted, this comment can’t be recovered.":"","One hour ago":"Bir saat önce","One min ago":"Bir dakika önce","Replied to":"",Reply:"Cevapla","Reply to":"","Reply to comment":"Yoruma cevap ver",Report:"Rapor et","Report comment":"Yorumu rapor et","Report this comment?":"Bu yorum rapor edilsin mi?",Save:"Kaydet",Sending:"Gönderiliyor",Sent:"Gönderildi",Show:"Göster","Show {{amount}} more replies":"{{amount}} daha fazla yanıt göster","Show {{amount}} previous comments":"{{amount}} önceki yorumu göster","Show 1 more reply":"1 cevap daha göster","Show 1 previous comment":"1 önceki yorumu göster","Show comment":"Yorumu göster","Sign in":"Giriş yap","Sign up now":"Şimdi kayıt ol","Sort by":"Sırala","Start the conversation":"Bu konu hakkında düşüncelerini paylaş","This comment has been hidden.":"Bu yorum gizlendi.","This comment has been removed.":"Bu yorum kaldırıldı.","Upgrade now":"Şimdi yükselt",Yesterday:"Dün","Your request will be sent to the owner of this site.":"Talebiniz bu sitenin sahibine gönderilecektir."},rD={"{{amount}} characters left":"{{amount}} символів залишилось","{{amount}} comments":"{{amount}} коментарів","{{amount}} hrs ago":"{{amount}} годин тому","{{amount}} mins ago":"{{amount}} хвилин тому","{{amount}} more":"ще {{amount}}","1 comment":"1 коментар","Add comment":"Додати коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додайте контекст до свого коментаря, поділіться своїм іменем і досвідом, щоб сприяти здоровій дискусії.","Add reply":"Додати відповідь","Already a member?":"Ви є учасником?",Anonymous:"Анонім","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Станьте учасником {{publication}} щоб почати коментувати.","Become a paid member of {{publication}} to start commenting.":"Станьте платним учасником {{publication}} щоб почати коментувати.",Cancel:"Відмінити",Comment:"Коментувати","Complete your profile":"Заповніть свій профіль",Delete:"Видалити",Deleted:"","Deleted member":"Видалений учасник",Deleting:"",Discussion:"Обговорення",Edit:"Редагувати","Edit this comment":"Редагувати цей коментар",edited:"Відредагований","Enter your name":"Введіть своє імʼя",Expertise:"Експертність","Founder @ Acme Inc":"Засновник @ Acme Inc","Full-time parent":"Виховую дітей","Head of Marketing at Acme, Inc":"Голова продажів в Acme, Inc","Hidden for members":"",Hide:"Сховати","Hide comment":"Сховати коментар","Jamie Larson":"Ваше імʼя","Join the discussion":"Долучитися до обговорення","Just now":"Прямо зараз","Local resident":"Місцевий експерт","Member discussion":"Обговорення учасників",Name:"Імʼя",Neurosurgeon:"Нейрохірург","Once deleted, this comment can’t be recovered.":"","One hour ago":"Одну годину тому","One min ago":"Одну хвилину тому","Replied to":"",Reply:"Відповісти","Reply to":"","Reply to comment":"Відповісти на коментар",Report:"Поскаржитися","Report comment":"Поскаржитися на коментар","Report this comment?":"Поскаржитися на цей коментар?",Save:"Зберегти",Sending:"Відправка",Sent:"Відправлено",Show:"Показати","Show {{amount}} more replies":"Показати ще {{amount}} відповідей","Show {{amount}} previous comments":"Показати {{amount}} попередніх коментарів","Show 1 more reply":"Показати ще одну відповідь","Show 1 previous comment":"Показати один попередній коментар","Show comment":"Показати коментар","Sign in":"Увійти","Sign up now":"Зареєструватись зараз","Sort by":"","Start the conversation":"Почніть розмову","This comment has been hidden.":"Цей коментар було приховано.","This comment has been removed.":"Цей коментар було видалено.","Upgrade now":"Оновити зараз",Yesterday:"Вчора","Your request will be sent to the owner of this site.":"Ваш запит буде надіслано власнику цього сайту."},iD={"{{amount}} characters left":"{{amount}} حروف باقی ہیں","{{amount}} comments":"{{amount}} تبادلے","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"","1 comment":"1 تبادلہ","Add comment":"تبادلہ شامل کریں","Add context to your comment, share your name and expertise to foster a healthy discussion.":"اپنے تبادلے میں سیاق و سباق شامل کریں، اچھی گفتگو کو بڑھانے کے لئے اپنا نام اور ماہریت شیئر کریں۔","Add reply":"جواب شامل کریں","Already a member?":"پہلے ہی رکن ہیں؟",Anonymous:"ناشناس","Are you sure?":"","Become a member of {{publication}} to start commenting.":"تبادلہ شروع کرنے کے لئے {{publication}} کا رکن بنیں۔","Become a paid member of {{publication}} to start commenting.":"تبادلہ شروع کرنے کے لئے {{publication}} کا ادائیگی رکن بنیں۔",Cancel:"منسوخ کریں",Comment:"تبادلہ","Complete your profile":"اپنا پروفائل مکمل کریں",Delete:"حذف کریں",Deleted:"","Deleted member":"حذف شدہ رکن",Deleting:"",Discussion:"تبادلہ",Edit:"ترتیب دیں","Edit this comment":"اس تبادلے کو ترتیب دیں",edited:"","Enter your name":"اپنا نام درج کریں",Expertise:"اہلیت","Founder @ Acme Inc":"ناظم @ Acme Inc","Full-time parent":"پورے وقت کا والد یا والدہ","Head of Marketing at Acme, Inc":"Acme، Inc کے مارکیٹنگ کا سربراہ","Hidden for members":"",Hide:"چھپائیں","Hide comment":"تبادلہ چھپائیں","Jamie Larson":"جیمی لارسن","Join the discussion":"تبادلے میں شامل ہوں","Just now":"ابھی","Local resident":"مقامی رہائشی","Member discussion":"رکن کا تبادلہ",Name:"نام",Neurosurgeon:"نیوروسرجن","Once deleted, this comment can’t be recovered.":"","One hour ago":"ایک گھنٹہ پہلے","One min ago":"","Replied to":"",Reply:"جواب","Reply to":"","Reply to comment":"تبادلے کا جواب دیں",Report:"رپورٹ","Report comment":"تبادلے کی رپورٹ","Report this comment?":"کیا آپ اس تبادلے کو رپورٹ کرنا چاہتے ہیں؟",Save:"محفوظ کریں",Sending:"بھیج رہا ہے",Sent:"بھیجا گیا",Show:"دکھائیں","Show {{amount}} more replies":"{{amount}} مزید جوابات دکھائیں","Show {{amount}} previous comments":"{{amount}} پچھلے تبادلات دکھائیں","Show 1 more reply":"1 مزید جواب دکھائیں","Show 1 previous comment":"1 پچھلا تبادلہ دکھائیں","Show comment":"تبادلہ دکھائیں","Sign in":"سائن ان کریں","Sign up now":"ابھی رجسٹر ہوں","Sort by":"","Start the conversation":"بات چیت شروع کریں","This comment has been hidden.":"یہ تبادلہ چھپا گیا ہے۔","This comment has been removed.":"یہ تبادلہ ہٹا دیا گیا ہے۔","Upgrade now":"اب اپ گریڈ کریں",Yesterday:"کل","Your request will be sent to the owner of this site.":"آپ کا درخواست اس سائٹ کے مالک کو بھیجا جائے گا۔"},sD={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},aD={"{{amount}} characters left":"{{amount}} ký tự còn lại","{{amount}} comments":"{{amount}} bình luận","{{amount}} hrs ago":"{{amount}} giờ trước","{{amount}} mins ago":"{{amount}} phút trước","{{amount}} more":"{{amount}} nữa","1 comment":"1 bình luận","Add comment":"Thêm bình luận","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Thêm ngữ cảnh, tên và chuyên môn của bạn để thúc đẩy cuộc thảo luận lành mạnh.","Add reply":"Trả lời","Already a member?":"Đã là thành viên?",Anonymous:"Ẩn danh","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Trở thành thành viên của {{publication}} để có thể bình luận.","Become a paid member of {{publication}} to start commenting.":"Trở thành thành viên trả phí của {{publication}} để có thể bình luận.",Cancel:"Hủy",Comment:"Bình luận","Complete your profile":"Hoàn tất hồ sơ của bạn",Delete:"Xóa",Deleted:"","Deleted member":"Thành viên đã xóa",Deleting:"",Discussion:"Thảo luận",Edit:"Sửa","Edit this comment":"Sửa bình luận này",edited:"đã sửa","Enter your name":"Nhập tên của bạn",Expertise:"Chuyên môn","Founder @ Acme Inc":"Nhà sáng lập @ Acme Inc","Full-time parent":"Phụ huynh toàn thời gian","Head of Marketing at Acme, Inc":"Trưởng phòng Marketing tại Acme, Inc","Hidden for members":"",Hide:"Ẩn","Hide comment":"Ẩn bình luận","Jamie Larson":"Jamie Larson","Join the discussion":"Tham gia thảo luận","Just now":"Vừa xong","Local resident":"Cư dân địa phương","Member discussion":"Thảo luận của thành viên",Name:"Tên",Neurosurgeon:"Bác sĩ phẫu thuật thần kinh","Once deleted, this comment can’t be recovered.":"","One hour ago":"Một giờ trước","One min ago":"Một phút trước","Replied to":"",Reply:"Trả lời","Reply to":"","Reply to comment":"Trả lời bình luận",Report:"Báo cáo","Report comment":"Báo cáo bình luận","Report this comment?":"Báo cáo bình luận này?",Save:"Lưu",Sending:"Đang gửi",Sent:"Đã gửi",Show:"Hiển thị","Show {{amount}} more replies":"Xem {{amount}} trả lời khác","Show {{amount}} previous comments":"Đọc {{amount}} bình luận trước","Show 1 more reply":"Xem 1 trả lời","Show 1 previous comment":"Đọc 1 bình luận trước","Show comment":"Đọc bình luận","Sign in":"Đăng nhập","Sign up now":"Đăng ký ngay","Sort by":"Xếp theo","Start the conversation":"Bắt đầu cuộc trò chuyện","This comment has been hidden.":"Bình luận này đã bị ẩn.","This comment has been removed.":"Bình luận này đã bị xóa.","Upgrade now":"Nâng cấp",Yesterday:"Hôm qua","Your request will be sent to the owner of this site.":"Yêu cầu của bạn sẽ được gửi đến chủ sở hữu trang web này."},lD={"{{amount}} characters left":"还剩{{amount}}字","{{amount}} comments":"{{amount}}条评论","{{amount}} hrs ago":"{{amount}}小时前","{{amount}} mins ago":"{{amount}}分钟前","{{amount}} more":"","1 comment":"一条评论","Add comment":"添加评论","Add context to your comment, share your name and expertise to foster a healthy discussion.":"为您的评论补充上下文信息、说明您的称呼与专业背景均有助于营造健康的讨论氛围。","Add reply":"添加回复","Already a member?":"已经是会员?",Anonymous:"匿名","Are you sure?":"","Become a member of {{publication}} to start commenting.":"成为{{publication}}的会员以开始评论。","Become a paid member of {{publication}} to start commenting.":"成为{{publication}}的付费会员以开始评论。",Cancel:"取消",Comment:"评论","Complete your profile":"完善您的注册信息",Delete:"删除",Deleted:"","Deleted member":"删除会员",Deleting:"",Discussion:"讨论",Edit:"编辑","Edit this comment":"编辑此条评论",edited:"已编辑","Enter your name":"输入您的称呼",Expertise:"专业背景","Founder @ Acme Inc":"Acme Inc的创建者","Full-time parent":"全职父母","Head of Marketing at Acme, Inc":"Acme, Inc市场部负责人","Hidden for members":"",Hide:"隐藏","Hide comment":"隐藏评论","Jamie Larson":"Jamie Larson","Join the discussion":"加入讨论","Just now":"刚刚","Local resident":"本地居民","Member discussion":"会员讨论",Name:"称呼",Neurosurgeon:"神经外科医生","Once deleted, this comment can’t be recovered.":"","One hour ago":"一小时前","One min ago":"一分钟前","Replied to":"",Reply:"回复","Reply to":"","Reply to comment":"回复评论",Report:"举报","Report comment":"举报评论","Report this comment?":"举报此评论?",Save:"保存",Sending:"正在发送",Sent:"已发送",Show:"显示","Show {{amount}} more replies":"显示后续{{amount}}条评论","Show {{amount}} previous comments":"显示先前{{amount}}条评论","Show 1 more reply":"显示下一条评论","Show 1 previous comment":"显示前一条评论","Show comment":"显示评论","Sign in":"登录","Sign up now":"立刻注册","Sort by":"","Start the conversation":"开始对话","This comment has been hidden.":"该条评论已被隐藏。","This comment has been removed.":"该条评论已被移除。","Upgrade now":"立刻升级",Yesterday:"昨天","Your request will be sent to the owner of this site.":"您的请求将被发送给站点所有者。"},cD={"{{amount}} characters left":"還剩 {{amount}} 個字","{{amount}} comments":"{{amount}} 則留言","{{amount}} hrs ago":"{{amount}} 小時前","{{amount}} mins ago":"{{amount}} 分鐘前","{{amount}} more":"還剩 {{amount}} 則留言","1 comment":"一則留言","Add comment":"留言","Add context to your comment, share your name and expertise to foster a healthy discussion.":"為您的留言補充情境、說明您的稱呼與專業背景均有助於健康的討論氛圍。","Add reply":"回覆","Already a member?":"已經是會員?",Anonymous:"匿名","Are you sure?":"","Become a member of {{publication}} to start commenting.":"成為{{publication}}的會員以開始留言。","Become a paid member of {{publication}} to start commenting.":"成為{{publication}}的付費會員以開始留言。",Cancel:"取消",Comment:"留言","Complete your profile":"完善您的註冊資訊",Delete:"刪除",Deleted:"","Deleted member":"刪除會員",Deleting:"",Discussion:"討論",Edit:"編輯","Edit this comment":"編輯此則留言",edited:"已編輯","Enter your name":"輸入您的稱呼",Expertise:"專業背景","Founder @ Acme Inc":"Acme Inc的創辦人","Full-time parent":"全職父母","Head of Marketing at Acme, Inc":"Acme, Inc市場部負責人","Hidden for members":"",Hide:"隱藏","Hide comment":"隱藏留言","Jamie Larson":"Jamie Larson","Join the discussion":"加入討論","Just now":"剛剛","Local resident":"本地居民","Member discussion":"會員討論",Name:"稱呼",Neurosurgeon:"神經外科醫生","Once deleted, this comment can’t be recovered.":"","One hour ago":"一小時前","One min ago":"一分鐘前","Replied to":"",Reply:"回覆","Reply to":"","Reply to comment":"回覆留言",Report:"舉報","Report comment":"舉報留言","Report this comment?":"舉報此留言?",Save:"儲存",Sending:"正在發送",Sent:"已發送",Show:"顯示","Show {{amount}} more replies":"顯示後續 {{amount}} 則留言","Show {{amount}} previous comments":"顯示先前 {{amount}} 則留言","Show 1 more reply":"顯示下一則留言","Show 1 previous comment":"顯示前一則留言","Show comment":"顯示留言","Sign in":"登錄","Sign up now":"立即註冊","Sort by":"排序方式","Start the conversation":"開始對話","This comment has been hidden.":"該則留言已被隱藏。","This comment has been removed.":"該則留言已被移除。","Upgrade now":"立即升級",Yesterday:"昨天","Your request will be sent to the owner of this site.":"您的請求將被發送給所有者。"},uD={"{{amount}} characters left":"{{amount}} herufi zimebaki","{{amount}} comments":"{{amount}} maoni","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} more":"{{amount}} zaidi","1 comment":"maoni 1","Add comment":"Ongeza maoni","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Ongeza muktadha kwa maoni yako, shiriki jina lako na utaalamu ili kuendeleza mjadala wenye afya.","Add reply":"Ongeza jibu","Already a member?":"Tayari ni mwanachama?",Anonymous:"Asiyetambulika","Are you sure?":"","Become a member of {{publication}} to start commenting.":"Jiunge kama mwanachama wa {{publication}} ili kuanza kutoa maoni.","Become a paid member of {{publication}} to start commenting.":"Jiunge kama mwanachama anayelipa wa {{publication}} ili kuanza kutoa maoni.",Cancel:"Ghairi",Comment:"Maoni","Complete your profile":"Kamilisha wasifu wako",Delete:"Futa",Deleted:"","Deleted member":"Mwanachama aliyefutwa",Deleting:"",Discussion:"Majadiliano",Edit:"Hariri","Edit this comment":"Hariri maoni haya",edited:"","Enter your name":"Weka jina lako",Expertise:"Utaalamu","Founder @ Acme Inc":"Mwanzilishi @ Acme Inc","Full-time parent":"Mzazi wa muda wote","Head of Marketing at Acme, Inc":"Mkuu wa Masoko katika Acme, Inc","Hidden for members":"",Hide:"Ficha","Hide comment":"Ficha maoni","Jamie Larson":"Jamie Larson","Join the discussion":"Jiunge na mjadala","Just now":"Hivi sasa","Local resident":"Mkazi wa eneo","Member discussion":"Mjadala wa wanachama",Name:"Jina",Neurosurgeon:"Daktari wa ubongo","Once deleted, this comment can’t be recovered.":"","One hour ago":"Saa moja iliyopita","One min ago":"","Replied to":"",Reply:"Jibu","Reply to":"","Reply to comment":"Jibu maoni",Report:"Ripoti","Report comment":"Ripoti maoni","Report this comment?":"Unataka kuripoti maoni haya?",Save:"Hifadhi",Sending:"Inatuma",Sent:"Imetumwa",Show:"Onyesha","Show {{amount}} more replies":"Onyesha majibu {{amount}} zaidi","Show {{amount}} previous comments":"Onyesha maoni {{amount}} ya awali","Show 1 more reply":"Onyesha jibu 1 zaidi","Show 1 previous comment":"Onyesha maoni 1 ya awali","Show comment":"Onyesha maoni","Sign in":"Ingia","Sign up now":"Jisajili sasa","Sort by":"","Start the conversation":"Anzisha mazungumzo","This comment has been hidden.":"Maoni haya yamefichwa.","This comment has been removed.":"Maoni haya yameondolewa.","Upgrade now":"Boresha sasa",Yesterday:"Jana","Your request will be sent to the owner of this site.":"Ombi lako litatumwa kwa mmiliki wa tovuti hii."},dD={"{{amount}} characters left":"{{amount}} எழுத்துக்கள் எஞ்சியுள்ளன","{{amount}} comments":"{{amount}} கருத்துக்கள்","{{amount}} hrs ago":"{{amount}} மணி நேரத்திற்கு முன்பு","{{amount}} mins ago":"{{amount}} நிமிடங்களுக்கு முன்பு","{{amount}} more":"{{amount}} மேலும்","1 comment":"1 கருத்து","Add comment":"கருத்தைச் சேர்க்கவும்","Add context to your comment, share your name and expertise to foster a healthy discussion.":"உங்கள் கருத்துக்கு சூழலைச் சேர்க்கவும், ஆரோக்கியமான விவாதத்தை வளர்க்க உங்கள் பெயரையும் நிபுணத்துவத்தையும் பகிர்ந்து கொள்ளுங்கள்.","Add reply":"பதில் சேர்க்கவும்","Already a member?":"ஏற்கனவே உறுப்பினரா?",Anonymous:"அடையாளம் தெரியாத","Are you sure?":"","Become a member of {{publication}} to start commenting.":"கருத்துத் தெரிவிக்க {{publication}} இல் உறுப்பினராகுங்கள்.","Become a paid member of {{publication}} to start commenting.":"கருத்துத் தெரிவிக்க {{publication}} இல் கட்டண உறுப்பினராகுங்கள்.",Cancel:"ரத்து செய்",Comment:"கருத்து","Complete your profile":"உங்கள் சுயவிவரத்தை பூர்த்தி செய்யவும்",Delete:"நீக்கவும்",Deleted:"","Deleted member":"நீக்கப்பட்ட உறுப்பினர்",Deleting:"",Discussion:"கலந்துரையாடல்",Edit:"திருத்தவும்","Edit this comment":"இந்தக் கருத்தைத் திருத்தவும்",edited:"திருத்தப்பட்டது","Enter your name":"உங்கள் பெயரை உள்ளிடுக",Expertise:"நிபுணத்துவம்","Founder @ Acme Inc":"நிறுவனர் @ Acme Inc","Full-time parent":"முழுநேர பெற்றோர்","Head of Marketing at Acme, Inc":"Acme Inc நிறுவனத்தின் சந்தைப்படுத்தல் தலைவர்","Hidden for members":"",Hide:"மறைக்கவும்","Hide comment":"கருத்தை மறை","Jamie Larson":"ஜேமி லார்சன்","Join the discussion":"கலந்துரையாடலில் சேரவும்","Just now":"சற்றுமுன்னர்தான்","Local resident":"உள்ளூர்வாசி","Member discussion":"உறுப்பினர் கருத்து",Name:"பெயர்",Neurosurgeon:"நரம்பியல் அறுவை சிகிச்சை நிபுணர்","Once deleted, this comment can’t be recovered.":"","One hour ago":"ஒரு மணி முன்பு","One min ago":"ஒரு நிமிடம் முன்பு","Replied to":"",Reply:"பதிலளிக்கவும்","Reply to":"","Reply to comment":"கருத்துக்கு பதிலளிக்கவும்",Report:"புகாரளி","Report comment":"கருத்தைப் புகாரளி","Report this comment?":"இந்தக் கருத்தைப் புகாரளிக்கவா?",Save:"சேமிக்க",Sending:"அனுப்புகிறது",Sent:"அனுப்பப்பட்டது",Show:"காட்டு","Show {{amount}} more replies":"முந்தைய {{amount}} மேலும் பதில்கள்க் காட்டு","Show {{amount}} previous comments":"முந்தைய {{amount}} கருத்துகளைக் காட்டு","Show 1 more reply":"மேலும் 1 பதிலைக் காட்டு","Show 1 previous comment":"முந்தைய 1 கருத்தைக் காட்டு","Show comment":"கருத்தைக் காட்டு","Sign in":"உள்நுழைக","Sign up now":"இப்பொழுதே பதிவு செய்யுங்கள்","Sort by":"","Start the conversation":"உரையாடலைத் தொடங்குங்கள்","This comment has been hidden.":"இந்தக் கருத்து மறைக்கப்பட்டது.","This comment has been removed.":"இந்தக் கருத்து நீக்கப்பட்டது.","Upgrade now":"இப்போதே மேம்படுத்தவும்",Yesterday:"நேற்று","Your request will be sent to the owner of this site.":"உங்கள் கோரிக்கை இந்த தளத்தின் உரிமையாளருக்கு அனுப்பப்படும்."};var c1;function u1(){return c1||(c1={"/ghost/i18n/locales/af/comments.json":function(){return aN},"/ghost/i18n/locales/ar/comments.json":function(){return lN},"/ghost/i18n/locales/bg/comments.json":function(){return cN},"/ghost/i18n/locales/bn/comments.json":function(){return uN},"/ghost/i18n/locales/bs/comments.json":function(){return dN},"/ghost/i18n/locales/ca/comments.json":function(){return mN},"/ghost/i18n/locales/cs/comments.json":function(){return fN},"/ghost/i18n/locales/da/comments.json":function(){return pN},"/ghost/i18n/locales/de/comments.json":function(){return hN},"/ghost/i18n/locales/de-CH/comments.json":function(){return gN},"/ghost/i18n/locales/el/comments.json":function(){return yN},"/ghost/i18n/locales/en/comments.json":function(){return wN},"/ghost/i18n/locales/eo/comments.json":function(){return bN},"/ghost/i18n/locales/es/comments.json":function(){return vN},"/ghost/i18n/locales/et/comments.json":function(){return SN},"/ghost/i18n/locales/fa/comments.json":function(){return xN},"/ghost/i18n/locales/fi/comments.json":function(){return kN},"/ghost/i18n/locales/fr/comments.json":function(){return $N},"/ghost/i18n/locales/gd/comments.json":function(){return CN},"/ghost/i18n/locales/he/comments.json":function(){return EN},"/ghost/i18n/locales/hi/comments.json":function(){return NN},"/ghost/i18n/locales/hr/comments.json":function(){return DN},"/ghost/i18n/locales/hu/comments.json":function(){return AN},"/ghost/i18n/locales/id/comments.json":function(){return RN},"/ghost/i18n/locales/is/comments.json":function(){return ON},"/ghost/i18n/locales/it/comments.json":function(){return MN},"/ghost/i18n/locales/ja/comments.json":function(){return TN},"/ghost/i18n/locales/ko/comments.json":function(){return jN},"/ghost/i18n/locales/kz/comments.json":function(){return PN},"/ghost/i18n/locales/lt/comments.json":function(){return IN},"/ghost/i18n/locales/mk/comments.json":function(){return LN},"/ghost/i18n/locales/mn/comments.json":function(){return zN},"/ghost/i18n/locales/ms/comments.json":function(){return FN},"/ghost/i18n/locales/ne/comments.json":function(){return HN},"/ghost/i18n/locales/nl/comments.json":function(){return BN},"/ghost/i18n/locales/nn/comments.json":function(){return VN},"/ghost/i18n/locales/no/comments.json":function(){return UN},"/ghost/i18n/locales/pl/comments.json":function(){return _N},"/ghost/i18n/locales/pt/comments.json":function(){return JN},"/ghost/i18n/locales/pt-BR/comments.json":function(){return YN},"/ghost/i18n/locales/ro/comments.json":function(){return KN},"/ghost/i18n/locales/ru/comments.json":function(){return WN},"/ghost/i18n/locales/si/comments.json":function(){return qN},"/ghost/i18n/locales/sk/comments.json":function(){return GN},"/ghost/i18n/locales/sl/comments.json":function(){return QN},"/ghost/i18n/locales/sq/comments.json":function(){return ZN},"/ghost/i18n/locales/sr/comments.json":function(){return XN},"/ghost/i18n/locales/sr-Cyrl/comments.json":function(){return eD},"/ghost/i18n/locales/sv/comments.json":function(){return tD},"/ghost/i18n/locales/th/comments.json":function(){return nD},"/ghost/i18n/locales/tr/comments.json":function(){return oD},"/ghost/i18n/locales/uk/comments.json":function(){return rD},"/ghost/i18n/locales/ur/comments.json":function(){return iD},"/ghost/i18n/locales/uz/comments.json":function(){return sD},"/ghost/i18n/locales/vi/comments.json":function(){return aD},"/ghost/i18n/locales/zh/comments.json":function(){return lD},"/ghost/i18n/locales/zh-Hant/comments.json":function(){return cD},"/ghost/i18n/locales/sw/comments.json":function(){return uD},"/ghost/i18n/locales/ta/comments.json":function(){return dD}})}function d1(t){function e(n){var o=m1(n,t);if(o!==null)return u1()[o]();throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}return e.resolve=function(n){var o=m1(n,t);return o!==null?o:require.resolve(n)},e}function m1(t,e){var n=mD(t);t=gl(t);var o;t[0]==="/"&&(e="");for(var r=u1(),i=["",".js",".json"];n?o=gl(e+"/node_modules/"+t):o=gl(e+"/"+t),!o.endsWith("/..");){for(var s=0;s<i.length;s++){var a=o+i[s];if(r[a])return a}if(!n)break;var l=gl(e+"/..");if(l===e)break;e=l}return null}function mD(t){var e=t[0];if(e==="/"||e==="\\")return!1;var n=t[1],o=t[2];return!(e==="."&&(!n||n==="/"||n==="\\")||e==="."&&n==="."&&(!o||o==="/"||o==="\\")||n===":"&&(o==="/"||o==="\\"))}function gl(t){t=t.replace(/\\/g,"/");for(var e=t.split("/"),n=e[0]==="",o=1;o<e.length;o++)(e[o]==="."||e[o]==="")&&e.splice(o--,1);for(var o=1;o<e.length;o++)e[o]===".."&&o>0&&e[o-1]!==".."&&e[o-1]!=="."&&(e.splice(--o,2),o--);return t=e.join("/"),n&&t[0]!=="/"?t="/"+t:t.length===0&&(t="."),t}var yl={exports:{}};const F=t=>typeof t=="string",_i=()=>{let t,e;const n=new Promise((o,r)=>{t=o,e=r});return n.resolve=t,n.reject=e,n},f1=t=>t==null?"":""+t,fD=(t,e,n)=>{t.forEach(o=>{e[o]&&(n[o]=e[o])})},pD=/###/g,p1=t=>t&&t.indexOf("###")>-1?t.replace(pD,"."):t,h1=t=>!t||F(t),Ji=(t,e,n)=>{const o=F(e)?e.split("."):e;let r=0;for(;r<o.length-1;){if(h1(t))return{};const i=p1(o[r]);!t[i]&&n&&(t[i]=new n),Object.prototype.hasOwnProperty.call(t,i)?t=t[i]:t={},++r}return h1(t)?{}:{obj:t,k:p1(o[r])}},g1=(t,e,n)=>{const{obj:o,k:r}=Ji(t,e,Object);if(o!==void 0||e.length===1){o[r]=n;return}let i=e[e.length-1],s=e.slice(0,e.length-1),a=Ji(t,s,Object);for(;a.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),a=Ji(t,s,Object),a&&a.obj&&typeof a.obj[`${a.k}.${i}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},hD=(t,e,n,o)=>{const{obj:r,k:i}=Ji(t,e,Object);r[i]=r[i]||[],r[i].push(n)},wl=(t,e)=>{const{obj:n,k:o}=Ji(t,e);if(n)return n[o]},gD=(t,e,n)=>{const o=wl(t,n);return o!==void 0?o:wl(e,n)},y1=(t,e,n)=>{for(const o in e)o!=="__proto__"&&o!=="constructor"&&(o in t?F(t[o])||t[o]instanceof String||F(e[o])||e[o]instanceof String?n&&(t[o]=e[o]):y1(t[o],e[o],n):t[o]=e[o]);return t},hr=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var yD={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const wD=t=>F(t)?t.replace(/[&<>"'\/]/g,e=>yD[e]):t;class bD{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const o=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,o),this.regExpQueue.push(e),o}}const vD=[" ",",","?","!",";"],SD=new bD(20),xD=(t,e,n)=>{e=e||"",n=n||"";const o=vD.filter(s=>e.indexOf(s)<0&&n.indexOf(s)<0);if(o.length===0)return!0;const r=SD.getRegExp(`(${o.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!r.test(t);if(!i){const s=t.indexOf(n);s>0&&!r.test(t.substring(0,s))&&(i=!0)}return i},dm=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const o=e.split(n);let r=t;for(let i=0;i<o.length;){if(!r||typeof r!="object")return;let s,a="";for(let l=i;l<o.length;++l)if(l!==i&&(a+=n),a+=o[l],s=r[a],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<o.length-1)continue;i+=l-i+1;break}r=s}return r},bl=t=>t&&t.replace("_","-"),kD={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class vl{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||kD,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return this.forward(n,"log","",!0)}warn(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return this.forward(n,"warn","",!0)}error(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return this.forward(n,"error","")}deprecate(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,o,r){return r&&!this.debug?null:(F(e[0])&&(e[0]=`${o}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new vl(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new vl(this.logger,e)}}var Tt=new vl;class Sl{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(o=>{this.observers[o]||(this.observers[o]=new Map);const r=this.observers[o].get(n)||0;this.observers[o].set(n,r+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(s=>{let[a,l]=s;for(let c=0;c<l;c++)a(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[a,l]=s;for(let c=0;c<l;c++)a.apply(a,[e,...o])})}}class w1 extends Sl{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,n],o&&(Array.isArray(o)?a.push(...o):F(o)&&i?a.push(...o.split(i)):a.push(o)));const l=wl(this.data,a);return!l&&!n&&!o&&e.indexOf(".")>-1&&(e=a[0],n=a[1],o=a.slice(2).join(".")),l||!s||!F(o)?l:dm(this.data&&this.data[e]&&this.data[e][n],o,i)}addResource(e,n,o,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[e,n];o&&(a=a.concat(s?o.split(s):o)),e.indexOf(".")>-1&&(a=e.split("."),r=n,n=a[1]),this.addNamespaces(n),g1(this.data,a,r),i.silent||this.emit("added",e,n,o,r)}addResources(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in o)(F(o[i])||Array.isArray(o[i]))&&this.addResource(e,n,i,o[i],{silent:!0});r.silent||this.emit("added",e,n,o)}addResourceBundle(e,n,o,r,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[e,n];e.indexOf(".")>-1&&(a=e.split("."),r=o,o=n,n=a[1]),this.addNamespaces(n);let l=wl(this.data,a)||{};s.skipCopy||(o=JSON.parse(JSON.stringify(o))),r?y1(l,o,i):l={...l,...o},g1(this.data,a,l),s.silent||this.emit("added",e,n,o)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,n)}:this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}}var b1={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,o,r){return t.forEach(i=>{this.processors[i]&&(e=this.processors[i].process(e,n,o,r))}),e}};const v1={};class xl extends Sl{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),fD(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Tt.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const o=this.resolve(e,n);return o&&o.res!==void 0}extractFromKey(e,n){let o=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");const r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const s=o&&e.indexOf(o)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!xD(e,o,r);if(s&&!a){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:i};const c=e.split(o);(o!==r||o===r&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),e=c.join(r)}return F(i)&&(i=[i]),{key:e,namespaces:i}}translate(e,n,o){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(e[e.length-1],n),l=a[a.length-1],c=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(u){const S=n.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${S}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${S}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s}const m=this.resolve(e,n);let d=m&&m.res;const p=m&&m.usedKey||s,f=m&&m.exactUsedKey||s,y=Object.prototype.toString.apply(d),h=["[object Number]","[object Function]","[object RegExp]"],g=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,v=!F(d)&&typeof d!="boolean"&&typeof d!="number";if(b&&d&&v&&h.indexOf(y)<0&&!(F(g)&&Array.isArray(d))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,d,{...n,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(m.res=S,m.usedParams=this.getUsedParamsDetails(n),m):S}if(i){const S=Array.isArray(d),C=S?[]:{},x=S?f:p;for(const $ in d)if(Object.prototype.hasOwnProperty.call(d,$)){const R=`${x}${i}${$}`;C[$]=this.translate(R,{...n,joinArrays:!1,ns:a}),C[$]===R&&(C[$]=d[$])}d=C}}else if(b&&F(g)&&Array.isArray(d))d=d.join(g),d&&(d=this.extendTranslation(d,e,n,o));else{let S=!1,C=!1;const x=n.count!==void 0&&!F(n.count),$=xl.hasDefaultValue(n),R=x?this.pluralResolver.getSuffix(c,n.count,n):"",E=n.ordinal&&x?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",U=x&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),se=U&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${R}`]||n[`defaultValue${E}`]||n.defaultValue;!this.isValidLookup(d)&&$&&(S=!0,d=se),this.isValidLookup(d)||(C=!0,d=s);const G=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:d,De=$&&se!==d&&this.options.updateMissing;if(C||S||De){if(this.logger.log(De?"updateKey":"missingKey",c,l,s,De?se:d),i){const Q=this.resolve(s,{...n,keySeparator:!1});Q&&Q.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let le=[];const pe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&pe&&pe[0])for(let Q=0;Q<pe.length;Q++)le.push(pe[Q]);else this.options.saveMissingTo==="all"?le=this.languageUtils.toResolveHierarchy(n.lng||this.language):le.push(n.lng||this.language);const de=(Q,ce,Se)=>{const O=$&&Se!==d?Se:G;this.options.missingKeyHandler?this.options.missingKeyHandler(Q,l,ce,O,De,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Q,l,ce,O,De,n),this.emit("missingKey",Q,l,ce,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&x?le.forEach(Q=>{const ce=this.pluralResolver.getSuffixes(Q,n);U&&n[`defaultValue${this.options.pluralSeparator}zero`]&&ce.indexOf(`${this.options.pluralSeparator}zero`)<0&&ce.push(`${this.options.pluralSeparator}zero`),ce.forEach(Se=>{de([Q],s+Se,n[`defaultValue${Se}`]||se)})}):de(le,s,se))}d=this.extendTranslation(d,e,n,m,o),C&&d===s&&this.options.appendNamespaceToMissingKey&&(d=`${l}:${s}`),(C||S)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,S?d:void 0):d=this.options.parseMissingKeyHandler(d))}return r?(m.res=d,m.usedParams=this.getUsedParamsDetails(n),m):d}extendTranslation(e,n,o,r,i){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...o},o.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init({...o,interpolation:{...this.options.interpolation,...o.interpolation}});const c=F(e)&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(c){const d=e.match(this.interpolator.nestingRegexp);u=d&&d.length}let m=o.replace&&!F(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),e=this.interpolator.interpolate(e,m,o.lng||this.language||r.usedLng,o),c){const d=e.match(this.interpolator.nestingRegexp),p=d&&d.length;u<p&&(o.nest=!1)}!o.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(o.lng=this.language||r.usedLng),o.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var d=arguments.length,p=new Array(d),f=0;f<d;f++)p[f]=arguments[f];return i&&i[0]===p[0]&&!o.context?(s.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${n[0]}`),null):s.translate(...p,n)},o)),o.interpolation&&this.interpolator.reset()}const a=o.postProcess||this.options.postProcess,l=F(a)?[a]:a;return e!=null&&l&&l.length&&o.applyPostProcessor!==!1&&(e=b1.handle(l,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),e}resolve(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,r,i,s,a;return F(e)&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(o))return;const c=this.extractFromKey(l,n),u=c.key;r=u;let m=c.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const d=n.count!==void 0&&!F(n.count),p=d&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),f=n.context!==void 0&&(F(n.context)||typeof n.context=="number")&&n.context!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(h=>{this.isValidLookup(o)||(a=h,!v1[`${y[0]}-${h}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(v1[`${y[0]}-${h}`]=!0,this.logger.warn(`key "${r}" for languages "${y.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(g=>{if(this.isValidLookup(o))return;s=g;const b=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(b,u,g,h,n);else{let S;d&&(S=this.pluralResolver.getSuffix(g,n.count,n));const C=`${this.options.pluralSeparator}zero`,x=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(b.push(u+S),n.ordinal&&S.indexOf(x)===0&&b.push(u+S.replace(x,this.options.pluralSeparator)),p&&b.push(u+C)),f){const $=`${u}${this.options.contextSeparator}${n.context}`;b.push($),d&&(b.push($+S),n.ordinal&&S.indexOf(x)===0&&b.push($+S.replace(x,this.options.pluralSeparator)),p&&b.push($+C))}}let v;for(;v=b.pop();)this.isValidLookup(o)||(i=v,o=this.getResource(g,h,v,n))}))})}),{res:o,usedKey:r,exactUsedKey:i,usedLng:s,usedNS:a}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,o,r):this.resourceStore.getResource(e,n,o,r)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=e.replace&&!F(e.replace);let r=o?e.replace:e;if(o&&typeof e.count<"u"&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!o){r={...r};for(const i of n)delete r[i]}return r}static hasDefaultValue(e){const n="defaultValue";for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&n===o.substring(0,n.length)&&e[o]!==void 0)return!0;return!1}}const mm=t=>t.charAt(0).toUpperCase()+t.slice(1);class S1{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Tt.create("languageUtils")}getScriptPartFromCode(e){if(e=bl(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=bl(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(F(e)&&e.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let r=Intl.getCanonicalLocales(e)[0];if(r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r)return r}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let o=e.split("-");return this.options.lowerCaseLng?o=o.map(r=>r.toLowerCase()):o.length===2?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),n.indexOf(o[1].toLowerCase())>-1&&(o[1]=mm(o[1].toLowerCase()))):o.length===3&&(o[0]=o[0].toLowerCase(),o[1].length===2&&(o[1]=o[1].toUpperCase()),o[0]!=="sgn"&&o[2].length===2&&(o[2]=o[2].toUpperCase()),n.indexOf(o[1].toLowerCase())>-1&&(o[1]=mm(o[1].toLowerCase())),n.indexOf(o[2].toLowerCase())>-1&&(o[2]=mm(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(o=>{if(n)return;const r=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&e.forEach(o=>{if(n)return;const r=this.getLanguagePartFromCode(o);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(i=>{if(i===r)return i;if(!(i.indexOf("-")<0&&r.indexOf("-")<0)&&(i.indexOf("-")>0&&r.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===r||i.indexOf(r)===0&&r.length>1))return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),F(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let o=e[n];return o||(o=e[this.getScriptPartFromCode(n)]),o||(o=e[this.formatLanguageCode(n)]),o||(o=e[this.getLanguagePartFromCode(n)]),o||(o=e.default),o||[]}toResolveHierarchy(e,n){const o=this.getFallbackCodes(n||this.options.fallbackLng||[],e),r=[],i=s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return F(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):F(e)&&i(this.formatLanguageCode(e)),o.forEach(s=>{r.indexOf(s)<0&&i(this.formatLanguageCode(s))}),r}}let $D=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],CD={1:t=>+(t>1),2:t=>+(t!=1),3:t=>0,4:t=>t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,5:t=>t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5,6:t=>t==1?0:t>=2&&t<=4?1:2,7:t=>t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,8:t=>t==1?0:t==2?1:t!=8&&t!=11?2:3,9:t=>+(t>=2),10:t=>t==1?0:t==2?1:t<7?2:t<11?3:4,11:t=>t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3,12:t=>+(t%10!=1||t%100==11),13:t=>+(t!==0),14:t=>t==1?0:t==2?1:t==3?2:3,15:t=>t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2,16:t=>t%10==1&&t%100!=11?0:t!==0?1:2,17:t=>t==1||t%10==1&&t%100!=11?0:1,18:t=>t==0?0:t==1?1:2,19:t=>t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3,20:t=>t==1?0:t==0||t%100>0&&t%100<20?1:2,21:t=>t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0,22:t=>t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3};const ED=["v1","v2","v3"],ND=["v4"],x1={zero:0,one:1,two:2,few:3,many:4,other:5},DD=()=>{const t={};return $D.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:CD[e.fc]}})}),t};class AD{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=Tt.create("pluralResolver"),(!this.options.compatibilityJSON||ND.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=DD(),this.pluralRulesCache={}}addRule(e,n){this.rules[e]=n}clearCache(){this.pluralRulesCache={}}getRule(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{const o=bl(e==="dev"?"en":e),r=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:o,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];const s=new Intl.PluralRules(o,{type:r});return this.pluralRulesCache[i]=s,s}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=this.getRule(e,n);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}getPluralFormsOfKey(e,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,o).map(r=>`${n}${r}`)}getSuffixes(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=this.getRule(e,n);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort((r,i)=>x1[r]-x1[i]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):o.numbers.map(r=>this.getSuffix(e,r,n)):[]}getSuffix(e,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=this.getRule(e,o);return r?this.shouldUseIntlApi()?`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,n):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,n){const o=e.noAbs?e.plurals(n):e.plurals(Math.abs(n));let r=e.numbers[o];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));const i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?i():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}shouldUseIntlApi(){return!ED.includes(this.options.compatibilityJSON)}}const k1=function(t,e,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=gD(t,e,n);return!i&&r&&F(n)&&(i=dm(t,n,o),i===void 0&&(i=dm(e,n,o))),i},fm=t=>t.replace(/\$/g,"$$$$");class RD{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Tt.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:o,useRawValueToEscape:r,prefix:i,prefixEscaped:s,suffix:a,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:m,nestingPrefix:d,nestingPrefixEscaped:p,nestingSuffix:f,nestingSuffixEscaped:y,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:b}=e.interpolation;this.escape=n!==void 0?n:wD,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=i?hr(i):s||"{{",this.suffix=a?hr(a):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?hr(d):p||hr("$t("),this.nestingSuffix=f?hr(f):y||hr(")"),this.nestingOptionsSeparator=h||",",this.maxReplaces=g||1e3,this.alwaysFormat=b!==void 0?b:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,o)=>n&&n.source===o?(n.lastIndex=0,n):new RegExp(o,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,n,o,r){let i,s,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=p=>{if(p.indexOf(this.formatSeparator)<0){const g=k1(n,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(g,void 0,o,{...r,...n,interpolationkey:p}):g}const f=p.split(this.formatSeparator),y=f.shift().trim(),h=f.join(this.formatSeparator).trim();return this.format(k1(n,l,y,this.options.keySeparator,this.options.ignoreJSONStructure),h,o,{...r,...n,interpolationkey:y})};this.resetRegExp();const u=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,m=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>fm(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?fm(this.escape(p)):fm(p)}].forEach(p=>{for(a=0;i=p.regex.exec(e);){const f=i[1].trim();if(s=c(f),s===void 0)if(typeof u=="function"){const h=u(e,i,r);s=F(h)?h:""}else if(r&&Object.prototype.hasOwnProperty.call(r,f))s="";else if(m){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${f} for interpolating ${e}`),s="";else!F(s)&&!this.useRawValueToEscape&&(s=f1(s));const y=p.safeValue(s);if(e=e.replace(i[0],y),m?(p.regex.lastIndex+=s.length,p.regex.lastIndex-=i[0].length):p.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,s;const a=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const m=l.split(new RegExp(`${u}[ ]*{`));let d=`{${m[1]}`;l=m[0],d=this.interpolate(d,s);const p=d.match(/'/g),f=d.match(/"/g);(p&&p.length%2===0&&!f||f.length%2!==0)&&(d=d.replace(/'/g,'"'));try{s=JSON.parse(d),c&&(s={...c,...s})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${u}${d}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l};for(;r=this.nestingRegexp.exec(e);){let l=[];s={...o},s=s.replace&&!F(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){const u=r[1].split(this.formatSeparator).map(m=>m.trim());r[1]=u.shift(),l=u,c=!0}if(i=n(a.call(this,r[1].trim(),s),s),i&&r[0]===e&&!F(i))return i;F(i)||(i=f1(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=""),c&&(i=l.reduce((u,m)=>this.format(u,m,o.lng,{...o,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}}const OD=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const o=t.split("(");e=o[0].toLowerCase().trim();const r=o[1].substring(0,o[1].length-1);e==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):e==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){const[a,...l]=s.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=a.trim();n[u]||(n[u]=c),c==="false"&&(n[u]=!1),c==="true"&&(n[u]=!0),isNaN(c)||(n[u]=parseInt(c,10))}})}return{formatName:e,formatOptions:n}},gr=t=>{const e={};return(n,o,r)=>{let i=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(i={...i,[r.interpolationkey]:void 0});const s=o+JSON.stringify(i);let a=e[s];return a||(a=t(bl(o),r),e[s]=a),a(n)}};class MD{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Tt.create("formatter"),this.options=e,this.formats={number:gr((n,o)=>r=>new Intl.NumberFormat(n,{...o}).format(r)),currency:gr((n,o)=>r=>new Intl.NumberFormat(n,{...o,style:"currency"}).format(r)),datetime:gr((n,o)=>r=>new Intl.DateTimeFormat(n,{...o}).format(r)),relativetime:gr((n,o)=>r=>new Intl.RelativeTimeFormat(n,{...o}).format(r,o.range||"day")),list:gr((n,o)=>r=>new Intl.ListFormat(n,{...o}).format(r))},this.init(e)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=gr(n)}format(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(a=>a.indexOf(")")>-1)){const a=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,a)].join(this.formatSeparator)}return i.reduce((a,l)=>{const{formatName:c,formatOptions:u}=OD(l);if(this.formats[c]){let m=a;try{const d=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},p=d.locale||d.lng||r.locale||r.lng||o;m=this.formats[c](a,p,{...u,...r,...d})}catch(d){this.logger.warn(d)}return m}else this.logger.warn(`there was no format function for ${c}`);return a},e)}}const TD=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class jD extends Sl{constructor(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=n,this.services=o,this.languageUtils=o.languageUtils,this.options=r,this.logger=Tt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(o,r.backend,r)}queueLoad(e,n,o,r){const i={},s={},a={},l={};return e.forEach(c=>{let u=!0;n.forEach(m=>{const d=`${c}|${m}`;!o.reload&&this.store.hasResourceBundle(c,m)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?s[d]===void 0&&(s[d]=!0):(this.state[d]=1,u=!1,s[d]===void 0&&(s[d]=!0),i[d]===void 0&&(i[d]=!0),l[m]===void 0&&(l[m]=!0)))}),u||(a[c]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,n,o){const r=e.split("|"),i=r[0],s=r[1];n&&this.emit("failedLoading",i,s,n),!n&&o&&this.store.addResourceBundle(i,s,o,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&o&&(this.state[e]=0);const a={};this.queue.forEach(l=>{hD(l.loaded,[i],s),TD(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{a[c]||(a[c]={});const u=l.loaded[c];u.length&&u.forEach(m=>{a[c][m]===void 0&&(a[c][m]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:o,tried:r,wait:i,callback:s});return}this.readingCalls++;const a=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(c&&u&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,o,r+1,i*2,s)},i);return}s(c,u)},l=this.backend[o].bind(this.backend);if(l.length===2){try{const c=l(e,n);c&&typeof c.then=="function"?c.then(u=>a(null,u)).catch(a):a(null,c)}catch(c){a(c)}return}return l(e,n,a)}prepareLoading(e,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();F(e)&&(e=this.languageUtils.toResolveHierarchy(e)),F(n)&&(n=[n]);const i=this.queueLoad(e,n,o,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(e,n,o){this.prepareLoading(e,n,{},o)}reload(e,n,o){this.prepareLoading(e,n,{reload:!0},o)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const o=e.split("|"),r=o[0],i=o[1];this.read(r,i,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${n}loading namespace ${i} for language ${r} failed`,s),!s&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${r}`,a),this.loaded(e,s,a)})}saveMissing(e,n,o,r,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${o}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if(this.backend&&this.backend.create){const l={...s,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(e,n,o,r,l):u=c(e,n,o,r),u&&typeof u.then=="function"?u.then(m=>a(null,m)).catch(a):a(null,u)}catch(u){a(u)}else c(e,n,o,r,a,l)}!e||!e[0]||this.store.addResource(e[0],n,o,r)}}}const $1=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),F(t[1])&&(e.defaultValue=t[1]),F(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(o=>{e[o]=n[o]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),C1=t=>(F(t.ns)&&(t.ns=[t.ns]),F(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),F(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),kl=()=>{},PD=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class Yi extends Sl{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=C1(e),this.services={},this.logger=Tt,this.modules={external:[]},PD(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(){var e=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(o=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(F(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const r=$1();this.options={...r,...this.options,...C1(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?Tt.init(i(this.modules.logger),this.options):Tt.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=MD);const m=new S1(this.options);this.store=new w1(this.options.resources,this.options);const d=this.services;d.logger=Tt,d.resourceStore=this.store,d.languageUtils=m,d.pluralResolver=new AD(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(d.formatter=i(u),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new RD(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new jD(i(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(p){for(var f=arguments.length,y=new Array(f>1?f-1:0),h=1;h<f;h++)y[h-1]=arguments[h];e.emit(p,...y)}),this.modules.languageDetector&&(d.languageDetector=i(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=i(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new xl(this.services,this.options),this.translator.on("*",function(p){for(var f=arguments.length,y=new Array(f>1?f-1:0),h=1;h<f;h++)y[h-1]=arguments[h];e.emit(p,...y)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,o||(o=kl),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return e.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return e.store[u](...arguments),e}});const l=_i(),c=()=>{const u=(m,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(d),o(m,d)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kl;const r=F(e)?e:this.language;if(typeof e=="function"&&(o=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return o();const i=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(c=>{c!=="cimode"&&i.indexOf(c)<0&&i.push(c)})};r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload&&this.options.preload.forEach(a=>s(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(a)})}else o(null)}reloadResources(e,n,o){const r=_i();return typeof e=="function"&&(o=e,e=void 0),typeof n=="function"&&(o=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),o||(o=kl),this.services.backendConnector.reload(e,n,i=>{r.resolve(),o(i)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&b1.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let n=0;n<this.languages.length;n++){const o=this.languages[n];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}changeLanguage(e,n){var o=this;this.isLanguageChangingTo=e;const r=_i();this.emit("languageChanging",e);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,c)=>{c?(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,r.resolve(function(){return o.t(...arguments)}),n&&n(l,function(){return o.t(...arguments)})},a=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const c=F(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,u=>{s(u,c)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),r}getFixedT(e,n,o){var r=this;const i=function(s,a){let l;if(typeof a!="object"){for(var c=arguments.length,u=new Array(c>2?c-2:0),m=2;m<c;m++)u[m-2]=arguments[m];l=r.options.overloadTranslationOptionHandler([s,a].concat(u))}else l={...a};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||o||i.keyPrefix);const d=r.options.keySeparator||".";let p;return l.keyPrefix&&Array.isArray(s)?p=s.map(f=>`${l.keyPrefix}${d}${f}`):p=l.keyPrefix?`${l.keyPrefix}${d}${s}`:s,r.t(p,l)};return F(e)?i.lng=e:i.lngs=e,i.ns=n,i.keyPrefix=o,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const o=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const c=this.services.backendConnector.state[`${a}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const a=n.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(o,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(o,e)&&(!r||s(i,e)))}loadNamespaces(e,n){const o=_i();return this.options.ns?(F(e)&&(e=[e]),e.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{o.resolve(),n&&n(r)}),o):(n&&n(),Promise.resolve())}loadLanguages(e,n){const o=_i();F(e)&&(e=[e]);const r=this.options.preload||[],i=e.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return i.length?(this.options.preload=r.concat(i),this.loadResources(s=>{o.resolve(),n&&n(s)}),o):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],o=this.services&&this.services.languageUtils||new S1($1());return n.indexOf(o.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Yi(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:kl;const o=e.forkResourceStore;o&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new Yi(r);return(e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},o&&(i.store=new w1(this.store.data,r),i.services.resourceStore=i.store),i.translator=new xl(i.services,r),i.translator.on("*",function(a){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];i.emit(a,...c)}),i.init(r,n),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const E1=Yi.createInstance();E1.createInstance=Yi.createInstance;var ID=E1;const LD=ID,N1=["af","ar","bg","bn","bs","ca","cs","da","de","de-CH","el","en","eo","es","et","fa","fi","fr","gd","he","hi","hr","hu","id","is","it","ja","ko","kz","lt","mk","mn","ms","ne","nl","nn","no","pl","pt","pt-BR","ro","ru","si","sk","sl","sq","sr","sr-Cyrl","sv","th","tr","uk","ur","uz","vi","zh","zh-Hant","sw","ta"];function D1(t,e){return t.reduce((n,o)=>{let r;try{r=d1("/ghost/i18n/lib")(`../locales/${o}/${e}.json`)}catch{r=d1("/ghost/i18n/lib")(`../locales/en/${e}.json`)}return n[o]={[e]:{...r,...r.default&&typeof r.default=="object"?r.default:{}}},n},{})}yl.exports=(t="en",e="portal")=>{const n=LD.createInstance();let o={};e==="newsletter"&&(o={prefix:"{",suffix:"}"});let r=D1(N1,e);return n.init({lng:t,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:!1,ns:e,defaultNS:e,interpolation:o,resources:r}),n},yl.exports.SUPPORTED_LOCALES=N1,yl.exports.generateResources=D1;var zD=yl.exports,FD=zD;const HD=Ze(FD);function BD({siteUrl:t=window.location.origin,apiUrl:e,apiKey:n}){const o="members/api";function r({type:c,resource:u,params:m=""}){return c==="members"?`${t.replace(/\/$/,"")}/${o}/${u}/${m}`:""}function i({resource:c,params:u=""}){return e&&n?`${e.replace(/\/$/,"")}/${c}/?key=${n}&limit=all${u}`:""}function s({url:c,method:u="GET",headers:m={},credentials:d=void 0,body:p=void 0}){return fetch(c,{method:u,headers:m,credentials:d,body:p})}let a=null;const l={site:{settings(){const c=i({resource:"settings"});return s({url:c,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(u){if(u.ok)return u.json();throw new Error("Failed to fetch site data")})}},member:{identity(){const c=r({type:"members",resource:"session"});return s({url:c,credentials:"same-origin"}).then(function(u){return!u.ok||u.status===204?null:u.text()})},sessionData(){const c=r({type:"members",resource:"member"});return s({url:c,credentials:"same-origin"}).then(function(u){return!u.ok||u.status===204?null:u.json()})},update({name:c,expertise:u}){const m=r({type:"members",resource:"member"});return s({url:m,method:"PUT",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({name:c,expertise:u})}).then(function(p){return p.ok?p.json():null})}},comments:{async count({postId:c}){const u=c?`?ids=${c}`:"",m=r({type:"members",resource:"comments/counts",params:u}),p=await(await s({url:m,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"})).json();return c?p[c]:p},browse({page:c,postId:u,order:m}){let d=null;a&&!m&&(d=`created_at:<=${a}`);const p=new URLSearchParams;p.set("limit","20"),d&&p.set("filter",d),p.set("page",c.toString()),m&&p.set("order",m);const f=r({type:"members",resource:`comments/post/${u}`,params:`?${p.toString()}`}),y=s({url:f,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"}).then(function(h){if(h.ok)return h.json();throw new Error("Failed to fetch comments")});return a||y.then(h=>{const g=h.comments[0];g&&(a=g.created_at)}),y},async replies({commentId:c,afterReplyId:u,limit:m}){const d=encodeURIComponent(`id:>'${u}'`),p=r({type:"members",resource:`comments/${c}/replies`,params:`?limit=${m??5}&filter=${d}`}),f=await s({url:p,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"});if(f.ok)return f.json();throw new Error("Failed to fetch replies")},add({comment:c}){const u={comments:[c]},m=r({type:"members",resource:"comments"});return s({url:m,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)}).then(function(d){if(d.ok)return d.json();throw new Error("Failed to add comment")})},edit({comment:c}){const u={comments:[c]},m=r({type:"members",resource:`comments/${c.id}`});return s({url:m,method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)}).then(function(d){if(d.ok)return d.json();throw new Error("Failed to edit comment")})},read(c){const u=r({type:"members",resource:`comments/${c}`});return s({url:u,method:"GET",credentials:"same-origin"}).then(function(m){if(m.ok)return m.json();throw new Error("Failed to read comment")})},like({comment:c}){const u=r({type:"members",resource:`comments/${c.id}/like`});return s({url:u,method:"POST",headers:{"Content-Type":"application/json"}}).then(function(m){if(m.ok)return"Success";throw new Error("Failed to like comment")})},unlike({comment:c}){const u={comments:[c]},m=r({type:"members",resource:`comments/${c.id}/like`});return s({url:m,method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)}).then(function(d){if(d.ok)return"Success";throw new Error("Failed to unlike comment")})},report({comment:c}){const u=r({type:"members",resource:`comments/${c.id}/report`});return s({url:u,method:"POST",headers:{"Content-Type":"application/json"}}).then(function(m){if(m.ok)return"Success";throw new Error("Failed to report comment")})}},init:()=>{}};return l.init=async()=>{const[c]=await Promise.all([l.member.sessionData()]);let u={};try{const m=await l.site.settings();m.settings.labs&&Object.assign(u,m.settings.labs)}catch{u={}}return{member:c,labs:u}},l}async function VD({state:t,api:e,options:n,order:o}){let r=1;t.pagination&&t.pagination.page&&(r=t.pagination.page+1);let i;return t.admin&&t.adminApi&&t.labs.commentImprovements?i=await t.adminApi.browse({page:r,postId:n.postId,order:o||t.order}):i=await e.comments.browse({page:r,postId:n.postId,order:o||t.order}),{comments:[...t.comments,...i.comments],pagination:i.meta.pagination}}async function UD({state:t,data:{order:e},options:n,api:o}){let r;return t.admin&&t.adminApi&&t.labs.commentImprovements&&(r=await t.adminApi.browse({page:1,postId:n.postId,order:e})),r=await o.comments.browse({page:1,postId:n.postId,order:e}),{comments:[...r.comments],pagination:r.meta.pagination,order:e}}async function A1({state:t,api:e,data:{comment:n,limit:o},isReply:r}){var s,a;let i;return t.admin&&t.adminApi&&t.labs.commentImprovements&&!r?i=await t.adminApi.replies({commentId:n.id,afterReplyId:(s=n.replies[n.replies.length-1])==null?void 0:s.id,limit:o}):i=await e.comments.replies({commentId:n.id,afterReplyId:(a=n.replies[n.replies.length-1])==null?void 0:a.id,limit:o}),{comments:t.comments.map(l=>l.id===n.id?{...n,replies:[...n.replies,...i.comments]}:l)}}async function _D({state:t,api:e,data:n}){return n=(await e.comments.add({comment:n})).comments[0],{comments:[n,...t.comments],commentCount:t.commentCount+1}}async function JD({state:t,api:e,data:{reply:n,parent:o}}){let r=n;return r.parent_id=o.id,r=(await e.comments.add({comment:r})).comments[0],{comments:t.comments.map(s=>s.id===o.id?{...o,replies:[...o.replies,r],count:{...o.count,replies:o.count.replies+1}}:s),commentCount:t.commentCount+1}}async function YD({state:t,data:e}){return t.adminApi&&await t.adminApi.hideComment(e.id),{comments:t.comments.map(n=>{const o=n.replies.map(r=>r.id===e.id?{...r,status:"hidden"}:r);return n.id===e.id?{...n,status:"hidden",replies:o}:{...n,replies:o}}),commentCount:t.commentCount-1}}async function KD({state:t,api:e,data:n}){t.adminApi&&await t.adminApi.showComment(n.id);let o;t.admin&&t.adminApi&&t.labs.commentImprovements?o=await t.adminApi.read({commentId:n.id}):o=await e.comments.read(n.id);const r=o.comments[0];return{comments:t.comments.map(i=>{const s=i.replies.map(a=>a.id===n.id?r:a);return i.id===n.id?r:{...i,replies:s}}),commentCount:t.commentCount+1}}async function WD({state:t,api:e,data:n}){return await e.comments.like({comment:n}),{comments:t.comments.map(o=>{const r=o.replies.map(i=>i.id===n.id?{...i,liked:!0,count:{...i.count,likes:i.count.likes+1}}:i);return o.id===n.id?{...o,liked:!0,replies:r,count:{...o.count,likes:o.count.likes+1}}:{...o,replies:r}})}}async function qD({api:t,data:e}){return await t.comments.report({comment:e}),{}}async function GD({state:t,api:e,data:n}){return await e.comments.unlike({comment:n}),{comments:t.comments.map(o=>{const r=o.replies.map(i=>i.id===n.id?{...i,liked:!1,count:{...i.count,likes:i.count.likes-1}}:i);return o.id===n.id?{...o,liked:!1,replies:r,count:{...o.count,likes:o.count.likes-1}}:{...o,replies:r}})}}async function QD({state:t,api:e,data:n}){return await e.comments.edit({comment:{id:n.id,status:"deleted"}}),{comments:t.comments.map(o=>{const r=o.replies.map(i=>i.id===n.id?{...i,status:"deleted"}:i);return o.id===n.id?{...o,status:"deleted",replies:r}:{...o,replies:r}}),commentCount:t.commentCount-1}}async function ZD({state:t,api:e,data:{comment:n,parent:o}}){return n=(await e.comments.edit({comment:n})).comments[0],{comments:t.comments.map(i=>o&&o.id===i.id?{...i,replies:i.replies.map(s=>s.id===n.id?n:s)}:i.id===n.id?n:i)}}async function XD({data:t,state:e,api:n}){var l,c;const{name:o,expertise:r}=t,i={},s=(l=e==null?void 0:e.member)==null?void 0:l.name;o&&s!==o&&(i.name=o);const a=(c=e==null?void 0:e.member)==null?void 0:c.expertise;if(r!==void 0&&a!==r&&(i.expertise=r),Object.keys(i).length>0)try{const u=await n.member.update(i);if(!u)throw new Error("Failed to update member");return{member:u,success:!0}}catch(u){return{success:!1,error:u}}return null}function eA({data:t}){return{popup:t}}function tA(){return{popup:null}}async function nA({data:t,api:e,state:n}){let o={};const r=t.parent_id||t.id;if(t.type==="reply"&&!n.openCommentForms.some(a=>a.id===r||a.parent_id===r)){const a=n.comments.find(c=>c.id===r),l=await A1({state:n,api:e,data:{comment:a,limit:"all"},isReply:!0});o={...o,...l}}const i=n.openCommentForms.filter(a=>a.hasUnsavedChanges),s=i.findIndex(a=>a.id===t.id);return s>-1?(i[s]=t,{openCommentForms:i,...o}):{openCommentForms:[...i,t],...o}}function oA({data:{id:t,hasUnsavedChanges:e},state:n}){return{openCommentForms:n.openCommentForms.map(r=>r.id===t?{...r,hasUnsavedChanges:e}:{...r})}}function rA({data:t,state:e}){return{openCommentForms:e.openCommentForms.filter(n=>n.id!==t)}}const R1={openPopup:eA,closePopup:tA,closeCommentForm:rA,setCommentFormHasUnsavedChanges:oA},iA={addComment:_D,editComment:ZD,hideComment:YD,deleteComment:QD,showComment:KD,likeComment:WD,unlikeComment:GD,reportComment:qD,addReply:JD,loadMoreComments:VD,loadMoreReplies:A1,updateMember:XD,setOrder:UD,openCommentForm:nA};function sA(t){return!!R1[t]}async function aA({action:t,data:e,state:n,api:o,adminApi:r,options:i}){const s=iA[t];return s?await s({data:e,state:n,api:o,adminApi:r,options:i})||{}:{}}function lA({action:t,data:e,state:n,api:o,adminApi:r,options:i}){const s=R1[t];return s?s({data:e,state:n,api:o,adminApi:r,options:i})||{}:{}}function cA({adminUrl:t}){const e=document.querySelector('iframe[data-frame="admin-auth"]');let n=1;const o={},r=new URL(t).origin;let i=null;window.addEventListener("message",function(l){if(l.origin!==r)return;let c=null;try{c=JSON.parse(l.data)}catch{return}const u=o[c.uid];u&&(delete o[c.uid],u(c.error,c.result))});function s(l,c){return new Promise((u,m)=>{function d(p,f){return p?m(p):u(f)}n+=1,o[n]=d,e.contentWindow.postMessage(JSON.stringify({uid:n,action:l,...c}),r)})}return{async getUser(){const l=await s("getUser");return!l||!l.users?null:l.users[0]},async hideComment(l){return await s("hideComment",{id:l})},async showComment(l){return await s("showComment",{id:l})},async browse({page:l,postId:c,order:u}){let m=null;i&&!u&&(m=`created_at:<=${i}`);const d=new URLSearchParams;d.set("limit","20"),m&&d.set("filter",m),d.set("page",l.toString()),u&&d.set("order",u);const p=await s("browseComments",{postId:c,params:d.toString()});if(!i){const f=p.comments[0];f&&(i=f.created_at)}return p},async replies({commentId:l,afterReplyId:c,limit:u}){const m=`id:>'${c}'`,d=new URLSearchParams;return u&&d.set("limit",u.toString()),m&&d.set("filter",m),await s("getReplies",{commentId:l,params:d.toString()})},async read({commentId:l}){return await s("readComment",{commentId:l})}}}function uA(t){const e=_.useCallback(()=>{const i=t.dataset,s=i.ghostComments||window.location.origin,a=i.key,l=i.api,c=i.admin,u=i.postId||"",m=i.colorScheme,d=i.avatarSaturation?parseInt(i.avatarSaturation):void 0,p=i.accentColor??"#000000",f=i.commentsEnabled,y=i.title==="null"?null:i.title??"",h=i.count==="true",g=i.publication??"";return{locale:i.locale??"en",siteUrl:s,apiKey:a,apiUrl:l,postId:u,adminUrl:c,colorScheme:m,avatarSaturation:d,accentColor:p,commentsEnabled:f,title:y,showCount:h,publication:g}},[t]),n=k.useMemo(()=>e(),[]),[o,r]=_.useState(n);return _.useEffect(()=>{const i=new MutationObserver(s=>{s.some(a=>a.type==="attributes")&&r(e())});return i.observe(t,{attributes:!0}),()=>{i.disconnect()}},[t,e]),o}const dA=({scriptTag:t})=>{const e=uA(t),[n,o]=k.useState({initStatus:"running",member:null,admin:null,comments:[],pagination:null,commentCount:0,openCommentForms:[],popup:null,labs:{},order:"count__likes desc, created_at desc",adminApi:null}),r=_.createRef(),i=_.useMemo(()=>BD({siteUrl:e.siteUrl,apiUrl:e.apiUrl,apiKey:e.apiKey}),[e]),s=k.useCallback(f=>{o(y=>(typeof f=="function"&&(f=f(y)),{...y,...f}))},[o]),a=k.useCallback(async(f,y)=>{if(sA(f)){s(h=>lA({action:f,data:y,state:h,api:i,adminApi:h.adminApi,options:e}));return}return new Promise(h=>{s(g=>(aA({action:f,data:y,state:g,api:i,adminApi:g.adminApi,options:e}).then(b=>{const v={...b};h(v),s(v)}).catch(console.error),{}))})},[i,e]),l=k.useMemo(()=>HD(e.locale,"comments"),[e.locale]),c={...e,...n,t:l.t,dispatchAction:a,openFormCount:k.useMemo(()=>n.openCommentForms.length,[n.openCommentForms])},u=async()=>{if(!(n.adminApi||!e.adminUrl))try{const f=cA({adminUrl:e.adminUrl});let y=null;try{if(y=await f.getUser(),y&&n.labs.commentImprovements){const h=await f.browse({page:1,postId:e.postId,order:n.order});s({...n,adminApi:f,comments:h.comments,pagination:h.meta.pagination,commentCount:h.meta.pagination.total})}}catch(h){console.warn("[Comments] Failed to fetch current admin user:",h)}s({adminApi:f,admin:y})}catch(f){console.error("[Comments] Failed to initialize admin authentication:",f)}},m=async f=>{let y;f!=null&&f.commentImprovements?y=i.comments.browse({page:1,postId:e.postId,order:n.order}):y=i.comments.browse({page:1,postId:e.postId});const h=i.comments.count({postId:e.postId}),[g,b]=await Promise.all([y,h]);return{comments:g.comments,pagination:g.meta.pagination,count:b}},d=async()=>{try{const{member:f,labs:y}=await i.init(),{comments:h,pagination:g,count:b}=await m(y),v=y.commentImprovements?"count__likes desc, created_at desc":"created_at desc";s({member:f,initStatus:"success",comments:h,pagination:g,commentCount:b,order:v,labs:y})}catch(f){console.error("[Comments] Failed to initialize:",f),s({initStatus:"failed"})}};k.useEffect(()=>{const f=new IntersectionObserver(y=>{y.forEach(h=>{h.isIntersecting&&(d(),r.current&&f.unobserve(r.current))})},{root:null,rootMargin:"0px",threshold:.1});return r.current&&f.observe(r.current),()=>{r.current&&f.unobserve(r.current)}},[r.current]);const p=n.initStatus==="success";return w.jsxs(Rl.Provider,{value:c,children:[w.jsx(XE,{ref:r,children:w.jsx(WE,{done:p})}),n.comments.length>0?w.jsx(J1,{adminUrl:e.adminUrl,onLoad:u}):null,w.jsx(sN,{})]})};function mA(){let t=document.currentScript;if(!t)throw new Error("[Comments-UI] Cannot find current script tag");return t}function fA(t){if(t.previousElementSibling&&t.previousElementSibling.id===pl)return t.previousElementSibling;if(!t.parentElement)throw new Error("[Comments-UI] Script tag does not have a parent element");const e=document.createElement("div");return e.id=pl,t.parentElement.insertBefore(e,t),e}function pA(){const t=new URL(window.location.href);t.searchParams.get("token")&&(t.searchParams.delete("token"),window.history.replaceState({},document.title,t.href))}function hA(){const t=mA(),e=fA(t);try{pA(),g0.render(w.jsx(_.StrictMode,{children:w.jsx(dA,{scriptTag:t})}),e)}catch(n){console.error(n)}}hA()});
|
|
157
157
|
//# sourceMappingURL=comments-ui.min.js.map
|