@tryghost/comments-ui 0.21.6 → 0.21.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,34 +1,34 @@
1
- (function(wt){typeof define=="function"&&define.amd?define(wt):wt()})(function(){"use strict";var mA=Object.defineProperty;var fA=(wt,Ze,Yt)=>Ze in wt?mA(wt,Ze,{enumerable:!0,configurable:!0,writable:!0,value:Yt}):wt[Ze]=Yt;var yr=(wt,Ze,Yt)=>(fA(wt,typeof Ze!="symbol"?Ze+"":Ze,Yt),Yt);function wt(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 Yt={exports:{}},wr={};/*
1
+ (function(wt){typeof define=="function"&&define.amd?define(wt):wt()})(function(){"use strict";var fA=Object.defineProperty;var pA=(wt,Ze,Yt)=>Ze in wt?fA(wt,Ze,{enumerable:!0,configurable:!0,writable:!0,value:Yt}):wt[Ze]=Yt;var yr=(wt,Ze,Yt)=>(pA(wt,typeof Ze!="symbol"?Ze+"":Ze,Yt),Yt);function wt(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 Yt={exports:{}},wr={};/*
2
2
  object-assign
3
3
  (c) Sindre Sorhus
4
4
  @license MIT
5
- */var dm=Object.getOwnPropertySymbols,$1=Object.prototype.hasOwnProperty,C1=Object.prototype.propertyIsEnumerable;function E1(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function N1(){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 mm=N1()?Object.assign:function(t,e){for(var n,o=E1(t),r,i=1;i<arguments.length;i++){n=Object(arguments[i]);for(var s in n)$1.call(n,s)&&(o[s]=n[s]);if(dm){r=dm(n);for(var a=0;a<r.length;a++)C1.call(n,r[a])&&(o[r[a]]=n[r[a]])}}return o},fm={exports:{}},K={};/** @license React v17.0.2
5
+ */var mm=Object.getOwnPropertySymbols,C1=Object.prototype.hasOwnProperty,E1=Object.prototype.propertyIsEnumerable;function N1(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function O1(){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 fm=O1()?Object.assign:function(t,e){for(var n,o=N1(t),r,i=1;i<arguments.length;i++){n=Object(arguments[i]);for(var s in n)C1.call(n,s)&&(o[s]=n[s]);if(mm){r=mm(n);for(var a=0;a<r.length;a++)E1.call(n,r[a])&&(o[r[a]]=n[r[a]])}}return o},pm={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 kl=mm,go=60103,pm=60106;K.Fragment=60107,K.StrictMode=60108,K.Profiler=60114;var hm=60109,gm=60110,ym=60112;K.Suspense=60113;var wm=60115,Sm=60116;if(typeof Symbol=="function"&&Symbol.for){var dt=Symbol.for;go=dt("react.element"),pm=dt("react.portal"),K.Fragment=dt("react.fragment"),K.StrictMode=dt("react.strict_mode"),K.Profiler=dt("react.profiler"),hm=dt("react.provider"),gm=dt("react.context"),ym=dt("react.forward_ref"),K.Suspense=dt("react.suspense"),wm=dt("react.memo"),Sm=dt("react.lazy")}var km=typeof Symbol=="function"&&Symbol.iterator;function O1(t){return t===null||typeof t!="object"?null:(t=km&&t[km]||t["@@iterator"],typeof t=="function"?t:null)}function Sr(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 vm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bm={};function yo(t,e,n){this.props=t,this.context=e,this.refs=bm,this.updater=n||vm}yo.prototype.isReactComponent={},yo.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error(Sr(85));this.updater.enqueueSetState(this,t,e,"setState")},yo.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function xm(){}xm.prototype=yo.prototype;function vl(t,e,n){this.props=t,this.context=e,this.refs=bm,this.updater=n||vm}var bl=vl.prototype=new xm;bl.constructor=vl,kl(bl,yo.prototype),bl.isPureReactComponent=!0;var xl={current:null},$m=Object.prototype.hasOwnProperty,Cm={key:!0,ref:!0,__self:!0,__source:!0};function Em(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)$m.call(e,o)&&!Cm.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),u=0;u<a;u++)l[u]=arguments[u+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:go,type:t,key:i,ref:s,props:r,_owner:xl.current}}function A1(t,e){return{$$typeof:go,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function $l(t){return typeof t=="object"&&t!==null&&t.$$typeof===go}function R1(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var Nm=/\/+/g;function Cl(t,e){return typeof t=="object"&&t!==null&&t.key!=null?R1(""+t.key):e.toString(36)}function Ki(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 go:case pm:s=!0}}if(s)return s=t,r=r(s),t=o===""?"."+Cl(s,0):o,Array.isArray(r)?(n="",t!=null&&(n=t.replace(Nm,"$&/")+"/"),Ki(r,e,n,"",function(u){return u})):r!=null&&($l(r)&&(r=A1(r,n+(!r.key||s&&s.key===r.key?"":(""+r.key).replace(Nm,"$&/")+"/")+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+Cl(i,a);s+=Ki(i,e,n,l,r)}else if(l=O1(t),typeof l=="function")for(t=l.call(t),a=0;!(i=t.next()).done;)i=i.value,l=o+Cl(i,a++),s+=Ki(i,e,n,l,r);else if(i==="object")throw e=""+t,Error(Sr(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e));return s}function Wi(t,e,n){if(t==null)return t;var o=[],r=0;return Ki(t,o,"","",function(i){return e.call(n,i,r++)}),o}function M1(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 Om={current:null};function Tt(){var t=Om.current;if(t===null)throw Error(Sr(321));return t}var D1={ReactCurrentDispatcher:Om,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:xl,IsSomeRendererActing:{current:!1},assign:kl};K.Children={map:Wi,forEach:function(t,e,n){Wi(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return Wi(t,function(){e++}),e},toArray:function(t){return Wi(t,function(e){return e})||[]},only:function(t){if(!$l(t))throw Error(Sr(143));return t}},K.Component=yo,K.PureComponent=vl,K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D1,K.cloneElement=function(t,e,n){if(t==null)throw Error(Sr(267,t));var o=kl({},t.props),r=t.key,i=t.ref,s=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,s=xl.current),e.key!==void 0&&(r=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)$m.call(e,l)&&!Cm.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 u=0;u<l;u++)a[u]=arguments[u+2];o.children=a}return{$$typeof:go,type:t.type,key:r,ref:i,props:o,_owner:s}},K.createContext=function(t,e){return e===void 0&&(e=null),t={$$typeof:gm,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider={$$typeof:hm,_context:t},t.Consumer=t},K.createElement=Em,K.createFactory=function(t){var e=Em.bind(null,t);return e.type=t,e},K.createRef=function(){return{current:null}},K.forwardRef=function(t){return{$$typeof:ym,render:t}},K.isValidElement=$l,K.lazy=function(t){return{$$typeof:Sm,_payload:{_status:-1,_result:t},_init:M1}},K.memo=function(t,e){return{$$typeof:wm,type:t,compare:e===void 0?null:e}},K.useCallback=function(t,e){return Tt().useCallback(t,e)},K.useContext=function(t,e){return Tt().useContext(t,e)},K.useDebugValue=function(){},K.useEffect=function(t,e){return Tt().useEffect(t,e)},K.useImperativeHandle=function(t,e,n){return Tt().useImperativeHandle(t,e,n)},K.useLayoutEffect=function(t,e){return Tt().useLayoutEffect(t,e)},K.useMemo=function(t,e){return Tt().useMemo(t,e)},K.useReducer=function(t,e,n){return Tt().useReducer(t,e,n)},K.useRef=function(t){return Tt().useRef(t)},K.useState=function(t){return Tt().useState(t)},K.version="17.0.2",fm.exports=K;var x=fm.exports;const U=Ze(x),Am=wt({__proto__:null,default:U},[x]);/** @license React v17.0.2
12
+ */var kl=fm,go=60103,hm=60106;K.Fragment=60107,K.StrictMode=60108,K.Profiler=60114;var gm=60109,ym=60110,wm=60112;K.Suspense=60113;var Sm=60115,km=60116;if(typeof Symbol=="function"&&Symbol.for){var dt=Symbol.for;go=dt("react.element"),hm=dt("react.portal"),K.Fragment=dt("react.fragment"),K.StrictMode=dt("react.strict_mode"),K.Profiler=dt("react.profiler"),gm=dt("react.provider"),ym=dt("react.context"),wm=dt("react.forward_ref"),K.Suspense=dt("react.suspense"),Sm=dt("react.memo"),km=dt("react.lazy")}var vm=typeof Symbol=="function"&&Symbol.iterator;function A1(t){return t===null||typeof t!="object"?null:(t=vm&&t[vm]||t["@@iterator"],typeof t=="function"?t:null)}function Sr(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 bm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xm={};function yo(t,e,n){this.props=t,this.context=e,this.refs=xm,this.updater=n||bm}yo.prototype.isReactComponent={},yo.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error(Sr(85));this.updater.enqueueSetState(this,t,e,"setState")},yo.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function $m(){}$m.prototype=yo.prototype;function vl(t,e,n){this.props=t,this.context=e,this.refs=xm,this.updater=n||bm}var bl=vl.prototype=new $m;bl.constructor=vl,kl(bl,yo.prototype),bl.isPureReactComponent=!0;var xl={current:null},Cm=Object.prototype.hasOwnProperty,Em={key:!0,ref:!0,__self:!0,__source:!0};function Nm(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)Cm.call(e,o)&&!Em.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),u=0;u<a;u++)l[u]=arguments[u+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:go,type:t,key:i,ref:s,props:r,_owner:xl.current}}function R1(t,e){return{$$typeof:go,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function $l(t){return typeof t=="object"&&t!==null&&t.$$typeof===go}function M1(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var Om=/\/+/g;function Cl(t,e){return typeof t=="object"&&t!==null&&t.key!=null?M1(""+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 go:case hm:s=!0}}if(s)return s=t,r=r(s),t=o===""?"."+Cl(s,0):o,Array.isArray(r)?(n="",t!=null&&(n=t.replace(Om,"$&/")+"/"),Wi(r,e,n,"",function(u){return u})):r!=null&&($l(r)&&(r=R1(r,n+(!r.key||s&&s.key===r.key?"":(""+r.key).replace(Om,"$&/")+"/")+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+Cl(i,a);s+=Wi(i,e,n,l,r)}else if(l=A1(t),typeof l=="function")for(t=l.call(t),a=0;!(i=t.next()).done;)i=i.value,l=o+Cl(i,a++),s+=Wi(i,e,n,l,r);else if(i==="object")throw e=""+t,Error(Sr(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 D1(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 Am={current:null};function Tt(){var t=Am.current;if(t===null)throw Error(Sr(321));return t}var T1={ReactCurrentDispatcher:Am,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:xl,IsSomeRendererActing:{current:!1},assign:kl};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(!$l(t))throw Error(Sr(143));return t}},K.Component=yo,K.PureComponent=vl,K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T1,K.cloneElement=function(t,e,n){if(t==null)throw Error(Sr(267,t));var o=kl({},t.props),r=t.key,i=t.ref,s=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,s=xl.current),e.key!==void 0&&(r=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)Cm.call(e,l)&&!Em.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 u=0;u<l;u++)a[u]=arguments[u+2];o.children=a}return{$$typeof:go,type:t.type,key:r,ref:i,props:o,_owner:s}},K.createContext=function(t,e){return e===void 0&&(e=null),t={$$typeof:ym,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider={$$typeof:gm,_context:t},t.Consumer=t},K.createElement=Nm,K.createFactory=function(t){var e=Nm.bind(null,t);return e.type=t,e},K.createRef=function(){return{current:null}},K.forwardRef=function(t){return{$$typeof:wm,render:t}},K.isValidElement=$l,K.lazy=function(t){return{$$typeof:km,_payload:{_status:-1,_result:t},_init:D1}},K.memo=function(t,e){return{$$typeof:Sm,type:t,compare:e===void 0?null:e}},K.useCallback=function(t,e){return Tt().useCallback(t,e)},K.useContext=function(t,e){return Tt().useContext(t,e)},K.useDebugValue=function(){},K.useEffect=function(t,e){return Tt().useEffect(t,e)},K.useImperativeHandle=function(t,e,n){return Tt().useImperativeHandle(t,e,n)},K.useLayoutEffect=function(t,e){return Tt().useLayoutEffect(t,e)},K.useMemo=function(t,e){return Tt().useMemo(t,e)},K.useReducer=function(t,e,n){return Tt().useReducer(t,e,n)},K.useRef=function(t){return Tt().useRef(t)},K.useState=function(t){return Tt().useState(t)},K.version="17.0.2",pm.exports=K;var x=pm.exports;const U=Ze(x),Rm=wt({__proto__:null,default:U},[x]);/** @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 T1=x,Rm=60103;if(wr.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Mm=Symbol.for;Rm=Mm("react.element"),wr.Fragment=Mm("react.fragment")}var j1=T1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,P1=Object.prototype.hasOwnProperty,I1={key:!0,ref:!0,__self:!0,__source:!0};function Dm(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)P1.call(e,o)&&!I1.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:Rm,type:t,key:i,ref:s,props:r,_owner:j1.current}}wr.jsx=Dm,wr.jsxs=Dm,Yt.exports=wr;var S=Yt.exports;const L1=({adminUrl:t,onLoad:e})=>{const n={display:"none"};return S.jsx("iframe",{"data-frame":"admin-auth",src:t+"auth-frame/",style:n,title:"auth-frame",onLoad:e})};var z1=function(t){return t instanceof RegExp},F1=function(e){var n=/[\\^$.*+?()[\]{}|]/g,o=RegExp(n.source);return e&&o.test(e)?e.replace(n,"\\$&"):e},Tm=function(t){return typeof t=="string"},B1=function(t){var e=[];return t.forEach(function(n){Array.isArray(n)?e=e.concat(n):e.push(n)}),e};function H1(t,e,n){var o=0,r=0;if(t==="")return t;if(!t||!Tm(t))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var i=e;z1(i)||(i=new RegExp("("+F1(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 V1=function(e,n,o){return Array.isArray(e)||(e=[e]),B1(e.map(function(r){return Tm(r)?H1(r,n,o):r}))};const jm=Ze(V1),El=U.createContext({});El.Provider;const H=()=>x.useContext(El),U1=()=>{const e=H().dispatchAction;return n=>{e("setOrder",{order:n})}},qi=()=>{try{return H().labs||{}}catch{return{}}},Gi=({isFirst:t,isPaid:e})=>{const{accentColor:n,commentCount:o,publication:r,member:i,t:s}=H(),a={backgroundColor:n},l={color:n},u=s(t?"Start the conversation":"Join the discussion"),c=()=>{window.location.href=e&&i?"#/portal/account/plans":"#/portal/signup"},d=()=>{window.location.href="#/portal/signin"},m=jm(s(e?"Become a paid member of {{publication}} to start commenting.":"Become a member of {{publication}} to start commenting."),"{{publication}}",()=>S.jsx("span",{className:"font-semibold",children:r}));return S.jsxs("section",{className:`flex flex-col items-center pt-[40px] ${i?"pb-[32px]":"pb-[48px]"} ${!t&&"mt-4"} ${!i&&o?"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:[S.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:u}),S.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:m}),S.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:c,children:s(e&&i?"Upgrade now":"Sign up now")}),!i&&S.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:[S.jsx("span",{className:"mr-1 inline-block text-[15px]",children:s("Already a member?")}),S.jsx("button",{className:"rounded-md text-sm font-semibold transition-all hover:opacity-90","data-testid":"signin-button",style:l,type:"button",onClick:d,children:s("Sign in")})]})]})},Pm=t=>x.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.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"}),x.createElement("circle",{cx:12,cy:12,r:11.375,stroke:"white",strokeWidth:1.25}),x.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 kr(t){return t!==0&&!t?"":t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function J1(t,e){const n=new Date(t),o=new Date;let r=Math.round((o.getTime()-n.getTime())/1e3);if(r<5)return e("Just now");if(r<60)return e("{{amount}} seconds ago",{amount:r});if(r=r/60,r<60)return Math.floor(r)===1?e("One min ago"):e("{{amount}} mins ago",{amount:Math.floor(r)});const i=new Date(o.getFullYear(),o.getMonth(),o.getDate()-1);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()&&n.getDate()===i.getDate()?e("Yesterday"):(r=r/60,r<24?Math.floor(r)===1?e("One hour ago"):e("{{amount}} hrs ago",{amount:Math.floor(r)}):(r=r/24,r<7?Math.floor(r)===1?e("One day ago"):e("{{amount}} days ago",{amount:Math.floor(r)}):(r=r/7,r<4?Math.floor(r)===1?e("One week ago"):e("{{amount}} weeks ago",{amount:Math.floor(r)}):(r=r*7/30,r<12?Math.floor(r)===1?e("One month ago"):e("{{amount}} months ago",{amount:Math.floor(r)}):(r=r*30/365,Math.floor(r)===1?e("One year ago"):e("{{amount}} years ago",{amount:Math.floor(r)}))))))}function _1(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 Im(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 Lm(t,e){return t?t.name?t.name:e("Anonymous"):e("Deleted member")}function Y1(t,e){return Lm(t.member,e)}function K1(t,e){return Im(Lm(t.member,e))}function zm(){return Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<480}function W1(t){return t.status==="published"}const q1=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},Fm=t=>{const e=t.offsetHeight,n=q1(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 Bm(){return"w-8 h-8"}const G1=()=>{const t=Bm();return S.jsx("figure",{className:`relative ${t}`,children:S.jsx("div",{className:`flex items-center justify-center rounded-full bg-black/10 dark:bg-white/15 ${t}`,children:S.jsx(Pm,{className:"stroke-white opacity-80"})})})},Hm=({comment:t})=>{var y;const{member:e,avatarSaturation:n,t:o}=H(),r=Bm(),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 w=0;w<h.length;w++)g=h.charCodeAt(w)+((g<<5)-g);return g=Math.abs(g),g},a=(h,g,w)=>Math.floor(h%(w-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,w=[0,360],k=Math.round(g/(100/30))+30,E=[k-20,k],v=s(h.name),$=a(v,w[0],w[1]),R=a(v,E[0],E[1]);return[$,g,R]},u=h=>`hsl(${h[0]}, ${h[1]}%, ${h[2]}%)`,c=t&&K1(t,o)||e&&Im(e.name||"")||"",d=t?t.member:e,f={background:u(l())},p=S.jsxs(S.Fragment,{children:[i?S.jsx("div",{className:`flex items-center justify-center rounded-full ${r}`,"data-testid":"avatar-background",style:f,children:S.jsx("p",{className:"font-sans text-base font-semibold text-white",children:c})}):S.jsx("div",{className:`flex items-center justify-center rounded-full bg-neutral-900 dark:bg-white/70 ${r}`,"data-testid":"avatar-background",children:S.jsx(Pm,{className:"stroke-white dark:stroke-black/60"})}),d&&S.jsx("img",{alt:"Avatar",className:`absolute left-0 top-0 rounded-full ${r}`,src:d.avatar_image})]});return S.jsx("figure",{className:`relative ${r}`,children:p})},Q1=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 24 24",...t},x.createElement("g",{strokeLinecap:"round",strokeWidth:2,fill:"none",strokeLinejoin:"round",className:"nc-icon-wrapper"},x.createElement("polygon",{points:"7 21 2 22 3 17 18 2 22 6 7 21"})));function be(t){this.content=t}be.prototype={constructor:be,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 be(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 be(n)},addToStart:function(t,e){return new be([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new be(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 be(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=be.from(t),t.size?new be(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=be.from(t),t.size?new be(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=be.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}},be.from=function(t){if(t instanceof be)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new be(e)};function Vm(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=Vm(r.content,i.content,n+1);if(s!=null)return s}n+=r.nodeSize}}function Um(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 u=0,c=Math.min(s.text.length,a.text.length);for(;u<c&&s.text[s.text.length-u-1]==a.text[a.text.length-u-1];)u++,n--,o--;return{a:n,b:o}}if(s.content.size||a.content.size){let u=Um(s.content,a.content,n-1,o-1);if(u)return u}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],u=a+l.nodeSize;if(u>e&&o(l,r+a,i||null,s)!==!1&&l.content.size){let c=a+1;l.nodesBetween(Math.max(0,e-c),Math.min(l.content.size,n-c),o,r+c)}a=u}}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 u=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&&u||a.isTextblock)&&o&&(s?s=!1:i+=o),i+=u},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 Vm(this,e,n)}findDiffEnd(e,n=this.size,o=e.size){return Um(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 Nl={index:0,offset:0};function Qi(t,e){return Nl.index=t,Nl.offset=e,Nl}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 um{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 um.none;if(e instanceof um)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 D{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=_m(this.content,e+this.openStart,n);return o&&new D(o,this.openStart,this.openEnd)}removeBetween(e,n){return new D(Jm(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 D.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 D(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 D(e,o,r)}}D.empty=new D(N.empty,0,0);function Jm(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(Jm(i.content,e-r-1,n-r-1)))}function _m(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=_m(s.content,e-i-1,n);return a&&t.replaceChild(r,s.copy(a))}function Z1(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 Ym(t,e,n,0)}function Ym(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=Ym(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 Pn(s,a.cut(0,t.parentOffset).append(n.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=X1(n,t);return Pn(i,Wm(t,s,a,e,o))}else return Pn(i,es(t,e,o))}function Km(t,e){if(!e.type.compatibleContent(t.type))throw new Xi("Cannot join "+e.type.name+" onto "+t.type.name)}function Ol(t,e,n){let o=t.node(n);return Km(o,e.node(n)),o}function jn(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 vr(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&&(jn(t.nodeAfter,o),i++));for(let a=i;a<s;a++)jn(r.child(a),o);e&&e.depth==n&&e.textOffset&&jn(e.nodeBefore,o)}function Pn(t,e){return t.type.checkContent(e),t.copy(e)}function Wm(t,e,n,o,r){let i=t.depth>r&&Ol(t,e,r+1),s=o.depth>r&&Ol(n,o,r+1),a=[];return vr(null,t,r,a),i&&s&&e.index(r)==n.index(r)?(Km(i,s),jn(Pn(i,Wm(t,e,n,o,r+1)),a)):(i&&jn(Pn(i,es(t,e,r+1)),a),vr(e,n,r,a),s&&jn(Pn(s,es(n,o,r+1)),a)),vr(o,null,r,a),new N(a)}function es(t,e,n){let o=[];if(vr(null,t,n,o),t.depth>n){let r=Ol(t,e,n+1);jn(Pn(r,es(t,e,n+1)),o)}return vr(e,null,n,o),new N(o)}function X1(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 br{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),u=i-l;if(o.push(s,a,r+l),!u||(s=s.child(a),s.isText))break;i=u-1,r+=l+1}return new br(n,o,i)}static resolveCached(e,n){let o=qm.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 qm.set(e,o=new ew);let r=o.elts[o.i]=br.resolve(e,n);return o.i=(o.i+1)%tw,r}}class ew{constructor(){this.elts=[],this.i=0}}const tw=12,qm=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 nw=Object.create(null);let In=class cm{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||nw)&&q.sameSet(this.marks,o||q.none)}copy(e=null){return e==this.content?this:new cm(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new cm(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 D.empty;let r=this.resolve(e),i=this.resolve(n),s=o?0:r.sharedDepth(n),a=r.start(s),u=r.node(s).content.cut(r.pos-a,i.pos-a);return new D(u,r.depth-s,i.depth-s)}replace(e,n,o){return Z1(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 br.resolveCached(this,e)}resolveNoCache(e){return br.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()+")"),Gm(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}};In.prototype.text=void 0;class ns extends In{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):Gm(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 Gm(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Ln{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let o=new ow(e,n);if(o.next==null)return Ln.empty;let r=Qm(o);o.next&&o.err("Unexpected trailing text");let i=cw(uw(r));return dw(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(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:c,next:d}=s.next[u];if(!(c.isText||c.hasRequiredAttrs())&&r.indexOf(d)==-1){r.push(d);let m=i(d,a.concat(c));if(m)return m}}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(`
20
- `)}}Ln.empty=new Ln(!0);class ow{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 Qm(t){let e=[];do e.push(rw(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function rw(t){let e=[];do e.push(iw(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function iw(t){let e=lw(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=sw(t,e);else break;return e}function Zm(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function sw(t,e){let n=Zm(t),o=n;return t.eat(",")&&(t.next!="}"?o=Zm(t):o=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:o,expr:e}}function aw(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 lw(t){if(t.eat("(")){let e=Qm(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=aw(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 uw(t){let e=[[]];return r(i(t,0),n()),e;function n(){return e.push([])-1}function o(s,a,l){let u={term:l,to:a};return e[s].push(u),u}function r(s,a){s.forEach(l=>l.to=a)}function i(s,a){if(s.type=="choice")return s.exprs.reduce((l,u)=>l.concat(i(u,a)),[]);if(s.type=="seq")for(let l=0;;l++){let u=i(s.exprs[l],a);if(l==s.exprs.length-1)return u;r(u,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 u=0;u<s.min;u++){let c=n();r(i(s.expr,l),c),l=c}if(s.max==-1)r(i(s.expr,l),l);else for(let u=s.min;u<s.max;u++){let c=n();o(l,c),r(i(s.expr,l),c),l=c}return[o(l)]}else{if(s.type=="name")return[o(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function Xm(t,e){return e-t}function ef(t,e){let n=[];return o(e),n.sort(Xm);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 cw(t){let e=Object.create(null);return n(ef(t,0));function n(o){let r=[];o.forEach(s=>{t[s].forEach(({term:a,to:l})=>{if(!a)return;let u;for(let c=0;c<r.length;c++)r[c][0]==a&&(u=r[c][1]);ef(t,l).forEach(c=>{u||r.push([a,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let i=e[o.join(",")]=new Ln(o.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(Xm);i.next.push({type:r[s][0],next:e[a.join(",")]||n(a)})}return i}}function dw(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:u}=r.next[a];s.push(l.name),i&&!(l.isText||l.hasRequiredAttrs())&&(i=!1),o.indexOf(u)==-1&&o.push(u)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function tf(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 nf(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 of(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 rf(t,e){let n=Object.create(null);if(e)for(let o in e)n[o]=new fw(t,o,e[o]);return n}let sf=class x1{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=rf(e,o.attrs),this.defaultAttrs=tf(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==Ln.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:nf(this.attrs,e)}create(e=null,n,o){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new In(this,this.computeAttrs(e),N.from(n),q.setFrom(o))}createChecked(e=null,n,o){return n=N.from(n),this.checkContent(n),new In(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 In(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){of(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 x1(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 mw(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 fw{constructor(e,n,o){this.hasDefault=Object.prototype.hasOwnProperty.call(o,"default"),this.default=o.default,this.validate=typeof o.validate=="string"?mw(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=rf(e,r.attrs),this.excluded=null;let i=tf(this.attrs);this.instance=i?new q(this,i):null}create(e=null){return!e&&this.instance?this.instance:new q(this,nf(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){of(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class af{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=be.from(e.nodes),n.marks=be.from(e.marks||{}),this.nodes=sf.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]=Ln.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?lf(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==""?[]:lf(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 sf){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 In.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 lf(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 pw(t){return t.tag!=null}function hw(t){return t.style!=null}class Kt{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let o=this.matchedStyles=[];n.forEach(r=>{if(pw(r))this.tags.push(r);else if(hw(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 mf(this,n,!1);return o.addAll(e,q.none,n.from,n.to),o.finish()}parseSlice(e,n={}){let o=new mf(this,n,!0);return o.addAll(e,q.none,n.from,n.to),D.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(ww(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=ff(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=ff(s)),s.node||s.ignore||s.mark||(s.node=r)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Kt(e,Kt.schemaRules(e)))}}const uf={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},gw={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},cf={ol:!0,ul:!0},is=1,ss=2,xr=4;function df(t,e,n){return e!=null?(e?is:0)|(e==="full"?ss:0):t&&t.whitespace=="pre"?is|ss:n&~xr}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&xr?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&&!uf.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class mf{constructor(e,n,o){this.parser=e,this.options=n,this.isOpen=o,this.open=0;let r=n.topNode,i,s=df(null,n.preserveWhitespace,0)|(o?xr: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,`
21
- `):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;cf.hasOwnProperty(r)&&this.parser.normalizeLists&&yw(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(i=this.parser.matchTag(e,this,o));if(s?s.ignore:gw.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,u=this.needsBlock;if(uf.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 c=s&&s.skip?n:this.readStyles(e,n);c&&this.addAll(e,c),a&&this.sync(l),this.needsBlock=u}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(`
22
- `),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(u=>!l.clearMark(u)):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):pf(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=df(e,i,s.options);s.options&xr&&s.content.length==0&&(a|=xr);let l=q.none;return o=o.filter(u=>(s.type?s.type.allowsMarkType(u.type):pf(u.type,e))?(l=u.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 u=n[a];if(u==""){if(a==n.length-1||a==0)continue;for(;l>=i;l--)if(s(a-1,l))return!0;return!1}else{let c=l>0||l==0&&r?this.nodes[l].type:o&&l>=i?o.node(l-i).type:null;if(!c||c.name!=u&&c.groups.indexOf(u)==-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 yw(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let o=e.nodeType==1?e.nodeName.toLowerCase():null;o&&cf.hasOwnProperty(o)&&n?(n.appendChild(e),e=n):o=="li"?n=e:o&&(n=null)}}function ww(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function ff(t){let e={};for(let n in t)e[n]=t[n];return e}function pf(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:u,next:c}=a.edge(l);if(u==e||i.indexOf(c)<0&&s(c))return!0}};if(s(r.contentMatch))return!0}}class zn{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},o){o||(o=Al(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 u=s.marks[l];if(!this.marks[u.type.name]){l++;continue}if(!u.eq(i[a][0])||u.type.spec.spanning===!1)break;a++,l++}for(;a<i.length;)r=i.pop()[1];for(;l<s.marks.length;){let u=s.marks[l++],c=this.serializeMark(u,s.isInline,n);c&&(i.push([u,r]),r.appendChild(c.dom),r=c.contentDOM||c.dom)}}r.appendChild(this.serializeNodeInner(s,n))}),o}serializeNodeInner(e,n){let{dom:o,contentDOM:r}=ls(Al(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(Al(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 zn(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=hf(e.nodes);return n.text||(n.text=o=>o.text),n}static marksFromSchema(e){return hf(e.marks)}}function hf(t){let e={};for(let n in t){let o=t[n].spec.toDOM;o&&(e[n]=o)}return e}function Al(t){return t.document||window.document}const gf=new WeakMap;function Sw(t){let e=gf.get(t);return e===void 0&&gf.set(t,e=kw(t)),e}function kw(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=Sw(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),u=e[1],c=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){c=2;for(let d in u)if(u[d]!=null){let m=d.indexOf(" ");m>0?l.setAttributeNS(d.slice(0,m),d.slice(m+1),u[d]):l.setAttribute(d,u[d])}}for(let d=c;d<e.length;d++){let m=e[d];if(m===0){if(d<e.length-1||d>c)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:f,contentDOM:p}=ls(t,m,n,o);if(l.appendChild(f),p){if(a)throw new RangeError("Multiple content holes");a=p}}}return{dom:l,contentDOM:a}}const yf=65535,wf=Math.pow(2,16);function vw(t,e){return t+e*wf}function Sf(t){return t&yf}function bw(t){return(t-(t&yf))/wf}const kf=1,vf=2,us=4,bf=8;class Rl{constructor(e,n,o){this.pos=e,this.delInfo=n,this.recover=o}get deleted(){return(this.delInfo&bf)>0}get deletedBefore(){return(this.delInfo&(kf|us))>0}get deletedAfter(){return(this.delInfo&(vf|us))>0}get deletedAcross(){return(this.delInfo&us)>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=Sf(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+bw(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 u=this.ranges[a+i],c=this.ranges[a+s],d=l+u;if(e<=d){let m=u?e==l?-1:e==d?1:n:n,f=l+r+(m<0?0:c);if(o)return f;let p=e==(n<0?l:d)?null:vw(a/3,e-l),y=e==l?vf:e==d?kf:us;return(n<0?e!=l:e!=d)&&(y|=bf),new Rl(f,y,p)}r+=c-u}return o?e+r:new Rl(e+r,0,null)}touches(e,n){let o=0,r=Sf(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 u=this.ranges[a+i],c=l+u;if(e<=c&&a==r*3)return!0;o+=this.ranges[a+s]-u}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),u=this.ranges[r+n],c=this.ranges[r+o];e(a,a+u,l,l+c),i+=c-u}}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 $r{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 $r(this.maps,this.mirror,e,n)}copy(){return new $r(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 $r;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 Rl(e,r,null)}}const Ml=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=Ml[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 Ml)throw new RangeError("Duplicate use of step JSON ID "+e);return Ml[e]=n,n.prototype.jsonID=e,n}}class ce{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new ce(e,null)}static fail(e){return new ce(null,e)}static fromReplace(e,n,o,r){try{return ce.ok(e.replace(n,o,r))}catch(i){if(i instanceof Xi)return ce.fail(i.message);throw i}}}function Dl(t,e,n){let o=[];for(let r=0;r<t.childCount;r++){let i=t.child(r);i.content.size&&(i=i.copy(Dl(i.content,e,i))),i.isInline&&(i=e(i,n,r)),o.push(i)}return N.fromArray(o)}class Wt 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 D(Dl(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 ce.fromReplace(e,this.from,this.to,i)}invert(){return new St(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 Wt(n.pos,o.pos,this.mark)}merge(e){return e instanceof Wt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Wt(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 Wt(n.from,n.to,e.markFromJSON(n.mark))}}Re.jsonID("addMark",Wt);class St 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 D(Dl(n.content,r=>r.mark(this.mark.removeFromSet(r.marks)),e),n.openStart,n.openEnd);return ce.fromReplace(e,this.from,this.to,o)}invert(){return new Wt(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 St(n.pos,o.pos,this.mark)}merge(e){return e instanceof St&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new St(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 St(n.from,n.to,e.markFromJSON(n.mark))}}Re.jsonID("removeMark",St);class qt extends Re{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ce.fail("No node at mark step's position");let o=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return ce.fromReplace(e,this.pos,this.pos+1,new D(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 qt(this.pos,n.marks[r]);return new qt(this.pos,this.mark)}}return new wo(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new qt(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 qt(n.pos,e.markFromJSON(n.mark))}}Re.jsonID("addNodeMark",qt);class wo extends Re{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ce.fail("No node at mark step's position");let o=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return ce.fromReplace(e,this.pos,this.pos+1,new D(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 qt(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new wo(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 wo(n.pos,e.markFromJSON(n.mark))}}Re.jsonID("removeNodeMark",wo);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&&Tl(e,this.from,this.to)?ce.fail("Structure replace would overwrite content"):ce.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?D.empty:new D(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?D.empty:new D(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,D.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&&(Tl(e,this.from,this.gapFrom)||Tl(e,this.gapTo,this.to)))return ce.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return ce.fail("Gap is not a flat range");let o=this.slice.insertAt(this.insert,n.content);return o?ce.fromReplace(e,this.from,this.to,o):ce.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,D.fromJSON(e,n.slice),n.insert,!!n.structure)}}Re.jsonID("replaceAround",ge);function Tl(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 xw(t,e,n,o){let r=[],i=[],s,a;t.doc.nodesBetween(e,n,(l,u,c)=>{if(!l.isInline)return;let d=l.marks;if(!o.isInSet(d)&&c.type.allowsMarkType(o.type)){let m=Math.max(u,e),f=Math.min(u+l.nodeSize,n),p=o.addToSet(d);for(let y=0;y<d.length;y++)d[y].isInSet(p)||(s&&s.to==m&&s.mark.eq(d[y])?s.to=f:r.push(s=new St(m,f,d[y])));a&&a.to==m?a.to=f:i.push(a=new Wt(m,f,o))}}),r.forEach(l=>t.step(l)),i.forEach(l=>t.step(l))}function $w(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 u=s.marks,c;for(;c=o.isInSet(u);)(l||(l=[])).push(c),u=c.removeFromSet(u)}else o?o.isInSet(s.marks)&&(l=[o]):l=s.marks;if(l&&l.length){let u=Math.min(a+s.nodeSize,n);for(let c=0;c<l.length;c++){let d=l[c],m;for(let f=0;f<r.length;f++){let p=r[f];p.step==i-1&&d.eq(r[f].style)&&(m=p)}m?(m.to=u,m.step=i):r.push({style:d,from:Math.max(a,e),to:u,step:i})}}}),r.forEach(s=>t.step(new St(s.from,s.to,s.style)))}function xf(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 u=i.child(l),c=a+u.nodeSize,d=o.matchType(u.type);if(!d)s.push(new he(a,c,D.empty));else{o=d;for(let m=0;m<u.marks.length;m++)n.allowsMarkType(u.marks[m].type)||t.step(new St(a,c,u.marks[m]));if(r&&u.isText&&n.whitespace!="pre"){let m,f=/\r?\n|\r/g,p;for(;m=f.exec(u.text);)p||(p=new D(N.from(n.schema.text(" ",n.allowedMarks(u.marks))),0,0)),s.push(new he(a+m.index,a+m.index+m[0].length,p))}}a=c}if(!o.validEnd){let l=o.fillBefore(N.empty,!0);t.replace(a,a,new D(l,0,0))}for(let l=s.length-1;l>=0;l--)t.step(s[l])}function Cw(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function So(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||!Cw(r,i,s))break}return null}function Ew(t,e,n){let{$from:o,$to:r,depth:i}=e,s=o.before(i+1),a=r.after(i+1),l=s,u=a,c=N.empty,d=0;for(let p=i,y=!1;p>n;p--)y||o.index(p)>0?(y=!0,c=N.from(o.node(p).copy(c)),d++):l--;let m=N.empty,f=0;for(let p=i,y=!1;p>n;p--)y||r.after(p+1)<r.end(p)?(y=!0,m=N.from(r.node(p).copy(m)),f++):u++;t.step(new ge(l,u,s,a,new D(c.append(m),d,f),c.size-d,!0))}function jl(t,e,n=null,o=t){let r=Nw(t,e),i=r&&Ow(o,e);return i?r.map($f).concat({type:e,attrs:n}).concat(i.map($f)):null}function $f(t){return{type:t,attrs:null}}function Nw(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 Ow(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 u=o;l&&u<r;u++)l=l.matchType(n.child(u).type);return!l||!l.validEnd?null:s}function Aw(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 D(o,0,0),n.length,!0))}function Rw(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)&&Tw(t.doc,t.mapping.slice(i).map(a),o)){let u=null;if(o.schema.linebreakReplacement){let f=o.whitespace=="pre",p=!!o.contentMatch.matchType(o.schema.linebreakReplacement);f&&!p?u=!1:!f&&p&&(u=!0)}u===!1&&Dw(t,s,a,i),xf(t,t.mapping.slice(i).map(a,1),o,void 0,u===null);let c=t.mapping.slice(i),d=c.map(a,1),m=c.map(a+s.nodeSize,1);return t.step(new ge(d,m,d+1,m-1,new D(N.from(o.create(l,null,s.marks)),0,0),1,!0)),u===!0&&Mw(t,s,a,i),!1}})}function Mw(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 Dw(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(`
23
- `))}})}function Tw(t,e,n){let o=t.resolve(e),r=o.index();return o.parent.canReplaceWith(r,r+1,n)}function jw(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 D(N.from(s),0,0),1,!0))}function ko(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 u=r.depth-1,c=n-2;u>i;u--,c--){let d=r.node(u),m=r.index(u);if(d.type.spec.isolating)return!1;let f=d.content.cutByIndex(m,d.childCount),p=o&&o[c+1];p&&(f=f.replaceChild(0,p.type.create(p.attrs)));let y=o&&o[c]||d;if(!d.canReplace(m+1,d.childCount)||!y.type.validContent(f))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 Pw(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,u=n-1;a>l;a--,u--){i=N.from(r.node(a).copy(i));let c=o&&o[u];s=N.from(c?c.type.create(c.attrs,s):r.node(a).copy(s))}t.step(new he(e,e,new D(i.append(s),n,n),!0))}function Gt(t,e){let n=t.resolve(e),o=n.index();return Cf(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(o,o+1)}function Cf(t,e){return!!(t&&e&&!t.isLeaf&&t.canAppend(e))}function cs(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&&Cf(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 Iw(t,e,n){let o=new he(e-n,e+n,D.empty,!0);t.step(o)}function Lw(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 zw(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),u=o.node(s),c=!1;if(i==1)c=u.canReplace(l,l,r);else{let d=u.contentMatchAt(l).findWrapping(r.firstChild.type);c=d&&u.canReplaceWith(l,l,d[0])}if(c)return a==0?o.pos:a<0?o.before(s+1):o.after(s+1)}return null}function ds(t,e,n=e,o=D.empty){if(e==n&&!o.size)return null;let r=t.resolve(e),i=t.resolve(n);return Ef(r,i,o)?new he(e,n,o):new Fw(r,i,o).fit()}function Ef(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class Fw{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 u=this.findFittable();u?this.placeNodes(u):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 D(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=Pl(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:u}=this.frontier[a],c,d=null;if(n==1&&(s?u.matchType(s.type)||(d=u.fillBefore(N.from(s),!1)):i&&l.compatibleContent(i.type)))return{sliceDepth:o,frontierDepth:a,parent:i,inject:d};if(n==2&&s&&(c=u.findWrapping(s.type)))return{sliceDepth:o,frontierDepth:a,parent:i,wrap:c};if(i&&u.matchType(i.type))break}}}openMore(){let{content:e,openStart:n,openEnd:o}=this.unplaced,r=Pl(e,n);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new D(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=Pl(e,n);if(r.childCount<=1&&n>0){let i=e.size-n<=n+r.size;this.unplaced=new D(Cr(e,n-1,1),n-1,i?n-1:o)}else this.unplaced=new D(Cr(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,u=0,c=[],{match:d,type:m}=this.frontier[n];if(r){for(let y=0;y<r.childCount;y++)c.push(r.child(y));d=d.matchFragment(r)}let f=a.size+e-(s.content.size-s.openEnd);for(;u<a.childCount;){let y=a.child(u),h=d.matchType(y.type);if(!h)break;u++,(u>1||l==0||y.content.size)&&(d=h,c.push(Nf(y.mark(m.allowedMarks(y.marks)),u==1?l:0,u==a.childCount?f:-1)))}let p=u==a.childCount;p||(f=-1),this.placed=Er(this.placed,n,N.from(c)),this.frontier[n].match=d,p&&f<0&&o&&o.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let y=0,h=a;y<f;y++){let g=h.lastChild;this.frontier.push({type:g.type,match:g.contentMatchAt(g.childCount)}),h=g.content}this.unplaced=p?e==0?D.empty:new D(Cr(s.content,e-1,1),e-1,f<0?s.openEnd:e-1):new D(Cr(s.content,e,u),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!Il(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=Il(e,n,r,o,i);if(s){for(let a=n-1;a>=0;a--){let{match:l,type:u}=this.frontier[a],c=Il(e,a,u,l,!0);if(!c||c.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=Er(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=Er(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=Er(this.placed,this.frontier.length,n))}}function Cr(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Cr(t.firstChild.content,e-1,n)))}function Er(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Er(t.lastChild.content,e-1,n)))}function Pl(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function Nf(t,e,n){if(e<=0)return t;let o=t.content;return e>1&&(o=o.replaceChild(0,Nf(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 Il(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&&!Bw(n,i.content,s)?a:null}function Bw(t,e,n){for(let o=n;o<e.childCount;o++)if(!t.allowsMarks(e.child(o).marks))return!0;return!1}function Hw(t){return t.spec.defining||t.spec.definingForContent}function Vw(t,e,n,o){if(!o.size)return t.deleteRange(e,n);let r=t.doc.resolve(e),i=t.doc.resolve(n);if(Ef(r,i,o))return t.step(new he(e,n,o));let s=Af(r,t.doc.resolve(n));s[s.length-1]==0&&s.pop();let a=-(r.depth+1);s.unshift(a);for(let m=r.depth,f=r.pos-1;m>0;m--,f--){let p=r.node(m).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;s.indexOf(m)>-1?a=m:r.before(m)==f&&s.splice(1,0,-m)}let l=s.indexOf(a),u=[],c=o.openStart;for(let m=o.content,f=0;;f++){let p=m.firstChild;if(u.push(p),f==o.openStart)break;m=p.content}for(let m=c-1;m>=0;m--){let f=u[m],p=Hw(f.type);if(p&&!f.sameMarkup(r.node(Math.abs(a)-1)))c=m;else if(p||!f.type.isTextblock)break}for(let m=o.openStart;m>=0;m--){let f=(m+c+1)%(o.openStart+1),p=u[f];if(p)for(let y=0;y<s.length;y++){let h=s[(y+l)%s.length],g=!0;h<0&&(g=!1,h=-h);let w=r.node(h-1),k=r.index(h-1);if(w.canReplaceWith(k,k,p.type,p.marks))return t.replace(r.before(h),g?i.after(h):n,new D(Of(o.content,0,o.openStart,f),f,o.openEnd))}}let d=t.steps.length;for(let m=s.length-1;m>=0&&(t.replace(e,n,o),!(t.steps.length>d));m--){let f=s[m];f<0||(e=r.before(f),n=i.after(f))}}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 Uw(t,e,n,o){if(!o.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let r=Lw(t.doc,e,o.type);r!=null&&(e=n=r)}t.replaceRange(e,n,new D(N.from(o),0,0))}function Jw(t,e,n){let o=t.doc.resolve(e),r=t.doc.resolve(n),i=Af(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 Af(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 vo 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 ce.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 ce.fromReplace(e,this.pos,this.pos+1,new D(N.from(r),0,n.isLeaf?0:1))}getMap(){return qe.empty}invert(e){return new vo(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 vo(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 vo(n.pos,n.attr,n.value)}}Re.jsonID("attr",vo);class Nr 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 ce.ok(o)}getMap(){return qe.empty}invert(e){return new Nr(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 Nr(n.attr,n.value)}}Re.jsonID("docAttr",Nr);let bo=class extends Error{};bo=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},bo.prototype=Object.create(Error.prototype),bo.prototype.constructor=bo,bo.prototype.name="TransformError";class Rf{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new $r}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new bo(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=D.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 D(N.from(o),0,0))}delete(e,n){return this.replace(e,n,D.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,o){return Vw(this,e,n,o),this}replaceRangeWith(e,n,o){return Uw(this,e,n,o),this}deleteRange(e,n){return Jw(this,e,n),this}lift(e,n){return Ew(this,e,n),this}join(e,n=1){return Iw(this,e,n),this}wrap(e,n){return Aw(this,e,n),this}setBlockType(e,n=e,o,r=null){return Rw(this,e,n,o,r),this}setNodeMarkup(e,n,o=null,r){return jw(this,e,n,o,r),this}setNodeAttribute(e,n,o){return this.step(new vo(e,n,o)),this}setDocAttribute(e,n){return this.step(new Nr(e,n)),this}addNodeMark(e,n){return this.step(new qt(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 wo(e,n)),this}split(e,n=1,o){return Pw(this,e,n,o),this}addMark(e,n,o){return xw(this,e,n,o),this}removeMark(e,n,o){return $w(this,e,n,o),this}clearIncompatible(e,n,o){return xf(this,e,n,o),this}}const Ll=Object.create(null);class J{constructor(e,n,o){this.$anchor=e,this.$head=n,this.ranges=o||[new _w(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=D.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:u}=s[a],c=e.mapping.slice(i);e.replaceRange(c.map(l.pos),c.map(u.pos),a?D.empty:n),a==0&&Tf(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),u=l.map(s.pos),c=l.map(a.pos);i?e.deleteRange(u,c):(e.replaceRangeWith(u,c,n),Tf(e,o,n.isInline?-1:1))}}static findFrom(e,n,o=!1){let r=e.parent.inlineContent?new V(e):xo(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?xo(e.node(0),e.node(i),e.before(i+1),e.index(i),n,o):xo(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 mt(e.node(0))}static atStart(e){return xo(e,e,0,0,1)||new mt(e)}static atEnd(e){return xo(e,e,e.content.size,e.childCount,-1)||new mt(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let o=Ll[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 Ll)throw new RangeError("Duplicate use of selection JSON ID "+e);return Ll[e]=n,n.prototype.jsonID=e,n}getBookmark(){return V.between(this.$anchor,this.$head).getBookmark()}}J.prototype.visible=!0;class _w{constructor(e,n){this.$from=e,this.$to=n}}let Mf=!1;function Df(t){!Mf&&!t.parent.inlineContent&&(Mf=!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){Df(e),Df(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=D.empty){if(super.replace(e,n),n==D.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 D(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 zl(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 zl{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:o}=e.mapResult(this.anchor);return n?new ms(o,o):new zl(o)}resolve(e){let n=e.resolve(this.anchor),o=n.nodeAfter;return o&&L.isSelectable(o)?new L(n):J.near(n)}}class mt extends J{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=D.empty){if(n==D.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 mt(e)}map(e){return new mt(e)}eq(e){return e instanceof mt}getBookmark(){return Yw}}J.jsonID("all",mt);const Yw={map(){return this},resolve(t){return new mt(t)}};function xo(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=xo(t,a,n+r,r<0?a.childCount:0,r,i);if(l)return l}n+=a.nodeSize*r}return null}function Tf(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,u,c)=>{s==null&&(s=c)}),t.setSelection(J.near(t.doc.resolve(s),n))}const jf=1,fs=2,Pf=4;class Kw extends Rf{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|jf)&~fs,this.storedMarks=null,this}get selectionSet(){return(this.updated&jf)>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|=Pf,this}get scrolledIntoView(){return(this.updated&Pf)>0}}function If(t,e){return!e||!t?t:t.bind(e)}class Or{constructor(e,n,o){this.name=e,this.init=If(n.init,o),this.apply=If(n.apply,o)}}const Ww=[new Or("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Or("selection",{init(t,e){return t.selection||J.atStart(e.doc)},apply(t){return t.selection}}),new Or("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,o){return o.selection.$cursor?t.storedMarks:null}}),new Or("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class Fl{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Ww.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 Or(o.key,o.spec.state,o))})}}class $o{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,u=r?r[s].state:this,c=l<n.length&&a.spec.appendTransaction.call(a,l?n.slice(l):n,u,o);if(c&&o.filterTransaction(c,s)){if(c.setMeta("appendedTransaction",e),!r){r=[];for(let d=0;d<this.config.plugins.length;d++)r.push(d<s?{state:o,n:n.length}:{state:this,n:0})}n.push(c),o=o.applyInner(c),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 $o(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 Kw(this)}static create(e){let n=new Fl(e.doc?e.doc.type.schema:e.schema,e.plugins),o=new $o(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 Fl(this.schema,e.plugins),o=n.fields,r=new $o(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 Fl(e.schema,e.plugins),i=new $o(r);return r.fields.forEach(s=>{if(s.name=="doc")i.doc=In.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],u=l.spec.state;if(l.key==s.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(n,a)){i[s.name]=u.fromJSON.call(l,e,n[a],i);return}}i[s.name]=s.init(e,i)}}),i}}function Lf(t,e,n){for(let o in t){let r=t[o];r instanceof Function?r=r.bind(e):o=="handleDOMEvents"&&(r=Lf(r,e,{})),n[o]=r}return n}class Ve{constructor(e){this.spec=e,this.props={},e.props&&Lf(e.props,this,this.props),this.key=e.key?e.key.key:zf("plugin")}getState(e){return e[this.key]}}const Bl=Object.create(null);function zf(t){return t in Bl?t+"$"+ ++Bl[t]:(Bl[t]=0,t+"$")}class ft{constructor(e="key"){this.key=zf(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const xe=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Ar=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let Hl=null;const jt=function(t,e,n){let o=Hl||(Hl=document.createRange());return o.setEnd(t,n??t.nodeValue.length),o.setStart(t,e||0),o},qw=function(){Hl=null},Fn=function(t,e,n,o){return n&&(Ff(t,e,n,o,-1)||Ff(t,e,n,o,1))},Gw=/^(img|br|input|textarea|hr)$/i;function Ff(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||Rr(t)||Gw.test(t.nodeName)||t.contentEditable=="false")return!1;e=xe(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 Qw(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&&!Rr(t))e=xe(t),t=t.parentNode;else return null}}function Zw(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&&!Rr(t))e=xe(t)+1,t=t.parentNode;else return null}}function Xw(t,e,n){for(let o=e==0,r=e==Xe(t);o||r;){if(t==n)return!0;let i=xe(t);if(t=t.parentNode,!t)return!1;o=o&&i==0,r=r&&i==Xe(t)}}function Rr(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&&Fn(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 eS(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function tS(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 kt=typeof navigator<"u"?navigator:null,Bf=typeof document<"u"?document:null,Qt=kt&&kt.userAgent||"",Vl=/Edge\/(\d+)/.exec(Qt),Hf=/MSIE \d/.exec(Qt),Ul=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Qt),Ue=!!(Hf||Ul||Vl),Zt=Hf?document.documentMode:Ul?+Ul[1]:Vl?+Vl[1]:0,pt=!Ue&&/gecko\/(\d+)/i.test(Qt);pt&&+(/Firefox\/(\d+)/.exec(Qt)||[0,0])[1];const Jl=!Ue&&/Chrome\/(\d+)/.exec(Qt),Me=!!Jl,Vf=Jl?+Jl[1]:0,Le=!Ue&&!!kt&&/Apple Computer/.test(kt.vendor),Co=Le&&(/Mobile\/\w+/.test(Qt)||!!kt&&kt.maxTouchPoints>2),et=Co||(kt?/Mac/.test(kt.platform):!1),nS=kt?/Win/.test(kt.platform):!1,ht=/Android \d/.test(Qt),Mr=!!Bf&&"webkitFontSmoothing"in Bf.documentElement.style,oS=Mr?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function rS(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 Pt(t,e){return typeof t=="number"?t:t[e]}function iS(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 Uf(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=Ar(s)){if(s.nodeType!=1)continue;let a=s,l=a==i.body,u=l?rS(i):iS(a),c=0,d=0;if(e.top<u.top+Pt(o,"top")?d=-(u.top-e.top+Pt(r,"top")):e.bottom>u.bottom-Pt(o,"bottom")&&(d=e.bottom-e.top>u.bottom-u.top?e.top+Pt(r,"top")-u.top:e.bottom-u.bottom+Pt(r,"bottom")),e.left<u.left+Pt(o,"left")?c=-(u.left-e.left+Pt(r,"left")):e.right>u.right-Pt(o,"right")&&(c=e.right-u.right+Pt(r,"right")),c||d)if(l)i.defaultView.scrollBy(c,d);else{let m=a.scrollLeft,f=a.scrollTop;d&&(a.scrollTop+=d),c&&(a.scrollLeft+=c);let p=a.scrollLeft-m,y=a.scrollTop-f;e={left:e.left-p,top:e.top-y,right:e.right-p,bottom:e.bottom-y}}if(l||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function sS(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:Jf(t.dom)}}function Jf(t){let e=[],n=t.ownerDocument;for(let o=t;o&&(e.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),t!=n);o=Ar(o));return e}function aS({refDOM:t,refTop:e,stack:n}){let o=t?t.getBoundingClientRect().top:0;_f(n,o==0?0:o-e)}function _f(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 Eo=null;function lS(t){if(t.setActive)return t.setActive();if(Eo)return t.focus(Eo);let e=Jf(t);t.focus(Eo==null?{get preventScroll(){return Eo={preventScroll:!0},!0}}:void 0),Eo||(Eo=!1,_f(e,0))}function Yf(t,e){let n,o=2e8,r,i=0,s=e.top,a=e.top,l,u;for(let c=t.firstChild,d=0;c;c=c.nextSibling,d++){let m;if(c.nodeType==1)m=c.getClientRects();else if(c.nodeType==3)m=jt(c).getClientRects();else continue;for(let f=0;f<m.length;f++){let p=m[f];if(p.top<=s&&p.bottom>=a){s=Math.max(p.bottom,s),a=Math.min(p.top,a);let y=p.left>e.left?p.left-e.left:p.right<e.left?e.left-p.right:0;if(y<o){n=c,o=y,r=y&&n.nodeType==3?{left:p.right<e.left?p.right:p.left,top:e.top}:e,c.nodeType==1&&y&&(i=d+(e.left>=(p.left+p.right)/2?1:0));continue}}else p.top>e.top&&!l&&p.left<=e.left&&p.right>=e.left&&(l=c,u={left:Math.max(p.left,Math.min(p.right,e.left)),top:p.top});!n&&(e.left>=p.right&&e.top>=p.top||e.left>=p.left&&e.top>=p.bottom)&&(i=d+1)}}return!n&&l&&(n=l,r=u,o=0),n&&n.nodeType==3?uS(n,r):!n||o&&n.nodeType==1?{node:t,offset:i}:Yf(n,r)}function uS(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=Xt(o,1);if(i.top!=i.bottom&&_l(e,i))return{node:t,offset:r+(e.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function _l(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function cS(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function dS(t,e,n){let{node:o,offset:r}=Yf(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 mS(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 Kf(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 u=a[l];if(_l(e,u))return Kf(s,e,u)}}if((i=(i+1)%o)==r)break}return t}function fS(t,e){let n=t.dom.ownerDocument,o,r=0,i=tS(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 u=t.dom.getBoundingClientRect();if(!_l(e,u)||(s=Kf(t.dom,e,u),!s))return null}if(Le)for(let u=s;o&&u;u=Ar(u))u.draggable&&(o=void 0);if(s=cS(s,e),o){if(pt&&o.nodeType==1&&(r=Math.min(r,o.childNodes.length),r<o.childNodes.length)){let c=o.childNodes[r],d;c.nodeName=="IMG"&&(d=c.getBoundingClientRect()).right<=e.left&&d.bottom>e.top&&r++}let u;Mr&&r&&o.nodeType==1&&(u=o.childNodes[r-1]).nodeType==1&&u.contentEditable=="false"&&u.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=mS(t,o,r,e))}a==null&&(a=dS(t,s,e));let l=t.docView.nearestDesc(s,!0);return{pos:a,inside:l?l.posAtStart-l.border:-1}}function Wf(t){return t.top<t.bottom||t.left<t.right}function Xt(t,e){let n=t.getClientRects();if(n.length){let o=n[e<0?0:n.length-1];if(Wf(o))return o}return Array.prototype.find.call(n,Wf)||t.getBoundingClientRect()}const pS=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function qf(t,e,n){let{node:o,offset:r,atom:i}=t.docView.domFromPos(e,n<0?-1:1),s=Mr||pt;if(o.nodeType==3)if(s&&(pS.test(o.nodeValue)||(n<0?!r:r==o.nodeValue.length))){let l=Xt(jt(o,r,r),n);if(pt&&r&&/\s/.test(o.nodeValue[r-1])&&r<o.nodeValue.length){let u=Xt(jt(o,r-1,r-1),-1);if(u.top==l.top){let c=Xt(jt(o,r,r+1),-1);if(c.top!=l.top)return Dr(c,c.left<u.left)}}return l}else{let l=r,u=r,c=n<0?1:-1;return n<0&&!r?(u++,c=-1):n>=0&&r==o.nodeValue.length?(l--,c=1):n<0?l--:u++,Dr(Xt(jt(o,l,u),c),c<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 Yl(l.getBoundingClientRect(),!1)}if(i==null&&r<Xe(o)){let l=o.childNodes[r];if(l.nodeType==1)return Yl(l.getBoundingClientRect(),!0)}return Yl(o.getBoundingClientRect(),n>=0)}if(i==null&&r&&(n<0||r==Xe(o))){let l=o.childNodes[r-1],u=l.nodeType==3?jt(l,Xe(l)-(s?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(u)return Dr(Xt(u,1),!1)}if(i==null&&r<Xe(o)){let l=o.childNodes[r];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let u=l?l.nodeType==3?jt(l,0,s?0:1):l.nodeType==1?l:null:null;if(u)return Dr(Xt(u,-1),!0)}return Dr(Xt(o.nodeType==3?jt(o):o,-n),n>=0)}function Dr(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 Yl(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 Gf(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 hS(t,e,n){let o=e.selection,r=n=="up"?o.$from:o.$to;return Gf(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=qf(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=jt(a,0,a.nodeValue.length).getClientRects();else continue;for(let u=0;u<l.length;u++){let c=l[u];if(c.bottom>c.top+1&&(n=="up"?s.top-c.top>(c.bottom-s.top)*2:c.bottom-s.bottom>(s.bottom-c.top)*2))return!1}}return!0})}const gS=/[\u0590-\u08ac]/;function yS(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?!gS.test(o.parent.textContent)||!a.modify?n=="left"||n=="backward"?i:s:Gf(t,e,()=>{let{focusNode:l,focusOffset:u,anchorNode:c,anchorOffset:d}=t.domSelectionRange(),m=a.caretBidiLevel;a.modify("move",n,"character");let f=o.depth?t.docView.domAfterPos(o.before()):t.dom,{focusNode:p,focusOffset:y}=t.domSelectionRange(),h=p&&!f.contains(p.nodeType==1?p:p.parentNode)||l==p&&u==y;try{a.collapse(c,d),l&&(l!=c||u!=d)&&a.extend&&a.extend(l,u)}catch{}return m!=null&&(a.caretBidiLevel=m),h}):o.pos==o.start()||o.pos==o.end()}let Qf=null,Zf=null,Xf=!1;function wS(t,e,n){return Qf==e&&Zf==n?Xf:(Qf=e,Zf=n,Xf=n=="up"||n=="down"?hS(t,e,n):yS(t,e,n))}const tt=0,ep=1,Hn=2,vt=3;class Tr{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>xe(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 op){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 tp&&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?xe(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?xe(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],u=s+l.size;if(r==-1&&e<=u){let c=s+l.border;if(e>=c&&n<=u-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,c);e=s;for(let d=a;d>0;d--){let m=this.children[d-1];if(m.size&&m.dom.parentNode==this.contentDOM&&!m.emptyChildAt(1)){r=xe(m.dom)+1;break}e-=m.size}r==-1&&(r=0)}if(r>-1&&(u>n||a==this.children.length-1)){n=u;for(let c=a+1;c<this.children.length;c++){let d=this.children[c];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(-1)){i=xe(d.dom);break}n+=d.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=u}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 m=0,f=0;m<this.children.length;m++){let p=this.children[m],y=f+p.size;if(i>f&&s<y)return p.setSelection(e-f-p.border,n-f-p.border,o,r);f=y}let a=this.domFromPos(e,e?-1:1),l=n==e?a:this.domFromPos(n,n?-1:1),u=o.getSelection(),c=!1;if((pt||Le)&&e==n){let{node:m,offset:f}=a;if(m.nodeType==3){if(c=!!(f&&m.nodeValue[f-1]==`
24
- `),c&&f==m.nodeValue.length)for(let p=m,y;p;p=p.parentNode){if(y=p.nextSibling){y.nodeName=="BR"&&(a=l={node:y.parentNode,offset:xe(y)+1});break}let h=p.pmViewDesc;if(h&&h.node&&h.node.isBlock)break}}else{let p=m.childNodes[f-1];c=p&&(p.nodeName=="BR"||p.contentEditable=="false")}}if(pt&&u.focusNode&&u.focusNode!=l.node&&u.focusNode.nodeType==1){let m=u.focusNode.childNodes[u.focusOffset];m&&m.contentEditable=="false"&&(r=!0)}if(!(r||c&&Le)&&Fn(a.node,a.offset,u.anchorNode,u.anchorOffset)&&Fn(l.node,l.offset,u.focusNode,u.focusOffset))return;let d=!1;if((u.extend||e==n)&&!c){u.collapse(a.node,a.offset);try{e!=n&&u.extend(l.node,l.offset),d=!0}catch{}}if(!d){if(e>n){let f=a;a=l,l=f}let m=document.createRange();m.setEnd(l.node,l.offset),m.setStart(a.node,a.offset),u.removeAllRanges(),u.addRange(m)}}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?Hn:ep,e==a&&n==l&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=vt:i.markDirty(e-a,n-a);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Hn:vt}o=s}this.dirty=Hn}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let o=e==1?Hn:ep;n.dirty<o&&(n.dirty=o)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText(e){return!1}}class tp extends Tr{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 SS extends Tr{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 Vn extends Tr{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=zn.renderSpec(document,n.type.spec.toDOM(n,o),null,n.attrs)),new Vn(e,n,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&vt||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=vt&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=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=Vn.create(this.parent,this.mark,!0,o),i=this.children,s=this.size;n<s&&(i=Wl(i,n,s,o)),e>0&&(i=Wl(i,0,e,o));for(let a=0;a<i.length;a++)i[a].parent=r;return r.children=i,r}}class en extends Tr{constructor(e,n,o,r,i,s,a,l,u){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,u=a&&a(n,i,()=>{if(!l)return s;if(l.parent)return l.parent.posBeforeChild(l)},o,r),c=u&&u.dom,d=u&&u.contentDOM;if(n.isText){if(!c)c=document.createTextNode(n.text);else if(c.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else c||({dom:c,contentDOM:d}=zn.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&c.nodeName!="BR"&&(c.hasAttribute("contenteditable")||(c.contentEditable="false"),n.type.spec.draggable&&(c.draggable=!0));let m=c;return c=sp(c,o,n),u?l=new kS(e,n,o,r,c,d||null,m,u,i,s+1):n.isText?new hs(e,n,o,r,c,m,i):new en(e,n,o,r,c,d||null,m,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 bS(this,s&&s.node,e);CS(this.node,this.innerDeco,(u,c,d)=>{u.spec.marks?l.syncToMarks(u.spec.marks,o,e):u.type.side>=0&&!d&&l.syncToMarks(c==this.node.childCount?q.none:this.node.child(c).marks,o,e),l.placeWidget(u,e,r)},(u,c,d,m)=>{l.syncToMarks(u.marks,o,e);let f;l.findNodeMatch(u,c,d,m)||a&&e.state.selection.from>r&&e.state.selection.to<r+u.nodeSize&&(f=l.findIndexWithChild(i.node))>-1&&l.updateNodeAt(u,c,d,f,e)||l.updateNextNode(u,c,d,e,m,r)||l.addNode(u,c,d,e,r),r+=u.nodeSize}),l.syncToMarks([],o,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==Hn)&&(s&&this.protectLocalComposition(e,s),rp(this.contentDOM,this.children,e),Co&&ES(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=NS(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 SS(this,i,n,r);e.input.compositionNodes.push(s),this.children=Wl(this.children,o,o+r.length,e,s)}update(e,n,o,r){return this.dirty==vt||!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=ip(this.dom,this.nodeDOM,Kl(this.outerDeco,this.node,n),Kl(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 np(t,e,n,o,r){sp(o,e,t);let i=new en(void 0,t,e,n,o,o,o,r,0);return i.contentDOM&&i.updateChildren(r,0),i}class hs extends en{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==vt||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=vt)}get domAtom(){return!1}isText(e){return this.node.text==e}}class op extends Tr{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 kS extends en{constructor(e,n,o,r,i,s,a,l,u,c){super(e,n,o,r,i,s,a,u,c),this.spec=l}update(e,n,o,r){if(this.dirty==vt)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 rp(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=ap(o),r=!0;o=o.nextSibling}else r=!0,t.insertBefore(a,o);if(s instanceof Vn){let l=o?o.previousSibling:t.lastChild;rp(s.contentDOM,s.children,n),o=l?l.nextSibling:t.firstChild}}for(;o;)o=ap(o),r=!0;r&&n.trackWrites==t&&(n.trackWrites=null)}const jr=function(t){t&&(this.nodeName=t)};jr.prototype=Object.create(null);const Un=[new jr];function Kl(t,e,n){if(t.length==0)return Un;let o=n?Un[0]:new jr,r=[o];for(let i=0;i<t.length;i++){let s=t[i].type.attrs;if(s){s.nodeName&&r.push(o=new jr(s.nodeName));for(let a in s){let l=s[a];l!=null&&(n&&r.length==1&&r.push(o=new jr(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 ip(t,e,n,o){if(n==Un&&o==Un)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=Un[0]),r=l}vS(r,a||Un[0],s)}return r}function vS(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 sp(t,e,n){return ip(t,t,Un,Kl(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 ap(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class bS{constructor(e,n,o){this.lock=n,this.view=o,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=xS(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 u=this.top.children[l];if(u.matchesMark(e[i])&&!this.isLocked(u.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=Vn.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 u=this.top.children[a];if(u.matchesNode(e,n,o)&&!this.preMatch.matched.has(u)){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==vt&&s.dom==s.contentDOM&&(s.dirty=Hn),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 en){let u=this.preMatch.matched.get(l);if(u!=null&&u!=i)return!1;let c=l.dom,d,m=this.isLocked(c)&&!(e.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==e.text&&l.dirty!=vt&&gs(n,l.outerDeco));if(!m&&l.update(e,n,o,r))return this.destroyBetween(this.index,a),l.dom!=c&&(this.changed=!0),this.index++,!0;if(!m&&(d=this.recreateWrapper(l,e,n,o,r,s)))return this.destroyBetween(this.index,a),this.top.children[this.index]=d,d.contentDOM&&(d.dirty=Hn,d.updateChildren(r,s+1),d.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=en.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=en.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 tp(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 Vn;)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||Me)&&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 op(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 xS(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 u=n.children[o-1];if(u instanceof Vn)n=u,o=u.children.length;else{a=u,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 $S(t,e){return t.type.side-e.type.side}function CS(t,e,n,o){let r=e.locals(t),i=0;if(r.length==0){for(let u=0;u<t.childCount;u++){let c=t.child(u);o(c,r,e.forChild(i,c),u),i+=c.nodeSize}return}let s=0,a=[],l=null;for(let u=0;;){let c,d;for(;s<r.length&&r[s].to==i;){let h=r[s++];h.widget&&(c?(d||(d=[c])).push(h):c=h)}if(c)if(d){d.sort($S);for(let h=0;h<d.length;h++)n(d[h],u,!!l)}else n(c,u,!!l);let m,f;if(l)f=-1,m=l,l=null;else if(u<t.childCount)f=u,m=t.child(u++);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 p=i+m.nodeSize;if(m.isText){let h=p;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<p&&(l=m.cut(h-i),m=m.cut(0,h-i),p=h,f=-1)}else for(;s<r.length&&r[s].to<p;)s++;let y=m.isInline&&!m.isLeaf?a.filter(h=>!h.inline):a.slice();o(m,y,e.forChild(i,m),f),i=p}}function ES(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 NS(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 u=t.child(r++);if(i+=u.nodeSize,!u.isText)break;l+=u.text}if(i>=n){if(i>=o&&l.slice(o-e.length-a,o-a)==e)return o-e.length;let u=a<o?l.lastIndexOf(e,o-a-1):-1;if(u>=0&&u+e.length+a>=n)return a+u;if(n==o&&l.length>=o+e.length-a&&l.slice(o-a,o-a+e.length)==e)return o}}return-1}function Wl(t,e,n,o,r){let i=[];for(let s=0,a=0;s<t.length;s++){let l=t[s],u=a,c=a+=l.size;u>=n||c<=e?i.push(l):(u<e&&i.push(l.slice(0,e-u,o)),r&&(i.push(r),r=void 0),c>n&&i.push(l.slice(n-u,l.size,o)))}return i}function ql(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,u;if(ps(n)){for(l=s;r&&!r.node;)r=r.parent;let d=r.node;if(r&&d.isAtom&&L.isSelectable(d)&&r.parent&&!(d.isInline&&Xw(n.focusNode,n.focusOffset,r.dom))){let m=r.posBefore;u=new L(s==m?a:o.resolve(m))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=s,m=s;for(let f=0;f<n.rangeCount;f++){let p=n.getRangeAt(f);d=Math.min(d,t.docView.posFromDOM(p.startContainer,p.startOffset,1)),m=Math.max(m,t.docView.posFromDOM(p.endContainer,p.endOffset,-1))}if(d<0)return null;[l,s]=m==t.state.selection.anchor?[m,d]:[d,m],a=o.resolve(s)}else l=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}let c=o.resolve(l);if(!u){let d=e=="pointer"||t.state.selection.head<a.pos&&!i?1:-1;u=Ql(t,c,a,d)}return u}function lp(t){return t.editable?t.hasFocus():hp(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function It(t,e=!1){let n=t.state.selection;if(mp(t,n),!!lp(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&Me){let o=t.domSelectionRange(),r=t.domObserver.currentSelection;if(o.anchorNode&&r.anchorNode&&Fn(o.anchorNode,o.anchorOffset,r.anchorNode,r.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)AS(t);else{let{anchor:o,head:r}=n,i,s;up&&!(n instanceof V)&&(n.$from.parent.inlineContent||(i=cp(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=cp(t,n.to))),t.docView.setSelection(o,r,t.root,e),up&&(i&&dp(i),s&&dp(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&OS(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const up=Le||Me&&Vf<63;function cp(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 Gl(r);if((!r||r.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(r)return Gl(r);if(i)return Gl(i)}}function Gl(t){return t.contentEditable="true",Le&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function dp(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function OS(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(()=>{(!lp(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function AS(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,xe(o)+1):n.setStart(o,0),n.collapse(!0),e.removeAllRanges(),e.addRange(n),!r&&!t.state.selection.visible&&Ue&&Zt<=11&&(o.disabled=!0,o.disabled=!1)}function mp(t,e){if(e instanceof L){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(fp(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else fp(t)}function fp(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Ql(t,e,n,o){return t.someProp("createSelectionBetween",r=>r(t,e,n))||V.between(e,n,o)}function pp(t){return t.editable&&!t.hasFocus()?!1:hp(t)}function hp(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 RS(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return Fn(e.node,e.offset,n.anchorNode,n.anchorOffset)}function Zl(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 tn(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function gp(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 tn(t,new V(o.$anchor,s))}else if(o.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let r=Zl(t.state,e);return r&&r instanceof L?tn(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)?tn(t,new L(e<0?t.state.doc.resolve(r.pos-i.nodeSize):r)):Mr?tn(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 tn(t,new V(e>0?o.$to:o.$from));{let r=Zl(t.state,e);return r?tn(t,r):!1}}}function ys(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Pr(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function No(t,e){return e<0?MS(t):DS(t)}function MS(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let r,i,s=!1;for(pt&&n.nodeType==1&&o<ys(n)&&Pr(n.childNodes[o],-1)&&(s=!0);;)if(o>0){if(n.nodeType!=1)break;{let a=n.childNodes[o-1];if(Pr(a,-1))r=n,i=--o;else if(a.nodeType==3)n=a,o=n.nodeValue.length;else break}}else{if(yp(n))break;{let a=n.previousSibling;for(;a&&Pr(a,-1);)r=n.parentNode,i=xe(a),a=a.previousSibling;if(a)n=a,o=ys(n);else{if(n=n.parentNode,n==t.dom)break;o=0}}}s?Xl(t,n,o):r&&Xl(t,r,i)}function DS(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(Pr(a,1))i=n,s=++o;else break}else{if(yp(n))break;{let a=n.nextSibling;for(;a&&Pr(a,1);)i=a.parentNode,s=xe(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&&Xl(t,i,s)}function yp(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function TS(t,e){for(;t&&e==t.childNodes.length&&!Rr(t);)e=xe(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 jS(t,e){for(;t&&!e&&!Rr(t);)e=xe(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 Xl(t,e,n){if(e.nodeType!=3){let i,s;(s=TS(e,n))?(e=s,n=0):(i=jS(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&&It(t)},50)}function wp(t,e){let n=t.state.doc.resolve(e);if(!(Me||nS)&&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 Sp(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=Zl(t.state,e);if(s&&s instanceof L)return tn(t,s)}if(!r.parent.inlineContent){let s=e<0?r:i,a=o instanceof mt?J.near(s,e):J.findFrom(s,e);return a?tn(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 vp(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function PS(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;vp(t,o,"true"),setTimeout(()=>vp(t,o,"false"),20)}return!1}function IS(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function LS(t,e){let n=e.keyCode,o=IS(e);if(n==8||et&&n==72&&o=="c")return kp(t,-1)||No(t,-1);if(n==46&&!e.shiftKey||et&&n==68&&o=="c")return kp(t,1)||No(t,1);if(n==13||n==27)return!0;if(n==37||et&&n==66&&o=="c"){let r=n==37?wp(t,t.state.selection.from)=="ltr"?-1:1:-1;return gp(t,r,o)||No(t,r)}else if(n==39||et&&n==70&&o=="c"){let r=n==39?wp(t,t.state.selection.from)=="ltr"?1:-1:1;return gp(t,r,o)||No(t,r)}else{if(n==38||et&&n==80&&o=="c")return Sp(t,-1,o)||No(t,-1);if(n==40||et&&n==78&&o=="c")return PS(t)||Sp(t,1,o)||No(t,1);if(o==(et?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function bp(t,e){t.someProp("transformCopied",f=>{e=f(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 f=o.firstChild;n.push(f.type.name,f.attrs!=f.type.defaultAttrs?f.attrs:null),o=f.content}let s=t.someProp("clipboardSerializer")||zn.fromSchema(t.state.schema),a=Rp(),l=a.createElement("div");l.appendChild(s.serializeFragment(o,{document:a}));let u=l.firstChild,c,d=0;for(;u&&u.nodeType==1&&(c=Op[u.nodeName.toLowerCase()]);){for(let f=c.length-1;f>=0;f--){let p=a.createElement(c[f]);for(;l.firstChild;)p.appendChild(l.firstChild);l.appendChild(p),d++}u=l.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${r} ${i}${d?` -${d}`:""} ${JSON.stringify(n)}`);let m=t.someProp("clipboardTextSerializer",f=>f(e,t))||e.content.textBetween(0,e.content.size,`
25
-
26
- `);return{dom:l,text:m,slice:e}}function xp(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",m=>{e=m(e,i||o,t)}),i)return e?new D(N.from(t.state.schema.text(e.replace(/\r\n?/g,`
27
- `))),0,0):D.empty;let d=t.someProp("clipboardTextParser",m=>m(e,r,o,t));if(d)a=d;else{let m=r.marks(),{schema:f}=t.state,p=zn.fromSchema(f);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(y=>{let h=s.appendChild(document.createElement("p"));y&&h.appendChild(p.serializeNode(f.text(y,m)))})}}else t.someProp("transformPastedHTML",d=>{n=d(n,t)}),s=HS(n),Mr&&VS(s);let u=s&&s.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let d=+c[3];d>0;d--){let m=s.firstChild;for(;m&&m.nodeType!=1;)m=m.nextSibling;if(!m)break;s=m}if(a||(a=(t.someProp("clipboardParser")||t.someProp("domParser")||Kt.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(l||c),context:r,ruleFromNode(m){return m.nodeName=="BR"&&!m.nextSibling&&m.parentNode&&!zS.test(m.parentNode.nodeName)?{ignore:!0}:null}})),c)a=US(Np(a,+c[1],+c[2]),c[4]);else if(a=D.maxOpen(FS(a.content,r),!0),a.openStart||a.openEnd){let d=0,m=0;for(let f=a.content.firstChild;d<a.openStart&&!f.type.spec.isolating;d++,f=f.firstChild);for(let f=a.content.lastChild;m<a.openEnd&&!f.type.spec.isolating;m++,f=f.lastChild);a=Np(a,d,m)}return t.someProp("transformPasted",d=>{a=d(a,t)}),a}const zS=/^(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 FS(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),u;if(!l)return s=null;if(u=s.length&&i.length&&Cp(l,i,a,s[s.length-1],0))s[s.length-1]=u;else{s.length&&(s[s.length-1]=Ep(s[s.length-1],i.length));let c=$p(a,l);s.push(c),r=r.matchType(c.type),i=l}}),s)return N.from(s)}return t}function $p(t,e,n=0){for(let o=e.length-1;o>=n;o--)t=e[o].create(null,N.from(t));return t}function Cp(t,e,n,o,r){if(r<t.length&&r<e.length&&t[r]==e[r]){let i=Cp(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($p(n,t,r+1))))}}function Ep(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,Ep(t.lastChild,e-1)),o=t.contentMatchAt(t.childCount).fillBefore(N.empty,!0);return t.copy(n.append(o))}function eu(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=eu(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 Np(t,e,n){return e<t.openStart&&(t=new D(eu(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new D(eu(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 Ap=null;function Rp(){return Ap||(Ap=document.implementation.createHTMLDocument("title"))}function BS(t){let e=window.trustedTypes;return e?e.createPolicy("detachedDocument",{createHTML:n=>n}).createHTML(t):t}function HS(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=Rp().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=BS(t),r)for(let i=0;i<r.length;i++)n=n.querySelector(r[i])||n;return n}function VS(t){let e=t.querySelectorAll(Me?"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 US(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 D(r,i,s)}const ze={},Fe={},JS={touchstart:!0,touchmove:!0};class _S{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 YS(t){for(let e in ze){let n=ze[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=o=>{WS(t,o)&&!nu(t,o)&&(t.editable||!(o.type in Fe))&&n(t,o)},JS[e]?{passive:!0}:void 0)}Le&&t.dom.addEventListener("input",()=>null),tu(t)}function nn(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function KS(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 tu(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=o=>nu(t,o))})}function nu(t,e){return t.someProp("handleDOMEvents",n=>{let o=n[e.type];return o?o(t,e)||e.defaultPrevented:!1})}function WS(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 qS(t,e){!nu(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,!Dp(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(ht&&Me&&n.keyCode==13)))if(t.domObserver.selectionChanged(t.domSelectionRange())?t.domObserver.flush():n.keyCode!=229&&t.domObserver.forceFlush(),Co&&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))||LS(t,n)?n.preventDefault():nn(t,"key")},Fe.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},Fe.keypress=(t,e)=>{let n=e;if(Dp(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 GS(t,e){let n=e.x-t.clientX,o=e.y-t.clientY;return n*n+o*o<100}function ou(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 Oo(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 QS(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),o=n.nodeAfter;return o&&o.isAtom&&L.isSelectable(o)?(Oo(t,new L(n),"pointer"),!0):!1}function ZS(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?(Oo(t,L.create(t.state.doc,r),"pointer"),!0):!1}function XS(t,e,n,o,r){return ou(t,"handleClickOn",e,n,o)||t.someProp("handleClick",i=>i(t,e,o))||(r?ZS(t,n):QS(t,n))}function ek(t,e,n,o){return ou(t,"handleDoubleClickOn",e,n,o)||t.someProp("handleDoubleClick",r=>r(t,e,o))}function tk(t,e,n,o){return ou(t,"handleTripleClickOn",e,n,o)||t.someProp("handleTripleClick",r=>r(t,e,o))||nk(t,n,o)}function nk(t,e,n){if(n.button!=0)return!1;let o=t.state.doc;if(e==-1)return o.inlineContent?(Oo(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)Oo(t,V.create(o,a+1,a+1+s.content.size),"pointer");else if(L.isSelectable(s))Oo(t,L.create(o,a),"pointer");else continue;return!0}}function ru(t){return Ss(t)}const Mp=et?"metaKey":"ctrlKey";ze.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let o=ru(t),r=Date.now(),i="singleClick";r-t.input.lastClick.time<500&&GS(n,t.input.lastClick)&&!n[Mp]&&(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 ok(t,s,n,!!o)):(i=="doubleClick"?ek:tk)(t,s.pos,s.inside,n)?n.preventDefault():nn(t,"pointer"))};class ok{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[Mp],this.allowDefault=o.shiftKey;let i,s;if(n.inside>-1)i=e.state.doc.nodeAt(n.inside),s=n.inside;else{let c=e.state.doc.resolve(n.pos);i=c.parent,s=c.depth?c.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:u}=e.state;(o.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||u instanceof L&&u.from<=s&&u.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&pt&&!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)),nn(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(()=>It(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?nn(this.view,"pointer"):XS(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Le&&this.mightDrag&&!this.mightDrag.node.isAtom||Me&&!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)?(Oo(this.view,J.near(this.view.state.doc.resolve(n.pos)),"pointer"),e.preventDefault()):nn(this.view,"pointer")}move(e){this.updateAllowDefault(e),nn(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(),ru(t),nn(t,"pointer")},ze.touchmove=t=>{t.input.lastTouch=Date.now(),nn(t,"pointer")},ze.contextmenu=t=>ru(t);function Dp(t,e){return t.composing?!0:Le&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const rk=ht?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),pt&&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}Tp(t,rk)},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++,Tp(t,20))};function Tp(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>Ss(t),e))}function jp(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=sk());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function ik(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=Qw(e.focusNode,e.focusOffset),o=Zw(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 sk(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function Ss(t,e=!1){if(!(ht&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),jp(t),e||t.docView&&t.docView.dirty){let n=ql(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 ak(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 Ir=Ue&&Zt<15||Co&&oS<604;ze.copy=Fe.cut=(t,e)=>{let n=e,o=t.state.selection,r=n.type=="cut";if(o.empty)return;let i=Ir?null:n.clipboardData,s=o.content(),{dom:a,text:l}=bp(t,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",l)):ak(t,a),r&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function lk(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function uk(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?Lr(t,o.value,null,r,e):Lr(t,o.textContent,o.innerHTML,r,e)},50)}function Lr(t,e,n,o,r){let i=xp(t,e,n,o,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,r,i||D.empty)))return!0;if(!i)return!1;let s=lk(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 Pp(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&&!ht)return;let o=Ir?null:n.clipboardData,r=t.input.shiftKey&&t.input.lastKeyCode!=45;o&&Lr(t,Pp(o),o.getData("text/html"),r,n)?n.preventDefault():uk(t,n)};class Ip{constructor(e,n,o){this.slice=e,this.move=n,this.node=o}}const Lp=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 d=t.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=t.docView&&(s=L.create(t.state.doc,d.posBefore))}}let a=(s||t.state.selection).content(),{dom:l,text:u,slice:c}=bp(t,a);(!n.dataTransfer.files.length||!Me||Vf>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Ir?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",Ir||n.dataTransfer.setData("text/plain",u),t.dragging=new Ip(c,!n[Lp],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",p=>{s=p(s,t)}):s=xp(t,Pp(n.dataTransfer),Ir?null:n.dataTransfer.getData("text/html"),!1,i);let a=!!(o&&!n[Lp]);if(t.someProp("handleDrop",p=>p(t,n,s||D.empty,a))){n.preventDefault();return}if(!s)return;n.preventDefault();let l=s?zw(t.state.doc,i.pos,s):i.pos;l==null&&(l=i.pos);let u=t.state.tr;if(a){let{node:p}=o;p?p.replace(u):u.deleteSelection()}let c=u.mapping.map(l),d=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,m=u.doc;if(d?u.replaceRangeWith(c,c,s.content.firstChild):u.replaceRange(c,c,s),u.doc.eq(m))return;let f=u.doc.resolve(c);if(d&&L.isSelectable(s.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(s.content.firstChild))u.setSelection(new L(f));else{let p=u.mapping.map(l);u.mapping.maps[u.mapping.maps.length-1].forEach((y,h,g,w)=>p=w),u.setSelection(Ql(t,f,u.doc.resolve(p)))}t.focus(),t.dispatch(u.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())&&It(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(Me&&ht&&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 zr(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 ks{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 ks&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&zr(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class on{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 on&&zr(this.attrs,e.attrs)&&zr(this.spec,e.spec)}static is(e){return e.type instanceof on}destroy(){}}class iu{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 iu&&zr(this.attrs,e.attrs)&&zr(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 ks(n,o))}static inline(e,n,o,r){return new nt(e,n,new on(o,r))}static node(e,n,o,r){return new nt(e,n,new iu(o,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof on}get widget(){return this.type instanceof ks}}const Ao=[],Jn={};class me{constructor(e,n){this.local=e.length?e:Ao,this.children=n.length?n:Ao}static create(e,n){return n.length?vs(n,e,0,Jn):De}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==De||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?ck(this.children,s||[],e,n,o,r,i):s?new me(s.sort(_n),Ao):De}add(e,n){return n.length?this==De?me.create(e,n):this.addInner(e,n,0):this}addInner(e,n,o){let r,i=0;e.forEach((a,l)=>{let u=l+o,c;if(c=Fp(n,a,u)){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,c,u+1):r.splice(i,0,l,l+a.nodeSize,vs(c,a,u+1,Jn)),i+=3}});let s=zp(i?Bp(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(_n):this.local,r||this.children)}remove(e){return e.length==0||this==De?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 c=0,d;c<e.length;c++)(d=e[c])&&d.from>a&&d.to<l&&(e[c]=null,(s||(s=[])).push(d));if(!s)continue;o==this.children&&(o=this.children.slice());let u=o[i+2].removeInner(s,a+1);u!=De?o[i+2]=u:(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):De}forChild(e,n){if(this==De)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 on){let u=Math.max(i,l.from)-i,c=Math.min(s,l.to)-i;u<c&&(r||(r=[])).push(l.copy(u,c))}}if(r){let a=new me(r.sort(_n),Ao);return o?new rn([a,o]):a}return o||De}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 su(this.localsInner(e))}localsInner(e){if(this==De)return Ao;if(e.inlineContent||!this.local.some(on.is))return this.local;let n=[];for(let o=0;o<this.local.length;o++)this.local[o].type instanceof on||n.push(this.local[o]);return n}forEachSet(e){e(this)}}me.empty=new me([],[]),me.removeOverlap=su;const De=me.empty;class rn{constructor(e){this.members=e}map(e,n){const o=this.members.map(r=>r.map(e,n,Jn));return rn.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!=De&&(i instanceof rn?o=o.concat(i.members):o.push(i))}return rn.from(o)}eq(e){if(!(e instanceof rn)||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?su(o?n:n.sort(_n)):Ao}static from(e){switch(e.length){case 0:return De;case 1:return e[0];default:return new rn(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 ck(t,e,n,o,r,i,s){let a=t.slice();for(let u=0,c=i;u<n.maps.length;u++){let d=0;n.maps[u].forEach((m,f,p,y)=>{let h=y-p-(f-m);for(let g=0;g<a.length;g+=3){let w=a[g+1];if(w<0||m>w+c-d)continue;let k=a[g]+c-d;f>=k?a[g+1]=m<=k?-2:-1:m>=c&&h&&(a[g]+=h,a[g+1]+=h)}d+=h}),c=n.maps[u].map(c,-1)}let l=!1;for(let u=0;u<a.length;u+=3)if(a[u+1]<0){if(a[u+1]==-2){l=!0,a[u+1]=-1;continue}let c=n.map(t[u]+i),d=c-r;if(d<0||d>=o.content.size){l=!0;continue}let m=n.map(t[u+1]+i,-1),f=m-r,{index:p,offset:y}=o.content.findIndex(d),h=o.maybeChild(p);if(h&&y==d&&y+h.nodeSize==f){let g=a[u+2].mapInner(n,h,c+1,t[u]+i+1,s);g!=De?(a[u]=d,a[u+1]=f,a[u+2]=g):(a[u+1]=-2,l=!0)}else l=!0}if(l){let u=dk(a,t,e,n,r,i,s),c=vs(u,o,0,s);e=c.local;for(let d=0;d<a.length;d+=3)a[d+1]<0&&(a.splice(d,3),d-=3);for(let d=0,m=0;d<c.children.length;d+=3){let f=c.children[d];for(;m<a.length&&a[m]<f;)m+=3;a.splice(m,0,c.children[d],c.children[d+1],c.children[d+2])}}return new me(e.sort(_n),a)}function zp(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 dk(t,e,n,o,r,i,s){function a(l,u){for(let c=0;c<l.local.length;c++){let d=l.local[c].map(o,r,u);d?n.push(d):s.onRemove&&s.onRemove(l.local[c].spec)}for(let c=0;c<l.children.length;c+=3)a(l.children[c+2],l.children[c]+u+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 Fp(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 Bp(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 u=Fp(t,a,l+n);if(u){i=!0;let c=vs(u,a,n+l+1,o);c!=De&&r.push(l,l+a.nodeSize,c)}});let s=zp(i?Bp(t):t,-n).sort(_n);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):De}function _n(t,e){return t.from-e.from||t.to-e.to}function su(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),Hp(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),Hp(e,r,o.copy(i.from,o.to)));break}}}return e}function Hp(t,e,n){for(;e<t.length&&_n(n,t[e])>0;)e++;t.splice(e,0,n)}function au(t){let e=[];return t.someProp("decorations",n=>{let o=n(t.state);o&&o!=De&&e.push(o)}),t.cursorWrapper&&e.push(me.create(t.state.doc,[t.cursorWrapper.deco])),rn.from(e)}const mk={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},fk=Ue&&Zt<=11;class pk{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 hk{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new pk,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&&Zt<=11&&o.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),fk&&(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,mk)),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(pp(this.view)){if(this.suppressingSelectionUpdates)return It(this.view);if(Ue&&Zt<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Fn(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,o;for(let i=e.focusNode;i;i=Ar(i))n.add(i);for(let i=e.anchorNode;i;i=Ar(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)&&pp(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 c=0;c<n.length;c++){let d=this.registerMutation(n[c],l);d&&(i=i<0?d.from:Math.min(d.from,i),s=s<0?d.to:Math.max(d.to,s),d.typeOver&&(a=!0))}if(pt&&l.length){let c=l.filter(d=>d.nodeName=="BR");if(c.length==2){let[d,m]=c;d.parentNode&&d.parentNode.parentNode==m.parentNode?m.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let m of c){let f=m.parentNode;f&&f.nodeName=="LI"&&(!d||wk(e,d)!=f)&&m.remove()}}}let u=null;i<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&ps(o)&&(u=ql(e))&&u.eq(J.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,It(e),this.currentSelection.set(o),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,s),gk(e)),this.handleDOMChange(i,s,a,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(o)||It(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 c=0;c<e.addedNodes.length;c++){let d=e.addedNodes[c];n.push(d),d.nodeType==3&&(this.lastChangedTextNode=d)}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&&Zt<=11&&e.addedNodes.length)for(let c=0;c<e.addedNodes.length;c++){let{previousSibling:d,nextSibling:m}=e.addedNodes[c];(!d||Array.prototype.indexOf.call(e.addedNodes,d)<0)&&(r=d),(!m||Array.prototype.indexOf.call(e.addedNodes,m)<0)&&(i=m)}let s=r&&r.parentNode==e.target?xe(r)+1:0,a=o.localPosFromDOM(e.target,s,-1),l=i&&i.parentNode==e.target?xe(i):e.target.childNodes.length,u=o.localPosFromDOM(e.target,l,1);return{from:a,to:u}}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 Vp=new WeakMap,Up=!1;function gk(t){if(!Vp.has(t)&&(Vp.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=pt,Up)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."),Up=!0}}function Jp(t,e){let n=e.startContainer,o=e.startOffset,r=e.endContainer,i=e.endOffset,s=t.domAtPos(t.state.selection.anchor);return Fn(s.node,s.offset,r,i)&&([n,o,r,i]=[r,i,n,o]),{anchorNode:n,anchorOffset:o,focusNode:r,focusOffset:i}}function yk(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return Jp(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?Jp(t,n):null}function wk(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 Sk(t,e,n){let{node:o,fromOffset:r,toOffset:i,from:s,to:a}=t.docView.parseRange(e,n),l=t.domSelectionRange(),u,c=l.anchorNode;if(c&&t.dom.contains(c.nodeType==1?c:c.parentNode)&&(u=[{node:c,offset:l.anchorOffset}],ps(l)||u.push({node:l.focusNode,offset:l.focusOffset})),Me&&t.input.lastKeyCode===8)for(let h=i;h>r;h--){let g=o.childNodes[h-1],w=g.pmViewDesc;if(g.nodeName=="BR"&&!w){i=h;break}if(!w||w.size)break}let d=t.state.doc,m=t.someProp("domParser")||Kt.fromSchema(t.state.schema),f=d.resolve(s),p=null,y=m.parse(o,{topNode:f.parent,topMatch:f.parent.contentMatchAt(f.index()),topOpen:!0,from:r,to:i,preserveWhitespace:f.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:kk,context:f});if(u&&u[0].pos!=null){let h=u[0].pos,g=u[1]&&u[1].pos;g==null&&(g=h),p={anchor:h+s,head:g+s}}return{doc:y,sel:p,from:s,to:a}}function kk(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 vk=/^(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 bk(t,e,n,o,r){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let C=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,_=ql(t,C);if(_&&!t.state.selection.eq(_)){if(Me&&ht&&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(_);C=="pointer"?se.setMeta("pointer",!0):C=="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,u=Sk(t,e,n),c=t.state.doc,d=c.slice(u.from,u.to),m,f;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(m=t.state.selection.to,f="end"):(m=t.state.selection.from,f="start"),t.input.lastKeyCode=null;let p=Ck(d.content,u.doc.content,u.from,m,f);if(p&&t.input.domChangeCount++,(Co&&t.input.lastIOSEnter>Date.now()-225||ht)&&r.some(C=>C.nodeType==1&&!vk.test(C.nodeName))&&(!p||p.endA>=p.endB)&&t.someProp("handleKeyDown",C=>C(t,Bn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!p)if(o&&l instanceof V&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))p={start:l.from,endA:l.to,endB:l.to};else{if(u.sel){let C=_p(t,t.state.doc,u.sel);if(C&&!C.eq(t.state.selection)){let _=t.state.tr.setSelection(C);i&&_.setMeta("composition",i),t.dispatch(_)}}return}t.state.selection.from<t.state.selection.to&&p.start==p.endB&&t.state.selection instanceof V&&(p.start>t.state.selection.from&&p.start<=t.state.selection.from+2&&t.state.selection.from>=u.from?p.start=t.state.selection.from:p.endA<t.state.selection.to&&p.endA>=t.state.selection.to-2&&t.state.selection.to<=u.to&&(p.endB+=t.state.selection.to-p.endA,p.endA=t.state.selection.to)),Ue&&Zt<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>u.from&&u.doc.textBetween(p.start-u.from-1,p.start-u.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let y=u.doc.resolveNoCache(p.start-u.from),h=u.doc.resolveNoCache(p.endB-u.from),g=c.resolve(p.start),w=y.sameParent(h)&&y.parent.inlineContent&&g.end()>=p.endA,k;if((Co&&t.input.lastIOSEnter>Date.now()-225&&(!w||r.some(C=>C.nodeName=="DIV"||C.nodeName=="P"))||!w&&y.pos<u.doc.content.size&&!y.sameParent(h)&&(k=J.findFrom(u.doc.resolve(y.pos+1),1,!0))&&k.head==h.pos)&&t.someProp("handleKeyDown",C=>C(t,Bn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>p.start&&$k(c,p.start,p.endA,y,h)&&t.someProp("handleKeyDown",C=>C(t,Bn(8,"Backspace")))){ht&&Me&&t.domObserver.suppressSelectionUpdates();return}Me&&ht&&p.endB==p.start&&(t.input.lastAndroidDelete=Date.now()),ht&&!w&&y.start()!=h.start()&&h.parentOffset==0&&y.depth==h.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==p.endA&&(p.endB-=2,h=u.doc.resolveNoCache(p.endB-u.from),setTimeout(()=>{t.someProp("handleKeyDown",function(C){return C(t,Bn(13,"Enter"))})},20));let b=p.start,E=p.endA,v,$,R;if(w){if(y.pos==h.pos)Ue&&Zt<=11&&y.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>It(t),20)),v=t.state.tr.delete(b,E),$=c.resolve(p.start).marksAcross(c.resolve(p.endA));else if(p.endA==p.endB&&(R=xk(y.parent.content.cut(y.parentOffset,h.parentOffset),g.parent.content.cut(g.parentOffset,p.endA-g.start()))))v=t.state.tr,R.type=="add"?v.addMark(b,E,R.mark):v.removeMark(b,E,R.mark);else if(y.parent.child(y.index()).isText&&y.index()==h.index()-(h.textOffset?0:1)){let C=y.parent.textBetween(y.parentOffset,h.parentOffset);if(t.someProp("handleTextInput",_=>_(t,b,E,C)))return;v=t.state.tr.insertText(C,b,E)}}if(v||(v=t.state.tr.replace(b,E,u.doc.slice(p.start-u.from,p.endB-u.from))),u.sel){let C=_p(t,v.doc,u.sel);C&&!(Me&&ht&&t.composing&&C.empty&&(p.start!=p.endB||t.input.lastAndroidDelete<Date.now()-100)&&(C.head==b||C.head==v.mapping.map(E)-1)||Ue&&C.empty&&C.head==b)&&v.setSelection(C)}$&&v.ensureMarks($),i&&v.setMeta("composition",i),t.dispatch(v.scrollIntoView())}function _p(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:Ql(t,e.resolve(n.anchor),e.resolve(n.head))}function xk(t,e){let n=t.firstChild.marks,o=e.firstChild.marks,r=n,i=o,s,a,l;for(let c=0;c<o.length;c++)r=o[c].removeFromSet(r);for(let c=0;c<n.length;c++)i=n[c].removeFromSet(i);if(r.length==1&&i.length==0)a=r[0],s="add",l=c=>c.mark(a.addToSet(c.marks));else if(r.length==0&&i.length==1)a=i[0],s="remove",l=c=>c.mark(a.removeFromSet(c.marks));else return null;let u=[];for(let c=0;c<e.childCount;c++)u.push(l(e.child(c)));if(N.from(u).eq(t))return{mark:a,type:s}}function $k(t,e,n,o,r){if(n-e<=r.pos-o.pos||lu(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(lu(i,!0,!0));return!s.parent.isTextblock||s.pos>n||lu(s,!0,!1)<n?!1:o.parent.content.cut(o.parentOffset).eq(s.parent.content)}function lu(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 Ck(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&&Yp(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&&Yp(t.textBetween(i-1,i+1))&&(i+=l?1:-1),s=i+(s-a),a=i}return{start:i,endA:s,endB:a}}function Yp(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 Ek{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 _S,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(Qp),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=qp(this),Wp(this),this.nodeViews=Gp(this),this.docView=np(this.state.doc,Kp(this),au(this),this.dom,this),this.domObserver=new hk(this,(o,r,i,s)=>bk(this,o,r,i,s)),this.domObserver.start(),YS(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&&tu(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Qp),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&&(jp(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 f=Gp(this);Ok(f,this.nodeViews)&&(this.nodeViews=f,i=!0)}(a||n.handleDOMEvents!=this._props.handleDOMEvents)&&tu(this),this.editable=qp(this),Wp(this);let l=au(this),u=Kp(this),c=r.plugins!=e.plugins&&!r.doc.eq(e.doc)?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",d=i||!this.docView.matchesNode(e.doc,u,l);(d||!e.selection.eq(r.selection))&&(s=!0);let m=c=="preserve"&&s&&this.dom.style.overflowAnchor==null&&sS(this);if(s){this.domObserver.stop();let f=d&&(Ue||Me)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&Nk(r.selection,e.selection);if(d){let p=Me?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=ik(this)),(i||!this.docView.update(e.doc,u,l,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=np(e.doc,u,l,this.dom,this)),p&&!this.trackWrites&&(f=!0)}f||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&RS(this))?It(this,f):(mp(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),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():m&&aS(m)}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&&Uf(this,n.getBoundingClientRect(),e)}else Uf(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 Ip(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&&lS(this.dom),It(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 fS(this,e)}coordsAtPos(e,n=1){return qf(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 wS(this,n||this.state,e)}pasteHTML(e,n){return Lr(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Lr(this,e,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(KS(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],au(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,qw())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return qS(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&&eS(this.dom.ownerDocument)==this.dom&&yk(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function Kp(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 Wp(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 qp(t){return!t.someProp("editable",e=>e(t.state)===!1)}function Nk(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 Gp(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 Ok(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 Qp(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 sn={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},bs={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Ak=typeof navigator<"u"&&/Mac/.test(navigator.platform),Rk=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),$e=0;$e<10;$e++)sn[48+$e]=sn[96+$e]=String($e);for(var $e=1;$e<=24;$e++)sn[$e+111]="F"+$e;for(var $e=65;$e<=90;$e++)sn[$e]=String.fromCharCode($e+32),bs[$e]=String.fromCharCode($e);for(var uu in sn)bs.hasOwnProperty(uu)||(bs[uu]=sn[uu]);function Mk(t){var e=Ak&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||Rk&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?bs:sn)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const Dk=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function Tk(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))Dk?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 jk(t){let e=Object.create(null);for(let n in t)e[Tk(n)]=t[n];return e}function cu(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 Pk(t){return new Ve({props:{handleKeyDown:Ik(t)}})}function Ik(t){let e=jk(t);return function(n,o){let r=Mk(o),i,s=e[cu(r,o)];if(s&&s(n.state,n.dispatch,n))return!0;if(r.length==1&&r!=" "){if(o.shiftKey){let a=e[cu(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=sn[o.keyCode])&&i!=r){let a=e[cu(i,o)];if(a&&a(n.state,n.dispatch,n))return!0}}return!1}}const Lk=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function Zp(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const zk=(t,e,n)=>{let o=Zp(t,n);if(!o)return!1;let r=du(o);if(!r){let s=o.blockRange(),a=s&&So(s);return a==null?!1:(e&&e(t.tr.lift(s,a).scrollIntoView()),!0)}let i=r.nodeBefore;if(nh(t,r,e,-1))return!0;if(o.parent.content.size==0&&(Ro(i,"end")||L.isSelectable(i)))for(let s=o.depth;;s--){let a=ds(t.doc,o.before(s),o.after(s),D.empty);if(a&&a.slice.size<a.to-a.from){if(e){let l=t.tr.step(a);l.setSelection(Ro(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},Fk=(t,e,n)=>{let o=Zp(t,n);if(!o)return!1;let r=du(o);return r?Xp(t,r,e):!1},Bk=(t,e,n)=>{let o=eh(t,n);if(!o)return!1;let r=mu(o);return r?Xp(t,r,e):!1};function Xp(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 c=r.lastChild;if(!c)return!1;r=c}let s=e.nodeAfter,a=s,l=e.pos+1;for(;!a.isTextblock;l++){if(a.type.spec.isolating)return!1;let c=a.firstChild;if(!c)return!1;a=c}let u=ds(t.doc,i,l,D.empty);if(!u||u.from!=i||u instanceof he&&u.slice.size>=l-i)return!1;if(n){let c=t.tr.step(u);c.setSelection(V.create(c.doc,i)),n(c.scrollIntoView())}return!0}function Ro(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 Hk=(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=du(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 du(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 eh(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const Vk=(t,e,n)=>{let o=eh(t,n);if(!o)return!1;let r=mu(o);if(!r)return!1;let i=r.nodeAfter;if(nh(t,r,e,1))return!0;if(o.parent.content.size==0&&(Ro(i,"start")||L.isSelectable(i))){let s=ds(t.doc,o.before(),o.after(),D.empty);if(s&&s.slice.size<s.to-s.from){if(e){let a=t.tr.step(s);a.setSelection(Ro(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},Uk=(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=mu(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 mu(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 Jk=(t,e)=>{let n=t.selection,o=n instanceof L,r;if(o){if(n.node.isTextblock||!Gt(t.doc,n.from))return!1;r=n.from}else if(r=cs(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},_k=(t,e)=>{let n=t.selection,o;if(n instanceof L){if(n.node.isTextblock||!Gt(t.doc,n.to))return!1;o=n.to}else if(o=cs(t.doc,n.to,1),o==null)return!1;return e&&e(t.tr.join(o).scrollIntoView()),!0},Yk=(t,e)=>{let{$from:n,$to:o}=t.selection,r=n.blockRange(o),i=r&&So(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)},Kk=(t,e)=>{let{$head:n,$anchor:o}=t.selection;return!n.parent.type.spec.code||!n.sameParent(o)?!1:(e&&e(t.tr.insertText(`
28
- `).scrollIntoView()),!0)};function th(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 Wk=(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=th(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},qk=(t,e)=>{let n=t.selection,{$from:o,$to:r}=n;if(n instanceof mt||o.parent.inlineContent||r.parent.inlineContent)return!1;let i=th(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},Gk=(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(ko(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let o=n.blockRange(),r=o&&So(o);return r==null?!1:(e&&e(t.tr.lift(o,r).scrollIntoView()),!0)},Qk=(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 Zk(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||Gt(t.doc,e.pos))?!1:(n&&n(t.tr.clearIncompatible(e.pos,o.type,o.contentMatchAt(o.childCount)).join(e.pos).scrollIntoView()),!0)}function nh(t,e,n,o){let r=e.nodeBefore,i=e.nodeAfter,s,a,l=r.type.spec.isolating||i.type.spec.isolating;if(!l&&Zk(t,e,n))return!0;let u=!l&&e.parent.canReplace(e.index(),e.index()+1);if(u&&(s=(a=r.contentMatchAt(r.childCount)).findWrapping(i.type))&&a.matchType(s[0]||i.type).validEnd){if(n){let f=e.pos+i.nodeSize,p=N.empty;for(let g=s.length-1;g>=0;g--)p=N.from(s[g].create(null,p));p=N.from(r.copy(p));let y=t.tr.step(new ge(e.pos-1,f,e.pos,f,new D(p,1,0),s.length,!0)),h=f+2*s.length;Gt(y.doc,h)&&y.join(h),n(y.scrollIntoView())}return!0}let c=i.type.spec.isolating||o>0&&l?null:J.findFrom(e,1),d=c&&c.$from.blockRange(c.$to),m=d&&So(d);if(m!=null&&m>=e.depth)return n&&n(t.tr.lift(d,m).scrollIntoView()),!0;if(u&&Ro(i,"start",!0)&&Ro(r,"end")){let f=r,p=[];for(;p.push(f),!f.isTextblock;)f=f.lastChild;let y=i,h=1;for(;!y.isTextblock;y=y.firstChild)h++;if(f.canReplace(f.childCount,f.childCount,y.content)){if(n){let g=N.empty;for(let k=p.length-1;k>=0;k--)g=N.from(p[k].copy(g));let w=t.tr.step(new ge(e.pos-p.length,e.pos+i.nodeSize,e.pos+h,e.pos+i.nodeSize-h,new D(g,p.length,0),0,!0));n(w.scrollIntoView())}return!0}}return!1}function oh(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 Xk=oh(-1),ev=oh(1);function tv(t,e=null){return function(n,o){let{$from:r,$to:i}=n.selection,s=r.blockRange(i),a=s&&jl(s,t,e);return a?(o&&o(n.tr.wrap(s,a).scrollIntoView()),!0):!1}}function rh(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,u)=>{if(r)return!1;if(!(!l.isTextblock||l.hasMarkup(t,e)))if(l.type==t)r=!0;else{let c=n.doc.resolve(u),d=c.index();r=c.parent.canReplaceWith(d,d+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 nv(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 c=n.doc.resolve(s.start-2);l=new ts(c,c,s.depth),s.endIndex<s.parent.childCount&&(s=new ts(r,n.doc.resolve(i.end(s.depth)),s.depth)),a=!0}let u=jl(l,t,e,s);return u?(o&&o(ov(n.tr,s,u,a,t).scrollIntoView()),!0):!1}}function ov(t,e,n,o,r){let i=N.empty;for(let c=n.length-1;c>=0;c--)i=N.from(n[c].type.create(n[c].attrs,i));t.step(new ge(e.start-(o?2:0),e.end,e.start,e.end,new D(i,0,0),n.length,!0));let s=0;for(let c=0;c<n.length;c++)n[c].type==r&&(s=c+1);let a=n.length-s,l=e.start+n.length-(o?2:0),u=e.parent;for(let c=e.startIndex,d=e.endIndex,m=!0;c<d;c++,m=!1)!m&&ko(t.doc,l,a)&&(t.split(l,a),l+=2*a),l+=u.child(c).nodeSize;return t}function rv(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?iv(e,n,t,i):sv(e,n,i):!0:!1}}function iv(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 D(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=So(o);if(a==null)return!1;r.lift(o,a);let l=r.mapping.map(i,-1)-1;return Gt(r.doc,l)&&r.join(l),e(r.scrollIntoView()),!0}function sv(t,e,n){let o=t.tr,r=n.parent;for(let f=n.end,p=n.endIndex-1,y=n.startIndex;p>y;p--)f-=r.child(p).nodeSize,o.delete(f-1,f+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,u=i.node(-1),c=i.index(-1);if(!u.canReplace(c+(a?0:1),c+1,s.content.append(l?N.empty:N.from(r))))return!1;let d=i.pos,m=d+s.nodeSize;return o.step(new ge(d-(a?1:0),m+(l?1:0),d+1,m-1,new D((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 av(t){return function(e,n){let{$from:o,$to:r}=e.selection,i=o.blockRange(r,u=>u.childCount>0&&u.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 u=l.lastChild&&l.lastChild.type==a.type,c=N.from(u?t.create():null),d=new D(N.from(t.create(null,N.from(a.type.create(null,c)))),u?3:1,0),m=i.start,f=i.end;n(e.tr.step(new ge(m-(u?3:1),f,m,f,d,1,!0)).scrollIntoView())}return!0}}function xs(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,(...c)=>{const d=l(...c)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(i),d}]))}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,u=e||i.tr,c=()=>(!l&&n&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(u),a.every(m=>m===!0)),d={...Object.fromEntries(Object.entries(o).map(([m,f])=>[m,(...y)=>{const h=this.buildProps(u,n),g=f(...y)(h);return a.push(g),d}])),run:c};return d}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,u])=>[l,(...c)=>u(...c)({...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:xs({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,u])=>[l,(...c)=>u(...c)(a)]))}};return a}}let lv=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 ih(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(c=>{c.types.forEach(d=>{Object.entries(c.attributes).forEach(([m,f])=>{e.push({type:d,name:m,attribute:{...i,...f}})})})})}),r.forEach(s=>{const a={name:s.name,options:s.options,storage:s.storage},l=j(s,"addAttributes",a);if(!l)return;const u=l();Object.entries(u).forEach(([c,d])=>{const m={...i,...d};typeof(m==null?void 0:m.default)=="function"&&(m.default=m.default()),m!=null&&m.isRequired&&(m==null?void 0:m.default)===void 0&&delete m.default,e.push({type:s.name,name:c,attribute:m})})}),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(" "):[],u=a.filter(c=>!l.includes(c));o[r]=[...l,...u].join(" ")}else if(r==="style"){const a=i?i.split(";").map(c=>c.trim()).filter(Boolean):[],l=o[r]?o[r].split(";").map(c=>c.trim()).filter(Boolean):[],u=new Map;l.forEach(c=>{const[d,m]=c.split(":").map(f=>f.trim());u.set(d,m)}),a.forEach(c=>{const[d,m]=c.split(":").map(f=>f.trim());u.set(d,m)}),o[r]=Array.from(u.entries()).map(([c,d])=>`${c}: ${d}`).join("; ")}else o[r]=i}),o},{})}function fu(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 sh(t){return typeof t=="function"}function Y(t,e=void 0,...n){return sh(t)?e?t.bind(e)(...n):t(...n):t}function uv(t={}){return Object.keys(t).length===0&&t.constructor===Object}function cv(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function ah(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):cv(n.getAttribute(s.name));return a==null?i:{...i,[s.name]:a}},{});return{...o,...r}}}}function lh(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&uv(n)?!1:n!=null))}function dv(t,e){var n;const o=ih(t),{nodeExtensions:r,markExtensions:i}=Cs(t),s=(n=r.find(u=>j(u,"topNode")))===null||n===void 0?void 0:n.name,a=Object.fromEntries(r.map(u=>{const c=o.filter(g=>g.type===u.name),d={name:u.name,options:u.options,storage:u.storage,editor:e},m=t.reduce((g,w)=>{const k=j(w,"extendNodeSchema",d);return{...g,...k?k(u):{}}},{}),f=lh({...m,content:Y(j(u,"content",d)),marks:Y(j(u,"marks",d)),group:Y(j(u,"group",d)),inline:Y(j(u,"inline",d)),atom:Y(j(u,"atom",d)),selectable:Y(j(u,"selectable",d)),draggable:Y(j(u,"draggable",d)),code:Y(j(u,"code",d)),whitespace:Y(j(u,"whitespace",d)),defining:Y(j(u,"defining",d)),isolating:Y(j(u,"isolating",d)),attrs:Object.fromEntries(c.map(g=>{var w;return[g.name,{default:(w=g==null?void 0:g.attribute)===null||w===void 0?void 0:w.default}]}))}),p=Y(j(u,"parseHTML",d));p&&(f.parseDOM=p.map(g=>ah(g,c)));const y=j(u,"renderHTML",d);y&&(f.toDOM=g=>y({node:g,HTMLAttributes:fu(g,c)}));const h=j(u,"renderText",d);return h&&(f.toText=h),[u.name,f]})),l=Object.fromEntries(i.map(u=>{const c=o.filter(h=>h.type===u.name),d={name:u.name,options:u.options,storage:u.storage,editor:e},m=t.reduce((h,g)=>{const w=j(g,"extendMarkSchema",d);return{...h,...w?w(u):{}}},{}),f=lh({...m,inclusive:Y(j(u,"inclusive",d)),excludes:Y(j(u,"excludes",d)),group:Y(j(u,"group",d)),spanning:Y(j(u,"spanning",d)),code:Y(j(u,"code",d)),attrs:Object.fromEntries(c.map(h=>{var g;return[h.name,{default:(g=h==null?void 0:h.attribute)===null||g===void 0?void 0:g.default}]}))}),p=Y(j(u,"parseHTML",d));p&&(f.parseDOM=p.map(h=>ah(h,c)));const y=j(u,"renderHTML",d);return y&&(f.toDOM=h=>y({mark:h,HTMLAttributes:fu(h,c)})),[u.name,f]}));return new af({topNode:s,nodes:a,marks:l})}function pu(t,e){return e.nodes[t]||e.marks[t]||null}function uh(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}const mv=(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,u;const c=((u=(l=r.type.spec).toText)===null||u===void 0?void 0:u.call(l,{node:r,pos:i,parent:s,index:a}))||r.textContent||"%leaf%";n+=r.isAtom&&!r.isText?c:c.slice(0,Math.max(0,o-i))}),n};function hu(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class fv{constructor(e){this.find=e.find,this.handler=e.handler}}const pv=(t,e)=>{if(hu(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 u=l.state.doc.resolve(o);if(u.parent.type.spec.code||!((e=u.nodeBefore||u.nodeAfter)===null||e===void 0)&&e.marks.find(m=>m.type.spec.code))return!1;let c=!1;const d=mv(u)+i;return s.forEach(m=>{if(c)return;const f=pv(d,m.find);if(!f)return;const p=l.state.tr,y=xs({state:l.state,transaction:p}),h={from:o-(f[0].length-i.length),to:r},{commands:g,chain:w,can:k}=new $s({editor:n,state:y});m.handler({state:y,range:h,match:f,commands:g,chain:w,can:k})===null||!p.steps.length||(p.setMeta(a,{transform:p,from:o,to:r,text:i}),l.dispatch(p),c=!0)}),c}function hv(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:u,text:c}=a,d=u+c.length;Es({editor:e,from:u,to:d,text:c,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:`
29
- `,rules:n,plugin:o}):!1}},isInputRules:!0});return o}function gv(t){return Object.prototype.toString.call(t).slice(8,-1)}function Ns(t){return gv(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function Os(t,e){const n={...t};return Ns(t)&&Ns(e)&&Object.keys(e).forEach(o=>{Ns(e[o])&&Ns(t[o])?n[o]=Os(t[o],e[o]):n[o]=e[o]}),n}class Fr{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 Fr(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Os(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new Fr(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(u=>(u==null?void 0:u.type.name)===n.name))return!1;const l=s.find(u=>(u==null?void 0:u.type.name)===n.name);return l&&o.removeStoredMark(l),o.insertText(" ",r.pos),e.view.dispatch(o),!0}return!1}}function yv(t){return typeof t=="number"}class wv{constructor(e){this.find=e.find,this.handler=e.handler}}const Sv=(t,e,n)=>{if(hu(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 kv(t){const{editor:e,state:n,from:o,to:r,rule:i,pasteEvent:s,dropEvent:a}=t,{commands:l,chain:u,can:c}=new $s({editor:e,state:n}),d=[];return n.doc.nodesBetween(o,r,(f,p)=>{if(!f.isTextblock||f.type.spec.code)return;const y=Math.max(o,p),h=Math.min(r,p+f.content.size),g=f.textBetween(y-p,h-p,void 0,"");Sv(g,i.find,s).forEach(k=>{if(k.index===void 0)return;const b=y+k.index+1,E=b+k[0].length,v={from:n.tr.mapping.map(b),to:n.tr.mapping.map(E)},$=i.handler({state:n,range:v,match:k,commands:l,chain:u,can:c,pasteEvent:s,dropEvent:a});d.push($)})}),d.every(f=>f!==null)}const vv=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 bv(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:c,from:d,to:m,rule:f,pasteEvt:p})=>{const y=c.tr,h=xs({state:c,transaction:y});if(!(!kv({editor:e,state:h,from:Math.max(d-1,0),to:m.b-1,rule:f,pasteEvent:p,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(c=>new Ve({view(d){const m=f=>{var p;o=!((p=d.dom.parentElement)===null||p===void 0)&&p.contains(f.target)?d.dom.parentElement:null};return window.addEventListener("dragstart",m),{destroy(){window.removeEventListener("dragstart",m)}}},props:{handleDOMEvents:{drop:(d,m)=>(i=o===d.dom.parentElement,a=m,!1),paste:(d,m)=>{var f;const p=(f=m.clipboardData)===null||f===void 0?void 0:f.getData("text/html");return s=m,r=!!(p!=null&&p.includes("data-pm-slice")),!1}}},appendTransaction:(d,m,f)=>{const p=d[0],y=p.getMeta("uiEvent")==="paste"&&!r,h=p.getMeta("uiEvent")==="drop"&&!i,g=p.getMeta("applyPasteRules"),w=!!g;if(!y&&!h&&!w)return;if(w){const{from:E,text:v}=g,$=E+v.length,R=vv(v);return l({rule:c,state:f,from:E,to:{b:$},pasteEvt:R})}const k=m.doc.content.findDiffStart(f.doc.content),b=m.doc.content.findDiffEnd(f.doc.content);if(!(!yv(k)||!b||k===b.b))return l({rule:c,state:f,from:k,to:b,pasteEvt:s})}}))}function xv(t){const e=t.filter((n,o)=>t.indexOf(n)!==o);return Array.from(new Set(e))}class Do{constructor(e,n){this.splittableMarks=[],this.editor=n,this.extensions=Do.resolve(e),this.schema=dv(this.extensions,n),this.setupExtensions()}static resolve(e){const n=Do.sort(Do.flatten(e)),o=xv(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:pu(n.name,this.schema)},r=j(n,"addCommands",o);return r?{...e,...r()}:e},{})}get plugins(){const{editor:e}=this,n=Do.sort([...this.extensions].reverse()),o=[],r=[],i=n.map(s=>{const a={name:s.name,options:s.options,storage:s.storage,editor:e,type:pu(s.name,this.schema)},l=[],u=j(s,"addKeyboardShortcuts",a);let c={};if(s.type==="mark"&&j(s,"exitable",a)&&(c.ArrowRight=()=>Fr.handleExit({editor:e,mark:s})),u){const y=Object.fromEntries(Object.entries(u()).map(([h,g])=>[h,()=>g({editor:e})]));c={...c,...y}}const d=Pk(c);l.push(d);const m=j(s,"addInputRules",a);uh(s,e.options.enableInputRules)&&m&&o.push(...m());const f=j(s,"addPasteRules",a);uh(s,e.options.enablePasteRules)&&f&&r.push(...f());const p=j(s,"addProseMirrorPlugins",a);if(p){const y=p();l.push(...y)}return l}).flat();return[hv({editor:e,rules:o}),...bv({editor:e,rules:r}),...i]}get attributes(){return ih(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,u,c,d,m)=>{const f=fu(l,r);return s()({node:l,view:u,getPos:c,decorations:d,innerDecorations:m,editor:e,extension:o,HTMLAttributes:f})};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:pu(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),u=j(e,"onFocus",o),c=j(e,"onBlur",o),d=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),u&&this.editor.on("focus",u),c&&this.editor.on("blur",c),d&&this.editor.on("destroy",d)})}}class ot{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 ot(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Os(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new ot({...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 ch(t,e,n){const{from:o,to:r}=e,{blockSeparator:i=`
30
-
31
- `,textSerializers:s={}}=n||{};let a="";return t.nodesBetween(o,r,(l,u,c,d)=>{var m;l.isBlock&&u>o&&(a+=i);const f=s==null?void 0:s[l.type.name];if(f)return c&&(a+=f({node:l,pos:u,parent:c,index:d,range:e})),!1;l.isText&&(a+=(m=l==null?void 0:l.text)===null||m===void 0?void 0:m.slice(Math.max(o,u)-u,r-u))}),a}function dh(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}const $v=ot.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Ve({key:new ft("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(c=>c.$from.pos)),a=Math.max(...i.map(c=>c.$to.pos)),l=dh(n);return ch(o,{from:s,to:a},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),Cv=()=>({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),Ev=(t=!1)=>({commands:e})=>e.setContent("",t),Nv=()=>({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:u,mapping:c}=e,d=u.resolve(c.map(l)),m=u.resolve(c.map(l+a.nodeSize)),f=d.blockRange(m);if(!f)return;const p=So(f);if(a.type.isTextblock){const{defaultType:y}=d.parent.contentMatchAt(d.index());e.setNodeMarkup(f.start,y)}(p||p===0)&&e.lift(f,p)})}),!0},Ov=t=>e=>t(e),Av=()=>({state:t,dispatch:e})=>qk(t,e),Rv=(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},Mv=()=>({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},Dv=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),u=i.after(s);e.delete(l,u).scrollIntoView()}return!0}return!1},Tv=t=>({tr:e,dispatch:n})=>{const{from:o,to:r}=t;return n&&e.delete(o,r),!0},jv=()=>({state:t,dispatch:e})=>Lk(t,e),Pv=()=>({commands:t})=>t.keyboardShortcut("Enter"),Iv=()=>({state:t,dispatch:e})=>Wk(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]:hu(e[r])?e[r].test(t[r]):e[r]===t[r]):!0}function gu(t,e,n={}){return t.find(o=>o.type===e&&As(o.attrs,n))}function Lv(t,e,n={}){return!!gu(t,e,n)}function yu(t,e,n={}){if(!t||!e)return;let o=t.parent.childAfter(t.parentOffset);if((!o.node||!o.node.marks.some(u=>u.type===e))&&(o=t.parent.childBefore(t.parentOffset)),!o.node||!o.node.marks.some(u=>u.type===e))return;const r=gu([...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(gu([...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&&Lv([...t.parent.child(a).marks],e,n);)l+=t.parent.child(a).nodeSize,a+=1;return{from:s,to:l}}function an(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 zv=(t,e={})=>({tr:n,state:o,dispatch:r})=>{const i=an(t,o.schema),{doc:s,selection:a}=n,{$from:l,from:u,to:c}=a;if(r){const d=yu(l,i,e);if(d&&d.from<=u&&d.to>=c){const m=V.create(s,d.from,d.to);n.setSelection(m)}}return!0},Fv=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 mh(t){return t instanceof V}function Yn(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function fh(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,Yn(0,r,i),Yn(t.content.size,r,i)):V.create(t,Yn(e,r,i),Yn(e,r,i))}function wu(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const Bv=(t=null,e={})=>({editor:n,view:o,tr:r,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{wu()&&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&&!mh(n.state.selection))return s(),!0;const a=fh(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},Hv=(t,e)=>n=>t.every((o,r)=>e(o,{...n,index:r})),Vv=(t,e)=>({tr:n,commands:o})=>o.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),ph=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&&ph(o)}return t};function Rs(t){const e=`<body>${t}</body>`,n=new window.DOMParser().parseFromString(e,"text/html").body;return ph(n)}function Ms(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),Ms("",e,n)}if(r){if(n.errorOnInvalidContent){let s=!1,a="";const l=new af({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:u=>(s=!0,a=typeof u=="string"?u:u.outerHTML,null)}]}})});if(n.slice?Kt.fromSchema(l).parseSlice(Rs(t),n.parseOptions):Kt.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=Kt.fromSchema(e);return n.slice?i.parseSlice(Rs(t),n.parseOptions).content:i.parse(Rs(t),n.parseOptions)}return Ms("",e,n)}function Uv(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,u,c)=>{s===0&&(s=c)}),t.setSelection(J.near(t.doc.resolve(s),n))}const Jv=t=>!("type"in t),_v=(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=Ms(e,i.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions},errorOnInvalidContent:(s=n.errorOnInvalidContent)!==null&&s!==void 0?s:i.options.enableContentCheck})}catch(p){return i.emit("contentError",{editor:i,error:p,disableCollaboration:()=>{i.storage.collaboration&&(i.storage.collaboration.isDisabled=!0)}}),!1}let{from:l,to:u}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},c=!0,d=!0;if((Jv(a)?a:[a]).forEach(p=>{p.check(),c=c?p.isText&&p.marks.length===0:!1,d=d?p.isBlock:!1}),l===u&&d){const{parent:p}=o.doc.resolve(l);p.isTextblock&&!p.type.spec.code&&!p.childCount&&(l-=1,u+=1)}let f;c?(Array.isArray(e)?f=e.map(p=>p.text||"").join(""):typeof e=="object"&&e&&e.text?f=e.text:f=e,o.insertText(f,l,u)):(f=a,o.replaceWith(l,u,f)),n.updateSelection&&Uv(o,o.steps.length-1,-1),n.applyInputRules&&o.setMeta("applyInputRules",{from:l,text:f}),n.applyPasteRules&&o.setMeta("applyPasteRules",{from:l,text:f})}return!0},Yv=()=>({state:t,dispatch:e})=>Jk(t,e),Kv=()=>({state:t,dispatch:e})=>_k(t,e),Wv=()=>({state:t,dispatch:e})=>zk(t,e),qv=()=>({state:t,dispatch:e})=>Vk(t,e),Gv=()=>({state:t,dispatch:e,tr:n})=>{try{const o=cs(t.doc,t.selection.$from.pos,-1);return o==null?!1:(n.join(o,2),e&&e(n),!0)}catch{return!1}},Qv=()=>({state:t,dispatch:e,tr:n})=>{try{const o=cs(t.doc,t.selection.$from.pos,1);return o==null?!1:(n.join(o,2),e&&e(n),!0)}catch{return!1}},Zv=()=>({state:t,dispatch:e})=>Fk(t,e),Xv=()=>({state:t,dispatch:e})=>Bk(t,e);function hh(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function eb(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))wu()||hh()?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 tb=t=>({editor:e,view:n,tr:o,dispatch:r})=>{const i=eb(t).split(/-(?!$)/),s=i.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),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",u=>u(n,a))});return l==null||l.steps.forEach(u=>{const c=u.map(o.mapping);c&&r&&o.maybeStep(c)}),!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,(d,m)=>{if(d.isText)return;const f=Math.max(o,m),p=Math.min(r,m+d.nodeSize);a.push({node:d,from:f,to:p})});const l=r-o,u=a.filter(d=>s?s.name===d.node.type.name:!0).filter(d=>As(d.node.attrs,n,{strict:!1}));return i?!!u.length:u.reduce((d,m)=>d+m.to-m.from,0)>=l}const nb=(t,e={})=>({state:n,dispatch:o})=>{const r=ye(t,n.schema);return Br(n,r,e)?Yk(n,o):!1},ob=()=>({state:t,dispatch:e})=>Gk(t,e),rb=t=>({state:e,dispatch:n})=>{const o=ye(t,e.schema);return rv(o)(e,n)},ib=()=>({state:t,dispatch:e})=>Kk(t,e);function Ds(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function gh(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 sb=(t,e)=>({tr:n,state:o,dispatch:r})=>{let i=null,s=null;const a=Ds(typeof t=="string"?t:t.name,o.schema);return a?(a==="node"&&(i=ye(t,o.schema)),a==="mark"&&(s=an(t,o.schema)),r&&n.selection.ranges.forEach(l=>{o.doc.nodesBetween(l.$from.pos,l.$to.pos,(u,c)=>{i&&i===u.type&&n.setNodeMarkup(c,void 0,gh(u.attrs,e)),s&&u.marks.length&&u.marks.forEach(d=>{s===d.type&&n.addMark(c,c+u.nodeSize,s.create(gh(d.attrs,e)))})})}),!0):!1},ab=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),lb=()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),ub=()=>({state:t,dispatch:e})=>Hk(t,e),cb=()=>({state:t,dispatch:e})=>Uk(t,e),db=()=>({state:t,dispatch:e})=>Qk(t,e),mb=()=>({state:t,dispatch:e})=>ev(t,e),fb=()=>({state:t,dispatch:e})=>Xk(t,e);function Su(t,e,n={},o={}){return Ms(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:o.errorOnInvalidContent})}const pb=(t,e=!1,n={},o={})=>({editor:r,tr:i,dispatch:s,commands:a})=>{var l,u;const{doc:c}=i;if(n.preserveWhitespace!=="full"){const d=Su(t,r.schema,n,{errorOnInvalidContent:(l=o.errorOnInvalidContent)!==null&&l!==void 0?l:r.options.enableContentCheck});return s&&i.replaceWith(0,c.content.size,d).setMeta("preventUpdate",!e),!0}return s&&i.setMeta("preventUpdate",!e),a.insertContentAt({from:0,to:c.content.size},t,{parseOptions:n,errorOnInvalidContent:(u=o.errorOnInvalidContent)!==null&&u!==void 0?u:r.options.enableContentCheck})};function yh(t,e){const n=an(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 hb(t,e){const n=new Rf(t);return e.forEach(o=>{o.steps.forEach(r=>{n.step(r)})}),n}function gb(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 yb(t,e,n){const o=[];return t.nodesBetween(e.from,e.to,(r,i)=>{n(r)&&o.push({node:r,pos:i})}),o}function wb(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 ku(t){return e=>wb(e.$from,t)}function Sb(t,e){const n=zn.fromSchema(e).serializeFragment(t),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}function kb(t,e){const n={from:0,to:t.content.size};return ch(t,n,e)}function vb(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 wh(t,e){const n=Ds(typeof e=="string"?e:e.name,t.schema);return n==="node"?vb(t,e):n==="mark"?yh(t,e):{}}function bb(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 xb(t){const e=bb(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 $b(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 u=e.slice(i).map(a,-1),c=e.slice(i).map(l),d=e.invert().map(u,-1),m=e.invert().map(c);o.push({oldRange:{from:d,to:m},newRange:{from:u,to:c}})})}),xb(o)}function Sh(t,e,n){const o=[];return t===e?n.resolve(t).marks().forEach(r=>{const i=n.resolve(t),s=yu(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 vu(t,e,n={}){const{empty:o,ranges:r}=t.selection,i=e?an(e,t.schema):null;if(o)return!!(t.storedMarks||t.selection.$from.marks()).filter(d=>i?i.name===d.type.name:!0).find(d=>As(d.attrs,n,{strict:!1}));let s=0;const a=[];if(r.forEach(({$from:d,$to:m})=>{const f=d.pos,p=m.pos;t.doc.nodesBetween(f,p,(y,h)=>{if(!y.isText&&!y.marks.length)return;const g=Math.max(f,h),w=Math.min(p,h+y.nodeSize),k=w-g;s+=k,a.push(...y.marks.map(b=>({mark:b,from:g,to:w})))})}),s===0)return!1;const l=a.filter(d=>i?i.name===d.mark.type.name:!0).filter(d=>As(d.mark.attrs,n,{strict:!1})).reduce((d,m)=>d+m.to-m.from,0),u=a.filter(d=>i?d.mark.type!==i&&d.mark.type.excludes(i):!0).reduce((d,m)=>d+m.to-m.from,0);return(l>0?l+u:l)>=s}function Cb(t,e,n={}){if(!e)return Br(t,null,n)||vu(t,null,n);const o=Ds(e,t.schema);return o==="node"?Br(t,e,n):o==="mark"?vu(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 Eb(t,e,n){var o;const{selection:r}=e;let i=null;if(mh(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 u=a.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(a.pos,l.pos,(c,d,m)=>{if(u)return!1;if(c.isInline){const f=!m||m.type.allowsMarkType(n),p=!!n.isInSet(c.marks)||!c.marks.some(y=>y.type.excludes(n));u=f&&p}return!u}),u})}const Nb=(t,e={})=>({tr:n,state:o,dispatch:r})=>{const{selection:i}=n,{empty:s,ranges:a}=i,l=an(t,o.schema);if(r)if(s){const u=yh(o,l);n.addStoredMark(l.create({...u,...e}))}else a.forEach(u=>{const c=u.$from.pos,d=u.$to.pos;o.doc.nodesBetween(c,d,(m,f)=>{const p=Math.max(f,c),y=Math.min(f+m.nodeSize,d);m.marks.find(g=>g.type===l)?m.marks.forEach(g=>{l===g.type&&n.addMark(p,y,l.create({...g.attrs,...e}))}):n.addMark(p,y,l.create(e))})});return Eb(o,n,l)},Ob=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),Ab=(t,e={})=>({state:n,dispatch:o,chain:r})=>{const i=ye(t,n.schema);return i.isTextblock?r().command(({commands:s})=>rh(i,e)(n)?!0:s.clearNodes()).command(({state:s})=>rh(i,e)(s,o)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},Rb=t=>({tr:e,dispatch:n})=>{if(n){const{doc:o}=e,r=Yn(t,0,o.content.size),i=L.create(o,r);e.setSelection(i)}return!0},Mb=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=Yn(r,s,a),u=Yn(i,s,a),c=V.create(o,l,u);e.setSelection(c)}return!0},Db=t=>({state:e,dispatch:n})=>{const o=ye(t,e.schema);return av(o)(e,n)};function vh(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 Tb=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:o,editor:r})=>{const{selection:i,doc:s}=e,{$from:a,$to:l}=i,u=r.extensionManager.attributes,c=Ts(u,a.node().type.name,a.node().attrs);if(i instanceof L&&i.node.isBlock)return!a.parentOffset||!ko(s,a.pos)?!1:(o&&(t&&vh(n,r.extensionManager.splittableMarks),e.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;const d=l.parentOffset===l.parent.content.size,m=a.depth===0?void 0:gb(a.node(-1).contentMatchAt(a.indexAfter(-1)));let f=d&&m?[{type:m,attrs:c}]:void 0,p=ko(e.doc,e.mapping.map(a.pos),1,f);if(!f&&!p&&ko(e.doc,e.mapping.map(a.pos),1,m?[{type:m}]:void 0)&&(p=!0,f=m?[{type:m,attrs:c}]:void 0),o){if(p&&(i instanceof V&&e.deleteSelection(),e.split(e.mapping.map(a.pos),1,f),m&&!d&&!a.parentOffset&&a.parent.type!==m)){const y=e.mapping.map(a.before()),h=e.doc.resolve(y);a.node(-1).canReplaceWith(h.index(),h.index()+1,m)&&e.setNodeMarkup(e.mapping.map(a.before()),m)}t&&vh(n,r.extensionManager.splittableMarks),e.scrollIntoView()}return p},jb=(t,e={})=>({tr:n,state:o,dispatch:r,editor:i})=>{var s;const a=ye(t,o.schema),{$from:l,$to:u}=o.selection,c=o.selection.node;if(c&&c.isBlock||l.depth<2||!l.sameParent(u))return!1;const d=l.node(-1);if(d.type!==a)return!1;const m=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 w=l.index(-1)?1:l.index(-2)?2:3;for(let R=l.depth-w;R>=l.depth-3;R-=1)g=N.from(l.node(R).copy(g));const k=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,b={...Ts(m,l.node().type.name,l.node().attrs),...e},E=((s=a.contentMatch.defaultType)===null||s===void 0?void 0:s.createAndFill(b))||void 0;g=g.append(N.from(a.createAndFill(null,E)||void 0));const v=l.before(l.depth-(w-1));n.replace(v,l.after(-k),new D(g,4-w,0));let $=-1;n.doc.nodesBetween(v,n.doc.content.size,(R,C)=>{if($>-1)return!1;R.isTextblock&&R.content.size===0&&($=C+1)}),$>-1&&n.setSelection(V.near(n.doc.resolve($))),n.scrollIntoView()}return!0}const f=u.pos===l.end()?d.contentMatchAt(0).defaultType:null,p={...Ts(m,d.type.name,d.attrs),...e},y={...Ts(m,l.node().type.name,l.node().attrs),...e};n.delete(l.pos,u.pos);const h=f?[{type:a,attrs:p},{type:f,attrs:y}]:[{type:a,attrs:p}];if(!ko(n.doc,l.pos,2))return!1;if(r){const{selection:g,storedMarks:w}=o,{splittableMarks:k}=i.extensionManager,b=w||g.$to.parentOffset&&g.$from.marks();if(n.split(l.pos,2,h).scrollIntoView(),!b||!r)return!0;const E=b.filter(v=>k.includes(v.type.name));n.ensureMarks(E)}return!0},bu=(t,e)=>{const n=ku(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)&&Gt(t.doc,n.pos)&&t.join(n.pos),!0},xu=(t,e)=>{const n=ku(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)&&Gt(t.doc,o)&&t.join(o),!0};var Pb=Object.freeze({__proto__:null,blur:Cv,clearContent:Ev,clearNodes:Nv,command:Ov,createParagraphNear:Av,cut:Rv,deleteCurrentNode:Mv,deleteNode:Dv,deleteRange:Tv,deleteSelection:jv,enter:Pv,exitCode:Iv,extendMarkRange:zv,first:Fv,focus:Bv,forEach:Hv,insertContent:Vv,insertContentAt:_v,joinBackward:Wv,joinDown:Kv,joinForward:qv,joinItemBackward:Gv,joinItemForward:Qv,joinTextblockBackward:Zv,joinTextblockForward:Xv,joinUp:Yv,keyboardShortcut:tb,lift:nb,liftEmptyBlock:ob,liftListItem:rb,newlineInCode:ib,resetAttributes:sb,scrollIntoView:ab,selectAll:lb,selectNodeBackward:ub,selectNodeForward:cb,selectParentNode:db,selectTextblockEnd:mb,selectTextblockStart:fb,setContent:pb,setMark:Nb,setMeta:Ob,setNode:Ab,setNodeSelection:Rb,setTextSelection:Mb,sinkListItem:Db,splitBlock:Tb,splitListItem:jb,toggleList:(t,e,n,o={})=>({editor:r,tr:i,state:s,dispatch:a,chain:l,commands:u,can:c})=>{const{extensions:d,splittableMarks:m}=r.extensionManager,f=ye(t,s.schema),p=ye(e,s.schema),{selection:y,storedMarks:h}=s,{$from:g,$to:w}=y,k=g.blockRange(w),b=h||y.$to.parentOffset&&y.$from.marks();if(!k)return!1;const E=ku(v=>kh(v.type.name,d))(y);if(k.depth>=1&&E&&k.depth-E.depth<=1){if(E.node.type===f)return u.liftListItem(p);if(kh(E.node.type.name,d)&&f.validContent(E.node.content)&&a)return l().command(()=>(i.setNodeMarkup(E.pos,f),!0)).command(()=>bu(i,f)).command(()=>xu(i,f)).run()}return!n||!b||!a?l().command(()=>c().wrapInList(f,o)?!0:u.clearNodes()).wrapInList(f,o).command(()=>bu(i,f)).command(()=>xu(i,f)).run():l().command(()=>{const v=c().wrapInList(f,o),$=b.filter(R=>m.includes(R.type.name));return i.ensureMarks($),v?!0:u.clearNodes()}).wrapInList(f,o).command(()=>bu(i,f)).command(()=>xu(i,f)).run()},toggleMark:(t,e={},n={})=>({state:o,commands:r})=>{const{extendEmptyMarkRange:i=!1}=n,s=an(t,o.schema);return vu(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=an(t,o.schema),{$from:u,empty:c,ranges:d}=a;if(!r)return!0;if(c&&s){let{from:m,to:f}=a;const p=(i=u.marks().find(h=>h.type===l))===null||i===void 0?void 0:i.attrs,y=yu(u,l,p);y&&(m=y.from,f=y.to),n.removeMark(m,f,l)}else d.forEach(m=>{n.removeMark(m.$from.pos,m.$to.pos,l)});return n.removeStoredMark(l),!0},updateAttributes:(t,e={})=>({tr:n,state:o,dispatch:r})=>{let i=null,s=null;const a=Ds(typeof t=="string"?t:t.name,o.schema);return a?(a==="node"&&(i=ye(t,o.schema)),a==="mark"&&(s=an(t,o.schema)),r&&n.selection.ranges.forEach(l=>{const u=l.$from.pos,c=l.$to.pos;o.doc.nodesBetween(u,c,(d,m)=>{i&&i===d.type&&n.setNodeMarkup(m,void 0,{...d.attrs,...e}),s&&d.marks.length&&d.marks.forEach(f=>{if(s===f.type){const p=Math.max(m,u),y=Math.min(m+d.nodeSize,c);n.addMark(p,y,s.create({...f.attrs,...e}))}})})}),!0):!1},wrapIn:(t,e={})=>({state:n,dispatch:o})=>{const r=ye(t,n.schema);return tv(r,e)(n,o)},wrapInList:(t,e={})=>({state:n,dispatch:o})=>{const r=ye(t,n.schema);return nv(r,e)(n,o)}});const Ib=ot.create({name:"commands",addCommands(){return{...Pb}}}),Lb=ot.create({name:"drop",addProseMirrorPlugins(){return[new Ve({key:new ft("tiptapDrop"),props:{handleDrop:(t,e,n,o)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:o})}}})]}}),zb=ot.create({name:"editable",addProseMirrorPlugins(){return[new Ve({key:new ft("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Fb=ot.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new Ve({key:new ft("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}}}})]}}),Bb=ot.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:a})=>{const{selection:l,doc:u}=a,{empty:c,$anchor:d}=l,{pos:m,parent:f}=d,p=d.parent.isTextblock&&m>0?a.doc.resolve(m-1):d,y=p.parent.type.spec.isolating,h=d.pos-d.parentOffset,g=y&&p.parent.childCount===1?h===d.pos:J.atStart(u).from===m;return!c||!f.type.isTextblock||f.textContent.length||!g||g&&d.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 wu()||hh()?i:r},addProseMirrorPlugins(){return[new Ve({key:new ft("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,u=J.atEnd(e.doc).to;if(i||!(s===l&&a===u)||!js(n.doc))return;const m=n.tr,f=xs({state:n,transaction:m}),{commands:p}=new $s({editor:this.editor,state:f});if(p.clearNodes(),!!m.steps.length)return m}})]}}),Hb=ot.create({name:"paste",addProseMirrorPlugins(){return[new Ve({key:new ft("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),Vb=ot.create({name:"tabindex",addProseMirrorPlugins(){return[new Ve({key:new ft("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class Kn{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 Kn(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 Kn(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 Kn(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 Kn(a,this.editor,r,r?n:null);r&&(l.actualDepth=this.depth+1),e.push(new Kn(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 Ub=`.ProseMirror {
19
+ */var j1=x,Mm=60103;if(wr.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Dm=Symbol.for;Mm=Dm("react.element"),wr.Fragment=Dm("react.fragment")}var P1=j1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,I1=Object.prototype.hasOwnProperty,L1={key:!0,ref:!0,__self:!0,__source:!0};function Tm(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)I1.call(e,o)&&!L1.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:Mm,type:t,key:i,ref:s,props:r,_owner:P1.current}}wr.jsx=Tm,wr.jsxs=Tm,Yt.exports=wr;var w=Yt.exports;const z1=({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 F1=function(t){return t instanceof RegExp},B1=function(e){var n=/[\\^$.*+?()[\]{}|]/g,o=RegExp(n.source);return e&&o.test(e)?e.replace(n,"\\$&"):e},jm=function(t){return typeof t=="string"},H1=function(t){var e=[];return t.forEach(function(n){Array.isArray(n)?e=e.concat(n):e.push(n)}),e};function V1(t,e,n){var o=0,r=0;if(t==="")return t;if(!t||!jm(t))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var i=e;F1(i)||(i=new RegExp("("+B1(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 U1=function(e,n,o){return Array.isArray(e)||(e=[e]),H1(e.map(function(r){return jm(r)?V1(r,n,o):r}))};const Pm=Ze(U1),El=U.createContext({});El.Provider;const H=()=>x.useContext(El),J1=()=>{const e=H().dispatchAction;return n=>{e("setOrder",{order:n})}},kr=()=>{try{return H().labs||{}}catch{return{}}},Gi=({isFirst:t,isPaid:e})=>{const{accentColor:n,publication:o,member:r,t:i,commentCount:s}=H(),a={backgroundColor:n},l={color:n},u=i(s===0?"Start the conversation":"Join the discussion"),c=()=>{window.location.href=e&&r?"#/portal/account/plans":"#/portal/signup"},d=()=>{window.location.href="#/portal/signin"},m=Pm(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:u}),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:m}),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:c,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:d,children:i("Sign in")})]})]})},Im=t=>x.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.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"}),x.createElement("circle",{cx:12,cy:12,r:11.375,stroke:"white",strokeWidth:1.25}),x.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 vr(t){return t!==0&&!t?"":t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function _1(t,e){const n=new Date(t),o=new Date;let r=Math.round((o.getTime()-n.getTime())/1e3);if(r<5)return e("Just now");if(r<60)return e("{{amount}} seconds ago",{amount:r});if(r=r/60,r<60)return Math.floor(r)===1?e("One min ago"):e("{{amount}} mins ago",{amount:Math.floor(r)});const i=new Date(o.getFullYear(),o.getMonth(),o.getDate()-1);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()&&n.getDate()===i.getDate()?e("Yesterday"):(r=r/60,r<24?Math.floor(r)===1?e("One hour ago"):e("{{amount}} hrs ago",{amount:Math.floor(r)}):(r=r/24,r<7?Math.floor(r)===1?e("One day ago"):e("{{amount}} days ago",{amount:Math.floor(r)}):(r=r/7,r<4?Math.floor(r)===1?e("One week ago"):e("{{amount}} weeks ago",{amount:Math.floor(r)}):(r=r*7/30,r<12?Math.floor(r)===1?e("One month ago"):e("{{amount}} months ago",{amount:Math.floor(r)}):(r=r*30/365,Math.floor(r)===1?e("One year ago"):e("{{amount}} years ago",{amount:Math.floor(r)}))))))}function Y1(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 Lm(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 zm(t,e){return t?t.name?t.name:e("Anonymous"):e("Deleted member")}function K1(t,e){return zm(t.member,e)}function W1(t,e){return Lm(zm(t.member,e))}function Fm(){return Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<480}function q1(t){return t.status==="published"}const G1=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},Bm=t=>{const e=t.offsetHeight,n=G1(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 Hm(){return"w-8 h-8"}const Q1=()=>{const t=Hm();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(Im,{className:"stroke-white opacity-80"})})})},Vm=({comment:t})=>{var y;const{member:e,avatarSaturation:n,t:o}=H(),r=Hm(),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],k=Math.round(g/(100/30))+30,E=[k-20,k],v=s(h.name),$=a(v,S[0],S[1]),R=a(v,E[0],E[1]);return[$,g,R]},u=h=>`hsl(${h[0]}, ${h[1]}%, ${h[2]}%)`,c=t&&W1(t,o)||e&&Lm(e.name||"")||"",d=t?t.member:e,f={background:u(l())},p=w.jsxs(w.Fragment,{children:[i?w.jsx("div",{className:`flex items-center justify-center rounded-full ${r}`,"data-testid":"avatar-background",style:f,children:w.jsx("p",{className:"font-sans text-base font-semibold text-white",children:c})}):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(Im,{className:"stroke-white dark:stroke-black/60"})}),d&&w.jsx("img",{alt:"Avatar",className:`absolute left-0 top-0 rounded-full ${r}`,src:d.avatar_image})]});return w.jsx("figure",{className:`relative ${r}`,children:p})},Z1=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 24 24",...t},x.createElement("g",{strokeLinecap:"round",strokeWidth:2,fill:"none",strokeLinejoin:"round",className:"nc-icon-wrapper"},x.createElement("polygon",{points:"7 21 2 22 3 17 18 2 22 6 7 21"})));function be(t){this.content=t}be.prototype={constructor:be,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 be(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 be(n)},addToStart:function(t,e){return new be([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new be(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 be(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=be.from(t),t.size?new be(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=be.from(t),t.size?new be(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=be.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}},be.from=function(t){if(t instanceof be)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new be(e)};function Um(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=Um(r.content,i.content,n+1);if(s!=null)return s}n+=r.nodeSize}}function Jm(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 u=0,c=Math.min(s.text.length,a.text.length);for(;u<c&&s.text[s.text.length-u-1]==a.text[a.text.length-u-1];)u++,n--,o--;return{a:n,b:o}}if(s.content.size||a.content.size){let u=Jm(s.content,a.content,n-1,o-1);if(u)return u}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],u=a+l.nodeSize;if(u>e&&o(l,r+a,i||null,s)!==!1&&l.content.size){let c=a+1;l.nodesBetween(Math.max(0,e-c),Math.min(l.content.size,n-c),o,r+c)}a=u}}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 u=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&&u||a.isTextblock)&&o&&(s?s=!1:i+=o),i+=u},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 Um(this,e,n)}findDiffEnd(e,n=this.size,o=e.size){return Jm(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 Nl={index:0,offset:0};function Qi(t,e){return Nl.index=t,Nl.offset=e,Nl}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 cm{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 cm.none;if(e instanceof cm)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 D{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=Ym(this.content,e+this.openStart,n);return o&&new D(o,this.openStart,this.openEnd)}removeBetween(e,n){return new D(_m(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 D.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 D(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 D(e,o,r)}}D.empty=new D(N.empty,0,0);function _m(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(_m(i.content,e-r-1,n-r-1)))}function Ym(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=Ym(s.content,e-i-1,n);return a&&t.replaceChild(r,s.copy(a))}function X1(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 Km(t,e,n,0)}function Km(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=Km(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 Pn(s,a.cut(0,t.parentOffset).append(n.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=ew(n,t);return Pn(i,qm(t,s,a,e,o))}else return Pn(i,es(t,e,o))}function Wm(t,e){if(!e.type.compatibleContent(t.type))throw new Xi("Cannot join "+e.type.name+" onto "+t.type.name)}function Ol(t,e,n){let o=t.node(n);return Wm(o,e.node(n)),o}function jn(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 br(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&&(jn(t.nodeAfter,o),i++));for(let a=i;a<s;a++)jn(r.child(a),o);e&&e.depth==n&&e.textOffset&&jn(e.nodeBefore,o)}function Pn(t,e){return t.type.checkContent(e),t.copy(e)}function qm(t,e,n,o,r){let i=t.depth>r&&Ol(t,e,r+1),s=o.depth>r&&Ol(n,o,r+1),a=[];return br(null,t,r,a),i&&s&&e.index(r)==n.index(r)?(Wm(i,s),jn(Pn(i,qm(t,e,n,o,r+1)),a)):(i&&jn(Pn(i,es(t,e,r+1)),a),br(e,n,r,a),s&&jn(Pn(s,es(n,o,r+1)),a)),br(o,null,r,a),new N(a)}function es(t,e,n){let o=[];if(br(null,t,n,o),t.depth>n){let r=Ol(t,e,n+1);jn(Pn(r,es(t,e,n+1)),o)}return br(e,null,n,o),new N(o)}function ew(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 xr{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),u=i-l;if(o.push(s,a,r+l),!u||(s=s.child(a),s.isText))break;i=u-1,r+=l+1}return new xr(n,o,i)}static resolveCached(e,n){let o=Gm.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 Gm.set(e,o=new tw);let r=o.elts[o.i]=xr.resolve(e,n);return o.i=(o.i+1)%nw,r}}class tw{constructor(){this.elts=[],this.i=0}}const nw=12,Gm=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 ow=Object.create(null);let In=class dm{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||ow)&&q.sameSet(this.marks,o||q.none)}copy(e=null){return e==this.content?this:new dm(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new dm(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 D.empty;let r=this.resolve(e),i=this.resolve(n),s=o?0:r.sharedDepth(n),a=r.start(s),u=r.node(s).content.cut(r.pos-a,i.pos-a);return new D(u,r.depth-s,i.depth-s)}replace(e,n,o){return X1(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 xr.resolveCached(this,e)}resolveNoCache(e){return xr.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()+")"),Qm(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}};In.prototype.text=void 0;class ns extends In{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):Qm(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 Qm(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Ln{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let o=new rw(e,n);if(o.next==null)return Ln.empty;let r=Zm(o);o.next&&o.err("Unexpected trailing text");let i=dw(cw(r));return mw(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(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:c,next:d}=s.next[u];if(!(c.isText||c.hasRequiredAttrs())&&r.indexOf(d)==-1){r.push(d);let m=i(d,a.concat(c));if(m)return m}}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(`
20
+ `)}}Ln.empty=new Ln(!0);class rw{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 Zm(t){let e=[];do e.push(iw(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function iw(t){let e=[];do e.push(sw(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function sw(t){let e=uw(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=aw(t,e);else break;return e}function Xm(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function aw(t,e){let n=Xm(t),o=n;return t.eat(",")&&(t.next!="}"?o=Xm(t):o=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:o,expr:e}}function lw(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 uw(t){if(t.eat("(")){let e=Zm(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=lw(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 cw(t){let e=[[]];return r(i(t,0),n()),e;function n(){return e.push([])-1}function o(s,a,l){let u={term:l,to:a};return e[s].push(u),u}function r(s,a){s.forEach(l=>l.to=a)}function i(s,a){if(s.type=="choice")return s.exprs.reduce((l,u)=>l.concat(i(u,a)),[]);if(s.type=="seq")for(let l=0;;l++){let u=i(s.exprs[l],a);if(l==s.exprs.length-1)return u;r(u,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 u=0;u<s.min;u++){let c=n();r(i(s.expr,l),c),l=c}if(s.max==-1)r(i(s.expr,l),l);else for(let u=s.min;u<s.max;u++){let c=n();o(l,c),r(i(s.expr,l),c),l=c}return[o(l)]}else{if(s.type=="name")return[o(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function ef(t,e){return e-t}function tf(t,e){let n=[];return o(e),n.sort(ef);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 dw(t){let e=Object.create(null);return n(tf(t,0));function n(o){let r=[];o.forEach(s=>{t[s].forEach(({term:a,to:l})=>{if(!a)return;let u;for(let c=0;c<r.length;c++)r[c][0]==a&&(u=r[c][1]);tf(t,l).forEach(c=>{u||r.push([a,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let i=e[o.join(",")]=new Ln(o.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(ef);i.next.push({type:r[s][0],next:e[a.join(",")]||n(a)})}return i}}function mw(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:u}=r.next[a];s.push(l.name),i&&!(l.isText||l.hasRequiredAttrs())&&(i=!1),o.indexOf(u)==-1&&o.push(u)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function nf(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 of(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 rf(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 sf(t,e){let n=Object.create(null);if(e)for(let o in e)n[o]=new pw(t,o,e[o]);return n}let af=class $1{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=sf(e,o.attrs),this.defaultAttrs=nf(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==Ln.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:of(this.attrs,e)}create(e=null,n,o){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new In(this,this.computeAttrs(e),N.from(n),q.setFrom(o))}createChecked(e=null,n,o){return n=N.from(n),this.checkContent(n),new In(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 In(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){rf(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 $1(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 fw(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 pw{constructor(e,n,o){this.hasDefault=Object.prototype.hasOwnProperty.call(o,"default"),this.default=o.default,this.validate=typeof o.validate=="string"?fw(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=sf(e,r.attrs),this.excluded=null;let i=nf(this.attrs);this.instance=i?new q(this,i):null}create(e=null){return!e&&this.instance?this.instance:new q(this,of(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){rf(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class lf{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=be.from(e.nodes),n.marks=be.from(e.marks||{}),this.nodes=af.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]=Ln.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?uf(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==""?[]:uf(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 af){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 In.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 uf(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 hw(t){return t.tag!=null}function gw(t){return t.style!=null}class Kt{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let o=this.matchedStyles=[];n.forEach(r=>{if(hw(r))this.tags.push(r);else if(gw(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 ff(this,n,!1);return o.addAll(e,q.none,n.from,n.to),o.finish()}parseSlice(e,n={}){let o=new ff(this,n,!0);return o.addAll(e,q.none,n.from,n.to),D.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(Sw(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=pf(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=pf(s)),s.node||s.ignore||s.mark||(s.node=r)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Kt(e,Kt.schemaRules(e)))}}const cf={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},yw={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},df={ol:!0,ul:!0},is=1,ss=2,$r=4;function mf(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&&!cf.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class ff{constructor(e,n,o){this.parser=e,this.options=n,this.isOpen=o,this.open=0;let r=n.topNode,i,s=mf(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,`
21
+ `):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;df.hasOwnProperty(r)&&this.parser.normalizeLists&&ww(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(i=this.parser.matchTag(e,this,o));if(s?s.ignore:yw.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,u=this.needsBlock;if(cf.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 c=s&&s.skip?n:this.readStyles(e,n);c&&this.addAll(e,c),a&&this.sync(l),this.needsBlock=u}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(`
22
+ `),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(u=>!l.clearMark(u)):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):hf(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=mf(e,i,s.options);s.options&$r&&s.content.length==0&&(a|=$r);let l=q.none;return o=o.filter(u=>(s.type?s.type.allowsMarkType(u.type):hf(u.type,e))?(l=u.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 u=n[a];if(u==""){if(a==n.length-1||a==0)continue;for(;l>=i;l--)if(s(a-1,l))return!0;return!1}else{let c=l>0||l==0&&r?this.nodes[l].type:o&&l>=i?o.node(l-i).type:null;if(!c||c.name!=u&&c.groups.indexOf(u)==-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 ww(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let o=e.nodeType==1?e.nodeName.toLowerCase():null;o&&df.hasOwnProperty(o)&&n?(n.appendChild(e),e=n):o=="li"?n=e:o&&(n=null)}}function Sw(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function pf(t){let e={};for(let n in t)e[n]=t[n];return e}function hf(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:u,next:c}=a.edge(l);if(u==e||i.indexOf(c)<0&&s(c))return!0}};if(s(r.contentMatch))return!0}}class zn{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},o){o||(o=Al(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 u=s.marks[l];if(!this.marks[u.type.name]){l++;continue}if(!u.eq(i[a][0])||u.type.spec.spanning===!1)break;a++,l++}for(;a<i.length;)r=i.pop()[1];for(;l<s.marks.length;){let u=s.marks[l++],c=this.serializeMark(u,s.isInline,n);c&&(i.push([u,r]),r.appendChild(c.dom),r=c.contentDOM||c.dom)}}r.appendChild(this.serializeNodeInner(s,n))}),o}serializeNodeInner(e,n){let{dom:o,contentDOM:r}=ls(Al(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(Al(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 zn(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=gf(e.nodes);return n.text||(n.text=o=>o.text),n}static marksFromSchema(e){return gf(e.marks)}}function gf(t){let e={};for(let n in t){let o=t[n].spec.toDOM;o&&(e[n]=o)}return e}function Al(t){return t.document||window.document}const yf=new WeakMap;function kw(t){let e=yf.get(t);return e===void 0&&yf.set(t,e=vw(t)),e}function vw(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=kw(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),u=e[1],c=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){c=2;for(let d in u)if(u[d]!=null){let m=d.indexOf(" ");m>0?l.setAttributeNS(d.slice(0,m),d.slice(m+1),u[d]):l.setAttribute(d,u[d])}}for(let d=c;d<e.length;d++){let m=e[d];if(m===0){if(d<e.length-1||d>c)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:f,contentDOM:p}=ls(t,m,n,o);if(l.appendChild(f),p){if(a)throw new RangeError("Multiple content holes");a=p}}}return{dom:l,contentDOM:a}}const wf=65535,Sf=Math.pow(2,16);function bw(t,e){return t+e*Sf}function kf(t){return t&wf}function xw(t){return(t-(t&wf))/Sf}const vf=1,bf=2,us=4,xf=8;class Rl{constructor(e,n,o){this.pos=e,this.delInfo=n,this.recover=o}get deleted(){return(this.delInfo&xf)>0}get deletedBefore(){return(this.delInfo&(vf|us))>0}get deletedAfter(){return(this.delInfo&(bf|us))>0}get deletedAcross(){return(this.delInfo&us)>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=kf(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+xw(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 u=this.ranges[a+i],c=this.ranges[a+s],d=l+u;if(e<=d){let m=u?e==l?-1:e==d?1:n:n,f=l+r+(m<0?0:c);if(o)return f;let p=e==(n<0?l:d)?null:bw(a/3,e-l),y=e==l?bf:e==d?vf:us;return(n<0?e!=l:e!=d)&&(y|=xf),new Rl(f,y,p)}r+=c-u}return o?e+r:new Rl(e+r,0,null)}touches(e,n){let o=0,r=kf(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 u=this.ranges[a+i],c=l+u;if(e<=c&&a==r*3)return!0;o+=this.ranges[a+s]-u}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),u=this.ranges[r+n],c=this.ranges[r+o];e(a,a+u,l,l+c),i+=c-u}}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 Rl(e,r,null)}}const Ml=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=Ml[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 Ml)throw new RangeError("Duplicate use of step JSON ID "+e);return Ml[e]=n,n.prototype.jsonID=e,n}}class ce{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new ce(e,null)}static fail(e){return new ce(null,e)}static fromReplace(e,n,o,r){try{return ce.ok(e.replace(n,o,r))}catch(i){if(i instanceof Xi)return ce.fail(i.message);throw i}}}function Dl(t,e,n){let o=[];for(let r=0;r<t.childCount;r++){let i=t.child(r);i.content.size&&(i=i.copy(Dl(i.content,e,i))),i.isInline&&(i=e(i,n,r)),o.push(i)}return N.fromArray(o)}class Wt 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 D(Dl(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 ce.fromReplace(e,this.from,this.to,i)}invert(){return new St(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 Wt(n.pos,o.pos,this.mark)}merge(e){return e instanceof Wt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Wt(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 Wt(n.from,n.to,e.markFromJSON(n.mark))}}Re.jsonID("addMark",Wt);class St 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 D(Dl(n.content,r=>r.mark(this.mark.removeFromSet(r.marks)),e),n.openStart,n.openEnd);return ce.fromReplace(e,this.from,this.to,o)}invert(){return new Wt(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 St(n.pos,o.pos,this.mark)}merge(e){return e instanceof St&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new St(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 St(n.from,n.to,e.markFromJSON(n.mark))}}Re.jsonID("removeMark",St);class qt extends Re{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ce.fail("No node at mark step's position");let o=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return ce.fromReplace(e,this.pos,this.pos+1,new D(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 qt(this.pos,n.marks[r]);return new qt(this.pos,this.mark)}}return new wo(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new qt(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 qt(n.pos,e.markFromJSON(n.mark))}}Re.jsonID("addNodeMark",qt);class wo extends Re{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ce.fail("No node at mark step's position");let o=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return ce.fromReplace(e,this.pos,this.pos+1,new D(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 qt(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new wo(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 wo(n.pos,e.markFromJSON(n.mark))}}Re.jsonID("removeNodeMark",wo);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&&Tl(e,this.from,this.to)?ce.fail("Structure replace would overwrite content"):ce.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?D.empty:new D(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?D.empty:new D(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,D.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&&(Tl(e,this.from,this.gapFrom)||Tl(e,this.gapTo,this.to)))return ce.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return ce.fail("Gap is not a flat range");let o=this.slice.insertAt(this.insert,n.content);return o?ce.fromReplace(e,this.from,this.to,o):ce.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,D.fromJSON(e,n.slice),n.insert,!!n.structure)}}Re.jsonID("replaceAround",ge);function Tl(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 $w(t,e,n,o){let r=[],i=[],s,a;t.doc.nodesBetween(e,n,(l,u,c)=>{if(!l.isInline)return;let d=l.marks;if(!o.isInSet(d)&&c.type.allowsMarkType(o.type)){let m=Math.max(u,e),f=Math.min(u+l.nodeSize,n),p=o.addToSet(d);for(let y=0;y<d.length;y++)d[y].isInSet(p)||(s&&s.to==m&&s.mark.eq(d[y])?s.to=f:r.push(s=new St(m,f,d[y])));a&&a.to==m?a.to=f:i.push(a=new Wt(m,f,o))}}),r.forEach(l=>t.step(l)),i.forEach(l=>t.step(l))}function Cw(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 u=s.marks,c;for(;c=o.isInSet(u);)(l||(l=[])).push(c),u=c.removeFromSet(u)}else o?o.isInSet(s.marks)&&(l=[o]):l=s.marks;if(l&&l.length){let u=Math.min(a+s.nodeSize,n);for(let c=0;c<l.length;c++){let d=l[c],m;for(let f=0;f<r.length;f++){let p=r[f];p.step==i-1&&d.eq(r[f].style)&&(m=p)}m?(m.to=u,m.step=i):r.push({style:d,from:Math.max(a,e),to:u,step:i})}}}),r.forEach(s=>t.step(new St(s.from,s.to,s.style)))}function $f(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 u=i.child(l),c=a+u.nodeSize,d=o.matchType(u.type);if(!d)s.push(new he(a,c,D.empty));else{o=d;for(let m=0;m<u.marks.length;m++)n.allowsMarkType(u.marks[m].type)||t.step(new St(a,c,u.marks[m]));if(r&&u.isText&&n.whitespace!="pre"){let m,f=/\r?\n|\r/g,p;for(;m=f.exec(u.text);)p||(p=new D(N.from(n.schema.text(" ",n.allowedMarks(u.marks))),0,0)),s.push(new he(a+m.index,a+m.index+m[0].length,p))}}a=c}if(!o.validEnd){let l=o.fillBefore(N.empty,!0);t.replace(a,a,new D(l,0,0))}for(let l=s.length-1;l>=0;l--)t.step(s[l])}function Ew(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function So(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||!Ew(r,i,s))break}return null}function Nw(t,e,n){let{$from:o,$to:r,depth:i}=e,s=o.before(i+1),a=r.after(i+1),l=s,u=a,c=N.empty,d=0;for(let p=i,y=!1;p>n;p--)y||o.index(p)>0?(y=!0,c=N.from(o.node(p).copy(c)),d++):l--;let m=N.empty,f=0;for(let p=i,y=!1;p>n;p--)y||r.after(p+1)<r.end(p)?(y=!0,m=N.from(r.node(p).copy(m)),f++):u++;t.step(new ge(l,u,s,a,new D(c.append(m),d,f),c.size-d,!0))}function jl(t,e,n=null,o=t){let r=Ow(t,e),i=r&&Aw(o,e);return i?r.map(Cf).concat({type:e,attrs:n}).concat(i.map(Cf)):null}function Cf(t){return{type:t,attrs:null}}function Ow(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 Aw(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 u=o;l&&u<r;u++)l=l.matchType(n.child(u).type);return!l||!l.validEnd?null:s}function Rw(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 D(o,0,0),n.length,!0))}function Mw(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)&&jw(t.doc,t.mapping.slice(i).map(a),o)){let u=null;if(o.schema.linebreakReplacement){let f=o.whitespace=="pre",p=!!o.contentMatch.matchType(o.schema.linebreakReplacement);f&&!p?u=!1:!f&&p&&(u=!0)}u===!1&&Tw(t,s,a,i),$f(t,t.mapping.slice(i).map(a,1),o,void 0,u===null);let c=t.mapping.slice(i),d=c.map(a,1),m=c.map(a+s.nodeSize,1);return t.step(new ge(d,m,d+1,m-1,new D(N.from(o.create(l,null,s.marks)),0,0),1,!0)),u===!0&&Dw(t,s,a,i),!1}})}function Dw(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 Tw(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(`
23
+ `))}})}function jw(t,e,n){let o=t.resolve(e),r=o.index();return o.parent.canReplaceWith(r,r+1,n)}function Pw(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 D(N.from(s),0,0),1,!0))}function ko(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 u=r.depth-1,c=n-2;u>i;u--,c--){let d=r.node(u),m=r.index(u);if(d.type.spec.isolating)return!1;let f=d.content.cutByIndex(m,d.childCount),p=o&&o[c+1];p&&(f=f.replaceChild(0,p.type.create(p.attrs)));let y=o&&o[c]||d;if(!d.canReplace(m+1,d.childCount)||!y.type.validContent(f))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 Iw(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,u=n-1;a>l;a--,u--){i=N.from(r.node(a).copy(i));let c=o&&o[u];s=N.from(c?c.type.create(c.attrs,s):r.node(a).copy(s))}t.step(new he(e,e,new D(i.append(s),n,n),!0))}function Gt(t,e){let n=t.resolve(e),o=n.index();return Ef(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(o,o+1)}function Ef(t,e){return!!(t&&e&&!t.isLeaf&&t.canAppend(e))}function cs(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&&Ef(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 Lw(t,e,n){let o=new he(e-n,e+n,D.empty,!0);t.step(o)}function zw(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 Fw(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),u=o.node(s),c=!1;if(i==1)c=u.canReplace(l,l,r);else{let d=u.contentMatchAt(l).findWrapping(r.firstChild.type);c=d&&u.canReplaceWith(l,l,d[0])}if(c)return a==0?o.pos:a<0?o.before(s+1):o.after(s+1)}return null}function ds(t,e,n=e,o=D.empty){if(e==n&&!o.size)return null;let r=t.resolve(e),i=t.resolve(n);return Nf(r,i,o)?new he(e,n,o):new Bw(r,i,o).fit()}function Nf(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class Bw{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 u=this.findFittable();u?this.placeNodes(u):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 D(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=Pl(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:u}=this.frontier[a],c,d=null;if(n==1&&(s?u.matchType(s.type)||(d=u.fillBefore(N.from(s),!1)):i&&l.compatibleContent(i.type)))return{sliceDepth:o,frontierDepth:a,parent:i,inject:d};if(n==2&&s&&(c=u.findWrapping(s.type)))return{sliceDepth:o,frontierDepth:a,parent:i,wrap:c};if(i&&u.matchType(i.type))break}}}openMore(){let{content:e,openStart:n,openEnd:o}=this.unplaced,r=Pl(e,n);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new D(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=Pl(e,n);if(r.childCount<=1&&n>0){let i=e.size-n<=n+r.size;this.unplaced=new D(Er(e,n-1,1),n-1,i?n-1:o)}else this.unplaced=new D(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,u=0,c=[],{match:d,type:m}=this.frontier[n];if(r){for(let y=0;y<r.childCount;y++)c.push(r.child(y));d=d.matchFragment(r)}let f=a.size+e-(s.content.size-s.openEnd);for(;u<a.childCount;){let y=a.child(u),h=d.matchType(y.type);if(!h)break;u++,(u>1||l==0||y.content.size)&&(d=h,c.push(Of(y.mark(m.allowedMarks(y.marks)),u==1?l:0,u==a.childCount?f:-1)))}let p=u==a.childCount;p||(f=-1),this.placed=Nr(this.placed,n,N.from(c)),this.frontier[n].match=d,p&&f<0&&o&&o.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let y=0,h=a;y<f;y++){let g=h.lastChild;this.frontier.push({type:g.type,match:g.contentMatchAt(g.childCount)}),h=g.content}this.unplaced=p?e==0?D.empty:new D(Er(s.content,e-1,1),e-1,f<0?s.openEnd:e-1):new D(Er(s.content,e,u),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!Il(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=Il(e,n,r,o,i);if(s){for(let a=n-1;a>=0;a--){let{match:l,type:u}=this.frontier[a],c=Il(e,a,u,l,!0);if(!c||c.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 Pl(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 Il(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&&!Hw(n,i.content,s)?a:null}function Hw(t,e,n){for(let o=n;o<e.childCount;o++)if(!t.allowsMarks(e.child(o).marks))return!0;return!1}function Vw(t){return t.spec.defining||t.spec.definingForContent}function Uw(t,e,n,o){if(!o.size)return t.deleteRange(e,n);let r=t.doc.resolve(e),i=t.doc.resolve(n);if(Nf(r,i,o))return t.step(new he(e,n,o));let s=Rf(r,t.doc.resolve(n));s[s.length-1]==0&&s.pop();let a=-(r.depth+1);s.unshift(a);for(let m=r.depth,f=r.pos-1;m>0;m--,f--){let p=r.node(m).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;s.indexOf(m)>-1?a=m:r.before(m)==f&&s.splice(1,0,-m)}let l=s.indexOf(a),u=[],c=o.openStart;for(let m=o.content,f=0;;f++){let p=m.firstChild;if(u.push(p),f==o.openStart)break;m=p.content}for(let m=c-1;m>=0;m--){let f=u[m],p=Vw(f.type);if(p&&!f.sameMarkup(r.node(Math.abs(a)-1)))c=m;else if(p||!f.type.isTextblock)break}for(let m=o.openStart;m>=0;m--){let f=(m+c+1)%(o.openStart+1),p=u[f];if(p)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),k=r.index(h-1);if(S.canReplaceWith(k,k,p.type,p.marks))return t.replace(r.before(h),g?i.after(h):n,new D(Af(o.content,0,o.openStart,f),f,o.openEnd))}}let d=t.steps.length;for(let m=s.length-1;m>=0&&(t.replace(e,n,o),!(t.steps.length>d));m--){let f=s[m];f<0||(e=r.before(f),n=i.after(f))}}function Af(t,e,n,o,r){if(e<n){let i=t.firstChild;t=t.replaceChild(0,i.copy(Af(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 Jw(t,e,n,o){if(!o.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let r=zw(t.doc,e,o.type);r!=null&&(e=n=r)}t.replaceRange(e,n,new D(N.from(o),0,0))}function _w(t,e,n){let o=t.doc.resolve(e),r=t.doc.resolve(n),i=Rf(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 Rf(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 vo 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 ce.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 ce.fromReplace(e,this.pos,this.pos+1,new D(N.from(r),0,n.isLeaf?0:1))}getMap(){return qe.empty}invert(e){return new vo(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 vo(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 vo(n.pos,n.attr,n.value)}}Re.jsonID("attr",vo);class Or 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 ce.ok(o)}getMap(){return qe.empty}invert(e){return new Or(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 Or(n.attr,n.value)}}Re.jsonID("docAttr",Or);let bo=class extends Error{};bo=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},bo.prototype=Object.create(Error.prototype),bo.prototype.constructor=bo,bo.prototype.name="TransformError";class Mf{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 bo(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=D.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 D(N.from(o),0,0))}delete(e,n){return this.replace(e,n,D.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,o){return Uw(this,e,n,o),this}replaceRangeWith(e,n,o){return Jw(this,e,n,o),this}deleteRange(e,n){return _w(this,e,n),this}lift(e,n){return Nw(this,e,n),this}join(e,n=1){return Lw(this,e,n),this}wrap(e,n){return Rw(this,e,n),this}setBlockType(e,n=e,o,r=null){return Mw(this,e,n,o,r),this}setNodeMarkup(e,n,o=null,r){return Pw(this,e,n,o,r),this}setNodeAttribute(e,n,o){return this.step(new vo(e,n,o)),this}setDocAttribute(e,n){return this.step(new Or(e,n)),this}addNodeMark(e,n){return this.step(new qt(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 wo(e,n)),this}split(e,n=1,o){return Iw(this,e,n,o),this}addMark(e,n,o){return $w(this,e,n,o),this}removeMark(e,n,o){return Cw(this,e,n,o),this}clearIncompatible(e,n,o){return $f(this,e,n,o),this}}const Ll=Object.create(null);class J{constructor(e,n,o){this.$anchor=e,this.$head=n,this.ranges=o||[new Yw(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=D.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:u}=s[a],c=e.mapping.slice(i);e.replaceRange(c.map(l.pos),c.map(u.pos),a?D.empty:n),a==0&&jf(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),u=l.map(s.pos),c=l.map(a.pos);i?e.deleteRange(u,c):(e.replaceRangeWith(u,c,n),jf(e,o,n.isInline?-1:1))}}static findFrom(e,n,o=!1){let r=e.parent.inlineContent?new V(e):xo(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?xo(e.node(0),e.node(i),e.before(i+1),e.index(i),n,o):xo(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 mt(e.node(0))}static atStart(e){return xo(e,e,0,0,1)||new mt(e)}static atEnd(e){return xo(e,e,e.content.size,e.childCount,-1)||new mt(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let o=Ll[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 Ll)throw new RangeError("Duplicate use of selection JSON ID "+e);return Ll[e]=n,n.prototype.jsonID=e,n}getBookmark(){return V.between(this.$anchor,this.$head).getBookmark()}}J.prototype.visible=!0;class Yw{constructor(e,n){this.$from=e,this.$to=n}}let Df=!1;function Tf(t){!Df&&!t.parent.inlineContent&&(Df=!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){Tf(e),Tf(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=D.empty){if(super.replace(e,n),n==D.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 D(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 zl(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 zl{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:o}=e.mapResult(this.anchor);return n?new ms(o,o):new zl(o)}resolve(e){let n=e.resolve(this.anchor),o=n.nodeAfter;return o&&L.isSelectable(o)?new L(n):J.near(n)}}class mt extends J{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=D.empty){if(n==D.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 mt(e)}map(e){return new mt(e)}eq(e){return e instanceof mt}getBookmark(){return Kw}}J.jsonID("all",mt);const Kw={map(){return this},resolve(t){return new mt(t)}};function xo(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=xo(t,a,n+r,r<0?a.childCount:0,r,i);if(l)return l}n+=a.nodeSize*r}return null}function jf(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,u,c)=>{s==null&&(s=c)}),t.setSelection(J.near(t.doc.resolve(s),n))}const Pf=1,fs=2,If=4;class Ww extends Mf{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|Pf)&~fs,this.storedMarks=null,this}get selectionSet(){return(this.updated&Pf)>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|=If,this}get scrolledIntoView(){return(this.updated&If)>0}}function Lf(t,e){return!e||!t?t:t.bind(e)}class Ar{constructor(e,n,o){this.name=e,this.init=Lf(n.init,o),this.apply=Lf(n.apply,o)}}const qw=[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 Fl{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=qw.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 $o{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,u=r?r[s].state:this,c=l<n.length&&a.spec.appendTransaction.call(a,l?n.slice(l):n,u,o);if(c&&o.filterTransaction(c,s)){if(c.setMeta("appendedTransaction",e),!r){r=[];for(let d=0;d<this.config.plugins.length;d++)r.push(d<s?{state:o,n:n.length}:{state:this,n:0})}n.push(c),o=o.applyInner(c),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 $o(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 Ww(this)}static create(e){let n=new Fl(e.doc?e.doc.type.schema:e.schema,e.plugins),o=new $o(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 Fl(this.schema,e.plugins),o=n.fields,r=new $o(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 Fl(e.schema,e.plugins),i=new $o(r);return r.fields.forEach(s=>{if(s.name=="doc")i.doc=In.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],u=l.spec.state;if(l.key==s.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(n,a)){i[s.name]=u.fromJSON.call(l,e,n[a],i);return}}i[s.name]=s.init(e,i)}}),i}}function zf(t,e,n){for(let o in t){let r=t[o];r instanceof Function?r=r.bind(e):o=="handleDOMEvents"&&(r=zf(r,e,{})),n[o]=r}return n}class Ve{constructor(e){this.spec=e,this.props={},e.props&&zf(e.props,this,this.props),this.key=e.key?e.key.key:Ff("plugin")}getState(e){return e[this.key]}}const Bl=Object.create(null);function Ff(t){return t in Bl?t+"$"+ ++Bl[t]:(Bl[t]=0,t+"$")}class ft{constructor(e="key"){this.key=Ff(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const xe=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 Hl=null;const jt=function(t,e,n){let o=Hl||(Hl=document.createRange());return o.setEnd(t,n??t.nodeValue.length),o.setStart(t,e||0),o},Gw=function(){Hl=null},Fn=function(t,e,n,o){return n&&(Bf(t,e,n,o,-1)||Bf(t,e,n,o,1))},Qw=/^(img|br|input|textarea|hr)$/i;function Bf(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||Mr(t)||Qw.test(t.nodeName)||t.contentEditable=="false")return!1;e=xe(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 Zw(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&&!Mr(t))e=xe(t),t=t.parentNode;else return null}}function Xw(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&&!Mr(t))e=xe(t)+1,t=t.parentNode;else return null}}function eS(t,e,n){for(let o=e==0,r=e==Xe(t);o||r;){if(t==n)return!0;let i=xe(t);if(t=t.parentNode,!t)return!1;o=o&&i==0,r=r&&i==Xe(t)}}function Mr(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&&Fn(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 tS(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function nS(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 kt=typeof navigator<"u"?navigator:null,Hf=typeof document<"u"?document:null,Qt=kt&&kt.userAgent||"",Vl=/Edge\/(\d+)/.exec(Qt),Vf=/MSIE \d/.exec(Qt),Ul=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Qt),Ue=!!(Vf||Ul||Vl),Zt=Vf?document.documentMode:Ul?+Ul[1]:Vl?+Vl[1]:0,pt=!Ue&&/gecko\/(\d+)/i.test(Qt);pt&&+(/Firefox\/(\d+)/.exec(Qt)||[0,0])[1];const Jl=!Ue&&/Chrome\/(\d+)/.exec(Qt),Me=!!Jl,Uf=Jl?+Jl[1]:0,Le=!Ue&&!!kt&&/Apple Computer/.test(kt.vendor),Co=Le&&(/Mobile\/\w+/.test(Qt)||!!kt&&kt.maxTouchPoints>2),et=Co||(kt?/Mac/.test(kt.platform):!1),oS=kt?/Win/.test(kt.platform):!1,ht=/Android \d/.test(Qt),Dr=!!Hf&&"webkitFontSmoothing"in Hf.documentElement.style,rS=Dr?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function iS(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 Pt(t,e){return typeof t=="number"?t:t[e]}function sS(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 Jf(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,u=l?iS(i):sS(a),c=0,d=0;if(e.top<u.top+Pt(o,"top")?d=-(u.top-e.top+Pt(r,"top")):e.bottom>u.bottom-Pt(o,"bottom")&&(d=e.bottom-e.top>u.bottom-u.top?e.top+Pt(r,"top")-u.top:e.bottom-u.bottom+Pt(r,"bottom")),e.left<u.left+Pt(o,"left")?c=-(u.left-e.left+Pt(r,"left")):e.right>u.right-Pt(o,"right")&&(c=e.right-u.right+Pt(r,"right")),c||d)if(l)i.defaultView.scrollBy(c,d);else{let m=a.scrollLeft,f=a.scrollTop;d&&(a.scrollTop+=d),c&&(a.scrollLeft+=c);let p=a.scrollLeft-m,y=a.scrollTop-f;e={left:e.left-p,top:e.top-y,right:e.right-p,bottom:e.bottom-y}}if(l||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function aS(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:_f(t.dom)}}function _f(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 lS({refDOM:t,refTop:e,stack:n}){let o=t?t.getBoundingClientRect().top:0;Yf(n,o==0?0:o-e)}function Yf(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 Eo=null;function uS(t){if(t.setActive)return t.setActive();if(Eo)return t.focus(Eo);let e=_f(t);t.focus(Eo==null?{get preventScroll(){return Eo={preventScroll:!0},!0}}:void 0),Eo||(Eo=!1,Yf(e,0))}function Kf(t,e){let n,o=2e8,r,i=0,s=e.top,a=e.top,l,u;for(let c=t.firstChild,d=0;c;c=c.nextSibling,d++){let m;if(c.nodeType==1)m=c.getClientRects();else if(c.nodeType==3)m=jt(c).getClientRects();else continue;for(let f=0;f<m.length;f++){let p=m[f];if(p.top<=s&&p.bottom>=a){s=Math.max(p.bottom,s),a=Math.min(p.top,a);let y=p.left>e.left?p.left-e.left:p.right<e.left?e.left-p.right:0;if(y<o){n=c,o=y,r=y&&n.nodeType==3?{left:p.right<e.left?p.right:p.left,top:e.top}:e,c.nodeType==1&&y&&(i=d+(e.left>=(p.left+p.right)/2?1:0));continue}}else p.top>e.top&&!l&&p.left<=e.left&&p.right>=e.left&&(l=c,u={left:Math.max(p.left,Math.min(p.right,e.left)),top:p.top});!n&&(e.left>=p.right&&e.top>=p.top||e.left>=p.left&&e.top>=p.bottom)&&(i=d+1)}}return!n&&l&&(n=l,r=u,o=0),n&&n.nodeType==3?cS(n,r):!n||o&&n.nodeType==1?{node:t,offset:i}:Kf(n,r)}function cS(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=Xt(o,1);if(i.top!=i.bottom&&_l(e,i))return{node:t,offset:r+(e.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function _l(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function dS(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function mS(t,e,n){let{node:o,offset:r}=Kf(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 fS(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 Wf(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 u=a[l];if(_l(e,u))return Wf(s,e,u)}}if((i=(i+1)%o)==r)break}return t}function pS(t,e){let n=t.dom.ownerDocument,o,r=0,i=nS(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 u=t.dom.getBoundingClientRect();if(!_l(e,u)||(s=Wf(t.dom,e,u),!s))return null}if(Le)for(let u=s;o&&u;u=Rr(u))u.draggable&&(o=void 0);if(s=dS(s,e),o){if(pt&&o.nodeType==1&&(r=Math.min(r,o.childNodes.length),r<o.childNodes.length)){let c=o.childNodes[r],d;c.nodeName=="IMG"&&(d=c.getBoundingClientRect()).right<=e.left&&d.bottom>e.top&&r++}let u;Dr&&r&&o.nodeType==1&&(u=o.childNodes[r-1]).nodeType==1&&u.contentEditable=="false"&&u.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=fS(t,o,r,e))}a==null&&(a=mS(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 Xt(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 hS=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Gf(t,e,n){let{node:o,offset:r,atom:i}=t.docView.domFromPos(e,n<0?-1:1),s=Dr||pt;if(o.nodeType==3)if(s&&(hS.test(o.nodeValue)||(n<0?!r:r==o.nodeValue.length))){let l=Xt(jt(o,r,r),n);if(pt&&r&&/\s/.test(o.nodeValue[r-1])&&r<o.nodeValue.length){let u=Xt(jt(o,r-1,r-1),-1);if(u.top==l.top){let c=Xt(jt(o,r,r+1),-1);if(c.top!=l.top)return Tr(c,c.left<u.left)}}return l}else{let l=r,u=r,c=n<0?1:-1;return n<0&&!r?(u++,c=-1):n>=0&&r==o.nodeValue.length?(l--,c=1):n<0?l--:u++,Tr(Xt(jt(o,l,u),c),c<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 Yl(l.getBoundingClientRect(),!1)}if(i==null&&r<Xe(o)){let l=o.childNodes[r];if(l.nodeType==1)return Yl(l.getBoundingClientRect(),!0)}return Yl(o.getBoundingClientRect(),n>=0)}if(i==null&&r&&(n<0||r==Xe(o))){let l=o.childNodes[r-1],u=l.nodeType==3?jt(l,Xe(l)-(s?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(u)return Tr(Xt(u,1),!1)}if(i==null&&r<Xe(o)){let l=o.childNodes[r];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let u=l?l.nodeType==3?jt(l,0,s?0:1):l.nodeType==1?l:null:null;if(u)return Tr(Xt(u,-1),!0)}return Tr(Xt(o.nodeType==3?jt(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 Yl(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 Qf(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 gS(t,e,n){let o=e.selection,r=n=="up"?o.$from:o.$to;return Qf(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=Gf(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=jt(a,0,a.nodeValue.length).getClientRects();else continue;for(let u=0;u<l.length;u++){let c=l[u];if(c.bottom>c.top+1&&(n=="up"?s.top-c.top>(c.bottom-s.top)*2:c.bottom-s.bottom>(s.bottom-c.top)*2))return!1}}return!0})}const yS=/[\u0590-\u08ac]/;function wS(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?!yS.test(o.parent.textContent)||!a.modify?n=="left"||n=="backward"?i:s:Qf(t,e,()=>{let{focusNode:l,focusOffset:u,anchorNode:c,anchorOffset:d}=t.domSelectionRange(),m=a.caretBidiLevel;a.modify("move",n,"character");let f=o.depth?t.docView.domAfterPos(o.before()):t.dom,{focusNode:p,focusOffset:y}=t.domSelectionRange(),h=p&&!f.contains(p.nodeType==1?p:p.parentNode)||l==p&&u==y;try{a.collapse(c,d),l&&(l!=c||u!=d)&&a.extend&&a.extend(l,u)}catch{}return m!=null&&(a.caretBidiLevel=m),h}):o.pos==o.start()||o.pos==o.end()}let Zf=null,Xf=null,ep=!1;function SS(t,e,n){return Zf==e&&Xf==n?ep:(Zf=e,Xf=n,ep=n=="up"||n=="down"?gS(t,e,n):wS(t,e,n))}const tt=0,tp=1,Hn=2,vt=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>xe(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 rp){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 np&&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?xe(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?xe(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],u=s+l.size;if(r==-1&&e<=u){let c=s+l.border;if(e>=c&&n<=u-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,c);e=s;for(let d=a;d>0;d--){let m=this.children[d-1];if(m.size&&m.dom.parentNode==this.contentDOM&&!m.emptyChildAt(1)){r=xe(m.dom)+1;break}e-=m.size}r==-1&&(r=0)}if(r>-1&&(u>n||a==this.children.length-1)){n=u;for(let c=a+1;c<this.children.length;c++){let d=this.children[c];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(-1)){i=xe(d.dom);break}n+=d.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=u}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 m=0,f=0;m<this.children.length;m++){let p=this.children[m],y=f+p.size;if(i>f&&s<y)return p.setSelection(e-f-p.border,n-f-p.border,o,r);f=y}let a=this.domFromPos(e,e?-1:1),l=n==e?a:this.domFromPos(n,n?-1:1),u=o.getSelection(),c=!1;if((pt||Le)&&e==n){let{node:m,offset:f}=a;if(m.nodeType==3){if(c=!!(f&&m.nodeValue[f-1]==`
24
+ `),c&&f==m.nodeValue.length)for(let p=m,y;p;p=p.parentNode){if(y=p.nextSibling){y.nodeName=="BR"&&(a=l={node:y.parentNode,offset:xe(y)+1});break}let h=p.pmViewDesc;if(h&&h.node&&h.node.isBlock)break}}else{let p=m.childNodes[f-1];c=p&&(p.nodeName=="BR"||p.contentEditable=="false")}}if(pt&&u.focusNode&&u.focusNode!=l.node&&u.focusNode.nodeType==1){let m=u.focusNode.childNodes[u.focusOffset];m&&m.contentEditable=="false"&&(r=!0)}if(!(r||c&&Le)&&Fn(a.node,a.offset,u.anchorNode,u.anchorOffset)&&Fn(l.node,l.offset,u.focusNode,u.focusOffset))return;let d=!1;if((u.extend||e==n)&&!c){u.collapse(a.node,a.offset);try{e!=n&&u.extend(l.node,l.offset),d=!0}catch{}}if(!d){if(e>n){let f=a;a=l,l=f}let m=document.createRange();m.setEnd(l.node,l.offset),m.setStart(a.node,a.offset),u.removeAllRanges(),u.addRange(m)}}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?Hn:tp,e==a&&n==l&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=vt:i.markDirty(e-a,n-a);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Hn:vt}o=s}this.dirty=Hn}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let o=e==1?Hn:tp;n.dirty<o&&(n.dirty=o)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText(e){return!1}}class np 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 kS 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 Vn 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=zn.renderSpec(document,n.type.spec.toDOM(n,o),null,n.attrs)),new Vn(e,n,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&vt||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=vt&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=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=Vn.create(this.parent,this.mark,!0,o),i=this.children,s=this.size;n<s&&(i=Wl(i,n,s,o)),e>0&&(i=Wl(i,0,e,o));for(let a=0;a<i.length;a++)i[a].parent=r;return r.children=i,r}}class en extends jr{constructor(e,n,o,r,i,s,a,l,u){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,u=a&&a(n,i,()=>{if(!l)return s;if(l.parent)return l.parent.posBeforeChild(l)},o,r),c=u&&u.dom,d=u&&u.contentDOM;if(n.isText){if(!c)c=document.createTextNode(n.text);else if(c.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else c||({dom:c,contentDOM:d}=zn.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&c.nodeName!="BR"&&(c.hasAttribute("contenteditable")||(c.contentEditable="false"),n.type.spec.draggable&&(c.draggable=!0));let m=c;return c=ap(c,o,n),u?l=new vS(e,n,o,r,c,d||null,m,u,i,s+1):n.isText?new hs(e,n,o,r,c,m,i):new en(e,n,o,r,c,d||null,m,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 xS(this,s&&s.node,e);ES(this.node,this.innerDeco,(u,c,d)=>{u.spec.marks?l.syncToMarks(u.spec.marks,o,e):u.type.side>=0&&!d&&l.syncToMarks(c==this.node.childCount?q.none:this.node.child(c).marks,o,e),l.placeWidget(u,e,r)},(u,c,d,m)=>{l.syncToMarks(u.marks,o,e);let f;l.findNodeMatch(u,c,d,m)||a&&e.state.selection.from>r&&e.state.selection.to<r+u.nodeSize&&(f=l.findIndexWithChild(i.node))>-1&&l.updateNodeAt(u,c,d,f,e)||l.updateNextNode(u,c,d,e,m,r)||l.addNode(u,c,d,e,r),r+=u.nodeSize}),l.syncToMarks([],o,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==Hn)&&(s&&this.protectLocalComposition(e,s),ip(this.contentDOM,this.children,e),Co&&NS(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=OS(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 kS(this,i,n,r);e.input.compositionNodes.push(s),this.children=Wl(this.children,o,o+r.length,e,s)}update(e,n,o,r){return this.dirty==vt||!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=sp(this.dom,this.nodeDOM,Kl(this.outerDeco,this.node,n),Kl(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 op(t,e,n,o,r){ap(o,e,t);let i=new en(void 0,t,e,n,o,o,o,r,0);return i.contentDOM&&i.updateChildren(r,0),i}class hs extends en{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==vt||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=vt)}get domAtom(){return!1}isText(e){return this.node.text==e}}class rp 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 vS extends en{constructor(e,n,o,r,i,s,a,l,u,c){super(e,n,o,r,i,s,a,u,c),this.spec=l}update(e,n,o,r){if(this.dirty==vt)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 ip(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=lp(o),r=!0;o=o.nextSibling}else r=!0,t.insertBefore(a,o);if(s instanceof Vn){let l=o?o.previousSibling:t.lastChild;ip(s.contentDOM,s.children,n),o=l?l.nextSibling:t.firstChild}}for(;o;)o=lp(o),r=!0;r&&n.trackWrites==t&&(n.trackWrites=null)}const Pr=function(t){t&&(this.nodeName=t)};Pr.prototype=Object.create(null);const Un=[new Pr];function Kl(t,e,n){if(t.length==0)return Un;let o=n?Un[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 sp(t,e,n,o){if(n==Un&&o==Un)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=Un[0]),r=l}bS(r,a||Un[0],s)}return r}function bS(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 ap(t,e,n){return sp(t,t,Un,Kl(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 lp(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class xS{constructor(e,n,o){this.lock=n,this.view=o,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=$S(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 u=this.top.children[l];if(u.matchesMark(e[i])&&!this.isLocked(u.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=Vn.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 u=this.top.children[a];if(u.matchesNode(e,n,o)&&!this.preMatch.matched.has(u)){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==vt&&s.dom==s.contentDOM&&(s.dirty=Hn),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 en){let u=this.preMatch.matched.get(l);if(u!=null&&u!=i)return!1;let c=l.dom,d,m=this.isLocked(c)&&!(e.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==e.text&&l.dirty!=vt&&gs(n,l.outerDeco));if(!m&&l.update(e,n,o,r))return this.destroyBetween(this.index,a),l.dom!=c&&(this.changed=!0),this.index++,!0;if(!m&&(d=this.recreateWrapper(l,e,n,o,r,s)))return this.destroyBetween(this.index,a),this.top.children[this.index]=d,d.contentDOM&&(d.dirty=Hn,d.updateChildren(r,s+1),d.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=en.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=en.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 np(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 Vn;)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||Me)&&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 rp(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 $S(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 u=n.children[o-1];if(u instanceof Vn)n=u,o=u.children.length;else{a=u,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 CS(t,e){return t.type.side-e.type.side}function ES(t,e,n,o){let r=e.locals(t),i=0;if(r.length==0){for(let u=0;u<t.childCount;u++){let c=t.child(u);o(c,r,e.forChild(i,c),u),i+=c.nodeSize}return}let s=0,a=[],l=null;for(let u=0;;){let c,d;for(;s<r.length&&r[s].to==i;){let h=r[s++];h.widget&&(c?(d||(d=[c])).push(h):c=h)}if(c)if(d){d.sort(CS);for(let h=0;h<d.length;h++)n(d[h],u,!!l)}else n(c,u,!!l);let m,f;if(l)f=-1,m=l,l=null;else if(u<t.childCount)f=u,m=t.child(u++);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 p=i+m.nodeSize;if(m.isText){let h=p;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<p&&(l=m.cut(h-i),m=m.cut(0,h-i),p=h,f=-1)}else for(;s<r.length&&r[s].to<p;)s++;let y=m.isInline&&!m.isLeaf?a.filter(h=>!h.inline):a.slice();o(m,y,e.forChild(i,m),f),i=p}}function NS(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 OS(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 u=t.child(r++);if(i+=u.nodeSize,!u.isText)break;l+=u.text}if(i>=n){if(i>=o&&l.slice(o-e.length-a,o-a)==e)return o-e.length;let u=a<o?l.lastIndexOf(e,o-a-1):-1;if(u>=0&&u+e.length+a>=n)return a+u;if(n==o&&l.length>=o+e.length-a&&l.slice(o-a,o-a+e.length)==e)return o}}return-1}function Wl(t,e,n,o,r){let i=[];for(let s=0,a=0;s<t.length;s++){let l=t[s],u=a,c=a+=l.size;u>=n||c<=e?i.push(l):(u<e&&i.push(l.slice(0,e-u,o)),r&&(i.push(r),r=void 0),c>n&&i.push(l.slice(n-u,l.size,o)))}return i}function ql(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,u;if(ps(n)){for(l=s;r&&!r.node;)r=r.parent;let d=r.node;if(r&&d.isAtom&&L.isSelectable(d)&&r.parent&&!(d.isInline&&eS(n.focusNode,n.focusOffset,r.dom))){let m=r.posBefore;u=new L(s==m?a:o.resolve(m))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=s,m=s;for(let f=0;f<n.rangeCount;f++){let p=n.getRangeAt(f);d=Math.min(d,t.docView.posFromDOM(p.startContainer,p.startOffset,1)),m=Math.max(m,t.docView.posFromDOM(p.endContainer,p.endOffset,-1))}if(d<0)return null;[l,s]=m==t.state.selection.anchor?[m,d]:[d,m],a=o.resolve(s)}else l=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}let c=o.resolve(l);if(!u){let d=e=="pointer"||t.state.selection.head<a.pos&&!i?1:-1;u=Ql(t,c,a,d)}return u}function up(t){return t.editable?t.hasFocus():gp(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function It(t,e=!1){let n=t.state.selection;if(fp(t,n),!!up(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&Me){let o=t.domSelectionRange(),r=t.domObserver.currentSelection;if(o.anchorNode&&r.anchorNode&&Fn(o.anchorNode,o.anchorOffset,r.anchorNode,r.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)RS(t);else{let{anchor:o,head:r}=n,i,s;cp&&!(n instanceof V)&&(n.$from.parent.inlineContent||(i=dp(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=dp(t,n.to))),t.docView.setSelection(o,r,t.root,e),cp&&(i&&mp(i),s&&mp(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&AS(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const cp=Le||Me&&Uf<63;function dp(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 Gl(r);if((!r||r.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(r)return Gl(r);if(i)return Gl(i)}}function Gl(t){return t.contentEditable="true",Le&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function mp(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function AS(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(()=>{(!up(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function RS(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,xe(o)+1):n.setStart(o,0),n.collapse(!0),e.removeAllRanges(),e.addRange(n),!r&&!t.state.selection.visible&&Ue&&Zt<=11&&(o.disabled=!0,o.disabled=!1)}function fp(t,e){if(e instanceof L){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(pp(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else pp(t)}function pp(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Ql(t,e,n,o){return t.someProp("createSelectionBetween",r=>r(t,e,n))||V.between(e,n,o)}function hp(t){return t.editable&&!t.hasFocus()?!1:gp(t)}function gp(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 MS(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return Fn(e.node,e.offset,n.anchorNode,n.anchorOffset)}function Zl(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 tn(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function yp(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 tn(t,new V(o.$anchor,s))}else if(o.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let r=Zl(t.state,e);return r&&r instanceof L?tn(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)?tn(t,new L(e<0?t.state.doc.resolve(r.pos-i.nodeSize):r)):Dr?tn(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 tn(t,new V(e>0?o.$to:o.$from));{let r=Zl(t.state,e);return r?tn(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 No(t,e){return e<0?DS(t):TS(t)}function DS(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let r,i,s=!1;for(pt&&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(wp(n))break;{let a=n.previousSibling;for(;a&&Ir(a,-1);)r=n.parentNode,i=xe(a),a=a.previousSibling;if(a)n=a,o=ys(n);else{if(n=n.parentNode,n==t.dom)break;o=0}}}s?Xl(t,n,o):r&&Xl(t,r,i)}function TS(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(wp(n))break;{let a=n.nextSibling;for(;a&&Ir(a,1);)i=a.parentNode,s=xe(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&&Xl(t,i,s)}function wp(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function jS(t,e){for(;t&&e==t.childNodes.length&&!Mr(t);)e=xe(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 PS(t,e){for(;t&&!e&&!Mr(t);)e=xe(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 Xl(t,e,n){if(e.nodeType!=3){let i,s;(s=jS(e,n))?(e=s,n=0):(i=PS(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&&It(t)},50)}function Sp(t,e){let n=t.state.doc.resolve(e);if(!(Me||oS)&&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 kp(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=Zl(t.state,e);if(s&&s instanceof L)return tn(t,s)}if(!r.parent.inlineContent){let s=e<0?r:i,a=o instanceof mt?J.near(s,e):J.findFrom(s,e);return a?tn(t,a):!1}return!1}function vp(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 bp(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function IS(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;bp(t,o,"true"),setTimeout(()=>bp(t,o,"false"),20)}return!1}function LS(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function zS(t,e){let n=e.keyCode,o=LS(e);if(n==8||et&&n==72&&o=="c")return vp(t,-1)||No(t,-1);if(n==46&&!e.shiftKey||et&&n==68&&o=="c")return vp(t,1)||No(t,1);if(n==13||n==27)return!0;if(n==37||et&&n==66&&o=="c"){let r=n==37?Sp(t,t.state.selection.from)=="ltr"?-1:1:-1;return yp(t,r,o)||No(t,r)}else if(n==39||et&&n==70&&o=="c"){let r=n==39?Sp(t,t.state.selection.from)=="ltr"?1:-1:1;return yp(t,r,o)||No(t,r)}else{if(n==38||et&&n==80&&o=="c")return kp(t,-1,o)||No(t,-1);if(n==40||et&&n==78&&o=="c")return IS(t)||kp(t,1,o)||No(t,1);if(o==(et?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function xp(t,e){t.someProp("transformCopied",f=>{e=f(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 f=o.firstChild;n.push(f.type.name,f.attrs!=f.type.defaultAttrs?f.attrs:null),o=f.content}let s=t.someProp("clipboardSerializer")||zn.fromSchema(t.state.schema),a=Mp(),l=a.createElement("div");l.appendChild(s.serializeFragment(o,{document:a}));let u=l.firstChild,c,d=0;for(;u&&u.nodeType==1&&(c=Ap[u.nodeName.toLowerCase()]);){for(let f=c.length-1;f>=0;f--){let p=a.createElement(c[f]);for(;l.firstChild;)p.appendChild(l.firstChild);l.appendChild(p),d++}u=l.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${r} ${i}${d?` -${d}`:""} ${JSON.stringify(n)}`);let m=t.someProp("clipboardTextSerializer",f=>f(e,t))||e.content.textBetween(0,e.content.size,`
25
+
26
+ `);return{dom:l,text:m,slice:e}}function $p(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",m=>{e=m(e,i||o,t)}),i)return e?new D(N.from(t.state.schema.text(e.replace(/\r\n?/g,`
27
+ `))),0,0):D.empty;let d=t.someProp("clipboardTextParser",m=>m(e,r,o,t));if(d)a=d;else{let m=r.marks(),{schema:f}=t.state,p=zn.fromSchema(f);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(y=>{let h=s.appendChild(document.createElement("p"));y&&h.appendChild(p.serializeNode(f.text(y,m)))})}}else t.someProp("transformPastedHTML",d=>{n=d(n,t)}),s=VS(n),Dr&&US(s);let u=s&&s.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let d=+c[3];d>0;d--){let m=s.firstChild;for(;m&&m.nodeType!=1;)m=m.nextSibling;if(!m)break;s=m}if(a||(a=(t.someProp("clipboardParser")||t.someProp("domParser")||Kt.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(l||c),context:r,ruleFromNode(m){return m.nodeName=="BR"&&!m.nextSibling&&m.parentNode&&!FS.test(m.parentNode.nodeName)?{ignore:!0}:null}})),c)a=JS(Op(a,+c[1],+c[2]),c[4]);else if(a=D.maxOpen(BS(a.content,r),!0),a.openStart||a.openEnd){let d=0,m=0;for(let f=a.content.firstChild;d<a.openStart&&!f.type.spec.isolating;d++,f=f.firstChild);for(let f=a.content.lastChild;m<a.openEnd&&!f.type.spec.isolating;m++,f=f.lastChild);a=Op(a,d,m)}return t.someProp("transformPasted",d=>{a=d(a,t)}),a}const FS=/^(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 BS(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),u;if(!l)return s=null;if(u=s.length&&i.length&&Ep(l,i,a,s[s.length-1],0))s[s.length-1]=u;else{s.length&&(s[s.length-1]=Np(s[s.length-1],i.length));let c=Cp(a,l);s.push(c),r=r.matchType(c.type),i=l}}),s)return N.from(s)}return t}function Cp(t,e,n=0){for(let o=e.length-1;o>=n;o--)t=e[o].create(null,N.from(t));return t}function Ep(t,e,n,o,r){if(r<t.length&&r<e.length&&t[r]==e[r]){let i=Ep(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(Cp(n,t,r+1))))}}function Np(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,Np(t.lastChild,e-1)),o=t.contentMatchAt(t.childCount).fillBefore(N.empty,!0);return t.copy(n.append(o))}function eu(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=eu(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 D(eu(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new D(eu(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const Ap={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 Rp=null;function Mp(){return Rp||(Rp=document.implementation.createHTMLDocument("title"))}function HS(t){let e=window.trustedTypes;return e?e.createPolicy("detachedDocument",{createHTML:n=>n}).createHTML(t):t}function VS(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=Mp().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(t),r;if((r=o&&Ap[o[1].toLowerCase()])&&(t=r.map(i=>"<"+i+">").join("")+t+r.map(i=>"</"+i+">").reverse().join("")),n.innerHTML=HS(t),r)for(let i=0;i<r.length;i++)n=n.querySelector(r[i])||n;return n}function US(t){let e=t.querySelectorAll(Me?"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 JS(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 D(r,i,s)}const ze={},Fe={},_S={touchstart:!0,touchmove:!0};class YS{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 KS(t){for(let e in ze){let n=ze[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=o=>{qS(t,o)&&!nu(t,o)&&(t.editable||!(o.type in Fe))&&n(t,o)},_S[e]?{passive:!0}:void 0)}Le&&t.dom.addEventListener("input",()=>null),tu(t)}function nn(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function WS(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 tu(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=o=>nu(t,o))})}function nu(t,e){return t.someProp("handleDOMEvents",n=>{let o=n[e.type];return o?o(t,e)||e.defaultPrevented:!1})}function qS(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 GS(t,e){!nu(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,!Tp(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(ht&&Me&&n.keyCode==13)))if(t.domObserver.selectionChanged(t.domSelectionRange())?t.domObserver.flush():n.keyCode!=229&&t.domObserver.forceFlush(),Co&&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))||zS(t,n)?n.preventDefault():nn(t,"key")},Fe.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},Fe.keypress=(t,e)=>{let n=e;if(Tp(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 QS(t,e){let n=e.x-t.clientX,o=e.y-t.clientY;return n*n+o*o<100}function ou(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 Oo(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 ZS(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),o=n.nodeAfter;return o&&o.isAtom&&L.isSelectable(o)?(Oo(t,new L(n),"pointer"),!0):!1}function XS(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?(Oo(t,L.create(t.state.doc,r),"pointer"),!0):!1}function ek(t,e,n,o,r){return ou(t,"handleClickOn",e,n,o)||t.someProp("handleClick",i=>i(t,e,o))||(r?XS(t,n):ZS(t,n))}function tk(t,e,n,o){return ou(t,"handleDoubleClickOn",e,n,o)||t.someProp("handleDoubleClick",r=>r(t,e,o))}function nk(t,e,n,o){return ou(t,"handleTripleClickOn",e,n,o)||t.someProp("handleTripleClick",r=>r(t,e,o))||ok(t,n,o)}function ok(t,e,n){if(n.button!=0)return!1;let o=t.state.doc;if(e==-1)return o.inlineContent?(Oo(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)Oo(t,V.create(o,a+1,a+1+s.content.size),"pointer");else if(L.isSelectable(s))Oo(t,L.create(o,a),"pointer");else continue;return!0}}function ru(t){return Ss(t)}const Dp=et?"metaKey":"ctrlKey";ze.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let o=ru(t),r=Date.now(),i="singleClick";r-t.input.lastClick.time<500&&QS(n,t.input.lastClick)&&!n[Dp]&&(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 rk(t,s,n,!!o)):(i=="doubleClick"?tk:nk)(t,s.pos,s.inside,n)?n.preventDefault():nn(t,"pointer"))};class rk{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[Dp],this.allowDefault=o.shiftKey;let i,s;if(n.inside>-1)i=e.state.doc.nodeAt(n.inside),s=n.inside;else{let c=e.state.doc.resolve(n.pos);i=c.parent,s=c.depth?c.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:u}=e.state;(o.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||u instanceof L&&u.from<=s&&u.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&pt&&!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)),nn(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(()=>It(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?nn(this.view,"pointer"):ek(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Le&&this.mightDrag&&!this.mightDrag.node.isAtom||Me&&!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)?(Oo(this.view,J.near(this.view.state.doc.resolve(n.pos)),"pointer"),e.preventDefault()):nn(this.view,"pointer")}move(e){this.updateAllowDefault(e),nn(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(),ru(t),nn(t,"pointer")},ze.touchmove=t=>{t.input.lastTouch=Date.now(),nn(t,"pointer")},ze.contextmenu=t=>ru(t);function Tp(t,e){return t.composing?!0:Le&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const ik=ht?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),pt&&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}jp(t,ik)},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++,jp(t,20))};function jp(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>Ss(t),e))}function Pp(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=ak());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function sk(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=Zw(e.focusNode,e.focusOffset),o=Xw(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 ak(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function Ss(t,e=!1){if(!(ht&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),Pp(t),e||t.docView&&t.docView.dirty){let n=ql(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 lk(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&&Zt<15||Co&&rS<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}=xp(t,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",l)):lk(t,a),r&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function uk(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function ck(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=$p(t,e,n,o,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,r,i||D.empty)))return!0;if(!i)return!1;let s=uk(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 Ip(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&&!ht)return;let o=Lr?null:n.clipboardData,r=t.input.shiftKey&&t.input.lastKeyCode!=45;o&&zr(t,Ip(o),o.getData("text/html"),r,n)?n.preventDefault():ck(t,n)};class Lp{constructor(e,n,o){this.slice=e,this.move=n,this.node=o}}const zp=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 d=t.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=t.docView&&(s=L.create(t.state.doc,d.posBefore))}}let a=(s||t.state.selection).content(),{dom:l,text:u,slice:c}=xp(t,a);(!n.dataTransfer.files.length||!Me||Uf>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Lr?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",Lr||n.dataTransfer.setData("text/plain",u),t.dragging=new Lp(c,!n[zp],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",p=>{s=p(s,t)}):s=$p(t,Ip(n.dataTransfer),Lr?null:n.dataTransfer.getData("text/html"),!1,i);let a=!!(o&&!n[zp]);if(t.someProp("handleDrop",p=>p(t,n,s||D.empty,a))){n.preventDefault();return}if(!s)return;n.preventDefault();let l=s?Fw(t.state.doc,i.pos,s):i.pos;l==null&&(l=i.pos);let u=t.state.tr;if(a){let{node:p}=o;p?p.replace(u):u.deleteSelection()}let c=u.mapping.map(l),d=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,m=u.doc;if(d?u.replaceRangeWith(c,c,s.content.firstChild):u.replaceRange(c,c,s),u.doc.eq(m))return;let f=u.doc.resolve(c);if(d&&L.isSelectable(s.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(s.content.firstChild))u.setSelection(new L(f));else{let p=u.mapping.map(l);u.mapping.maps[u.mapping.maps.length-1].forEach((y,h,g,S)=>p=S),u.setSelection(Ql(t,f,u.doc.resolve(p)))}t.focus(),t.dispatch(u.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())&&It(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(Me&&ht&&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 ks{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 ks&&(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 on{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 on&&Fr(this.attrs,e.attrs)&&Fr(this.spec,e.spec)}static is(e){return e.type instanceof on}destroy(){}}class iu{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 iu&&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 ks(n,o))}static inline(e,n,o,r){return new nt(e,n,new on(o,r))}static node(e,n,o,r){return new nt(e,n,new iu(o,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof on}get widget(){return this.type instanceof ks}}const Ao=[],Jn={};class me{constructor(e,n){this.local=e.length?e:Ao,this.children=n.length?n:Ao}static create(e,n){return n.length?vs(n,e,0,Jn):De}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==De||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?dk(this.children,s||[],e,n,o,r,i):s?new me(s.sort(_n),Ao):De}add(e,n){return n.length?this==De?me.create(e,n):this.addInner(e,n,0):this}addInner(e,n,o){let r,i=0;e.forEach((a,l)=>{let u=l+o,c;if(c=Bp(n,a,u)){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,c,u+1):r.splice(i,0,l,l+a.nodeSize,vs(c,a,u+1,Jn)),i+=3}});let s=Fp(i?Hp(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(_n):this.local,r||this.children)}remove(e){return e.length==0||this==De?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 c=0,d;c<e.length;c++)(d=e[c])&&d.from>a&&d.to<l&&(e[c]=null,(s||(s=[])).push(d));if(!s)continue;o==this.children&&(o=this.children.slice());let u=o[i+2].removeInner(s,a+1);u!=De?o[i+2]=u:(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):De}forChild(e,n){if(this==De)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 on){let u=Math.max(i,l.from)-i,c=Math.min(s,l.to)-i;u<c&&(r||(r=[])).push(l.copy(u,c))}}if(r){let a=new me(r.sort(_n),Ao);return o?new rn([a,o]):a}return o||De}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 su(this.localsInner(e))}localsInner(e){if(this==De)return Ao;if(e.inlineContent||!this.local.some(on.is))return this.local;let n=[];for(let o=0;o<this.local.length;o++)this.local[o].type instanceof on||n.push(this.local[o]);return n}forEachSet(e){e(this)}}me.empty=new me([],[]),me.removeOverlap=su;const De=me.empty;class rn{constructor(e){this.members=e}map(e,n){const o=this.members.map(r=>r.map(e,n,Jn));return rn.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!=De&&(i instanceof rn?o=o.concat(i.members):o.push(i))}return rn.from(o)}eq(e){if(!(e instanceof rn)||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?su(o?n:n.sort(_n)):Ao}static from(e){switch(e.length){case 0:return De;case 1:return e[0];default:return new rn(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 dk(t,e,n,o,r,i,s){let a=t.slice();for(let u=0,c=i;u<n.maps.length;u++){let d=0;n.maps[u].forEach((m,f,p,y)=>{let h=y-p-(f-m);for(let g=0;g<a.length;g+=3){let S=a[g+1];if(S<0||m>S+c-d)continue;let k=a[g]+c-d;f>=k?a[g+1]=m<=k?-2:-1:m>=c&&h&&(a[g]+=h,a[g+1]+=h)}d+=h}),c=n.maps[u].map(c,-1)}let l=!1;for(let u=0;u<a.length;u+=3)if(a[u+1]<0){if(a[u+1]==-2){l=!0,a[u+1]=-1;continue}let c=n.map(t[u]+i),d=c-r;if(d<0||d>=o.content.size){l=!0;continue}let m=n.map(t[u+1]+i,-1),f=m-r,{index:p,offset:y}=o.content.findIndex(d),h=o.maybeChild(p);if(h&&y==d&&y+h.nodeSize==f){let g=a[u+2].mapInner(n,h,c+1,t[u]+i+1,s);g!=De?(a[u]=d,a[u+1]=f,a[u+2]=g):(a[u+1]=-2,l=!0)}else l=!0}if(l){let u=mk(a,t,e,n,r,i,s),c=vs(u,o,0,s);e=c.local;for(let d=0;d<a.length;d+=3)a[d+1]<0&&(a.splice(d,3),d-=3);for(let d=0,m=0;d<c.children.length;d+=3){let f=c.children[d];for(;m<a.length&&a[m]<f;)m+=3;a.splice(m,0,c.children[d],c.children[d+1],c.children[d+2])}}return new me(e.sort(_n),a)}function Fp(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 mk(t,e,n,o,r,i,s){function a(l,u){for(let c=0;c<l.local.length;c++){let d=l.local[c].map(o,r,u);d?n.push(d):s.onRemove&&s.onRemove(l.local[c].spec)}for(let c=0;c<l.children.length;c+=3)a(l.children[c+2],l.children[c]+u+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 Bp(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 Hp(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 u=Bp(t,a,l+n);if(u){i=!0;let c=vs(u,a,n+l+1,o);c!=De&&r.push(l,l+a.nodeSize,c)}});let s=Fp(i?Hp(t):t,-n).sort(_n);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):De}function _n(t,e){return t.from-e.from||t.to-e.to}function su(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),Vp(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),Vp(e,r,o.copy(i.from,o.to)));break}}}return e}function Vp(t,e,n){for(;e<t.length&&_n(n,t[e])>0;)e++;t.splice(e,0,n)}function au(t){let e=[];return t.someProp("decorations",n=>{let o=n(t.state);o&&o!=De&&e.push(o)}),t.cursorWrapper&&e.push(me.create(t.state.doc,[t.cursorWrapper.deco])),rn.from(e)}const fk={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},pk=Ue&&Zt<=11;class hk{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 gk{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new hk,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&&Zt<=11&&o.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),pk&&(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,fk)),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(hp(this.view)){if(this.suppressingSelectionUpdates)return It(this.view);if(Ue&&Zt<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Fn(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,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)&&hp(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 c=0;c<n.length;c++){let d=this.registerMutation(n[c],l);d&&(i=i<0?d.from:Math.min(d.from,i),s=s<0?d.to:Math.max(d.to,s),d.typeOver&&(a=!0))}if(pt&&l.length){let c=l.filter(d=>d.nodeName=="BR");if(c.length==2){let[d,m]=c;d.parentNode&&d.parentNode.parentNode==m.parentNode?m.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let m of c){let f=m.parentNode;f&&f.nodeName=="LI"&&(!d||Sk(e,d)!=f)&&m.remove()}}}let u=null;i<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&ps(o)&&(u=ql(e))&&u.eq(J.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,It(e),this.currentSelection.set(o),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,s),yk(e)),this.handleDOMChange(i,s,a,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(o)||It(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 c=0;c<e.addedNodes.length;c++){let d=e.addedNodes[c];n.push(d),d.nodeType==3&&(this.lastChangedTextNode=d)}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&&Zt<=11&&e.addedNodes.length)for(let c=0;c<e.addedNodes.length;c++){let{previousSibling:d,nextSibling:m}=e.addedNodes[c];(!d||Array.prototype.indexOf.call(e.addedNodes,d)<0)&&(r=d),(!m||Array.prototype.indexOf.call(e.addedNodes,m)<0)&&(i=m)}let s=r&&r.parentNode==e.target?xe(r)+1:0,a=o.localPosFromDOM(e.target,s,-1),l=i&&i.parentNode==e.target?xe(i):e.target.childNodes.length,u=o.localPosFromDOM(e.target,l,1);return{from:a,to:u}}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 Up=new WeakMap,Jp=!1;function yk(t){if(!Up.has(t)&&(Up.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=pt,Jp)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."),Jp=!0}}function _p(t,e){let n=e.startContainer,o=e.startOffset,r=e.endContainer,i=e.endOffset,s=t.domAtPos(t.state.selection.anchor);return Fn(s.node,s.offset,r,i)&&([n,o,r,i]=[r,i,n,o]),{anchorNode:n,anchorOffset:o,focusNode:r,focusOffset:i}}function wk(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return _p(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?_p(t,n):null}function Sk(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 kk(t,e,n){let{node:o,fromOffset:r,toOffset:i,from:s,to:a}=t.docView.parseRange(e,n),l=t.domSelectionRange(),u,c=l.anchorNode;if(c&&t.dom.contains(c.nodeType==1?c:c.parentNode)&&(u=[{node:c,offset:l.anchorOffset}],ps(l)||u.push({node:l.focusNode,offset:l.focusOffset})),Me&&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 d=t.state.doc,m=t.someProp("domParser")||Kt.fromSchema(t.state.schema),f=d.resolve(s),p=null,y=m.parse(o,{topNode:f.parent,topMatch:f.parent.contentMatchAt(f.index()),topOpen:!0,from:r,to:i,preserveWhitespace:f.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:vk,context:f});if(u&&u[0].pos!=null){let h=u[0].pos,g=u[1]&&u[1].pos;g==null&&(g=h),p={anchor:h+s,head:g+s}}return{doc:y,sel:p,from:s,to:a}}function vk(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 bk=/^(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 xk(t,e,n,o,r){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let C=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,_=ql(t,C);if(_&&!t.state.selection.eq(_)){if(Me&&ht&&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(_);C=="pointer"?se.setMeta("pointer",!0):C=="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,u=kk(t,e,n),c=t.state.doc,d=c.slice(u.from,u.to),m,f;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(m=t.state.selection.to,f="end"):(m=t.state.selection.from,f="start"),t.input.lastKeyCode=null;let p=Ek(d.content,u.doc.content,u.from,m,f);if(p&&t.input.domChangeCount++,(Co&&t.input.lastIOSEnter>Date.now()-225||ht)&&r.some(C=>C.nodeType==1&&!bk.test(C.nodeName))&&(!p||p.endA>=p.endB)&&t.someProp("handleKeyDown",C=>C(t,Bn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!p)if(o&&l instanceof V&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))p={start:l.from,endA:l.to,endB:l.to};else{if(u.sel){let C=Yp(t,t.state.doc,u.sel);if(C&&!C.eq(t.state.selection)){let _=t.state.tr.setSelection(C);i&&_.setMeta("composition",i),t.dispatch(_)}}return}t.state.selection.from<t.state.selection.to&&p.start==p.endB&&t.state.selection instanceof V&&(p.start>t.state.selection.from&&p.start<=t.state.selection.from+2&&t.state.selection.from>=u.from?p.start=t.state.selection.from:p.endA<t.state.selection.to&&p.endA>=t.state.selection.to-2&&t.state.selection.to<=u.to&&(p.endB+=t.state.selection.to-p.endA,p.endA=t.state.selection.to)),Ue&&Zt<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>u.from&&u.doc.textBetween(p.start-u.from-1,p.start-u.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let y=u.doc.resolveNoCache(p.start-u.from),h=u.doc.resolveNoCache(p.endB-u.from),g=c.resolve(p.start),S=y.sameParent(h)&&y.parent.inlineContent&&g.end()>=p.endA,k;if((Co&&t.input.lastIOSEnter>Date.now()-225&&(!S||r.some(C=>C.nodeName=="DIV"||C.nodeName=="P"))||!S&&y.pos<u.doc.content.size&&!y.sameParent(h)&&(k=J.findFrom(u.doc.resolve(y.pos+1),1,!0))&&k.head==h.pos)&&t.someProp("handleKeyDown",C=>C(t,Bn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>p.start&&Ck(c,p.start,p.endA,y,h)&&t.someProp("handleKeyDown",C=>C(t,Bn(8,"Backspace")))){ht&&Me&&t.domObserver.suppressSelectionUpdates();return}Me&&ht&&p.endB==p.start&&(t.input.lastAndroidDelete=Date.now()),ht&&!S&&y.start()!=h.start()&&h.parentOffset==0&&y.depth==h.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==p.endA&&(p.endB-=2,h=u.doc.resolveNoCache(p.endB-u.from),setTimeout(()=>{t.someProp("handleKeyDown",function(C){return C(t,Bn(13,"Enter"))})},20));let b=p.start,E=p.endA,v,$,R;if(S){if(y.pos==h.pos)Ue&&Zt<=11&&y.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>It(t),20)),v=t.state.tr.delete(b,E),$=c.resolve(p.start).marksAcross(c.resolve(p.endA));else if(p.endA==p.endB&&(R=$k(y.parent.content.cut(y.parentOffset,h.parentOffset),g.parent.content.cut(g.parentOffset,p.endA-g.start()))))v=t.state.tr,R.type=="add"?v.addMark(b,E,R.mark):v.removeMark(b,E,R.mark);else if(y.parent.child(y.index()).isText&&y.index()==h.index()-(h.textOffset?0:1)){let C=y.parent.textBetween(y.parentOffset,h.parentOffset);if(t.someProp("handleTextInput",_=>_(t,b,E,C)))return;v=t.state.tr.insertText(C,b,E)}}if(v||(v=t.state.tr.replace(b,E,u.doc.slice(p.start-u.from,p.endB-u.from))),u.sel){let C=Yp(t,v.doc,u.sel);C&&!(Me&&ht&&t.composing&&C.empty&&(p.start!=p.endB||t.input.lastAndroidDelete<Date.now()-100)&&(C.head==b||C.head==v.mapping.map(E)-1)||Ue&&C.empty&&C.head==b)&&v.setSelection(C)}$&&v.ensureMarks($),i&&v.setMeta("composition",i),t.dispatch(v.scrollIntoView())}function Yp(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:Ql(t,e.resolve(n.anchor),e.resolve(n.head))}function $k(t,e){let n=t.firstChild.marks,o=e.firstChild.marks,r=n,i=o,s,a,l;for(let c=0;c<o.length;c++)r=o[c].removeFromSet(r);for(let c=0;c<n.length;c++)i=n[c].removeFromSet(i);if(r.length==1&&i.length==0)a=r[0],s="add",l=c=>c.mark(a.addToSet(c.marks));else if(r.length==0&&i.length==1)a=i[0],s="remove",l=c=>c.mark(a.removeFromSet(c.marks));else return null;let u=[];for(let c=0;c<e.childCount;c++)u.push(l(e.child(c)));if(N.from(u).eq(t))return{mark:a,type:s}}function Ck(t,e,n,o,r){if(n-e<=r.pos-o.pos||lu(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(lu(i,!0,!0));return!s.parent.isTextblock||s.pos>n||lu(s,!0,!1)<n?!1:o.parent.content.cut(o.parentOffset).eq(s.parent.content)}function lu(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 Ek(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&&Kp(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&&Kp(t.textBetween(i-1,i+1))&&(i+=l?1:-1),s=i+(s-a),a=i}return{start:i,endA:s,endB:a}}function Kp(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 Nk{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 YS,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(Zp),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=Gp(this),qp(this),this.nodeViews=Qp(this),this.docView=op(this.state.doc,Wp(this),au(this),this.dom,this),this.domObserver=new gk(this,(o,r,i,s)=>xk(this,o,r,i,s)),this.domObserver.start(),KS(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&&tu(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Zp),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&&(Pp(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 f=Qp(this);Ak(f,this.nodeViews)&&(this.nodeViews=f,i=!0)}(a||n.handleDOMEvents!=this._props.handleDOMEvents)&&tu(this),this.editable=Gp(this),qp(this);let l=au(this),u=Wp(this),c=r.plugins!=e.plugins&&!r.doc.eq(e.doc)?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",d=i||!this.docView.matchesNode(e.doc,u,l);(d||!e.selection.eq(r.selection))&&(s=!0);let m=c=="preserve"&&s&&this.dom.style.overflowAnchor==null&&aS(this);if(s){this.domObserver.stop();let f=d&&(Ue||Me)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&Ok(r.selection,e.selection);if(d){let p=Me?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=sk(this)),(i||!this.docView.update(e.doc,u,l,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=op(e.doc,u,l,this.dom,this)),p&&!this.trackWrites&&(f=!0)}f||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&MS(this))?It(this,f):(fp(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),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():m&&lS(m)}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&&Jf(this,n.getBoundingClientRect(),e)}else Jf(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 Lp(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&&uS(this.dom),It(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 pS(this,e)}coordsAtPos(e,n=1){return Gf(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 SS(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&&(WS(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],au(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,Gw())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return GS(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&&tS(this.dom.ownerDocument)==this.dom&&wk(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function Wp(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 Gp(t){return!t.someProp("editable",e=>e(t.state)===!1)}function Ok(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 Qp(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 Ak(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 Zp(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 sn={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},bs={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Rk=typeof navigator<"u"&&/Mac/.test(navigator.platform),Mk=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),$e=0;$e<10;$e++)sn[48+$e]=sn[96+$e]=String($e);for(var $e=1;$e<=24;$e++)sn[$e+111]="F"+$e;for(var $e=65;$e<=90;$e++)sn[$e]=String.fromCharCode($e+32),bs[$e]=String.fromCharCode($e);for(var uu in sn)bs.hasOwnProperty(uu)||(bs[uu]=sn[uu]);function Dk(t){var e=Rk&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||Mk&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?bs:sn)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const Tk=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function jk(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))Tk?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 Pk(t){let e=Object.create(null);for(let n in t)e[jk(n)]=t[n];return e}function cu(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 Ik(t){return new Ve({props:{handleKeyDown:Lk(t)}})}function Lk(t){let e=Pk(t);return function(n,o){let r=Dk(o),i,s=e[cu(r,o)];if(s&&s(n.state,n.dispatch,n))return!0;if(r.length==1&&r!=" "){if(o.shiftKey){let a=e[cu(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=sn[o.keyCode])&&i!=r){let a=e[cu(i,o)];if(a&&a(n.state,n.dispatch,n))return!0}}return!1}}const zk=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function Xp(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const Fk=(t,e,n)=>{let o=Xp(t,n);if(!o)return!1;let r=du(o);if(!r){let s=o.blockRange(),a=s&&So(s);return a==null?!1:(e&&e(t.tr.lift(s,a).scrollIntoView()),!0)}let i=r.nodeBefore;if(oh(t,r,e,-1))return!0;if(o.parent.content.size==0&&(Ro(i,"end")||L.isSelectable(i)))for(let s=o.depth;;s--){let a=ds(t.doc,o.before(s),o.after(s),D.empty);if(a&&a.slice.size<a.to-a.from){if(e){let l=t.tr.step(a);l.setSelection(Ro(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},Bk=(t,e,n)=>{let o=Xp(t,n);if(!o)return!1;let r=du(o);return r?eh(t,r,e):!1},Hk=(t,e,n)=>{let o=th(t,n);if(!o)return!1;let r=mu(o);return r?eh(t,r,e):!1};function eh(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 c=r.lastChild;if(!c)return!1;r=c}let s=e.nodeAfter,a=s,l=e.pos+1;for(;!a.isTextblock;l++){if(a.type.spec.isolating)return!1;let c=a.firstChild;if(!c)return!1;a=c}let u=ds(t.doc,i,l,D.empty);if(!u||u.from!=i||u instanceof he&&u.slice.size>=l-i)return!1;if(n){let c=t.tr.step(u);c.setSelection(V.create(c.doc,i)),n(c.scrollIntoView())}return!0}function Ro(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 Vk=(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=du(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 du(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 th(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const Uk=(t,e,n)=>{let o=th(t,n);if(!o)return!1;let r=mu(o);if(!r)return!1;let i=r.nodeAfter;if(oh(t,r,e,1))return!0;if(o.parent.content.size==0&&(Ro(i,"start")||L.isSelectable(i))){let s=ds(t.doc,o.before(),o.after(),D.empty);if(s&&s.slice.size<s.to-s.from){if(e){let a=t.tr.step(s);a.setSelection(Ro(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},Jk=(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=mu(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 mu(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 _k=(t,e)=>{let n=t.selection,o=n instanceof L,r;if(o){if(n.node.isTextblock||!Gt(t.doc,n.from))return!1;r=n.from}else if(r=cs(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},Yk=(t,e)=>{let n=t.selection,o;if(n instanceof L){if(n.node.isTextblock||!Gt(t.doc,n.to))return!1;o=n.to}else if(o=cs(t.doc,n.to,1),o==null)return!1;return e&&e(t.tr.join(o).scrollIntoView()),!0},Kk=(t,e)=>{let{$from:n,$to:o}=t.selection,r=n.blockRange(o),i=r&&So(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)},Wk=(t,e)=>{let{$head:n,$anchor:o}=t.selection;return!n.parent.type.spec.code||!n.sameParent(o)?!1:(e&&e(t.tr.insertText(`
28
+ `).scrollIntoView()),!0)};function nh(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 qk=(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=nh(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},Gk=(t,e)=>{let n=t.selection,{$from:o,$to:r}=n;if(n instanceof mt||o.parent.inlineContent||r.parent.inlineContent)return!1;let i=nh(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},Qk=(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(ko(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let o=n.blockRange(),r=o&&So(o);return r==null?!1:(e&&e(t.tr.lift(o,r).scrollIntoView()),!0)},Zk=(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 Xk(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||Gt(t.doc,e.pos))?!1:(n&&n(t.tr.clearIncompatible(e.pos,o.type,o.contentMatchAt(o.childCount)).join(e.pos).scrollIntoView()),!0)}function oh(t,e,n,o){let r=e.nodeBefore,i=e.nodeAfter,s,a,l=r.type.spec.isolating||i.type.spec.isolating;if(!l&&Xk(t,e,n))return!0;let u=!l&&e.parent.canReplace(e.index(),e.index()+1);if(u&&(s=(a=r.contentMatchAt(r.childCount)).findWrapping(i.type))&&a.matchType(s[0]||i.type).validEnd){if(n){let f=e.pos+i.nodeSize,p=N.empty;for(let g=s.length-1;g>=0;g--)p=N.from(s[g].create(null,p));p=N.from(r.copy(p));let y=t.tr.step(new ge(e.pos-1,f,e.pos,f,new D(p,1,0),s.length,!0)),h=f+2*s.length;Gt(y.doc,h)&&y.join(h),n(y.scrollIntoView())}return!0}let c=i.type.spec.isolating||o>0&&l?null:J.findFrom(e,1),d=c&&c.$from.blockRange(c.$to),m=d&&So(d);if(m!=null&&m>=e.depth)return n&&n(t.tr.lift(d,m).scrollIntoView()),!0;if(u&&Ro(i,"start",!0)&&Ro(r,"end")){let f=r,p=[];for(;p.push(f),!f.isTextblock;)f=f.lastChild;let y=i,h=1;for(;!y.isTextblock;y=y.firstChild)h++;if(f.canReplace(f.childCount,f.childCount,y.content)){if(n){let g=N.empty;for(let k=p.length-1;k>=0;k--)g=N.from(p[k].copy(g));let S=t.tr.step(new ge(e.pos-p.length,e.pos+i.nodeSize,e.pos+h,e.pos+i.nodeSize-h,new D(g,p.length,0),0,!0));n(S.scrollIntoView())}return!0}}return!1}function rh(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 ev=rh(-1),tv=rh(1);function nv(t,e=null){return function(n,o){let{$from:r,$to:i}=n.selection,s=r.blockRange(i),a=s&&jl(s,t,e);return a?(o&&o(n.tr.wrap(s,a).scrollIntoView()),!0):!1}}function ih(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,u)=>{if(r)return!1;if(!(!l.isTextblock||l.hasMarkup(t,e)))if(l.type==t)r=!0;else{let c=n.doc.resolve(u),d=c.index();r=c.parent.canReplaceWith(d,d+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 ov(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 c=n.doc.resolve(s.start-2);l=new ts(c,c,s.depth),s.endIndex<s.parent.childCount&&(s=new ts(r,n.doc.resolve(i.end(s.depth)),s.depth)),a=!0}let u=jl(l,t,e,s);return u?(o&&o(rv(n.tr,s,u,a,t).scrollIntoView()),!0):!1}}function rv(t,e,n,o,r){let i=N.empty;for(let c=n.length-1;c>=0;c--)i=N.from(n[c].type.create(n[c].attrs,i));t.step(new ge(e.start-(o?2:0),e.end,e.start,e.end,new D(i,0,0),n.length,!0));let s=0;for(let c=0;c<n.length;c++)n[c].type==r&&(s=c+1);let a=n.length-s,l=e.start+n.length-(o?2:0),u=e.parent;for(let c=e.startIndex,d=e.endIndex,m=!0;c<d;c++,m=!1)!m&&ko(t.doc,l,a)&&(t.split(l,a),l+=2*a),l+=u.child(c).nodeSize;return t}function iv(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?sv(e,n,t,i):av(e,n,i):!0:!1}}function sv(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 D(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=So(o);if(a==null)return!1;r.lift(o,a);let l=r.mapping.map(i,-1)-1;return Gt(r.doc,l)&&r.join(l),e(r.scrollIntoView()),!0}function av(t,e,n){let o=t.tr,r=n.parent;for(let f=n.end,p=n.endIndex-1,y=n.startIndex;p>y;p--)f-=r.child(p).nodeSize,o.delete(f-1,f+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,u=i.node(-1),c=i.index(-1);if(!u.canReplace(c+(a?0:1),c+1,s.content.append(l?N.empty:N.from(r))))return!1;let d=i.pos,m=d+s.nodeSize;return o.step(new ge(d-(a?1:0),m+(l?1:0),d+1,m-1,new D((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 lv(t){return function(e,n){let{$from:o,$to:r}=e.selection,i=o.blockRange(r,u=>u.childCount>0&&u.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 u=l.lastChild&&l.lastChild.type==a.type,c=N.from(u?t.create():null),d=new D(N.from(t.create(null,N.from(a.type.create(null,c)))),u?3:1,0),m=i.start,f=i.end;n(e.tr.step(new ge(m-(u?3:1),f,m,f,d,1,!0)).scrollIntoView())}return!0}}function xs(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,(...c)=>{const d=l(...c)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(i),d}]))}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,u=e||i.tr,c=()=>(!l&&n&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(u),a.every(m=>m===!0)),d={...Object.fromEntries(Object.entries(o).map(([m,f])=>[m,(...y)=>{const h=this.buildProps(u,n),g=f(...y)(h);return a.push(g),d}])),run:c};return d}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,u])=>[l,(...c)=>u(...c)({...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:xs({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,u])=>[l,(...c)=>u(...c)(a)]))}};return a}}let uv=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 sh(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(c=>{c.types.forEach(d=>{Object.entries(c.attributes).forEach(([m,f])=>{e.push({type:d,name:m,attribute:{...i,...f}})})})})}),r.forEach(s=>{const a={name:s.name,options:s.options,storage:s.storage},l=j(s,"addAttributes",a);if(!l)return;const u=l();Object.entries(u).forEach(([c,d])=>{const m={...i,...d};typeof(m==null?void 0:m.default)=="function"&&(m.default=m.default()),m!=null&&m.isRequired&&(m==null?void 0:m.default)===void 0&&delete m.default,e.push({type:s.name,name:c,attribute:m})})}),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(" "):[],u=a.filter(c=>!l.includes(c));o[r]=[...l,...u].join(" ")}else if(r==="style"){const a=i?i.split(";").map(c=>c.trim()).filter(Boolean):[],l=o[r]?o[r].split(";").map(c=>c.trim()).filter(Boolean):[],u=new Map;l.forEach(c=>{const[d,m]=c.split(":").map(f=>f.trim());u.set(d,m)}),a.forEach(c=>{const[d,m]=c.split(":").map(f=>f.trim());u.set(d,m)}),o[r]=Array.from(u.entries()).map(([c,d])=>`${c}: ${d}`).join("; ")}else o[r]=i}),o},{})}function fu(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 ah(t){return typeof t=="function"}function Y(t,e=void 0,...n){return ah(t)?e?t.bind(e)(...n):t(...n):t}function cv(t={}){return Object.keys(t).length===0&&t.constructor===Object}function dv(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function lh(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):dv(n.getAttribute(s.name));return a==null?i:{...i,[s.name]:a}},{});return{...o,...r}}}}function uh(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&cv(n)?!1:n!=null))}function mv(t,e){var n;const o=sh(t),{nodeExtensions:r,markExtensions:i}=Cs(t),s=(n=r.find(u=>j(u,"topNode")))===null||n===void 0?void 0:n.name,a=Object.fromEntries(r.map(u=>{const c=o.filter(g=>g.type===u.name),d={name:u.name,options:u.options,storage:u.storage,editor:e},m=t.reduce((g,S)=>{const k=j(S,"extendNodeSchema",d);return{...g,...k?k(u):{}}},{}),f=uh({...m,content:Y(j(u,"content",d)),marks:Y(j(u,"marks",d)),group:Y(j(u,"group",d)),inline:Y(j(u,"inline",d)),atom:Y(j(u,"atom",d)),selectable:Y(j(u,"selectable",d)),draggable:Y(j(u,"draggable",d)),code:Y(j(u,"code",d)),whitespace:Y(j(u,"whitespace",d)),defining:Y(j(u,"defining",d)),isolating:Y(j(u,"isolating",d)),attrs:Object.fromEntries(c.map(g=>{var S;return[g.name,{default:(S=g==null?void 0:g.attribute)===null||S===void 0?void 0:S.default}]}))}),p=Y(j(u,"parseHTML",d));p&&(f.parseDOM=p.map(g=>lh(g,c)));const y=j(u,"renderHTML",d);y&&(f.toDOM=g=>y({node:g,HTMLAttributes:fu(g,c)}));const h=j(u,"renderText",d);return h&&(f.toText=h),[u.name,f]})),l=Object.fromEntries(i.map(u=>{const c=o.filter(h=>h.type===u.name),d={name:u.name,options:u.options,storage:u.storage,editor:e},m=t.reduce((h,g)=>{const S=j(g,"extendMarkSchema",d);return{...h,...S?S(u):{}}},{}),f=uh({...m,inclusive:Y(j(u,"inclusive",d)),excludes:Y(j(u,"excludes",d)),group:Y(j(u,"group",d)),spanning:Y(j(u,"spanning",d)),code:Y(j(u,"code",d)),attrs:Object.fromEntries(c.map(h=>{var g;return[h.name,{default:(g=h==null?void 0:h.attribute)===null||g===void 0?void 0:g.default}]}))}),p=Y(j(u,"parseHTML",d));p&&(f.parseDOM=p.map(h=>lh(h,c)));const y=j(u,"renderHTML",d);return y&&(f.toDOM=h=>y({mark:h,HTMLAttributes:fu(h,c)})),[u.name,f]}));return new lf({topNode:s,nodes:a,marks:l})}function pu(t,e){return e.nodes[t]||e.marks[t]||null}function ch(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}const fv=(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,u;const c=((u=(l=r.type.spec).toText)===null||u===void 0?void 0:u.call(l,{node:r,pos:i,parent:s,index:a}))||r.textContent||"%leaf%";n+=r.isAtom&&!r.isText?c:c.slice(0,Math.max(0,o-i))}),n};function hu(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class pv{constructor(e){this.find=e.find,this.handler=e.handler}}const hv=(t,e)=>{if(hu(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 u=l.state.doc.resolve(o);if(u.parent.type.spec.code||!((e=u.nodeBefore||u.nodeAfter)===null||e===void 0)&&e.marks.find(m=>m.type.spec.code))return!1;let c=!1;const d=fv(u)+i;return s.forEach(m=>{if(c)return;const f=hv(d,m.find);if(!f)return;const p=l.state.tr,y=xs({state:l.state,transaction:p}),h={from:o-(f[0].length-i.length),to:r},{commands:g,chain:S,can:k}=new $s({editor:n,state:y});m.handler({state:y,range:h,match:f,commands:g,chain:S,can:k})===null||!p.steps.length||(p.setMeta(a,{transform:p,from:o,to:r,text:i}),l.dispatch(p),c=!0)}),c}function gv(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:u,text:c}=a,d=u+c.length;Es({editor:e,from:u,to:d,text:c,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:`
29
+ `,rules:n,plugin:o}):!1}},isInputRules:!0});return o}function yv(t){return Object.prototype.toString.call(t).slice(8,-1)}function Ns(t){return yv(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function Os(t,e){const n={...t};return Ns(t)&&Ns(e)&&Object.keys(e).forEach(o=>{Ns(e[o])&&Ns(t[o])?n[o]=Os(t[o],e[o]):n[o]=e[o]}),n}class Br{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 Br(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Os(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new Br(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(u=>(u==null?void 0:u.type.name)===n.name))return!1;const l=s.find(u=>(u==null?void 0:u.type.name)===n.name);return l&&o.removeStoredMark(l),o.insertText(" ",r.pos),e.view.dispatch(o),!0}return!1}}function wv(t){return typeof t=="number"}class Sv{constructor(e){this.find=e.find,this.handler=e.handler}}const kv=(t,e,n)=>{if(hu(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 vv(t){const{editor:e,state:n,from:o,to:r,rule:i,pasteEvent:s,dropEvent:a}=t,{commands:l,chain:u,can:c}=new $s({editor:e,state:n}),d=[];return n.doc.nodesBetween(o,r,(f,p)=>{if(!f.isTextblock||f.type.spec.code)return;const y=Math.max(o,p),h=Math.min(r,p+f.content.size),g=f.textBetween(y-p,h-p,void 0,"");kv(g,i.find,s).forEach(k=>{if(k.index===void 0)return;const b=y+k.index+1,E=b+k[0].length,v={from:n.tr.mapping.map(b),to:n.tr.mapping.map(E)},$=i.handler({state:n,range:v,match:k,commands:l,chain:u,can:c,pasteEvent:s,dropEvent:a});d.push($)})}),d.every(f=>f!==null)}const bv=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 xv(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:c,from:d,to:m,rule:f,pasteEvt:p})=>{const y=c.tr,h=xs({state:c,transaction:y});if(!(!vv({editor:e,state:h,from:Math.max(d-1,0),to:m.b-1,rule:f,pasteEvent:p,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(c=>new Ve({view(d){const m=f=>{var p;o=!((p=d.dom.parentElement)===null||p===void 0)&&p.contains(f.target)?d.dom.parentElement:null};return window.addEventListener("dragstart",m),{destroy(){window.removeEventListener("dragstart",m)}}},props:{handleDOMEvents:{drop:(d,m)=>(i=o===d.dom.parentElement,a=m,!1),paste:(d,m)=>{var f;const p=(f=m.clipboardData)===null||f===void 0?void 0:f.getData("text/html");return s=m,r=!!(p!=null&&p.includes("data-pm-slice")),!1}}},appendTransaction:(d,m,f)=>{const p=d[0],y=p.getMeta("uiEvent")==="paste"&&!r,h=p.getMeta("uiEvent")==="drop"&&!i,g=p.getMeta("applyPasteRules"),S=!!g;if(!y&&!h&&!S)return;if(S){const{from:E,text:v}=g,$=E+v.length,R=bv(v);return l({rule:c,state:f,from:E,to:{b:$},pasteEvt:R})}const k=m.doc.content.findDiffStart(f.doc.content),b=m.doc.content.findDiffEnd(f.doc.content);if(!(!wv(k)||!b||k===b.b))return l({rule:c,state:f,from:k,to:b,pasteEvt:s})}}))}function $v(t){const e=t.filter((n,o)=>t.indexOf(n)!==o);return Array.from(new Set(e))}class Do{constructor(e,n){this.splittableMarks=[],this.editor=n,this.extensions=Do.resolve(e),this.schema=mv(this.extensions,n),this.setupExtensions()}static resolve(e){const n=Do.sort(Do.flatten(e)),o=$v(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:pu(n.name,this.schema)},r=j(n,"addCommands",o);return r?{...e,...r()}:e},{})}get plugins(){const{editor:e}=this,n=Do.sort([...this.extensions].reverse()),o=[],r=[],i=n.map(s=>{const a={name:s.name,options:s.options,storage:s.storage,editor:e,type:pu(s.name,this.schema)},l=[],u=j(s,"addKeyboardShortcuts",a);let c={};if(s.type==="mark"&&j(s,"exitable",a)&&(c.ArrowRight=()=>Br.handleExit({editor:e,mark:s})),u){const y=Object.fromEntries(Object.entries(u()).map(([h,g])=>[h,()=>g({editor:e})]));c={...c,...y}}const d=Ik(c);l.push(d);const m=j(s,"addInputRules",a);ch(s,e.options.enableInputRules)&&m&&o.push(...m());const f=j(s,"addPasteRules",a);ch(s,e.options.enablePasteRules)&&f&&r.push(...f());const p=j(s,"addProseMirrorPlugins",a);if(p){const y=p();l.push(...y)}return l}).flat();return[gv({editor:e,rules:o}),...xv({editor:e,rules:r}),...i]}get attributes(){return sh(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,u,c,d,m)=>{const f=fu(l,r);return s()({node:l,view:u,getPos:c,decorations:d,innerDecorations:m,editor:e,extension:o,HTMLAttributes:f})};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:pu(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),u=j(e,"onFocus",o),c=j(e,"onBlur",o),d=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),u&&this.editor.on("focus",u),c&&this.editor.on("blur",c),d&&this.editor.on("destroy",d)})}}class ot{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 ot(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Os(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new ot({...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 dh(t,e,n){const{from:o,to:r}=e,{blockSeparator:i=`
30
+
31
+ `,textSerializers:s={}}=n||{};let a="";return t.nodesBetween(o,r,(l,u,c,d)=>{var m;l.isBlock&&u>o&&(a+=i);const f=s==null?void 0:s[l.type.name];if(f)return c&&(a+=f({node:l,pos:u,parent:c,index:d,range:e})),!1;l.isText&&(a+=(m=l==null?void 0:l.text)===null||m===void 0?void 0:m.slice(Math.max(o,u)-u,r-u))}),a}function mh(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}const Cv=ot.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Ve({key:new ft("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(c=>c.$from.pos)),a=Math.max(...i.map(c=>c.$to.pos)),l=mh(n);return dh(o,{from:s,to:a},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),Ev=()=>({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),Nv=(t=!1)=>({commands:e})=>e.setContent("",t),Ov=()=>({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:u,mapping:c}=e,d=u.resolve(c.map(l)),m=u.resolve(c.map(l+a.nodeSize)),f=d.blockRange(m);if(!f)return;const p=So(f);if(a.type.isTextblock){const{defaultType:y}=d.parent.contentMatchAt(d.index());e.setNodeMarkup(f.start,y)}(p||p===0)&&e.lift(f,p)})}),!0},Av=t=>e=>t(e),Rv=()=>({state:t,dispatch:e})=>Gk(t,e),Mv=(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},Dv=()=>({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},Tv=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),u=i.after(s);e.delete(l,u).scrollIntoView()}return!0}return!1},jv=t=>({tr:e,dispatch:n})=>{const{from:o,to:r}=t;return n&&e.delete(o,r),!0},Pv=()=>({state:t,dispatch:e})=>zk(t,e),Iv=()=>({commands:t})=>t.keyboardShortcut("Enter"),Lv=()=>({state:t,dispatch:e})=>qk(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]:hu(e[r])?e[r].test(t[r]):e[r]===t[r]):!0}function gu(t,e,n={}){return t.find(o=>o.type===e&&As(o.attrs,n))}function zv(t,e,n={}){return!!gu(t,e,n)}function yu(t,e,n={}){if(!t||!e)return;let o=t.parent.childAfter(t.parentOffset);if((!o.node||!o.node.marks.some(u=>u.type===e))&&(o=t.parent.childBefore(t.parentOffset)),!o.node||!o.node.marks.some(u=>u.type===e))return;const r=gu([...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(gu([...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&&zv([...t.parent.child(a).marks],e,n);)l+=t.parent.child(a).nodeSize,a+=1;return{from:s,to:l}}function an(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 Fv=(t,e={})=>({tr:n,state:o,dispatch:r})=>{const i=an(t,o.schema),{doc:s,selection:a}=n,{$from:l,from:u,to:c}=a;if(r){const d=yu(l,i,e);if(d&&d.from<=u&&d.to>=c){const m=V.create(s,d.from,d.to);n.setSelection(m)}}return!0},Bv=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 fh(t){return t instanceof V}function Yn(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function ph(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,Yn(0,r,i),Yn(t.content.size,r,i)):V.create(t,Yn(e,r,i),Yn(e,r,i))}function wu(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const Hv=(t=null,e={})=>({editor:n,view:o,tr:r,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{wu()&&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&&!fh(n.state.selection))return s(),!0;const a=ph(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},Vv=(t,e)=>n=>t.every((o,r)=>e(o,{...n,index:r})),Uv=(t,e)=>({tr:n,commands:o})=>o.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),hh=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&&hh(o)}return t};function Rs(t){const e=`<body>${t}</body>`,n=new window.DOMParser().parseFromString(e,"text/html").body;return hh(n)}function Ms(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),Ms("",e,n)}if(r){if(n.errorOnInvalidContent){let s=!1,a="";const l=new lf({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:u=>(s=!0,a=typeof u=="string"?u:u.outerHTML,null)}]}})});if(n.slice?Kt.fromSchema(l).parseSlice(Rs(t),n.parseOptions):Kt.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=Kt.fromSchema(e);return n.slice?i.parseSlice(Rs(t),n.parseOptions).content:i.parse(Rs(t),n.parseOptions)}return Ms("",e,n)}function Jv(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,u,c)=>{s===0&&(s=c)}),t.setSelection(J.near(t.doc.resolve(s),n))}const _v=t=>!("type"in t),Yv=(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=Ms(e,i.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions},errorOnInvalidContent:(s=n.errorOnInvalidContent)!==null&&s!==void 0?s:i.options.enableContentCheck})}catch(p){return i.emit("contentError",{editor:i,error:p,disableCollaboration:()=>{i.storage.collaboration&&(i.storage.collaboration.isDisabled=!0)}}),!1}let{from:l,to:u}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},c=!0,d=!0;if((_v(a)?a:[a]).forEach(p=>{p.check(),c=c?p.isText&&p.marks.length===0:!1,d=d?p.isBlock:!1}),l===u&&d){const{parent:p}=o.doc.resolve(l);p.isTextblock&&!p.type.spec.code&&!p.childCount&&(l-=1,u+=1)}let f;c?(Array.isArray(e)?f=e.map(p=>p.text||"").join(""):typeof e=="object"&&e&&e.text?f=e.text:f=e,o.insertText(f,l,u)):(f=a,o.replaceWith(l,u,f)),n.updateSelection&&Jv(o,o.steps.length-1,-1),n.applyInputRules&&o.setMeta("applyInputRules",{from:l,text:f}),n.applyPasteRules&&o.setMeta("applyPasteRules",{from:l,text:f})}return!0},Kv=()=>({state:t,dispatch:e})=>_k(t,e),Wv=()=>({state:t,dispatch:e})=>Yk(t,e),qv=()=>({state:t,dispatch:e})=>Fk(t,e),Gv=()=>({state:t,dispatch:e})=>Uk(t,e),Qv=()=>({state:t,dispatch:e,tr:n})=>{try{const o=cs(t.doc,t.selection.$from.pos,-1);return o==null?!1:(n.join(o,2),e&&e(n),!0)}catch{return!1}},Zv=()=>({state:t,dispatch:e,tr:n})=>{try{const o=cs(t.doc,t.selection.$from.pos,1);return o==null?!1:(n.join(o,2),e&&e(n),!0)}catch{return!1}},Xv=()=>({state:t,dispatch:e})=>Bk(t,e),eb=()=>({state:t,dispatch:e})=>Hk(t,e);function gh(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function tb(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))wu()||gh()?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 nb=t=>({editor:e,view:n,tr:o,dispatch:r})=>{const i=tb(t).split(/-(?!$)/),s=i.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),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",u=>u(n,a))});return l==null||l.steps.forEach(u=>{const c=u.map(o.mapping);c&&r&&o.maybeStep(c)}),!0};function Hr(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,(d,m)=>{if(d.isText)return;const f=Math.max(o,m),p=Math.min(r,m+d.nodeSize);a.push({node:d,from:f,to:p})});const l=r-o,u=a.filter(d=>s?s.name===d.node.type.name:!0).filter(d=>As(d.node.attrs,n,{strict:!1}));return i?!!u.length:u.reduce((d,m)=>d+m.to-m.from,0)>=l}const ob=(t,e={})=>({state:n,dispatch:o})=>{const r=ye(t,n.schema);return Hr(n,r,e)?Kk(n,o):!1},rb=()=>({state:t,dispatch:e})=>Qk(t,e),ib=t=>({state:e,dispatch:n})=>{const o=ye(t,e.schema);return iv(o)(e,n)},sb=()=>({state:t,dispatch:e})=>Wk(t,e);function Ds(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function yh(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 ab=(t,e)=>({tr:n,state:o,dispatch:r})=>{let i=null,s=null;const a=Ds(typeof t=="string"?t:t.name,o.schema);return a?(a==="node"&&(i=ye(t,o.schema)),a==="mark"&&(s=an(t,o.schema)),r&&n.selection.ranges.forEach(l=>{o.doc.nodesBetween(l.$from.pos,l.$to.pos,(u,c)=>{i&&i===u.type&&n.setNodeMarkup(c,void 0,yh(u.attrs,e)),s&&u.marks.length&&u.marks.forEach(d=>{s===d.type&&n.addMark(c,c+u.nodeSize,s.create(yh(d.attrs,e)))})})}),!0):!1},lb=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),ub=()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),cb=()=>({state:t,dispatch:e})=>Vk(t,e),db=()=>({state:t,dispatch:e})=>Jk(t,e),mb=()=>({state:t,dispatch:e})=>Zk(t,e),fb=()=>({state:t,dispatch:e})=>tv(t,e),pb=()=>({state:t,dispatch:e})=>ev(t,e);function Su(t,e,n={},o={}){return Ms(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:o.errorOnInvalidContent})}const hb=(t,e=!1,n={},o={})=>({editor:r,tr:i,dispatch:s,commands:a})=>{var l,u;const{doc:c}=i;if(n.preserveWhitespace!=="full"){const d=Su(t,r.schema,n,{errorOnInvalidContent:(l=o.errorOnInvalidContent)!==null&&l!==void 0?l:r.options.enableContentCheck});return s&&i.replaceWith(0,c.content.size,d).setMeta("preventUpdate",!e),!0}return s&&i.setMeta("preventUpdate",!e),a.insertContentAt({from:0,to:c.content.size},t,{parseOptions:n,errorOnInvalidContent:(u=o.errorOnInvalidContent)!==null&&u!==void 0?u:r.options.enableContentCheck})};function wh(t,e){const n=an(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 gb(t,e){const n=new Mf(t);return e.forEach(o=>{o.steps.forEach(r=>{n.step(r)})}),n}function yb(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 wb(t,e,n){const o=[];return t.nodesBetween(e.from,e.to,(r,i)=>{n(r)&&o.push({node:r,pos:i})}),o}function Sb(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 ku(t){return e=>Sb(e.$from,t)}function kb(t,e){const n=zn.fromSchema(e).serializeFragment(t),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}function vb(t,e){const n={from:0,to:t.content.size};return dh(t,n,e)}function bb(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=Ds(typeof e=="string"?e:e.name,t.schema);return n==="node"?bb(t,e):n==="mark"?wh(t,e):{}}function xb(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 $b(t){const e=xb(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 Cb(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 u=e.slice(i).map(a,-1),c=e.slice(i).map(l),d=e.invert().map(u,-1),m=e.invert().map(c);o.push({oldRange:{from:d,to:m},newRange:{from:u,to:c}})})}),$b(o)}function kh(t,e,n){const o=[];return t===e?n.resolve(t).marks().forEach(r=>{const i=n.resolve(t),s=yu(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 vu(t,e,n={}){const{empty:o,ranges:r}=t.selection,i=e?an(e,t.schema):null;if(o)return!!(t.storedMarks||t.selection.$from.marks()).filter(d=>i?i.name===d.type.name:!0).find(d=>As(d.attrs,n,{strict:!1}));let s=0;const a=[];if(r.forEach(({$from:d,$to:m})=>{const f=d.pos,p=m.pos;t.doc.nodesBetween(f,p,(y,h)=>{if(!y.isText&&!y.marks.length)return;const g=Math.max(f,h),S=Math.min(p,h+y.nodeSize),k=S-g;s+=k,a.push(...y.marks.map(b=>({mark:b,from:g,to:S})))})}),s===0)return!1;const l=a.filter(d=>i?i.name===d.mark.type.name:!0).filter(d=>As(d.mark.attrs,n,{strict:!1})).reduce((d,m)=>d+m.to-m.from,0),u=a.filter(d=>i?d.mark.type!==i&&d.mark.type.excludes(i):!0).reduce((d,m)=>d+m.to-m.from,0);return(l>0?l+u:l)>=s}function Eb(t,e,n={}){if(!e)return Hr(t,null,n)||vu(t,null,n);const o=Ds(e,t.schema);return o==="node"?Hr(t,e,n):o==="mark"?vu(t,e,n):!1}function vh(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 Nb(t,e,n){var o;const{selection:r}=e;let i=null;if(fh(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 u=a.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(a.pos,l.pos,(c,d,m)=>{if(u)return!1;if(c.isInline){const f=!m||m.type.allowsMarkType(n),p=!!n.isInSet(c.marks)||!c.marks.some(y=>y.type.excludes(n));u=f&&p}return!u}),u})}const Ob=(t,e={})=>({tr:n,state:o,dispatch:r})=>{const{selection:i}=n,{empty:s,ranges:a}=i,l=an(t,o.schema);if(r)if(s){const u=wh(o,l);n.addStoredMark(l.create({...u,...e}))}else a.forEach(u=>{const c=u.$from.pos,d=u.$to.pos;o.doc.nodesBetween(c,d,(m,f)=>{const p=Math.max(f,c),y=Math.min(f+m.nodeSize,d);m.marks.find(g=>g.type===l)?m.marks.forEach(g=>{l===g.type&&n.addMark(p,y,l.create({...g.attrs,...e}))}):n.addMark(p,y,l.create(e))})});return Nb(o,n,l)},Ab=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),Rb=(t,e={})=>({state:n,dispatch:o,chain:r})=>{const i=ye(t,n.schema);return i.isTextblock?r().command(({commands:s})=>ih(i,e)(n)?!0:s.clearNodes()).command(({state:s})=>ih(i,e)(s,o)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},Mb=t=>({tr:e,dispatch:n})=>{if(n){const{doc:o}=e,r=Yn(t,0,o.content.size),i=L.create(o,r);e.setSelection(i)}return!0},Db=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=Yn(r,s,a),u=Yn(i,s,a),c=V.create(o,l,u);e.setSelection(c)}return!0},Tb=t=>({state:e,dispatch:n})=>{const o=ye(t,e.schema);return lv(o)(e,n)};function bh(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 jb=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:o,editor:r})=>{const{selection:i,doc:s}=e,{$from:a,$to:l}=i,u=r.extensionManager.attributes,c=Ts(u,a.node().type.name,a.node().attrs);if(i instanceof L&&i.node.isBlock)return!a.parentOffset||!ko(s,a.pos)?!1:(o&&(t&&bh(n,r.extensionManager.splittableMarks),e.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;const d=l.parentOffset===l.parent.content.size,m=a.depth===0?void 0:yb(a.node(-1).contentMatchAt(a.indexAfter(-1)));let f=d&&m?[{type:m,attrs:c}]:void 0,p=ko(e.doc,e.mapping.map(a.pos),1,f);if(!f&&!p&&ko(e.doc,e.mapping.map(a.pos),1,m?[{type:m}]:void 0)&&(p=!0,f=m?[{type:m,attrs:c}]:void 0),o){if(p&&(i instanceof V&&e.deleteSelection(),e.split(e.mapping.map(a.pos),1,f),m&&!d&&!a.parentOffset&&a.parent.type!==m)){const y=e.mapping.map(a.before()),h=e.doc.resolve(y);a.node(-1).canReplaceWith(h.index(),h.index()+1,m)&&e.setNodeMarkup(e.mapping.map(a.before()),m)}t&&bh(n,r.extensionManager.splittableMarks),e.scrollIntoView()}return p},Pb=(t,e={})=>({tr:n,state:o,dispatch:r,editor:i})=>{var s;const a=ye(t,o.schema),{$from:l,$to:u}=o.selection,c=o.selection.node;if(c&&c.isBlock||l.depth<2||!l.sameParent(u))return!1;const d=l.node(-1);if(d.type!==a)return!1;const m=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 R=l.depth-S;R>=l.depth-3;R-=1)g=N.from(l.node(R).copy(g));const k=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,b={...Ts(m,l.node().type.name,l.node().attrs),...e},E=((s=a.contentMatch.defaultType)===null||s===void 0?void 0:s.createAndFill(b))||void 0;g=g.append(N.from(a.createAndFill(null,E)||void 0));const v=l.before(l.depth-(S-1));n.replace(v,l.after(-k),new D(g,4-S,0));let $=-1;n.doc.nodesBetween(v,n.doc.content.size,(R,C)=>{if($>-1)return!1;R.isTextblock&&R.content.size===0&&($=C+1)}),$>-1&&n.setSelection(V.near(n.doc.resolve($))),n.scrollIntoView()}return!0}const f=u.pos===l.end()?d.contentMatchAt(0).defaultType:null,p={...Ts(m,d.type.name,d.attrs),...e},y={...Ts(m,l.node().type.name,l.node().attrs),...e};n.delete(l.pos,u.pos);const h=f?[{type:a,attrs:p},{type:f,attrs:y}]:[{type:a,attrs:p}];if(!ko(n.doc,l.pos,2))return!1;if(r){const{selection:g,storedMarks:S}=o,{splittableMarks:k}=i.extensionManager,b=S||g.$to.parentOffset&&g.$from.marks();if(n.split(l.pos,2,h).scrollIntoView(),!b||!r)return!0;const E=b.filter(v=>k.includes(v.type.name));n.ensureMarks(E)}return!0},bu=(t,e)=>{const n=ku(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)&&Gt(t.doc,n.pos)&&t.join(n.pos),!0},xu=(t,e)=>{const n=ku(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)&&Gt(t.doc,o)&&t.join(o),!0};var Ib=Object.freeze({__proto__:null,blur:Ev,clearContent:Nv,clearNodes:Ov,command:Av,createParagraphNear:Rv,cut:Mv,deleteCurrentNode:Dv,deleteNode:Tv,deleteRange:jv,deleteSelection:Pv,enter:Iv,exitCode:Lv,extendMarkRange:Fv,first:Bv,focus:Hv,forEach:Vv,insertContent:Uv,insertContentAt:Yv,joinBackward:qv,joinDown:Wv,joinForward:Gv,joinItemBackward:Qv,joinItemForward:Zv,joinTextblockBackward:Xv,joinTextblockForward:eb,joinUp:Kv,keyboardShortcut:nb,lift:ob,liftEmptyBlock:rb,liftListItem:ib,newlineInCode:sb,resetAttributes:ab,scrollIntoView:lb,selectAll:ub,selectNodeBackward:cb,selectNodeForward:db,selectParentNode:mb,selectTextblockEnd:fb,selectTextblockStart:pb,setContent:hb,setMark:Ob,setMeta:Ab,setNode:Rb,setNodeSelection:Mb,setTextSelection:Db,sinkListItem:Tb,splitBlock:jb,splitListItem:Pb,toggleList:(t,e,n,o={})=>({editor:r,tr:i,state:s,dispatch:a,chain:l,commands:u,can:c})=>{const{extensions:d,splittableMarks:m}=r.extensionManager,f=ye(t,s.schema),p=ye(e,s.schema),{selection:y,storedMarks:h}=s,{$from:g,$to:S}=y,k=g.blockRange(S),b=h||y.$to.parentOffset&&y.$from.marks();if(!k)return!1;const E=ku(v=>vh(v.type.name,d))(y);if(k.depth>=1&&E&&k.depth-E.depth<=1){if(E.node.type===f)return u.liftListItem(p);if(vh(E.node.type.name,d)&&f.validContent(E.node.content)&&a)return l().command(()=>(i.setNodeMarkup(E.pos,f),!0)).command(()=>bu(i,f)).command(()=>xu(i,f)).run()}return!n||!b||!a?l().command(()=>c().wrapInList(f,o)?!0:u.clearNodes()).wrapInList(f,o).command(()=>bu(i,f)).command(()=>xu(i,f)).run():l().command(()=>{const v=c().wrapInList(f,o),$=b.filter(R=>m.includes(R.type.name));return i.ensureMarks($),v?!0:u.clearNodes()}).wrapInList(f,o).command(()=>bu(i,f)).command(()=>xu(i,f)).run()},toggleMark:(t,e={},n={})=>({state:o,commands:r})=>{const{extendEmptyMarkRange:i=!1}=n,s=an(t,o.schema);return vu(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=Hr(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 Hr(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=an(t,o.schema),{$from:u,empty:c,ranges:d}=a;if(!r)return!0;if(c&&s){let{from:m,to:f}=a;const p=(i=u.marks().find(h=>h.type===l))===null||i===void 0?void 0:i.attrs,y=yu(u,l,p);y&&(m=y.from,f=y.to),n.removeMark(m,f,l)}else d.forEach(m=>{n.removeMark(m.$from.pos,m.$to.pos,l)});return n.removeStoredMark(l),!0},updateAttributes:(t,e={})=>({tr:n,state:o,dispatch:r})=>{let i=null,s=null;const a=Ds(typeof t=="string"?t:t.name,o.schema);return a?(a==="node"&&(i=ye(t,o.schema)),a==="mark"&&(s=an(t,o.schema)),r&&n.selection.ranges.forEach(l=>{const u=l.$from.pos,c=l.$to.pos;o.doc.nodesBetween(u,c,(d,m)=>{i&&i===d.type&&n.setNodeMarkup(m,void 0,{...d.attrs,...e}),s&&d.marks.length&&d.marks.forEach(f=>{if(s===f.type){const p=Math.max(m,u),y=Math.min(m+d.nodeSize,c);n.addMark(p,y,s.create({...f.attrs,...e}))}})})}),!0):!1},wrapIn:(t,e={})=>({state:n,dispatch:o})=>{const r=ye(t,n.schema);return nv(r,e)(n,o)},wrapInList:(t,e={})=>({state:n,dispatch:o})=>{const r=ye(t,n.schema);return ov(r,e)(n,o)}});const Lb=ot.create({name:"commands",addCommands(){return{...Ib}}}),zb=ot.create({name:"drop",addProseMirrorPlugins(){return[new Ve({key:new ft("tiptapDrop"),props:{handleDrop:(t,e,n,o)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:o})}}})]}}),Fb=ot.create({name:"editable",addProseMirrorPlugins(){return[new Ve({key:new ft("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Bb=ot.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new Ve({key:new ft("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}}}})]}}),Hb=ot.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:a})=>{const{selection:l,doc:u}=a,{empty:c,$anchor:d}=l,{pos:m,parent:f}=d,p=d.parent.isTextblock&&m>0?a.doc.resolve(m-1):d,y=p.parent.type.spec.isolating,h=d.pos-d.parentOffset,g=y&&p.parent.childCount===1?h===d.pos:J.atStart(u).from===m;return!c||!f.type.isTextblock||f.textContent.length||!g||g&&d.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 wu()||gh()?i:r},addProseMirrorPlugins(){return[new Ve({key:new ft("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,u=J.atEnd(e.doc).to;if(i||!(s===l&&a===u)||!js(n.doc))return;const m=n.tr,f=xs({state:n,transaction:m}),{commands:p}=new $s({editor:this.editor,state:f});if(p.clearNodes(),!!m.steps.length)return m}})]}}),Vb=ot.create({name:"paste",addProseMirrorPlugins(){return[new Ve({key:new ft("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),Ub=ot.create({name:"tabindex",addProseMirrorPlugins(){return[new Ve({key:new ft("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class Kn{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 Kn(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 Kn(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 Kn(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 Kn(a,this.editor,r,r?n:null);r&&(l.actualDepth=this.depth+1),e.push(new Kn(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 Jb=`.ProseMirror {
32
32
  position: relative;
33
33
  }
34
34
 
@@ -102,31 +102,31 @@ img.ProseMirror-separator {
102
102
 
103
103
  .tippy-box[data-animation=fade][data-state=hidden] {
104
104
  opacity: 0
105
- }`;function Jb(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 _b extends lv{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=Jb(Ub,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=sh(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?[zb,$v.configure({blockSeparator:(n=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||n===void 0?void 0:n.blockSeparator}),Ib,Fb,Bb,Vb,Lb,Hb].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 Do(r,this)}createCommandManager(){this.commandManager=new $s({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){let e;try{e=Su(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=Su(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const n=fh(e,this.options.autofocus);this.view=new Ek(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:$o.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 wh(this.state,e)}isActive(e,n){const o=typeof e=="string"?e:null,r=typeof e=="string"?n:e;return Cb(this.state,o,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Sb(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:n=`
105
+ }`;function _b(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 Yb extends uv{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=_b(Jb,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=ah(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?[Fb,Cv.configure({blockSeparator:(n=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||n===void 0?void 0:n.blockSeparator}),Lb,Bb,Hb,Ub,zb,Vb].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 Do(r,this)}createCommandManager(){this.commandManager=new $s({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){let e;try{e=Su(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=Su(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const n=ph(e,this.options.autofocus);this.view=new Nk(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:$o.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 Eb(this.state,o,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return kb(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:n=`
106
106
 
107
- `,textSerializers:o={}}=e||{};return kb(this.state.doc,{blockSeparator:n,textSerializers:{...dh(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 Kn(n,this)}get $doc(){return this.$pos(0)}}function Yb(t){return new fv({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(),u=l&&jl(l,t.type,i);if(!u)return null;if(s.wrap(l,u),t.keepMarks&&t.editor){const{selection:d,storedMarks:m}=e,{splittableMarks:f}=t.editor.extensionManager,p=m||d.$to.parentOffset&&d.$from.marks();if(p){const y=p.filter(h=>f.includes(h.type.name));s.ensureMarks(y)}}if(t.keepAttributes){const d=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";r().updateAttributes(d,i).run()}const c=s.doc.resolve(n.from-1).nodeBefore;c&&c.type===t.type&&Gt(s.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(o,c))&&s.join(n.from-1)}})}class ln{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 ln(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Os(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new ln(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 Kb(t){return new wv({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 u=n.to;if(a){const c=l.search(/\S/),d=n.from+l.indexOf(a),m=d+a.length;if(Sh(n.from,n.to,e.doc).filter(p=>p.mark.type.excluded.find(h=>h===t.type&&h!==p.mark.type)).filter(p=>p.to>d).length)return null;m<n.to&&s.delete(m,n.to),d>n.from&&s.delete(n.from+c,d),u=n.from+c+a.length,s.addMark(n.from+c,u,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}var bh={exports:{}},rt={},xh={exports:{}},$h={};/** @license React v0.20.2
107
+ `,textSerializers:o={}}=e||{};return vb(this.state.doc,{blockSeparator:n,textSerializers:{...mh(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 Kn(n,this)}get $doc(){return this.$pos(0)}}function Kb(t){return new pv({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(),u=l&&jl(l,t.type,i);if(!u)return null;if(s.wrap(l,u),t.keepMarks&&t.editor){const{selection:d,storedMarks:m}=e,{splittableMarks:f}=t.editor.extensionManager,p=m||d.$to.parentOffset&&d.$from.marks();if(p){const y=p.filter(h=>f.includes(h.type.name));s.ensureMarks(y)}}if(t.keepAttributes){const d=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";r().updateAttributes(d,i).run()}const c=s.doc.resolve(n.from-1).nodeBefore;c&&c.type===t.type&&Gt(s.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(o,c))&&s.join(n.from-1)}})}class ln{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 ln(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Os(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new ln(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 Wb(t){return new Sv({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 u=n.to;if(a){const c=l.search(/\S/),d=n.from+l.indexOf(a),m=d+a.length;if(kh(n.from,n.to,e.doc).filter(p=>p.mark.type.excluded.find(h=>h===t.type&&h!==p.mark.type)).filter(p=>p.to>d).length)return null;m<n.to&&s.delete(m,n.to),d>n.from&&s.delete(n.from+c,d),u=n.from+c+a.length,s.addMark(n.from+c,u,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}var xh={exports:{}},rt={},$h={exports:{}},Ch={};/** @license React v0.20.2
108
108
  * scheduler.production.min.js
109
109
  *
110
110
  * Copyright (c) Facebook, Inc. and its affiliates.
111
111
  *
112
112
  * This source code is licensed under the MIT license found in the
113
113
  * LICENSE file in the root directory of this source tree.
114
- */(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,u=null,c=function(){if(l!==null)try{var M=t.unstable_now();l(!0,M),l=null}catch(I){throw setTimeout(c,0),I}};e=function(M){l!==null?setTimeout(e,0,M):(l=M,setTimeout(c,0))},n=function(M,I){u=setTimeout(M,I)},o=function(){clearTimeout(u)},t.unstable_shouldYield=function(){return!1},r=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,m=window.clearTimeout;if(typeof console<"u"){var f=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 f!="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 p=!1,y=null,h=-1,g=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},r=function(){},t.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):g=0<M?Math.floor(1e3/M):5};var k=new MessageChannel,b=k.port2;k.port1.onmessage=function(){if(y!==null){var M=t.unstable_now();w=M+g;try{y(!0,M)?b.postMessage(null):(p=!1,y=null)}catch(I){throw b.postMessage(null),I}}else p=!1},e=function(M){y=M,p||(p=!0,b.postMessage(null))},n=function(M,I){h=d(function(){M(t.unstable_now())},I)},o=function(){m(h),h=-1}}function E(M,I){var B=M.length;M.push(I);e:for(;;){var W=B-1>>>1,Ae=M[W];if(Ae!==void 0&&0<R(Ae,I))M[W]=I,M[B]=Ae,B=W;else break e}}function v(M){return M=M[0],M===void 0?null:M}function $(M){var I=M[0];if(I!==void 0){var B=M.pop();if(B!==I){M[0]=B;e:for(var W=0,Ae=M.length;W<Ae;){var po=2*(W+1)-1,ho=M[po],Yi=po+1,gr=M[Yi];if(ho!==void 0&&0>R(ho,B))gr!==void 0&&0>R(gr,ho)?(M[W]=gr,M[Yi]=B,W=Yi):(M[W]=ho,M[po]=B,W=po);else if(gr!==void 0&&0>R(gr,B))M[W]=gr,M[Yi]=B,W=Yi;else break e}}return I}return null}function R(M,I){var B=M.sortIndex-I.sortIndex;return B!==0?B:M.id-I.id}var C=[],_=[],se=1,X=null,G=3,Oe=!1,le=!1,pe=!1;function de(M){for(var I=v(_);I!==null;){if(I.callback===null)$(_);else if(I.startTime<=M)$(_),I.sortIndex=I.expirationTime,E(C,I);else break;I=v(_)}}function Q(M){if(pe=!1,de(M),!le)if(v(C)!==null)le=!0,e(ue);else{var I=v(_);I!==null&&n(Q,I.startTime-M)}}function ue(M,I){le=!1,pe&&(pe=!1,o()),Oe=!0;var B=G;try{for(de(I),X=v(C);X!==null&&(!(X.expirationTime>I)||M&&!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===v(C)&&$(C),de(I)}else $(C);X=v(C)}if(X!==null)var po=!0;else{var ho=v(_);ho!==null&&n(Q,ho.startTime-I),po=!1}return po}finally{X=null,G=B,Oe=!1}}var ve=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(M){M.callback=null},t.unstable_continueExecution=function(){le||Oe||(le=!0,e(ue))},t.unstable_getCurrentPriorityLevel=function(){return G},t.unstable_getFirstCallbackNode=function(){return v(C)},t.unstable_next=function(M){switch(G){case 1:case 2:case 3:var I=3;break;default:I=G}var B=G;G=I;try{return M()}finally{G=B}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=ve,t.unstable_runWithPriority=function(M,I){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var B=G;G=M;try{return I()}finally{G=B}},t.unstable_scheduleCallback=function(M,I,B){var W=t.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?W+B:W):B=W,M){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=B+Ae,M={id:se++,callback:I,priorityLevel:M,startTime:B,expirationTime:Ae,sortIndex:-1},B>W?(M.sortIndex=B,E(_,M),v(C)===null&&M===v(_)&&(pe?o():pe=!0,n(Q,B-W))):(M.sortIndex=Ae,E(C,M),le||Oe||(le=!0,e(ue))),M},t.unstable_wrapCallback=function(M){var I=G;return function(){var B=G;G=I;try{return M.apply(this,arguments)}finally{G=B}}}})($h),xh.exports=$h;var Wb=xh.exports;/** @license React v17.0.2
114
+ */(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,u=null,c=function(){if(l!==null)try{var M=t.unstable_now();l(!0,M),l=null}catch(I){throw setTimeout(c,0),I}};e=function(M){l!==null?setTimeout(e,0,M):(l=M,setTimeout(c,0))},n=function(M,I){u=setTimeout(M,I)},o=function(){clearTimeout(u)},t.unstable_shouldYield=function(){return!1},r=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,m=window.clearTimeout;if(typeof console<"u"){var f=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 f!="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 p=!1,y=null,h=-1,g=5,S=0;t.unstable_shouldYield=function(){return t.unstable_now()>=S},r=function(){},t.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):g=0<M?Math.floor(1e3/M):5};var k=new MessageChannel,b=k.port2;k.port1.onmessage=function(){if(y!==null){var M=t.unstable_now();S=M+g;try{y(!0,M)?b.postMessage(null):(p=!1,y=null)}catch(I){throw b.postMessage(null),I}}else p=!1},e=function(M){y=M,p||(p=!0,b.postMessage(null))},n=function(M,I){h=d(function(){M(t.unstable_now())},I)},o=function(){m(h),h=-1}}function E(M,I){var B=M.length;M.push(I);e:for(;;){var W=B-1>>>1,Ae=M[W];if(Ae!==void 0&&0<R(Ae,I))M[W]=I,M[B]=Ae,B=W;else break e}}function v(M){return M=M[0],M===void 0?null:M}function $(M){var I=M[0];if(I!==void 0){var B=M.pop();if(B!==I){M[0]=B;e:for(var W=0,Ae=M.length;W<Ae;){var po=2*(W+1)-1,ho=M[po],Ki=po+1,gr=M[Ki];if(ho!==void 0&&0>R(ho,B))gr!==void 0&&0>R(gr,ho)?(M[W]=gr,M[Ki]=B,W=Ki):(M[W]=ho,M[po]=B,W=po);else if(gr!==void 0&&0>R(gr,B))M[W]=gr,M[Ki]=B,W=Ki;else break e}}return I}return null}function R(M,I){var B=M.sortIndex-I.sortIndex;return B!==0?B:M.id-I.id}var C=[],_=[],se=1,X=null,G=3,Oe=!1,le=!1,pe=!1;function de(M){for(var I=v(_);I!==null;){if(I.callback===null)$(_);else if(I.startTime<=M)$(_),I.sortIndex=I.expirationTime,E(C,I);else break;I=v(_)}}function Q(M){if(pe=!1,de(M),!le)if(v(C)!==null)le=!0,e(ue);else{var I=v(_);I!==null&&n(Q,I.startTime-M)}}function ue(M,I){le=!1,pe&&(pe=!1,o()),Oe=!0;var B=G;try{for(de(I),X=v(C);X!==null&&(!(X.expirationTime>I)||M&&!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===v(C)&&$(C),de(I)}else $(C);X=v(C)}if(X!==null)var po=!0;else{var ho=v(_);ho!==null&&n(Q,ho.startTime-I),po=!1}return po}finally{X=null,G=B,Oe=!1}}var ve=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(M){M.callback=null},t.unstable_continueExecution=function(){le||Oe||(le=!0,e(ue))},t.unstable_getCurrentPriorityLevel=function(){return G},t.unstable_getFirstCallbackNode=function(){return v(C)},t.unstable_next=function(M){switch(G){case 1:case 2:case 3:var I=3;break;default:I=G}var B=G;G=I;try{return M()}finally{G=B}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=ve,t.unstable_runWithPriority=function(M,I){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var B=G;G=M;try{return I()}finally{G=B}},t.unstable_scheduleCallback=function(M,I,B){var W=t.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?W+B:W):B=W,M){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=B+Ae,M={id:se++,callback:I,priorityLevel:M,startTime:B,expirationTime:Ae,sortIndex:-1},B>W?(M.sortIndex=B,E(_,M),v(C)===null&&M===v(_)&&(pe?o():pe=!0,n(Q,B-W))):(M.sortIndex=Ae,E(C,M),le||Oe||(le=!0,e(ue))),M},t.unstable_wrapCallback=function(M){var I=G;return function(){var B=G;G=I;try{return M.apply(this,arguments)}finally{G=B}}}})(Ch),$h.exports=Ch;var qb=$h.exports;/** @license React v17.0.2
115
115
  * react-dom.production.min.js
116
116
  *
117
117
  * Copyright (c) Facebook, Inc. and its affiliates.
118
118
  *
119
119
  * This source code is licensed under the MIT license found in the
120
120
  * LICENSE file in the root directory of this source tree.
121
- */var Ps=x,ne=mm,we=Wb;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 Ch=new Set,Hr={};function Wn(t,e){To(t,e),To(t+"Capture",e)}function To(t,e){for(Hr[t]=e,t=0;t<e.length;t++)Ch.add(e[t])}var Lt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qb=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Eh=Object.prototype.hasOwnProperty,Nh={},Oh={};function Gb(t){return Eh.call(Oh,t)?!0:Eh.call(Nh,t)?!1:qb.test(t)?Oh[t]=!0:(Nh[t]=!0,!1)}function Qb(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 Zb(t,e,n,o){if(e===null||typeof e>"u"||Qb(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 Be(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 Be(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 Be(e,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){Ce[t]=new Be(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Ce[t]=new Be(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 Be(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){Ce[t]=new Be(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){Ce[t]=new Be(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){Ce[t]=new Be(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){Ce[t]=new Be(t,5,!1,t.toLowerCase(),null,!1,!1)});var $u=/[\-:]([a-z])/g;function Cu(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($u,Cu);Ce[e]=new Be(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($u,Cu);Ce[e]=new Be(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($u,Cu);Ce[e]=new Be(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){Ce[t]=new Be(t,1,!1,t.toLowerCase(),null,!1,!1)}),Ce.xlinkHref=new Be("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){Ce[t]=new Be(t,1,!1,t.toLowerCase(),null,!0,!0)});function Eu(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||(Zb(e,n,r,o)&&(n=null),o||r===null?Gb(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 qn=Ps.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Vr=60103,Gn=60106,un=60107,Nu=60108,Ur=60114,Ou=60109,Au=60110,Is=60112,Jr=60113,Ls=60120,zs=60115,Ru=60116,Mu=60121,Du=60128,Ah=60129,Tu=60130,ju=60131;if(typeof Symbol=="function"&&Symbol.for){var Se=Symbol.for;Vr=Se("react.element"),Gn=Se("react.portal"),un=Se("react.fragment"),Nu=Se("react.strict_mode"),Ur=Se("react.profiler"),Ou=Se("react.provider"),Au=Se("react.context"),Is=Se("react.forward_ref"),Jr=Se("react.suspense"),Ls=Se("react.suspense_list"),zs=Se("react.memo"),Ru=Se("react.lazy"),Mu=Se("react.block"),Se("react.scope"),Du=Se("react.opaque.id"),Ah=Se("react.debug_trace_mode"),Tu=Se("react.offscreen"),ju=Se("react.legacy_hidden")}var Rh=typeof Symbol=="function"&&Symbol.iterator;function _r(t){return t===null||typeof t!="object"?null:(t=Rh&&t[Rh]||t["@@iterator"],typeof t=="function"?t:null)}var Pu;function Yr(t){if(Pu===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Pu=e&&e[1]||""}return`
121
+ */var Ps=x,ne=fm,we=qb;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 Eh=new Set,Vr={};function Wn(t,e){To(t,e),To(t+"Capture",e)}function To(t,e){for(Vr[t]=e,t=0;t<e.length;t++)Eh.add(e[t])}var Lt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gb=/^[: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]*$/,Nh=Object.prototype.hasOwnProperty,Oh={},Ah={};function Qb(t){return Nh.call(Ah,t)?!0:Nh.call(Oh,t)?!1:Gb.test(t)?Ah[t]=!0:(Oh[t]=!0,!1)}function Zb(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 Xb(t,e,n,o){if(e===null||typeof e>"u"||Zb(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 Be(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 Be(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 Be(e,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){Ce[t]=new Be(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Ce[t]=new Be(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 Be(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){Ce[t]=new Be(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){Ce[t]=new Be(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){Ce[t]=new Be(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){Ce[t]=new Be(t,5,!1,t.toLowerCase(),null,!1,!1)});var $u=/[\-:]([a-z])/g;function Cu(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($u,Cu);Ce[e]=new Be(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($u,Cu);Ce[e]=new Be(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($u,Cu);Ce[e]=new Be(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){Ce[t]=new Be(t,1,!1,t.toLowerCase(),null,!1,!1)}),Ce.xlinkHref=new Be("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){Ce[t]=new Be(t,1,!1,t.toLowerCase(),null,!0,!0)});function Eu(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||(Xb(e,n,r,o)&&(n=null),o||r===null?Qb(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 qn=Ps.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ur=60103,Gn=60106,un=60107,Nu=60108,Jr=60114,Ou=60109,Au=60110,Is=60112,_r=60113,Ls=60120,zs=60115,Ru=60116,Mu=60121,Du=60128,Rh=60129,Tu=60130,ju=60131;if(typeof Symbol=="function"&&Symbol.for){var Se=Symbol.for;Ur=Se("react.element"),Gn=Se("react.portal"),un=Se("react.fragment"),Nu=Se("react.strict_mode"),Jr=Se("react.profiler"),Ou=Se("react.provider"),Au=Se("react.context"),Is=Se("react.forward_ref"),_r=Se("react.suspense"),Ls=Se("react.suspense_list"),zs=Se("react.memo"),Ru=Se("react.lazy"),Mu=Se("react.block"),Se("react.scope"),Du=Se("react.opaque.id"),Rh=Se("react.debug_trace_mode"),Tu=Se("react.offscreen"),ju=Se("react.legacy_hidden")}var Mh=typeof Symbol=="function"&&Symbol.iterator;function Yr(t){return t===null||typeof t!="object"?null:(t=Mh&&t[Mh]||t["@@iterator"],typeof t=="function"?t:null)}var Pu;function Kr(t){if(Pu===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Pu=e&&e[1]||""}return`
122
122
  `+Pu+t}var Iu=!1;function Fs(t,e){if(!t||Iu)return"";Iu=!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(`
123
123
  `),i=o.stack.split(`
124
124
  `),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`
125
- `+r[s].replace(" at new "," at ");while(1<=s&&0<=a);break}}}finally{Iu=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Yr(t):""}function Xb(t){switch(t.tag){case 5:return Yr(t.type);case 16:return Yr("Lazy");case 13:return Yr("Suspense");case 19:return Yr("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 jo(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 Gn:return"Portal";case Ur:return"Profiler";case Nu:return"StrictMode";case Jr:return"Suspense";case Ls:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Au:return(t.displayName||"Context")+".Consumer";case Ou: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 jo(t.type);case Mu:return jo(t._render);case Ru:e=t._payload,t=t._init;try{return jo(t(e))}catch{}}return null}function cn(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function Mh(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function ex(t){var e=Mh(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 Bs(t){t._valueTracker||(t._valueTracker=ex(t))}function Dh(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),o="";return t&&(o=Mh(t)?t.checked?"true":"false":t.value),t=o,t!==n?(e.setValue(t),!0):!1}function Hs(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 Lu(t,e){var n=e.checked;return ne({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Th(t,e){var n=e.defaultValue==null?"":e.defaultValue,o=e.checked!=null?e.checked:e.defaultChecked;n=cn(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 jh(t,e){e=e.checked,e!=null&&Eu(t,"checked",e,!1)}function zu(t,e){jh(t,e);var n=cn(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")?Fu(t,e.type,n):e.hasOwnProperty("defaultValue")&&Fu(t,e.type,cn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Ph(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 Fu(t,e,n){(e!=="number"||Hs(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function tx(t){var e="";return Ps.Children.forEach(t,function(n){n!=null&&(e+=n)}),e}function Bu(t,e){return t=ne({children:void 0},e),(e=tx(e.children))&&(t.children=e),t}function Po(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=""+cn(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 Hu(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(A(91));return ne({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Ih(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:cn(n)}}function Lh(t,e){var n=cn(e.value),o=cn(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 zh(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}var Vu={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Fh(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 Uu(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?Fh(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Vs,Bh=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!==Vu.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 Kr(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Wr={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},nx=["Webkit","ms","Moz","O"];Object.keys(Wr).forEach(function(t){nx.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Wr[e]=Wr[t]})});function Hh(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Wr.hasOwnProperty(t)&&Wr[t]?(""+e).trim():e+"px"}function Vh(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var o=n.indexOf("--")===0,r=Hh(n,e[n],o);n==="float"&&(n="cssFloat"),o?t.setProperty(n,r):t[n]=r}}var ox=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 Ju(t,e){if(e){if(ox[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 _u(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 Yu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ku=null,Io=null,Lo=null;function Uh(t){if(t=fi(t)){if(typeof Ku!="function")throw Error(A(280));var e=t.stateNode;e&&(e=sa(e),Ku(t.stateNode,t.type,e))}}function Jh(t){Io?Lo?Lo.push(t):Lo=[t]:Io=t}function _h(){if(Io){var t=Io,e=Lo;if(Lo=Io=null,Uh(t),e)for(t=0;t<e.length;t++)Uh(e[t])}}function Wu(t,e){return t(e)}function Yh(t,e,n,o,r){return t(e,n,o,r)}function qu(){}var Kh=Wu,Qn=!1,Gu=!1;function Qu(){(Io!==null||Lo!==null)&&(qu(),_h())}function rx(t,e,n){if(Gu)return t(e,n);Gu=!0;try{return Kh(t,e,n)}finally{Gu=!1,Qu()}}function qr(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 Zu=!1;if(Lt)try{var Gr={};Object.defineProperty(Gr,"passive",{get:function(){Zu=!0}}),window.addEventListener("test",Gr,Gr),window.removeEventListener("test",Gr,Gr)}catch{Zu=!1}function ix(t,e,n,o,r,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{e.apply(n,u)}catch(c){this.onError(c)}}var Qr=!1,Us=null,Js=!1,Xu=null,sx={onError:function(t){Qr=!0,Us=t}};function ax(t,e,n,o,r,i,s,a,l){Qr=!1,Us=null,ix.apply(sx,arguments)}function lx(t,e,n,o,r,i,s,a,l){if(ax.apply(this,arguments),Qr){if(Qr){var u=Us;Qr=!1,Us=null}else throw Error(A(198));Js||(Js=!0,Xu=u)}}function Zn(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 Wh(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 qh(t){if(Zn(t)!==t)throw Error(A(188))}function ux(t){var e=t.alternate;if(!e){if(e=Zn(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 qh(r),t;if(i===o)return qh(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 Gh(t){if(t=ux(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 Qh(t,e){for(var n=t.alternate;e!==null;){if(e===t||e===n)return!0;e=e.return}return!1}var Zh,ec,Xh,eg,tc=!1,bt=[],dn=null,mn=null,fn=null,Zr=new Map,Xr=new Map,ei=[],tg="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 nc(t,e,n,o,r){return{blockedOn:t,domEventName:e,eventSystemFlags:n|16,nativeEvent:r,targetContainers:[o]}}function ng(t,e){switch(t){case"focusin":case"focusout":dn=null;break;case"dragenter":case"dragleave":mn=null;break;case"mouseover":case"mouseout":fn=null;break;case"pointerover":case"pointerout":Zr.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xr.delete(e.pointerId)}}function ti(t,e,n,o,r,i){return t===null||t.nativeEvent!==i?(t=nc(e,n,o,r,i),e!==null&&(e=fi(e),e!==null&&ec(e)),t):(t.eventSystemFlags|=o,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function cx(t,e,n,o,r){switch(e){case"focusin":return dn=ti(dn,t,e,n,o,r),!0;case"dragenter":return mn=ti(mn,t,e,n,o,r),!0;case"mouseover":return fn=ti(fn,t,e,n,o,r),!0;case"pointerover":var i=r.pointerId;return Zr.set(i,ti(Zr.get(i)||null,t,e,n,o,r)),!0;case"gotpointercapture":return i=r.pointerId,Xr.set(i,ti(Xr.get(i)||null,t,e,n,o,r)),!0}return!1}function dx(t){var e=Xn(t.target);if(e!==null){var n=Zn(e);if(n!==null){if(e=n.tag,e===13){if(e=Wh(n),e!==null){t.blockedOn=e,eg(t.lanePriority,function(){we.unstable_runWithPriority(t.priority,function(){Xh(n)})});return}}else if(e===3&&n.stateNode.hydrate){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function _s(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=lc(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n!==null)return e=fi(n),e!==null&&ec(e),t.blockedOn=n,!1;e.shift()}return!0}function og(t,e,n){_s(t)&&n.delete(e)}function mx(){for(tc=!1;0<bt.length;){var t=bt[0];if(t.blockedOn!==null){t=fi(t.blockedOn),t!==null&&Zh(t);break}for(var e=t.targetContainers;0<e.length;){var n=lc(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n!==null){t.blockedOn=n;break}e.shift()}t.blockedOn===null&&bt.shift()}dn!==null&&_s(dn)&&(dn=null),mn!==null&&_s(mn)&&(mn=null),fn!==null&&_s(fn)&&(fn=null),Zr.forEach(og),Xr.forEach(og)}function ni(t,e){t.blockedOn===e&&(t.blockedOn=null,tc||(tc=!0,we.unstable_scheduleCallback(we.unstable_NormalPriority,mx)))}function rg(t){function e(r){return ni(r,t)}if(0<bt.length){ni(bt[0],t);for(var n=1;n<bt.length;n++){var o=bt[n];o.blockedOn===t&&(o.blockedOn=null)}}for(dn!==null&&ni(dn,t),mn!==null&&ni(mn,t),fn!==null&&ni(fn,t),Zr.forEach(e),Xr.forEach(e),n=0;n<ei.length;n++)o=ei[n],o.blockedOn===t&&(o.blockedOn=null);for(;0<ei.length&&(n=ei[0],n.blockedOn===null);)dx(n),n.blockedOn===null&&ei.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 zo={animationend:Ys("Animation","AnimationEnd"),animationiteration:Ys("Animation","AnimationIteration"),animationstart:Ys("Animation","AnimationStart"),transitionend:Ys("Transition","TransitionEnd")},oc={},ig={};Lt&&(ig=document.createElement("div").style,"AnimationEvent"in window||(delete zo.animationend.animation,delete zo.animationiteration.animation,delete zo.animationstart.animation),"TransitionEvent"in window||delete zo.transitionend.transition);function Ks(t){if(oc[t])return oc[t];if(!zo[t])return t;var e=zo[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in ig)return oc[t]=e[n];return t}var sg=Ks("animationend"),ag=Ks("animationiteration"),lg=Ks("animationstart"),ug=Ks("transitionend"),cg=new Map,rc=new Map,fx=["abort","abort",sg,"animationEnd",ag,"animationIteration",lg,"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",ug,"transitionEnd","waiting","waiting"];function ic(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)),rc.set(o,e),cg.set(o,r),Wn(r,[o])}}var px=we.unstable_now;px();var Z=8;function Fo(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 hx(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 gx(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 oi(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=Fo(l),r=Z):(a&=i,a!==0&&(o=Fo(a),r=Z))}else i=n&~s,i!==0?(o=Fo(i),r=Z):a!==0&&(o=Fo(a),r=Z);if(o===0)return 0;if(o=31-pn(o),o=n&((0>o?0:1<<o)<<1)-1,e!==0&&e!==o&&!(e&s)){if(Fo(e),r<=Z)return e;Z=r}if(e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=o;0<e;)n=31-pn(e),r=1<<n,o|=t[n],e&=~r;return o}function dg(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 sc(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-pn(e),t[e]=n}var pn=Math.clz32?Math.clz32:Sx,yx=Math.log,wx=Math.LN2;function Sx(t){return t===0?32:31-(yx(t)/wx|0)|0}var kx=we.unstable_UserBlockingPriority,vx=we.unstable_runWithPriority,Gs=!0;function bx(t,e,n,o){Qn||qu();var r=ac,i=Qn;Qn=!0;try{Yh(r,t,e,n,o)}finally{(Qn=i)||Qu()}}function xx(t,e,n,o){vx(kx,ac.bind(null,t,e,n,o))}function ac(t,e,n,o){if(Gs){var r;if((r=(e&4)===0)&&0<bt.length&&-1<tg.indexOf(t))t=nc(null,t,e,n,o),bt.push(t);else{var i=lc(t,e,n,o);if(i===null)r&&ng(t,o);else{if(r){if(-1<tg.indexOf(t)){t=nc(i,t,e,n,o),bt.push(t);return}if(cx(i,t,e,n,o))return;ng(t,o)}Hg(t,e,o,null,n)}}}}function lc(t,e,n,o){var r=Yu(o);if(r=Xn(r),r!==null){var i=Zn(r);if(i===null)r=null;else{var s=i.tag;if(s===13){if(r=Wh(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 Hg(t,e,o,r,n),null}var hn=null,uc=null,Qs=null;function mg(){if(Qs)return Qs;var t,e=uc,n=e.length,o,r="value"in hn?hn.value:hn.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 fg(){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:fg,this.isPropagationStopped=fg,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 Ho={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cc=Ge(Ho),ri=ne({},Ho,{view:0,detail:0}),$x=Ge(ri),dc,mc,ii,ea=ne({},ri,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pc,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!==ii&&(ii&&t.type==="mousemove"?(dc=t.screenX-ii.screenX,mc=t.screenY-ii.screenY):mc=dc=0,ii=t),dc)},movementY:function(t){return"movementY"in t?t.movementY:mc}}),pg=Ge(ea),Cx=ne({},ea,{dataTransfer:0}),Ex=Ge(Cx),Nx=ne({},ri,{relatedTarget:0}),fc=Ge(Nx),Ox=ne({},Ho,{animationName:0,elapsedTime:0,pseudoElement:0}),Ax=Ge(Ox),Rx=ne({},Ho,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Mx=Ge(Rx),Dx=ne({},Ho,{data:0}),hg=Ge(Dx),Tx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jx={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"},Px={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ix(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Px[t])?!!e[t]:!1}function pc(){return Ix}var Lx=ne({},ri,{key:function(t){if(t.key){var e=Tx[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"?jx[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pc,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}}),zx=Ge(Lx),Fx=ne({},ea,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gg=Ge(Fx),Bx=ne({},ri,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pc}),Hx=Ge(Bx),Vx=ne({},Ho,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ux=Ge(Vx),Jx=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}),_x=Ge(Jx),Yx=[9,13,27,32],hc=Lt&&"CompositionEvent"in window,si=null;Lt&&"documentMode"in document&&(si=document.documentMode);var Kx=Lt&&"TextEvent"in window&&!si,yg=Lt&&(!hc||si&&8<si&&11>=si),wg=String.fromCharCode(32),Sg=!1;function kg(t,e){switch(t){case"keyup":return Yx.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vg(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Vo=!1;function Wx(t,e){switch(t){case"compositionend":return vg(e);case"keypress":return e.which!==32?null:(Sg=!0,wg);case"textInput":return t=e.data,t===wg&&Sg?null:t;default:return null}}function qx(t,e){if(Vo)return t==="compositionend"||!hc&&kg(t,e)?(t=mg(),Qs=uc=hn=null,Vo=!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 yg&&e.locale!=="ko"?null:e.data;default:return null}}var Gx={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 bg(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Gx[t.type]:e==="textarea"}function xg(t,e,n,o){Jh(o),e=na(e,"onChange"),0<e.length&&(n=new cc("onChange","change",null,n,o),t.push({event:n,listeners:e}))}var ai=null,li=null;function Qx(t){Ig(t,0)}function ta(t){var e=Ko(t);if(Dh(e))return t}function Zx(t,e){if(t==="change")return e}var $g=!1;if(Lt){var gc;if(Lt){var yc="oninput"in document;if(!yc){var Cg=document.createElement("div");Cg.setAttribute("oninput","return;"),yc=typeof Cg.oninput=="function"}gc=yc}else gc=!1;$g=gc&&(!document.documentMode||9<document.documentMode)}function Eg(){ai&&(ai.detachEvent("onpropertychange",Ng),li=ai=null)}function Ng(t){if(t.propertyName==="value"&&ta(li)){var e=[];if(xg(e,li,t,Yu(t)),t=Qx,Qn)t(e);else{Qn=!0;try{Wu(t,e)}finally{Qn=!1,Qu()}}}}function Xx(t,e,n){t==="focusin"?(Eg(),ai=e,li=n,ai.attachEvent("onpropertychange",Ng)):t==="focusout"&&Eg()}function e$(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ta(li)}function t$(t,e){if(t==="click")return ta(e)}function n$(t,e){if(t==="input"||t==="change")return ta(e)}function o$(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var it=typeof Object.is=="function"?Object.is:o$,r$=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(!r$.call(e,n[o])||!it(t[n[o]],e[n[o]]))return!1;return!0}function Og(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Ag(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 Rg(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Rg(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Mg(){for(var t=window,e=Hs();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Hs(t.document)}return e}function wc(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 i$=Lt&&"documentMode"in document&&11>=document.documentMode,Uo=null,Sc=null,ci=null,kc=!1;function Dg(t,e,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;kc||Uo==null||Uo!==Hs(o)||(o=Uo,"selectionStart"in o&&wc(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}),ci&&ui(ci,o)||(ci=o,o=na(Sc,"onSelect"),0<o.length&&(e=new cc("onSelect","select",null,e,n),t.push({event:e,listeners:o}),e.target=Uo)))}ic("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),ic("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),ic(fx,2);for(var Tg="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),vc=0;vc<Tg.length;vc++)rc.set(Tg[vc],0);To("onMouseEnter",["mouseout","mouseover"]),To("onMouseLeave",["mouseout","mouseover"]),To("onPointerEnter",["pointerout","pointerover"]),To("onPointerLeave",["pointerout","pointerover"]),Wn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Wn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Wn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Wn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Wn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var di="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jg=new Set("cancel close invalid load scroll toggle".split(" ").concat(di));function Pg(t,e,n){var o=t.type||"unknown-event";t.currentTarget=n,lx(o,e,void 0,t),t.currentTarget=null}function Ig(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,u=a.currentTarget;if(a=a.listener,l!==i&&r.isPropagationStopped())break e;Pg(r,a,u),i=l}else for(s=0;s<o.length;s++){if(a=o[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&r.isPropagationStopped())break e;Pg(r,a,u),i=l}}}if(Js)throw t=Xu,Js=!1,Xu=null,t}function ee(t,e){var n=Kg(e),o=t+"__bubble";n.has(o)||(Bg(e,t,2,!1),n.add(o))}var Lg="_reactListening"+Math.random().toString(36).slice(2);function zg(t){t[Lg]||(t[Lg]=!0,Ch.forEach(function(e){jg.has(e)||Fg(e,!1,t,null),Fg(e,!0,t,null)}))}function Fg(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&&jg.has(t)){if(t!=="scroll")return;r|=2,i=o}var s=Kg(i),a=t+"__"+(e?"capture":"bubble");s.has(a)||(e&&(r|=4),Bg(i,t,r,e),s.add(a))}function Bg(t,e,n,o){var r=rc.get(e);switch(r===void 0?2:r){case 0:r=bx;break;case 1:r=xx;break;default:r=ac}n=r.bind(null,e,n,t),r=void 0,!Zu||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 Hg(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=Xn(a),s===null)return;if(l=s.tag,l===5||l===6){o=i=s;continue e}a=a.parentNode}}o=o.return}rx(function(){var u=i,c=Yu(n),d=[];e:{var m=cg.get(t);if(m!==void 0){var f=cc,p=t;switch(t){case"keypress":if(Zs(n)===0)break e;case"keydown":case"keyup":f=zx;break;case"focusin":p="focus",f=fc;break;case"focusout":p="blur",f=fc;break;case"beforeblur":case"afterblur":f=fc;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":f=pg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=Ex;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=Hx;break;case sg:case ag:case lg:f=Ax;break;case ug:f=Ux;break;case"scroll":f=$x;break;case"wheel":f=_x;break;case"copy":case"cut":case"paste":f=Mx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=gg}var y=(e&4)!==0,h=!y&&t==="scroll",g=y?m!==null?m+"Capture":null:m;y=[];for(var w=u,k;w!==null;){k=w;var b=k.stateNode;if(k.tag===5&&b!==null&&(k=b,g!==null&&(b=qr(w,g),b!=null&&y.push(mi(w,b,k)))),h)break;w=w.return}0<y.length&&(m=new f(m,p,null,n,c),d.push({event:m,listeners:y}))}}if(!(e&7)){e:{if(m=t==="mouseover"||t==="pointerover",f=t==="mouseout"||t==="pointerout",m&&!(e&16)&&(p=n.relatedTarget||n.fromElement)&&(Xn(p)||p[Yo]))break e;if((f||m)&&(m=c.window===c?c:(m=c.ownerDocument)?m.defaultView||m.parentWindow:window,f?(p=n.relatedTarget||n.toElement,f=u,p=p?Xn(p):null,p!==null&&(h=Zn(p),p!==h||p.tag!==5&&p.tag!==6)&&(p=null)):(f=null,p=u),f!==p)){if(y=pg,b="onMouseLeave",g="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(y=gg,b="onPointerLeave",g="onPointerEnter",w="pointer"),h=f==null?m:Ko(f),k=p==null?m:Ko(p),m=new y(b,w+"leave",f,n,c),m.target=h,m.relatedTarget=k,b=null,Xn(c)===u&&(y=new y(g,w+"enter",p,n,c),y.target=k,y.relatedTarget=h,b=y),h=b,f&&p)t:{for(y=f,g=p,w=0,k=y;k;k=Jo(k))w++;for(k=0,b=g;b;b=Jo(b))k++;for(;0<w-k;)y=Jo(y),w--;for(;0<k-w;)g=Jo(g),k--;for(;w--;){if(y===g||g!==null&&y===g.alternate)break t;y=Jo(y),g=Jo(g)}y=null}else y=null;f!==null&&Vg(d,m,f,y,!1),p!==null&&h!==null&&Vg(d,h,p,y,!0)}}e:{if(m=u?Ko(u):window,f=m.nodeName&&m.nodeName.toLowerCase(),f==="select"||f==="input"&&m.type==="file")var E=Zx;else if(bg(m))if($g)E=n$;else{E=e$;var v=Xx}else(f=m.nodeName)&&f.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(E=t$);if(E&&(E=E(t,u))){xg(d,E,n,c);break e}v&&v(t,m,u),t==="focusout"&&(v=m._wrapperState)&&v.controlled&&m.type==="number"&&Fu(m,"number",m.value)}switch(v=u?Ko(u):window,t){case"focusin":(bg(v)||v.contentEditable==="true")&&(Uo=v,Sc=u,ci=null);break;case"focusout":ci=Sc=Uo=null;break;case"mousedown":kc=!0;break;case"contextmenu":case"mouseup":case"dragend":kc=!1,Dg(d,n,c);break;case"selectionchange":if(i$)break;case"keydown":case"keyup":Dg(d,n,c)}var $;if(hc)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 Vo?kg(t,n)&&(R="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(yg&&n.locale!=="ko"&&(Vo||R!=="onCompositionStart"?R==="onCompositionEnd"&&Vo&&($=mg()):(hn=c,uc="value"in hn?hn.value:hn.textContent,Vo=!0)),v=na(u,R),0<v.length&&(R=new hg(R,t,null,n,c),d.push({event:R,listeners:v}),$?R.data=$:($=vg(n),$!==null&&(R.data=$)))),($=Kx?Wx(t,n):qx(t,n))&&(u=na(u,"onBeforeInput"),0<u.length&&(c=new hg("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=$))}Ig(d,e)})}function mi(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=qr(t,n),i!=null&&o.unshift(mi(t,i,r)),i=qr(t,e),i!=null&&o.push(mi(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 Vg(t,e,n,o,r){for(var i=e._reactName,s=[];n!==null&&n!==o;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===o)break;a.tag===5&&u!==null&&(a=u,r?(l=qr(n,i),l!=null&&s.unshift(mi(n,l,a))):r||(l=qr(n,i),l!=null&&s.push(mi(n,l,a)))),n=n.return}s.length!==0&&t.push({event:e,listeners:s})}function oa(){}var bc=null,xc=null;function Ug(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function $c(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 Jg=typeof setTimeout=="function"?setTimeout:void 0,s$=typeof clearTimeout=="function"?clearTimeout:void 0;function Cc(t){t.nodeType===1?t.textContent="":t.nodeType===9&&(t=t.body,t!=null&&(t.textContent=""))}function _o(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break}return t}function _g(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 Ec=0;function a$(t){return{$$typeof:Du,toString:t,valueOf:t}}var ra=Math.random().toString(36).slice(2),gn="__reactFiber$"+ra,ia="__reactProps$"+ra,Yo="__reactContainer$"+ra,Yg="__reactEvents$"+ra;function Xn(t){var e=t[gn];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Yo]||n[gn]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=_g(t);t!==null;){if(n=t[gn])return n;t=_g(t)}return e}t=n,n=t.parentNode}return null}function fi(t){return t=t[gn]||t[Yo],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Ko(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(A(33))}function sa(t){return t[ia]||null}function Kg(t){var e=t[Yg];return e===void 0&&(e=t[Yg]=new Set),e}var Nc=[],Wo=-1;function yn(t){return{current:t}}function te(t){0>Wo||(t.current=Nc[Wo],Nc[Wo]=null,Wo--)}function re(t,e){Wo++,Nc[Wo]=t.current,t.current=e}var wn={},Te=yn(wn),Je=yn(!1),eo=wn;function qo(t,e){var n=t.type.contextTypes;if(!n)return wn;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 _e(t){return t=t.childContextTypes,t!=null}function aa(){te(Je),te(Te)}function Wg(t,e,n){if(Te.current!==wn)throw Error(A(168));re(Te,e),re(Je,n)}function qg(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,jo(e)||"Unknown",r));return ne({},n,o)}function la(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||wn,eo=Te.current,re(Te,t),re(Je,Je.current),!0}function Gg(t,e,n){var o=t.stateNode;if(!o)throw Error(A(169));n?(t=qg(t,e,eo),o.__reactInternalMemoizedMergedChildContext=t,te(Je),te(Te),re(Te,t)):te(Je),re(Je,n)}var Oc=null,to=null,l$=we.unstable_runWithPriority,Ac=we.unstable_scheduleCallback,Rc=we.unstable_cancelCallback,u$=we.unstable_shouldYield,Qg=we.unstable_requestPaint,Mc=we.unstable_now,c$=we.unstable_getCurrentPriorityLevel,ua=we.unstable_ImmediatePriority,Zg=we.unstable_UserBlockingPriority,Xg=we.unstable_NormalPriority,ey=we.unstable_LowPriority,ty=we.unstable_IdlePriority,Dc={},d$=Qg!==void 0?Qg:function(){},zt=null,ca=null,Tc=!1,ny=Mc(),je=1e4>ny?Mc:function(){return Mc()-ny};function Go(){switch(c$()){case ua:return 99;case Zg:return 98;case Xg:return 97;case ey:return 96;case ty:return 95;default:throw Error(A(332))}}function oy(t){switch(t){case 99:return ua;case 98:return Zg;case 97:return Xg;case 96:return ey;case 95:return ty;default:throw Error(A(332))}}function no(t,e){return t=oy(t),l$(t,e)}function pi(t,e,n){return t=oy(t),Ac(t,e,n)}function xt(){if(ca!==null){var t=ca;ca=null,Rc(t)}ry()}function ry(){if(!Tc&&zt!==null){Tc=!0;var t=0;try{var e=zt;no(99,function(){for(;t<e.length;t++){var n=e[t];do n=n(!0);while(n!==null)}}),zt=null}catch(n){throw zt!==null&&(zt=zt.slice(t+1)),Ac(ua,xt),n}finally{Tc=!1}}}var m$=qn.ReactCurrentBatchConfig;function gt(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=yn(null),ma=null,Qo=null,fa=null;function jc(){fa=Qo=ma=null}function Pc(t){var e=da.current;te(da),t.type._context._currentValue=e}function iy(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 Zo(t,e){ma=t,fa=Qo=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(yt=!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},Qo===null){if(ma===null)throw Error(A(308));Qo=e,ma.dependencies={lanes:0,firstContext:e,responders:null}}else Qo=Qo.next=e;return t._currentValue}var Sn=!1;function Ic(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function sy(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 kn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function vn(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 ay(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 hi(t,e,n,o){var r=t.updateQueue;Sn=!1;var i=r.firstBaseUpdate,s=r.lastBaseUpdate,a=r.shared.pending;if(a!==null){r.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=t.alternate;if(c!==null){c=c.updateQueue;var d=c.lastBaseUpdate;d!==s&&(d===null?c.firstBaseUpdate=u:d.next=u,c.lastBaseUpdate=l)}}if(i!==null){d=r.baseState,s=0,c=u=l=null;do{a=i.lane;var m=i.eventTime;if((o&a)===a){c!==null&&(c=c.next={eventTime:m,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var f=t,p=i;switch(a=e,m=n,p.tag){case 1:if(f=p.payload,typeof f=="function"){d=f.call(m,d,a);break e}d=f;break e;case 3:f.flags=f.flags&-4097|64;case 0:if(f=p.payload,a=typeof f=="function"?f.call(m,d,a):f,a==null)break e;d=ne({},d,a);break e;case 2:Sn=!0}}i.callback!==null&&(t.flags|=32,a=r.effects,a===null?r.effects=[i]:a.push(i))}else m={eventTime:m,lane:a,tag:i.tag,payload:i.payload,callback:i.callback,next:null},c===null?(u=c=m,l=d):c=c.next=m,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);c===null&&(l=d),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=c,Ni|=s,t.lanes=s,t.memoizedState=d}}function ly(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 uy=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)?Zn(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var o=Qe(),r=$n(t),i=kn(o,r);i.payload=e,n!=null&&(i.callback=n),vn(t,i),Cn(t,r,o)},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var o=Qe(),r=$n(t),i=kn(o,r);i.tag=1,i.payload=e,n!=null&&(i.callback=n),vn(t,i),Cn(t,r,o)},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Qe(),o=$n(t),r=kn(n,o);r.tag=2,e!=null&&(r.callback=e),vn(t,r),Cn(t,o,n)}};function cy(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 dy(t,e,n){var o=!1,r=wn,i=e.contextType;return typeof i=="object"&&i!==null?i=st(i):(r=_e(e)?eo:Te.current,o=e.contextTypes,i=(o=o!=null)?qo(t,r):wn),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 my(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 Lc(t,e,n,o){var r=t.stateNode;r.props=n,r.state=t.memoizedState,r.refs=uy,Ic(t);var i=e.contextType;typeof i=="object"&&i!==null?r.context=st(i):(i=_e(e)?eo:Te.current,r.context=qo(t,i)),hi(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),hi(t,n,r,o),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4)}var ga=Array.isArray;function gi(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===uy&&(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 fy(t){function e(h,g){if(t){var w=h.lastEffect;w!==null?(w.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=On(h,g),h.index=0,h.sibling=null,h}function i(h,g,w){return h.index=w,t?(w=h.alternate,w!==null?(w=w.index,w<g?(h.flags=2,g):w):(h.flags=2,g)):g}function s(h){return t&&h.alternate===null&&(h.flags=2),h}function a(h,g,w,k){return g===null||g.tag!==6?(g=Sd(w,h.mode,k),g.return=h,g):(g=r(g,w),g.return=h,g)}function l(h,g,w,k){return g!==null&&g.elementType===w.type?(k=r(g,w.props),k.ref=gi(h,g,w),k.return=h,k):(k=Pa(w.type,w.key,w.props,null,h.mode,k),k.ref=gi(h,g,w),k.return=h,k)}function u(h,g,w,k){return g===null||g.tag!==4||g.stateNode.containerInfo!==w.containerInfo||g.stateNode.implementation!==w.implementation?(g=kd(w,h.mode,k),g.return=h,g):(g=r(g,w.children||[]),g.return=h,g)}function c(h,g,w,k,b){return g===null||g.tag!==7?(g=sr(w,h.mode,k,b),g.return=h,g):(g=r(g,w),g.return=h,g)}function d(h,g,w){if(typeof g=="string"||typeof g=="number")return g=Sd(""+g,h.mode,w),g.return=h,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Vr:return w=Pa(g.type,g.key,g.props,null,h.mode,w),w.ref=gi(h,null,g),w.return=h,w;case Gn:return g=kd(g,h.mode,w),g.return=h,g}if(ga(g)||_r(g))return g=sr(g,h.mode,w,null),g.return=h,g;ya(h,g)}return null}function m(h,g,w,k){var b=g!==null?g.key:null;if(typeof w=="string"||typeof w=="number")return b!==null?null:a(h,g,""+w,k);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Vr:return w.key===b?w.type===un?c(h,g,w.props.children,k,b):l(h,g,w,k):null;case Gn:return w.key===b?u(h,g,w,k):null}if(ga(w)||_r(w))return b!==null?null:c(h,g,w,k,null);ya(h,w)}return null}function f(h,g,w,k,b){if(typeof k=="string"||typeof k=="number")return h=h.get(w)||null,a(g,h,""+k,b);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Vr:return h=h.get(k.key===null?w:k.key)||null,k.type===un?c(g,h,k.props.children,b,k.key):l(g,h,k,b);case Gn:return h=h.get(k.key===null?w:k.key)||null,u(g,h,k,b)}if(ga(k)||_r(k))return h=h.get(w)||null,c(g,h,k,b,null);ya(g,k)}return null}function p(h,g,w,k){for(var b=null,E=null,v=g,$=g=0,R=null;v!==null&&$<w.length;$++){v.index>$?(R=v,v=null):R=v.sibling;var C=m(h,v,w[$],k);if(C===null){v===null&&(v=R);break}t&&v&&C.alternate===null&&e(h,v),g=i(C,g,$),E===null?b=C:E.sibling=C,E=C,v=R}if($===w.length)return n(h,v),b;if(v===null){for(;$<w.length;$++)v=d(h,w[$],k),v!==null&&(g=i(v,g,$),E===null?b=v:E.sibling=v,E=v);return b}for(v=o(h,v);$<w.length;$++)R=f(v,h,$,w[$],k),R!==null&&(t&&R.alternate!==null&&v.delete(R.key===null?$:R.key),g=i(R,g,$),E===null?b=R:E.sibling=R,E=R);return t&&v.forEach(function(_){return e(h,_)}),b}function y(h,g,w,k){var b=_r(w);if(typeof b!="function")throw Error(A(150));if(w=b.call(w),w==null)throw Error(A(151));for(var E=b=null,v=g,$=g=0,R=null,C=w.next();v!==null&&!C.done;$++,C=w.next()){v.index>$?(R=v,v=null):R=v.sibling;var _=m(h,v,C.value,k);if(_===null){v===null&&(v=R);break}t&&v&&_.alternate===null&&e(h,v),g=i(_,g,$),E===null?b=_:E.sibling=_,E=_,v=R}if(C.done)return n(h,v),b;if(v===null){for(;!C.done;$++,C=w.next())C=d(h,C.value,k),C!==null&&(g=i(C,g,$),E===null?b=C:E.sibling=C,E=C);return b}for(v=o(h,v);!C.done;$++,C=w.next())C=f(v,h,$,C.value,k),C!==null&&(t&&C.alternate!==null&&v.delete(C.key===null?$:C.key),g=i(C,g,$),E===null?b=C:E.sibling=C,E=C);return t&&v.forEach(function(se){return e(h,se)}),b}return function(h,g,w,k){var b=typeof w=="object"&&w!==null&&w.type===un&&w.key===null;b&&(w=w.props.children);var E=typeof w=="object"&&w!==null;if(E)switch(w.$$typeof){case Vr:e:{for(E=w.key,b=g;b!==null;){if(b.key===E){switch(b.tag){case 7:if(w.type===un){n(h,b.sibling),g=r(b,w.props.children),g.return=h,h=g;break e}break;default:if(b.elementType===w.type){n(h,b.sibling),g=r(b,w.props),g.ref=gi(h,b,w),g.return=h,h=g;break e}}n(h,b);break}else e(h,b);b=b.sibling}w.type===un?(g=sr(w.props.children,h.mode,k,w.key),g.return=h,h=g):(k=Pa(w.type,w.key,w.props,null,h.mode,k),k.ref=gi(h,g,w),k.return=h,h=k)}return s(h);case Gn:e:{for(b=w.key;g!==null;){if(g.key===b)if(g.tag===4&&g.stateNode.containerInfo===w.containerInfo&&g.stateNode.implementation===w.implementation){n(h,g.sibling),g=r(g,w.children||[]),g.return=h,h=g;break e}else{n(h,g);break}else e(h,g);g=g.sibling}g=kd(w,h.mode,k),g.return=h,h=g}return s(h)}if(typeof w=="string"||typeof w=="number")return w=""+w,g!==null&&g.tag===6?(n(h,g.sibling),g=r(g,w),g.return=h,h=g):(n(h,g),g=Sd(w,h.mode,k),g.return=h,h=g),s(h);if(ga(w))return p(h,g,w,k);if(_r(w))return y(h,g,w,k);if(E&&ya(h,w),typeof w>"u"&&!b)switch(h.tag){case 1:case 22:case 0:case 11:case 15:throw Error(A(152,jo(h.type)||"Component"))}return n(h,g)}}var wa=fy(!0),py=fy(!1),yi={},$t=yn(yi),wi=yn(yi),Si=yn(yi);function oo(t){if(t===yi)throw Error(A(174));return t}function zc(t,e){switch(re(Si,e),re(wi,t),re($t,yi),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Uu(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Uu(e,t)}te($t),re($t,e)}function Xo(){te($t),te(wi),te(Si)}function hy(t){oo(Si.current);var e=oo($t.current),n=Uu(e,t.type);e!==n&&(re(wi,t),re($t,n))}function Fc(t){wi.current===t&&(te($t),te(wi))}var ie=yn(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 Ft=null,bn=null,Ct=!1;function gy(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 yy(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 Bc(t){if(Ct){var e=bn;if(e){var n=e;if(!yy(t,e)){if(e=_o(n.nextSibling),!e||!yy(t,e)){t.flags=t.flags&-1025|2,Ct=!1,Ft=t;return}gy(Ft,n)}Ft=t,bn=_o(e.firstChild)}else t.flags=t.flags&-1025|2,Ct=!1,Ft=t}}function wy(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Ft=t}function ka(t){if(t!==Ft)return!1;if(!Ct)return wy(t),Ct=!0,!1;var e=t.type;if(t.tag!==5||e!=="head"&&e!=="body"&&!$c(e,t.memoizedProps))for(e=bn;e;)gy(t,e),e=_o(e.nextSibling);if(wy(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){bn=_o(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}bn=null}}else bn=Ft?_o(t.stateNode.nextSibling):null;return!0}function Hc(){bn=Ft=null,Ct=!1}var er=[];function Vc(){for(var t=0;t<er.length;t++)er[t]._workInProgressVersionPrimary=null;er.length=0}var ki=qn.ReactCurrentDispatcher,at=qn.ReactCurrentBatchConfig,vi=0,ae=null,Pe=null,Ee=null,va=!1,bi=!1;function Ye(){throw Error(A(321))}function Uc(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 Jc(t,e,n,o,r,i){if(vi=i,ae=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,ki.current=t===null||t.memoizedState===null?p$:h$,t=n(o,r),bi){i=0;do{if(bi=!1,!(25>i))throw Error(A(301));i+=1,Ee=Pe=null,e.updateQueue=null,ki.current=g$,t=n(o,r)}while(bi)}if(ki.current=Ca,e=Pe!==null&&Pe.next!==null,vi=0,Ee=Pe=ae=null,va=!1,e)throw Error(A(300));return t}function ro(){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 io(){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 Et(t,e){return typeof e=="function"?e(t):e}function xi(t){var e=io(),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 u=l.lane;if((vi&u)===u)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 c={lane:u,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};a===null?(s=a=c,i=o):a=a.next=c,ae.lanes|=u,Ni|=u}l=l.next}while(l!==null&&l!==r);a===null?i=o:a.next=s,it(o,e.memoizedState)||(yt=!0),e.memoizedState=o,e.baseState=i,e.baseQueue=a,n.lastRenderedState=o}return[e.memoizedState,n.dispatch]}function $i(t){var e=io(),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);it(i,e.memoizedState)||(yt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,o]}function Sy(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=(vi&t)===t)&&(e._workInProgressVersionPrimary=o,er.push(e))),t)return n(e._source);throw er.push(e),Error(A(350))}function ky(t,e,n,o){var r=He;if(r===null)throw Error(A(349));var i=e._getVersion,s=i(e._source),a=ki.current,l=a.useState(function(){return Sy(r,e,n)}),u=l[1],c=l[0];l=Ee;var d=t.memoizedState,m=d.refs,f=m.getSnapshot,p=d.source;d=d.subscribe;var y=ae;return t.memoizedState={refs:m,source:e,subscribe:o},a.useEffect(function(){m.getSnapshot=n,m.setSnapshot=u;var h=i(e._source);if(!it(s,h)){h=n(e._source),it(c,h)||(u(h),h=$n(y),r.mutableReadLanes|=h&r.pendingLanes),h=r.mutableReadLanes,r.entangledLanes|=h;for(var g=r.entanglements,w=h;0<w;){var k=31-pn(w),b=1<<k;g[k]|=h,w&=~b}}},[n,e,o]),a.useEffect(function(){return o(e._source,function(){var h=m.getSnapshot,g=m.setSnapshot;try{g(h(e._source));var w=$n(y);r.mutableReadLanes|=w&r.pendingLanes}catch(k){g(function(){throw k})}})},[e,o]),it(f,n)&&it(p,e)&&it(d,o)||(t={pending:null,dispatch:null,lastRenderedReducer:Et,lastRenderedState:c},t.dispatch=u=Wc.bind(null,ae,t),l.queue=t,l.baseQueue=null,c=Sy(r,e,n),l.memoizedState=l.baseState=c),c}function vy(t,e,n){var o=io();return ky(o,t,e,n)}function Ci(t){var e=ro();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t=e.queue={pending:null,dispatch:null,lastRenderedReducer:Et,lastRenderedState:t},t=t.dispatch=Wc.bind(null,ae,t),[e.memoizedState,t]}function ba(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 by(t){var e=ro();return t={current:t},e.memoizedState=t}function xa(){return io().memoizedState}function _c(t,e,n,o){var r=ro();ae.flags|=t,r.memoizedState=ba(1|e,n,void 0,o===void 0?null:o)}function Yc(t,e,n,o){var r=io();o=o===void 0?null:o;var i=void 0;if(Pe!==null){var s=Pe.memoizedState;if(i=s.destroy,o!==null&&Uc(o,s.deps)){ba(e,n,i,o);return}}ae.flags|=t,r.memoizedState=ba(1|e,n,i,o)}function xy(t,e){return _c(516,4,t,e)}function $a(t,e){return Yc(516,4,t,e)}function $y(t,e){return Yc(4,2,t,e)}function Cy(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 Ey(t,e,n){return n=n!=null?n.concat([t]):null,Yc(4,2,Cy.bind(null,e,t),n)}function Kc(){}function Ny(t,e){var n=io();e=e===void 0?null:e;var o=n.memoizedState;return o!==null&&e!==null&&Uc(e,o[1])?o[0]:(n.memoizedState=[t,e],t)}function Oy(t,e){var n=io();e=e===void 0?null:e;var o=n.memoizedState;return o!==null&&e!==null&&Uc(e,o[1])?o[0]:(t=t(),n.memoizedState=[t,e],t)}function f$(t,e){var n=Go();no(98>n?98:n,function(){t(!0)}),no(97<n?97:n,function(){var o=at.transition;at.transition=1;try{t(!1),e()}finally{at.transition=o}})}function Wc(t,e,n){var o=Qe(),r=$n(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)bi=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{}Cn(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},p$={readContext:st,useCallback:function(t,e){return ro().memoizedState=[t,e===void 0?null:e],t},useContext:st,useEffect:xy,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,_c(4,2,Cy.bind(null,e,t),n)},useLayoutEffect:function(t,e){return _c(4,2,t,e)},useMemo:function(t,e){var n=ro();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var o=ro();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=Wc.bind(null,ae,t),[o.memoizedState,t]},useRef:by,useState:Ci,useDebugValue:Kc,useDeferredValue:function(t){var e=Ci(t),n=e[0],o=e[1];return xy(function(){var r=at.transition;at.transition=1;try{o(t)}finally{at.transition=r}},[t]),n},useTransition:function(){var t=Ci(!1),e=t[0];return t=f$.bind(null,t[1]),by(t),[t,e]},useMutableSource:function(t,e,n){var o=ro();return o.memoizedState={refs:{getSnapshot:e,setSnapshot:null},source:t,subscribe:n},ky(o,t,e,n)},useOpaqueIdentifier:function(){if(Ct){var t=!1,e=a$(function(){throw t||(t=!0,n("r:"+(Ec++).toString(36))),Error(A(355))}),n=Ci(e)[1];return!(ae.mode&2)&&(ae.flags|=516,ba(5,function(){n("r:"+(Ec++).toString(36))},void 0,null)),e}return e="r:"+(Ec++).toString(36),Ci(e),e},unstable_isNewReconciler:!1},h$={readContext:st,useCallback:Ny,useContext:st,useEffect:$a,useImperativeHandle:Ey,useLayoutEffect:$y,useMemo:Oy,useReducer:xi,useRef:xa,useState:function(){return xi(Et)},useDebugValue:Kc,useDeferredValue:function(t){var e=xi(Et),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=xi(Et)[0];return[xa().current,t]},useMutableSource:vy,useOpaqueIdentifier:function(){return xi(Et)[0]},unstable_isNewReconciler:!1},g$={readContext:st,useCallback:Ny,useContext:st,useEffect:$a,useImperativeHandle:Ey,useLayoutEffect:$y,useMemo:Oy,useReducer:$i,useRef:xa,useState:function(){return $i(Et)},useDebugValue:Kc,useDeferredValue:function(t){var e=$i(Et),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(Et)[0];return[xa().current,t]},useMutableSource:vy,useOpaqueIdentifier:function(){return $i(Et)[0]},unstable_isNewReconciler:!1},y$=qn.ReactCurrentOwner,yt=!1;function Ke(t,e,n,o){e.child=t===null?py(e,null,n,o):wa(e,t.child,n,o)}function Ay(t,e,n,o,r){n=n.render;var i=e.ref;return Zo(e,r),o=Jc(t,e,n,o,i,r),t!==null&&!yt?(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 Ry(t,e,n,o,r,i){if(t===null){var s=n.type;return typeof s=="function"&&!yd(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=s,My(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=On(s,o),t.ref=e.ref,t.return=e,e.child=t)}function My(t,e,n,o,r,i){if(t!==null&&ui(t.memoizedProps,o)&&t.ref===e.ref)if(yt=!1,(i&r)!==0)t.flags&16384&&(yt=!0);else return e.lanes=t.lanes,Bt(t,e,i);return Gc(t,e,n,o,i)}function qc(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 Dy(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=128)}function Gc(t,e,n,o,r){var i=_e(n)?eo:Te.current;return i=qo(e,i),Zo(e,r),n=Jc(t,e,n,o,i,r),t!==null&&!yt?(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 Ty(t,e,n,o,r){if(_e(n)){var i=!0;la(e)}else i=!1;if(Zo(e,r),e.stateNode===null)t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),dy(e,n,o),Lc(e,n,o,r),o=!0;else if(t===null){var s=e.stateNode,a=e.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=st(u):(u=_e(n)?eo:Te.current,u=qo(e,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==o||l!==u)&&my(e,s,o,u),Sn=!1;var m=e.memoizedState;s.state=m,hi(e,o,s,r),l=e.memoizedState,a!==o||m!==l||Je.current||Sn?(typeof c=="function"&&(pa(e,n,c,o),l=e.memoizedState),(a=Sn||cy(e,n,a,o,m,l,u))?(d||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=u,o=a):(typeof s.componentDidMount=="function"&&(e.flags|=4),o=!1)}else{s=e.stateNode,sy(t,e),a=e.memoizedProps,u=e.type===e.elementType?a:gt(e.type,a),s.props=u,d=e.pendingProps,m=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=st(l):(l=_e(n)?eo:Te.current,l=qo(e,l));var f=n.getDerivedStateFromProps;(c=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||m!==l)&&my(e,s,o,l),Sn=!1,m=e.memoizedState,s.state=m,hi(e,o,s,r);var p=e.memoizedState;a!==d||m!==p||Je.current||Sn?(typeof f=="function"&&(pa(e,n,f,o),p=e.memoizedState),(u=Sn||cy(e,n,u,o,m,p,l))?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(o,p,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(o,p,l)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=256)):(typeof s.componentDidUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=256),e.memoizedProps=o,e.memoizedState=p),s.props=o,s.state=p,s.context=l,o=u):(typeof s.componentDidUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=256),o=!1)}return Qc(t,e,n,o,i,r)}function Qc(t,e,n,o,r,i){Dy(t,e);var s=(e.flags&64)!==0;if(!o&&!s)return r&&Gg(e,n,!1),Bt(t,e,i);o=e.stateNode,y$.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&&Gg(e,n,!0),e.child}function jy(t){var e=t.stateNode;e.pendingContext?Wg(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Wg(t,e.context,!1),zc(t,e.containerInfo)}var Ea={dehydrated:null,retryLane:0};function Py(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&&Bc(e),t=o.children,r=o.fallback,i?(t=Iy(e,t,r,n),e.child.memoizedState={baseLanes:n},e.memoizedState=Ea,t):typeof o.unstable_expectedLoadTime=="number"?(t=Iy(e,t,r,n),e.child.memoizedState={baseLanes:n},e.memoizedState=Ea,e.lanes=33554432,t):(n=wd({mode:"visible",children:t},e.mode,n,null),n.return=e,e.child=n)):t.memoizedState!==null?i?(o=zy(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=Ly(t,e,o.children,n),e.memoizedState=null,n):i?(o=zy(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=Ly(t,e,o.children,n),e.memoizedState=null,n)}function Iy(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=wd(e,r,0,null),n=sr(n,r,o,null),i.return=t,n.return=t,i.sibling=n,t.child=i,n}function Ly(t,e,n,o){var r=t.child;return t=r.sibling,n=On(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 zy(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=On(s,a),t!==null?o=On(t,o):(o=sr(o,i,r,null),o.flags|=2),o.return=e,n.return=e,n.sibling=o,e.child=n,o}function Fy(t,e){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),iy(t.return,e)}function Zc(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 By(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&&Fy(t,n);else if(t.tag===19)Fy(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),Zc(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}Zc(e,!0,n,null,i,e.lastEffect);break;case"together":Zc(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),Ni|=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=On(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=On(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}return null}var Hy,Xc,Vy,Uy;Hy=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}},Xc=function(){},Vy=function(t,e,n,o){var r=t.memoizedProps;if(r!==o){t=e.stateNode,oo($t.current);var i=null;switch(n){case"input":r=Lu(t,r),o=Lu(t,o),i=[];break;case"option":r=Bu(t,r),o=Bu(t,o),i=[];break;case"select":r=ne({},r,{value:void 0}),o=ne({},o,{value:void 0}),i=[];break;case"textarea":r=Hu(t,r),o=Hu(t,o),i=[];break;default:typeof r.onClick!="function"&&typeof o.onClick=="function"&&(t.onclick=oa)}Ju(n,o);var s;n=null;for(u in r)if(!o.hasOwnProperty(u)&&r.hasOwnProperty(u)&&r[u]!=null)if(u==="style"){var a=r[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Hr.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in o){var l=o[u];if(a=r!=null?r[u]:void 0,o.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="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(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Hr.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ee("scroll",t),i||a===l||(i=[])):typeof l=="object"&&l!==null&&l.$$typeof===Du?l.toString():(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(e.updateQueue=u)&&(e.flags|=4)}},Uy=function(t,e,n,o){n!==o&&(e.flags|=4)};function Ei(t,e){if(!Ct)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 w$(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 _e(e.type)&&aa(),null;case 3:return Xo(),te(Je),te(Te),Vc(),o=e.stateNode,o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&(ka(e)?e.flags|=4:o.hydrate||(e.flags|=256)),Xc(e),null;case 5:Fc(e);var r=oo(Si.current);if(n=e.type,t!==null&&e.stateNode!=null)Vy(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=oo($t.current),ka(e)){o=e.stateNode,n=e.type;var i=e.memoizedProps;switch(o[gn]=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<di.length;t++)ee(di[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":Th(o,i),ee("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!i.multiple},ee("invalid",o);break;case"textarea":Ih(o,i),ee("invalid",o)}Ju(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]):Hr.hasOwnProperty(s)&&r!=null&&s==="onScroll"&&ee("scroll",o));switch(n){case"input":Bs(o),Ph(o,i,!0);break;case"textarea":Bs(o),zh(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===Vu.html&&(t=Fh(n)),t===Vu.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[gn]=e,t[ia]=o,Hy(t,e,!1,!1),e.stateNode=t,s=_u(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<di.length;r++)ee(di[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":Th(t,o),r=Lu(t,o),ee("invalid",t);break;case"option":r=Bu(t,o);break;case"select":t._wrapperState={wasMultiple:!!o.multiple},r=ne({},o,{value:void 0}),ee("invalid",t);break;case"textarea":Ih(t,o),r=Hu(t,o),ee("invalid",t);break;default:r=o}Ju(n,r);var a=r;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Vh(t,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Bh(t,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Kr(t,l):typeof l=="number"&&Kr(t,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Hr.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ee("scroll",t):l!=null&&Eu(t,i,l,s))}switch(n){case"input":Bs(t),Ph(t,o,!1);break;case"textarea":Bs(t),zh(t);break;case"option":o.value!=null&&t.setAttribute("value",""+cn(o.value));break;case"select":t.multiple=!!o.multiple,i=o.value,i!=null?Po(t,!!o.multiple,i,!1):o.defaultValue!=null&&Po(t,!!o.multiple,o.defaultValue,!0);break;default:typeof r.onClick=="function"&&(t.onclick=oa)}Ug(n,o)&&(e.flags|=4)}e.ref!==null&&(e.flags|=128)}return null;case 6:if(t&&e.stateNode!=null)Uy(t,e,t.memoizedProps,o);else{if(typeof o!="string"&&e.stateNode===null)throw Error(A(166));n=oo(Si.current),oo($t.current),ka(e)?(o=e.stateNode,n=e.memoizedProps,o[gn]=e,o.nodeValue!==n&&(e.flags|=4)):(o=(n.nodeType===9?n:n.ownerDocument).createTextNode(o),o[gn]=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&&ka(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),He===null||!(Ni&134217727)&&!(nr&134217727)||rr(He,Ie))),(o||n)&&(e.flags|=4),null);case 4:return Xo(),Xc(e),t===null&&zg(e.stateNode.containerInfo),null;case 10:return Pc(e),null;case 17:return _e(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)Ei(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,Ei(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()>cd&&(e.flags|=64,i=!0,Ei(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),Ei(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Ct)return e=e.lastEffect=o.lastEffect,e!==null&&(e.nextEffect=null),null}else 2*je()-o.renderingStartTime>cd&&n!==1073741824&&(e.flags|=64,i=!0,Ei(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 gd(),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 S$(t){switch(t.tag){case 1:_e(t.type)&&aa();var e=t.flags;return e&4096?(t.flags=e&-4097|64,t):null;case 3:if(Xo(),te(Je),te(Te),Vc(),e=t.flags,e&64)throw Error(A(285));return t.flags=e&-4097|64,t;case 5:return Fc(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 Xo(),null;case 10:return Pc(t),null;case 23:case 24:return gd(),null;default:return null}}function ed(t,e){try{var n="",o=e;do n+=Xb(o),o=o.return;while(o);var r=n}catch(i){r=`
125
+ `+r[s].replace(" at new "," at ");while(1<=s&&0<=a);break}}}finally{Iu=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Kr(t):""}function ex(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 jo(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 Gn:return"Portal";case Jr:return"Profiler";case Nu:return"StrictMode";case _r:return"Suspense";case Ls:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Au:return(t.displayName||"Context")+".Consumer";case Ou: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 jo(t.type);case Mu:return jo(t._render);case Ru:e=t._payload,t=t._init;try{return jo(t(e))}catch{}}return null}function cn(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function Dh(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function tx(t){var e=Dh(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 Bs(t){t._valueTracker||(t._valueTracker=tx(t))}function Th(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),o="";return t&&(o=Dh(t)?t.checked?"true":"false":t.value),t=o,t!==n?(e.setValue(t),!0):!1}function Hs(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 Lu(t,e){var n=e.checked;return ne({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function jh(t,e){var n=e.defaultValue==null?"":e.defaultValue,o=e.checked!=null?e.checked:e.defaultChecked;n=cn(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 Ph(t,e){e=e.checked,e!=null&&Eu(t,"checked",e,!1)}function zu(t,e){Ph(t,e);var n=cn(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")?Fu(t,e.type,n):e.hasOwnProperty("defaultValue")&&Fu(t,e.type,cn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Ih(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 Fu(t,e,n){(e!=="number"||Hs(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function nx(t){var e="";return Ps.Children.forEach(t,function(n){n!=null&&(e+=n)}),e}function Bu(t,e){return t=ne({children:void 0},e),(e=nx(e.children))&&(t.children=e),t}function Po(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=""+cn(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 Hu(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(A(91));return ne({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Lh(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:cn(n)}}function zh(t,e){var n=cn(e.value),o=cn(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 Fh(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}var Vu={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Bh(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 Uu(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?Bh(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Vs,Hh=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!==Vu.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},ox=["Webkit","ms","Moz","O"];Object.keys(qr).forEach(function(t){ox.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),qr[e]=qr[t]})});function Vh(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 Uh(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var o=n.indexOf("--")===0,r=Vh(n,e[n],o);n==="float"&&(n="cssFloat"),o?t.setProperty(n,r):t[n]=r}}var rx=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 Ju(t,e){if(e){if(rx[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 _u(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 Yu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ku=null,Io=null,Lo=null;function Jh(t){if(t=pi(t)){if(typeof Ku!="function")throw Error(A(280));var e=t.stateNode;e&&(e=sa(e),Ku(t.stateNode,t.type,e))}}function _h(t){Io?Lo?Lo.push(t):Lo=[t]:Io=t}function Yh(){if(Io){var t=Io,e=Lo;if(Lo=Io=null,Jh(t),e)for(t=0;t<e.length;t++)Jh(e[t])}}function Wu(t,e){return t(e)}function Kh(t,e,n,o,r){return t(e,n,o,r)}function qu(){}var Wh=Wu,Qn=!1,Gu=!1;function Qu(){(Io!==null||Lo!==null)&&(qu(),Yh())}function ix(t,e,n){if(Gu)return t(e,n);Gu=!0;try{return Wh(t,e,n)}finally{Gu=!1,Qu()}}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 Zu=!1;if(Lt)try{var Qr={};Object.defineProperty(Qr,"passive",{get:function(){Zu=!0}}),window.addEventListener("test",Qr,Qr),window.removeEventListener("test",Qr,Qr)}catch{Zu=!1}function sx(t,e,n,o,r,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{e.apply(n,u)}catch(c){this.onError(c)}}var Zr=!1,Us=null,Js=!1,Xu=null,ax={onError:function(t){Zr=!0,Us=t}};function lx(t,e,n,o,r,i,s,a,l){Zr=!1,Us=null,sx.apply(ax,arguments)}function ux(t,e,n,o,r,i,s,a,l){if(lx.apply(this,arguments),Zr){if(Zr){var u=Us;Zr=!1,Us=null}else throw Error(A(198));Js||(Js=!0,Xu=u)}}function Zn(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 Gh(t){if(Zn(t)!==t)throw Error(A(188))}function cx(t){var e=t.alternate;if(!e){if(e=Zn(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 Gh(r),t;if(i===o)return Gh(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 Qh(t){if(t=cx(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 Zh(t,e){for(var n=t.alternate;e!==null;){if(e===t||e===n)return!0;e=e.return}return!1}var Xh,ec,eg,tg,tc=!1,bt=[],dn=null,mn=null,fn=null,Xr=new Map,ei=new Map,ti=[],ng="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 nc(t,e,n,o,r){return{blockedOn:t,domEventName:e,eventSystemFlags:n|16,nativeEvent:r,targetContainers:[o]}}function og(t,e){switch(t){case"focusin":case"focusout":dn=null;break;case"dragenter":case"dragleave":mn=null;break;case"mouseover":case"mouseout":fn=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=nc(e,n,o,r,i),e!==null&&(e=pi(e),e!==null&&ec(e)),t):(t.eventSystemFlags|=o,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function dx(t,e,n,o,r){switch(e){case"focusin":return dn=ni(dn,t,e,n,o,r),!0;case"dragenter":return mn=ni(mn,t,e,n,o,r),!0;case"mouseover":return fn=ni(fn,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 mx(t){var e=Xn(t.target);if(e!==null){var n=Zn(e);if(n!==null){if(e=n.tag,e===13){if(e=qh(n),e!==null){t.blockedOn=e,tg(t.lanePriority,function(){we.unstable_runWithPriority(t.priority,function(){eg(n)})});return}}else if(e===3&&n.stateNode.hydrate){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function _s(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=lc(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n!==null)return e=pi(n),e!==null&&ec(e),t.blockedOn=n,!1;e.shift()}return!0}function rg(t,e,n){_s(t)&&n.delete(e)}function fx(){for(tc=!1;0<bt.length;){var t=bt[0];if(t.blockedOn!==null){t=pi(t.blockedOn),t!==null&&Xh(t);break}for(var e=t.targetContainers;0<e.length;){var n=lc(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n!==null){t.blockedOn=n;break}e.shift()}t.blockedOn===null&&bt.shift()}dn!==null&&_s(dn)&&(dn=null),mn!==null&&_s(mn)&&(mn=null),fn!==null&&_s(fn)&&(fn=null),Xr.forEach(rg),ei.forEach(rg)}function oi(t,e){t.blockedOn===e&&(t.blockedOn=null,tc||(tc=!0,we.unstable_scheduleCallback(we.unstable_NormalPriority,fx)))}function ig(t){function e(r){return oi(r,t)}if(0<bt.length){oi(bt[0],t);for(var n=1;n<bt.length;n++){var o=bt[n];o.blockedOn===t&&(o.blockedOn=null)}}for(dn!==null&&oi(dn,t),mn!==null&&oi(mn,t),fn!==null&&oi(fn,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);)mx(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 zo={animationend:Ys("Animation","AnimationEnd"),animationiteration:Ys("Animation","AnimationIteration"),animationstart:Ys("Animation","AnimationStart"),transitionend:Ys("Transition","TransitionEnd")},oc={},sg={};Lt&&(sg=document.createElement("div").style,"AnimationEvent"in window||(delete zo.animationend.animation,delete zo.animationiteration.animation,delete zo.animationstart.animation),"TransitionEvent"in window||delete zo.transitionend.transition);function Ks(t){if(oc[t])return oc[t];if(!zo[t])return t;var e=zo[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in sg)return oc[t]=e[n];return t}var ag=Ks("animationend"),lg=Ks("animationiteration"),ug=Ks("animationstart"),cg=Ks("transitionend"),dg=new Map,rc=new Map,px=["abort","abort",ag,"animationEnd",lg,"animationIteration",ug,"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",cg,"transitionEnd","waiting","waiting"];function ic(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)),rc.set(o,e),dg.set(o,r),Wn(r,[o])}}var hx=we.unstable_now;hx();var Z=8;function Fo(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 gx(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 yx(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=Fo(l),r=Z):(a&=i,a!==0&&(o=Fo(a),r=Z))}else i=n&~s,i!==0?(o=Fo(i),r=Z):a!==0&&(o=Fo(a),r=Z);if(o===0)return 0;if(o=31-pn(o),o=n&((0>o?0:1<<o)<<1)-1,e!==0&&e!==o&&!(e&s)){if(Fo(e),r<=Z)return e;Z=r}if(e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=o;0<e;)n=31-pn(e),r=1<<n,o|=t[n],e&=~r;return o}function mg(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 sc(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-pn(e),t[e]=n}var pn=Math.clz32?Math.clz32:kx,wx=Math.log,Sx=Math.LN2;function kx(t){return t===0?32:31-(wx(t)/Sx|0)|0}var vx=we.unstable_UserBlockingPriority,bx=we.unstable_runWithPriority,Gs=!0;function xx(t,e,n,o){Qn||qu();var r=ac,i=Qn;Qn=!0;try{Kh(r,t,e,n,o)}finally{(Qn=i)||Qu()}}function $x(t,e,n,o){bx(vx,ac.bind(null,t,e,n,o))}function ac(t,e,n,o){if(Gs){var r;if((r=(e&4)===0)&&0<bt.length&&-1<ng.indexOf(t))t=nc(null,t,e,n,o),bt.push(t);else{var i=lc(t,e,n,o);if(i===null)r&&og(t,o);else{if(r){if(-1<ng.indexOf(t)){t=nc(i,t,e,n,o),bt.push(t);return}if(dx(i,t,e,n,o))return;og(t,o)}Vg(t,e,o,null,n)}}}}function lc(t,e,n,o){var r=Yu(o);if(r=Xn(r),r!==null){var i=Zn(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 Vg(t,e,o,r,n),null}var hn=null,uc=null,Qs=null;function fg(){if(Qs)return Qs;var t,e=uc,n=e.length,o,r="value"in hn?hn.value:hn.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 pg(){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:pg,this.isPropagationStopped=pg,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 Ho={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cc=Ge(Ho),ii=ne({},Ho,{view:0,detail:0}),Cx=Ge(ii),dc,mc,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:pc,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"?(dc=t.screenX-si.screenX,mc=t.screenY-si.screenY):mc=dc=0,si=t),dc)},movementY:function(t){return"movementY"in t?t.movementY:mc}}),hg=Ge(ea),Ex=ne({},ea,{dataTransfer:0}),Nx=Ge(Ex),Ox=ne({},ii,{relatedTarget:0}),fc=Ge(Ox),Ax=ne({},Ho,{animationName:0,elapsedTime:0,pseudoElement:0}),Rx=Ge(Ax),Mx=ne({},Ho,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Dx=Ge(Mx),Tx=ne({},Ho,{data:0}),gg=Ge(Tx),jx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Px={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"},Ix={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Lx(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Ix[t])?!!e[t]:!1}function pc(){return Lx}var zx=ne({},ii,{key:function(t){if(t.key){var e=jx[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"?Px[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pc,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}}),Fx=Ge(zx),Bx=ne({},ea,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yg=Ge(Bx),Hx=ne({},ii,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pc}),Vx=Ge(Hx),Ux=ne({},Ho,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jx=Ge(Ux),_x=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}),Yx=Ge(_x),Kx=[9,13,27,32],hc=Lt&&"CompositionEvent"in window,ai=null;Lt&&"documentMode"in document&&(ai=document.documentMode);var Wx=Lt&&"TextEvent"in window&&!ai,wg=Lt&&(!hc||ai&&8<ai&&11>=ai),Sg=String.fromCharCode(32),kg=!1;function vg(t,e){switch(t){case"keyup":return Kx.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bg(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Vo=!1;function qx(t,e){switch(t){case"compositionend":return bg(e);case"keypress":return e.which!==32?null:(kg=!0,Sg);case"textInput":return t=e.data,t===Sg&&kg?null:t;default:return null}}function Gx(t,e){if(Vo)return t==="compositionend"||!hc&&vg(t,e)?(t=fg(),Qs=uc=hn=null,Vo=!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 wg&&e.locale!=="ko"?null:e.data;default:return null}}var Qx={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 xg(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Qx[t.type]:e==="textarea"}function $g(t,e,n,o){_h(o),e=na(e,"onChange"),0<e.length&&(n=new cc("onChange","change",null,n,o),t.push({event:n,listeners:e}))}var li=null,ui=null;function Zx(t){Lg(t,0)}function ta(t){var e=Ko(t);if(Th(e))return t}function Xx(t,e){if(t==="change")return e}var Cg=!1;if(Lt){var gc;if(Lt){var yc="oninput"in document;if(!yc){var Eg=document.createElement("div");Eg.setAttribute("oninput","return;"),yc=typeof Eg.oninput=="function"}gc=yc}else gc=!1;Cg=gc&&(!document.documentMode||9<document.documentMode)}function Ng(){li&&(li.detachEvent("onpropertychange",Og),ui=li=null)}function Og(t){if(t.propertyName==="value"&&ta(ui)){var e=[];if($g(e,ui,t,Yu(t)),t=Zx,Qn)t(e);else{Qn=!0;try{Wu(t,e)}finally{Qn=!1,Qu()}}}}function e$(t,e,n){t==="focusin"?(Ng(),li=e,ui=n,li.attachEvent("onpropertychange",Og)):t==="focusout"&&Ng()}function t$(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ta(ui)}function n$(t,e){if(t==="click")return ta(e)}function o$(t,e){if(t==="input"||t==="change")return ta(e)}function r$(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var it=typeof Object.is=="function"?Object.is:r$,i$=Object.prototype.hasOwnProperty;function ci(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(!i$.call(e,n[o])||!it(t[n[o]],e[n[o]]))return!1;return!0}function Ag(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Rg(t,e){var n=Ag(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=Ag(n)}}function Mg(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Mg(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Dg(){for(var t=window,e=Hs();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Hs(t.document)}return e}function wc(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 s$=Lt&&"documentMode"in document&&11>=document.documentMode,Uo=null,Sc=null,di=null,kc=!1;function Tg(t,e,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;kc||Uo==null||Uo!==Hs(o)||(o=Uo,"selectionStart"in o&&wc(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&&ci(di,o)||(di=o,o=na(Sc,"onSelect"),0<o.length&&(e=new cc("onSelect","select",null,e,n),t.push({event:e,listeners:o}),e.target=Uo)))}ic("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),ic("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),ic(px,2);for(var jg="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),vc=0;vc<jg.length;vc++)rc.set(jg[vc],0);To("onMouseEnter",["mouseout","mouseover"]),To("onMouseLeave",["mouseout","mouseover"]),To("onPointerEnter",["pointerout","pointerover"]),To("onPointerLeave",["pointerout","pointerover"]),Wn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Wn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Wn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Wn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Wn("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(" "),Pg=new Set("cancel close invalid load scroll toggle".split(" ").concat(mi));function Ig(t,e,n){var o=t.type||"unknown-event";t.currentTarget=n,ux(o,e,void 0,t),t.currentTarget=null}function Lg(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,u=a.currentTarget;if(a=a.listener,l!==i&&r.isPropagationStopped())break e;Ig(r,a,u),i=l}else for(s=0;s<o.length;s++){if(a=o[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&r.isPropagationStopped())break e;Ig(r,a,u),i=l}}}if(Js)throw t=Xu,Js=!1,Xu=null,t}function ee(t,e){var n=Wg(e),o=t+"__bubble";n.has(o)||(Hg(e,t,2,!1),n.add(o))}var zg="_reactListening"+Math.random().toString(36).slice(2);function Fg(t){t[zg]||(t[zg]=!0,Eh.forEach(function(e){Pg.has(e)||Bg(e,!1,t,null),Bg(e,!0,t,null)}))}function Bg(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&&Pg.has(t)){if(t!=="scroll")return;r|=2,i=o}var s=Wg(i),a=t+"__"+(e?"capture":"bubble");s.has(a)||(e&&(r|=4),Hg(i,t,r,e),s.add(a))}function Hg(t,e,n,o){var r=rc.get(e);switch(r===void 0?2:r){case 0:r=xx;break;case 1:r=$x;break;default:r=ac}n=r.bind(null,e,n,t),r=void 0,!Zu||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 Vg(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=Xn(a),s===null)return;if(l=s.tag,l===5||l===6){o=i=s;continue e}a=a.parentNode}}o=o.return}ix(function(){var u=i,c=Yu(n),d=[];e:{var m=dg.get(t);if(m!==void 0){var f=cc,p=t;switch(t){case"keypress":if(Zs(n)===0)break e;case"keydown":case"keyup":f=Fx;break;case"focusin":p="focus",f=fc;break;case"focusout":p="blur",f=fc;break;case"beforeblur":case"afterblur":f=fc;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":f=hg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=Nx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=Vx;break;case ag:case lg:case ug:f=Rx;break;case cg:f=Jx;break;case"scroll":f=Cx;break;case"wheel":f=Yx;break;case"copy":case"cut":case"paste":f=Dx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=yg}var y=(e&4)!==0,h=!y&&t==="scroll",g=y?m!==null?m+"Capture":null:m;y=[];for(var S=u,k;S!==null;){k=S;var b=k.stateNode;if(k.tag===5&&b!==null&&(k=b,g!==null&&(b=Gr(S,g),b!=null&&y.push(fi(S,b,k)))),h)break;S=S.return}0<y.length&&(m=new f(m,p,null,n,c),d.push({event:m,listeners:y}))}}if(!(e&7)){e:{if(m=t==="mouseover"||t==="pointerover",f=t==="mouseout"||t==="pointerout",m&&!(e&16)&&(p=n.relatedTarget||n.fromElement)&&(Xn(p)||p[Yo]))break e;if((f||m)&&(m=c.window===c?c:(m=c.ownerDocument)?m.defaultView||m.parentWindow:window,f?(p=n.relatedTarget||n.toElement,f=u,p=p?Xn(p):null,p!==null&&(h=Zn(p),p!==h||p.tag!==5&&p.tag!==6)&&(p=null)):(f=null,p=u),f!==p)){if(y=hg,b="onMouseLeave",g="onMouseEnter",S="mouse",(t==="pointerout"||t==="pointerover")&&(y=yg,b="onPointerLeave",g="onPointerEnter",S="pointer"),h=f==null?m:Ko(f),k=p==null?m:Ko(p),m=new y(b,S+"leave",f,n,c),m.target=h,m.relatedTarget=k,b=null,Xn(c)===u&&(y=new y(g,S+"enter",p,n,c),y.target=k,y.relatedTarget=h,b=y),h=b,f&&p)t:{for(y=f,g=p,S=0,k=y;k;k=Jo(k))S++;for(k=0,b=g;b;b=Jo(b))k++;for(;0<S-k;)y=Jo(y),S--;for(;0<k-S;)g=Jo(g),k--;for(;S--;){if(y===g||g!==null&&y===g.alternate)break t;y=Jo(y),g=Jo(g)}y=null}else y=null;f!==null&&Ug(d,m,f,y,!1),p!==null&&h!==null&&Ug(d,h,p,y,!0)}}e:{if(m=u?Ko(u):window,f=m.nodeName&&m.nodeName.toLowerCase(),f==="select"||f==="input"&&m.type==="file")var E=Xx;else if(xg(m))if(Cg)E=o$;else{E=t$;var v=e$}else(f=m.nodeName)&&f.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(E=n$);if(E&&(E=E(t,u))){$g(d,E,n,c);break e}v&&v(t,m,u),t==="focusout"&&(v=m._wrapperState)&&v.controlled&&m.type==="number"&&Fu(m,"number",m.value)}switch(v=u?Ko(u):window,t){case"focusin":(xg(v)||v.contentEditable==="true")&&(Uo=v,Sc=u,di=null);break;case"focusout":di=Sc=Uo=null;break;case"mousedown":kc=!0;break;case"contextmenu":case"mouseup":case"dragend":kc=!1,Tg(d,n,c);break;case"selectionchange":if(s$)break;case"keydown":case"keyup":Tg(d,n,c)}var $;if(hc)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 Vo?vg(t,n)&&(R="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(wg&&n.locale!=="ko"&&(Vo||R!=="onCompositionStart"?R==="onCompositionEnd"&&Vo&&($=fg()):(hn=c,uc="value"in hn?hn.value:hn.textContent,Vo=!0)),v=na(u,R),0<v.length&&(R=new gg(R,t,null,n,c),d.push({event:R,listeners:v}),$?R.data=$:($=bg(n),$!==null&&(R.data=$)))),($=Wx?qx(t,n):Gx(t,n))&&(u=na(u,"onBeforeInput"),0<u.length&&(c=new gg("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=$))}Lg(d,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 Ug(t,e,n,o,r){for(var i=e._reactName,s=[];n!==null&&n!==o;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===o)break;a.tag===5&&u!==null&&(a=u,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 bc=null,xc=null;function Jg(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function $c(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 _g=typeof setTimeout=="function"?setTimeout:void 0,a$=typeof clearTimeout=="function"?clearTimeout:void 0;function Cc(t){t.nodeType===1?t.textContent="":t.nodeType===9&&(t=t.body,t!=null&&(t.textContent=""))}function _o(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break}return t}function Yg(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 Ec=0;function l$(t){return{$$typeof:Du,toString:t,valueOf:t}}var ra=Math.random().toString(36).slice(2),gn="__reactFiber$"+ra,ia="__reactProps$"+ra,Yo="__reactContainer$"+ra,Kg="__reactEvents$"+ra;function Xn(t){var e=t[gn];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Yo]||n[gn]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Yg(t);t!==null;){if(n=t[gn])return n;t=Yg(t)}return e}t=n,n=t.parentNode}return null}function pi(t){return t=t[gn]||t[Yo],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Ko(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(A(33))}function sa(t){return t[ia]||null}function Wg(t){var e=t[Kg];return e===void 0&&(e=t[Kg]=new Set),e}var Nc=[],Wo=-1;function yn(t){return{current:t}}function te(t){0>Wo||(t.current=Nc[Wo],Nc[Wo]=null,Wo--)}function re(t,e){Wo++,Nc[Wo]=t.current,t.current=e}var wn={},Te=yn(wn),Je=yn(!1),eo=wn;function qo(t,e){var n=t.type.contextTypes;if(!n)return wn;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 _e(t){return t=t.childContextTypes,t!=null}function aa(){te(Je),te(Te)}function qg(t,e,n){if(Te.current!==wn)throw Error(A(168));re(Te,e),re(Je,n)}function Gg(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,jo(e)||"Unknown",r));return ne({},n,o)}function la(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||wn,eo=Te.current,re(Te,t),re(Je,Je.current),!0}function Qg(t,e,n){var o=t.stateNode;if(!o)throw Error(A(169));n?(t=Gg(t,e,eo),o.__reactInternalMemoizedMergedChildContext=t,te(Je),te(Te),re(Te,t)):te(Je),re(Je,n)}var Oc=null,to=null,u$=we.unstable_runWithPriority,Ac=we.unstable_scheduleCallback,Rc=we.unstable_cancelCallback,c$=we.unstable_shouldYield,Zg=we.unstable_requestPaint,Mc=we.unstable_now,d$=we.unstable_getCurrentPriorityLevel,ua=we.unstable_ImmediatePriority,Xg=we.unstable_UserBlockingPriority,ey=we.unstable_NormalPriority,ty=we.unstable_LowPriority,ny=we.unstable_IdlePriority,Dc={},m$=Zg!==void 0?Zg:function(){},zt=null,ca=null,Tc=!1,oy=Mc(),je=1e4>oy?Mc:function(){return Mc()-oy};function Go(){switch(d$()){case ua:return 99;case Xg:return 98;case ey:return 97;case ty:return 96;case ny:return 95;default:throw Error(A(332))}}function ry(t){switch(t){case 99:return ua;case 98:return Xg;case 97:return ey;case 96:return ty;case 95:return ny;default:throw Error(A(332))}}function no(t,e){return t=ry(t),u$(t,e)}function hi(t,e,n){return t=ry(t),Ac(t,e,n)}function xt(){if(ca!==null){var t=ca;ca=null,Rc(t)}iy()}function iy(){if(!Tc&&zt!==null){Tc=!0;var t=0;try{var e=zt;no(99,function(){for(;t<e.length;t++){var n=e[t];do n=n(!0);while(n!==null)}}),zt=null}catch(n){throw zt!==null&&(zt=zt.slice(t+1)),Ac(ua,xt),n}finally{Tc=!1}}}var f$=qn.ReactCurrentBatchConfig;function gt(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=yn(null),ma=null,Qo=null,fa=null;function jc(){fa=Qo=ma=null}function Pc(t){var e=da.current;te(da),t.type._context._currentValue=e}function sy(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 Zo(t,e){ma=t,fa=Qo=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(yt=!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},Qo===null){if(ma===null)throw Error(A(308));Qo=e,ma.dependencies={lanes:0,firstContext:e,responders:null}}else Qo=Qo.next=e;return t._currentValue}var Sn=!1;function Ic(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ay(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 kn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function vn(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 ly(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;Sn=!1;var i=r.firstBaseUpdate,s=r.lastBaseUpdate,a=r.shared.pending;if(a!==null){r.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=t.alternate;if(c!==null){c=c.updateQueue;var d=c.lastBaseUpdate;d!==s&&(d===null?c.firstBaseUpdate=u:d.next=u,c.lastBaseUpdate=l)}}if(i!==null){d=r.baseState,s=0,c=u=l=null;do{a=i.lane;var m=i.eventTime;if((o&a)===a){c!==null&&(c=c.next={eventTime:m,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var f=t,p=i;switch(a=e,m=n,p.tag){case 1:if(f=p.payload,typeof f=="function"){d=f.call(m,d,a);break e}d=f;break e;case 3:f.flags=f.flags&-4097|64;case 0:if(f=p.payload,a=typeof f=="function"?f.call(m,d,a):f,a==null)break e;d=ne({},d,a);break e;case 2:Sn=!0}}i.callback!==null&&(t.flags|=32,a=r.effects,a===null?r.effects=[i]:a.push(i))}else m={eventTime:m,lane:a,tag:i.tag,payload:i.payload,callback:i.callback,next:null},c===null?(u=c=m,l=d):c=c.next=m,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);c===null&&(l=d),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=c,Oi|=s,t.lanes=s,t.memoizedState=d}}function uy(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 cy=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)?Zn(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var o=Qe(),r=$n(t),i=kn(o,r);i.payload=e,n!=null&&(i.callback=n),vn(t,i),Cn(t,r,o)},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var o=Qe(),r=$n(t),i=kn(o,r);i.tag=1,i.payload=e,n!=null&&(i.callback=n),vn(t,i),Cn(t,r,o)},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Qe(),o=$n(t),r=kn(n,o);r.tag=2,e!=null&&(r.callback=e),vn(t,r),Cn(t,o,n)}};function dy(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?!ci(n,o)||!ci(r,i):!0}function my(t,e,n){var o=!1,r=wn,i=e.contextType;return typeof i=="object"&&i!==null?i=st(i):(r=_e(e)?eo:Te.current,o=e.contextTypes,i=(o=o!=null)?qo(t,r):wn),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 fy(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 Lc(t,e,n,o){var r=t.stateNode;r.props=n,r.state=t.memoizedState,r.refs=cy,Ic(t);var i=e.contextType;typeof i=="object"&&i!==null?r.context=st(i):(i=_e(e)?eo:Te.current,r.context=qo(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===cy&&(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 py(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=On(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,k){return g===null||g.tag!==6?(g=Sd(S,h.mode,k),g.return=h,g):(g=r(g,S),g.return=h,g)}function l(h,g,S,k){return g!==null&&g.elementType===S.type?(k=r(g,S.props),k.ref=yi(h,g,S),k.return=h,k):(k=Pa(S.type,S.key,S.props,null,h.mode,k),k.ref=yi(h,g,S),k.return=h,k)}function u(h,g,S,k){return g===null||g.tag!==4||g.stateNode.containerInfo!==S.containerInfo||g.stateNode.implementation!==S.implementation?(g=kd(S,h.mode,k),g.return=h,g):(g=r(g,S.children||[]),g.return=h,g)}function c(h,g,S,k,b){return g===null||g.tag!==7?(g=sr(S,h.mode,k,b),g.return=h,g):(g=r(g,S),g.return=h,g)}function d(h,g,S){if(typeof g=="string"||typeof g=="number")return g=Sd(""+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 Gn:return g=kd(g,h.mode,S),g.return=h,g}if(ga(g)||Yr(g))return g=sr(g,h.mode,S,null),g.return=h,g;ya(h,g)}return null}function m(h,g,S,k){var b=g!==null?g.key:null;if(typeof S=="string"||typeof S=="number")return b!==null?null:a(h,g,""+S,k);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Ur:return S.key===b?S.type===un?c(h,g,S.props.children,k,b):l(h,g,S,k):null;case Gn:return S.key===b?u(h,g,S,k):null}if(ga(S)||Yr(S))return b!==null?null:c(h,g,S,k,null);ya(h,S)}return null}function f(h,g,S,k,b){if(typeof k=="string"||typeof k=="number")return h=h.get(S)||null,a(g,h,""+k,b);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Ur:return h=h.get(k.key===null?S:k.key)||null,k.type===un?c(g,h,k.props.children,b,k.key):l(g,h,k,b);case Gn:return h=h.get(k.key===null?S:k.key)||null,u(g,h,k,b)}if(ga(k)||Yr(k))return h=h.get(S)||null,c(g,h,k,b,null);ya(g,k)}return null}function p(h,g,S,k){for(var b=null,E=null,v=g,$=g=0,R=null;v!==null&&$<S.length;$++){v.index>$?(R=v,v=null):R=v.sibling;var C=m(h,v,S[$],k);if(C===null){v===null&&(v=R);break}t&&v&&C.alternate===null&&e(h,v),g=i(C,g,$),E===null?b=C:E.sibling=C,E=C,v=R}if($===S.length)return n(h,v),b;if(v===null){for(;$<S.length;$++)v=d(h,S[$],k),v!==null&&(g=i(v,g,$),E===null?b=v:E.sibling=v,E=v);return b}for(v=o(h,v);$<S.length;$++)R=f(v,h,$,S[$],k),R!==null&&(t&&R.alternate!==null&&v.delete(R.key===null?$:R.key),g=i(R,g,$),E===null?b=R:E.sibling=R,E=R);return t&&v.forEach(function(_){return e(h,_)}),b}function y(h,g,S,k){var b=Yr(S);if(typeof b!="function")throw Error(A(150));if(S=b.call(S),S==null)throw Error(A(151));for(var E=b=null,v=g,$=g=0,R=null,C=S.next();v!==null&&!C.done;$++,C=S.next()){v.index>$?(R=v,v=null):R=v.sibling;var _=m(h,v,C.value,k);if(_===null){v===null&&(v=R);break}t&&v&&_.alternate===null&&e(h,v),g=i(_,g,$),E===null?b=_:E.sibling=_,E=_,v=R}if(C.done)return n(h,v),b;if(v===null){for(;!C.done;$++,C=S.next())C=d(h,C.value,k),C!==null&&(g=i(C,g,$),E===null?b=C:E.sibling=C,E=C);return b}for(v=o(h,v);!C.done;$++,C=S.next())C=f(v,h,$,C.value,k),C!==null&&(t&&C.alternate!==null&&v.delete(C.key===null?$:C.key),g=i(C,g,$),E===null?b=C:E.sibling=C,E=C);return t&&v.forEach(function(se){return e(h,se)}),b}return function(h,g,S,k){var b=typeof S=="object"&&S!==null&&S.type===un&&S.key===null;b&&(S=S.props.children);var E=typeof S=="object"&&S!==null;if(E)switch(S.$$typeof){case Ur:e:{for(E=S.key,b=g;b!==null;){if(b.key===E){switch(b.tag){case 7:if(S.type===un){n(h,b.sibling),g=r(b,S.props.children),g.return=h,h=g;break e}break;default:if(b.elementType===S.type){n(h,b.sibling),g=r(b,S.props),g.ref=yi(h,b,S),g.return=h,h=g;break e}}n(h,b);break}else e(h,b);b=b.sibling}S.type===un?(g=sr(S.props.children,h.mode,k,S.key),g.return=h,h=g):(k=Pa(S.type,S.key,S.props,null,h.mode,k),k.ref=yi(h,g,S),k.return=h,h=k)}return s(h);case Gn:e:{for(b=S.key;g!==null;){if(g.key===b)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=kd(S,h.mode,k),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=Sd(S,h.mode,k),g.return=h,h=g),s(h);if(ga(S))return p(h,g,S,k);if(Yr(S))return y(h,g,S,k);if(E&&ya(h,S),typeof S>"u"&&!b)switch(h.tag){case 1:case 22:case 0:case 11:case 15:throw Error(A(152,jo(h.type)||"Component"))}return n(h,g)}}var wa=py(!0),hy=py(!1),wi={},$t=yn(wi),Si=yn(wi),ki=yn(wi);function oo(t){if(t===wi)throw Error(A(174));return t}function zc(t,e){switch(re(ki,e),re(Si,t),re($t,wi),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Uu(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Uu(e,t)}te($t),re($t,e)}function Xo(){te($t),te(Si),te(ki)}function gy(t){oo(ki.current);var e=oo($t.current),n=Uu(e,t.type);e!==n&&(re(Si,t),re($t,n))}function Fc(t){Si.current===t&&(te($t),te(Si))}var ie=yn(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 Ft=null,bn=null,Ct=!1;function yy(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 wy(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 Bc(t){if(Ct){var e=bn;if(e){var n=e;if(!wy(t,e)){if(e=_o(n.nextSibling),!e||!wy(t,e)){t.flags=t.flags&-1025|2,Ct=!1,Ft=t;return}yy(Ft,n)}Ft=t,bn=_o(e.firstChild)}else t.flags=t.flags&-1025|2,Ct=!1,Ft=t}}function Sy(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Ft=t}function ka(t){if(t!==Ft)return!1;if(!Ct)return Sy(t),Ct=!0,!1;var e=t.type;if(t.tag!==5||e!=="head"&&e!=="body"&&!$c(e,t.memoizedProps))for(e=bn;e;)yy(t,e),e=_o(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){bn=_o(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}bn=null}}else bn=Ft?_o(t.stateNode.nextSibling):null;return!0}function Hc(){bn=Ft=null,Ct=!1}var er=[];function Vc(){for(var t=0;t<er.length;t++)er[t]._workInProgressVersionPrimary=null;er.length=0}var vi=qn.ReactCurrentDispatcher,at=qn.ReactCurrentBatchConfig,bi=0,ae=null,Pe=null,Ee=null,va=!1,xi=!1;function Ye(){throw Error(A(321))}function Uc(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 Jc(t,e,n,o,r,i){if(bi=i,ae=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,vi.current=t===null||t.memoizedState===null?h$:g$,t=n(o,r),xi){i=0;do{if(xi=!1,!(25>i))throw Error(A(301));i+=1,Ee=Pe=null,e.updateQueue=null,vi.current=y$,t=n(o,r)}while(xi)}if(vi.current=Ca,e=Pe!==null&&Pe.next!==null,bi=0,Ee=Pe=ae=null,va=!1,e)throw Error(A(300));return t}function ro(){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 io(){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 Et(t,e){return typeof e=="function"?e(t):e}function $i(t){var e=io(),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 u=l.lane;if((bi&u)===u)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 c={lane:u,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};a===null?(s=a=c,i=o):a=a.next=c,ae.lanes|=u,Oi|=u}l=l.next}while(l!==null&&l!==r);a===null?i=o:a.next=s,it(o,e.memoizedState)||(yt=!0),e.memoizedState=o,e.baseState=i,e.baseQueue=a,n.lastRenderedState=o}return[e.memoizedState,n.dispatch]}function Ci(t){var e=io(),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);it(i,e.memoizedState)||(yt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,o]}function ky(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=(bi&t)===t)&&(e._workInProgressVersionPrimary=o,er.push(e))),t)return n(e._source);throw er.push(e),Error(A(350))}function vy(t,e,n,o){var r=He;if(r===null)throw Error(A(349));var i=e._getVersion,s=i(e._source),a=vi.current,l=a.useState(function(){return ky(r,e,n)}),u=l[1],c=l[0];l=Ee;var d=t.memoizedState,m=d.refs,f=m.getSnapshot,p=d.source;d=d.subscribe;var y=ae;return t.memoizedState={refs:m,source:e,subscribe:o},a.useEffect(function(){m.getSnapshot=n,m.setSnapshot=u;var h=i(e._source);if(!it(s,h)){h=n(e._source),it(c,h)||(u(h),h=$n(y),r.mutableReadLanes|=h&r.pendingLanes),h=r.mutableReadLanes,r.entangledLanes|=h;for(var g=r.entanglements,S=h;0<S;){var k=31-pn(S),b=1<<k;g[k]|=h,S&=~b}}},[n,e,o]),a.useEffect(function(){return o(e._source,function(){var h=m.getSnapshot,g=m.setSnapshot;try{g(h(e._source));var S=$n(y);r.mutableReadLanes|=S&r.pendingLanes}catch(k){g(function(){throw k})}})},[e,o]),it(f,n)&&it(p,e)&&it(d,o)||(t={pending:null,dispatch:null,lastRenderedReducer:Et,lastRenderedState:c},t.dispatch=u=Wc.bind(null,ae,t),l.queue=t,l.baseQueue=null,c=ky(r,e,n),l.memoizedState=l.baseState=c),c}function by(t,e,n){var o=io();return vy(o,t,e,n)}function Ei(t){var e=ro();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t=e.queue={pending:null,dispatch:null,lastRenderedReducer:Et,lastRenderedState:t},t=t.dispatch=Wc.bind(null,ae,t),[e.memoizedState,t]}function ba(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 xy(t){var e=ro();return t={current:t},e.memoizedState=t}function xa(){return io().memoizedState}function _c(t,e,n,o){var r=ro();ae.flags|=t,r.memoizedState=ba(1|e,n,void 0,o===void 0?null:o)}function Yc(t,e,n,o){var r=io();o=o===void 0?null:o;var i=void 0;if(Pe!==null){var s=Pe.memoizedState;if(i=s.destroy,o!==null&&Uc(o,s.deps)){ba(e,n,i,o);return}}ae.flags|=t,r.memoizedState=ba(1|e,n,i,o)}function $y(t,e){return _c(516,4,t,e)}function $a(t,e){return Yc(516,4,t,e)}function Cy(t,e){return Yc(4,2,t,e)}function Ey(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 Ny(t,e,n){return n=n!=null?n.concat([t]):null,Yc(4,2,Ey.bind(null,e,t),n)}function Kc(){}function Oy(t,e){var n=io();e=e===void 0?null:e;var o=n.memoizedState;return o!==null&&e!==null&&Uc(e,o[1])?o[0]:(n.memoizedState=[t,e],t)}function Ay(t,e){var n=io();e=e===void 0?null:e;var o=n.memoizedState;return o!==null&&e!==null&&Uc(e,o[1])?o[0]:(t=t(),n.memoizedState=[t,e],t)}function p$(t,e){var n=Go();no(98>n?98:n,function(){t(!0)}),no(97<n?97:n,function(){var o=at.transition;at.transition=1;try{t(!1),e()}finally{at.transition=o}})}function Wc(t,e,n){var o=Qe(),r=$n(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)xi=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{}Cn(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},h$={readContext:st,useCallback:function(t,e){return ro().memoizedState=[t,e===void 0?null:e],t},useContext:st,useEffect:$y,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,_c(4,2,Ey.bind(null,e,t),n)},useLayoutEffect:function(t,e){return _c(4,2,t,e)},useMemo:function(t,e){var n=ro();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var o=ro();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=Wc.bind(null,ae,t),[o.memoizedState,t]},useRef:xy,useState:Ei,useDebugValue:Kc,useDeferredValue:function(t){var e=Ei(t),n=e[0],o=e[1];return $y(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=p$.bind(null,t[1]),xy(t),[t,e]},useMutableSource:function(t,e,n){var o=ro();return o.memoizedState={refs:{getSnapshot:e,setSnapshot:null},source:t,subscribe:n},vy(o,t,e,n)},useOpaqueIdentifier:function(){if(Ct){var t=!1,e=l$(function(){throw t||(t=!0,n("r:"+(Ec++).toString(36))),Error(A(355))}),n=Ei(e)[1];return!(ae.mode&2)&&(ae.flags|=516,ba(5,function(){n("r:"+(Ec++).toString(36))},void 0,null)),e}return e="r:"+(Ec++).toString(36),Ei(e),e},unstable_isNewReconciler:!1},g$={readContext:st,useCallback:Oy,useContext:st,useEffect:$a,useImperativeHandle:Ny,useLayoutEffect:Cy,useMemo:Ay,useReducer:$i,useRef:xa,useState:function(){return $i(Et)},useDebugValue:Kc,useDeferredValue:function(t){var e=$i(Et),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(Et)[0];return[xa().current,t]},useMutableSource:by,useOpaqueIdentifier:function(){return $i(Et)[0]},unstable_isNewReconciler:!1},y$={readContext:st,useCallback:Oy,useContext:st,useEffect:$a,useImperativeHandle:Ny,useLayoutEffect:Cy,useMemo:Ay,useReducer:Ci,useRef:xa,useState:function(){return Ci(Et)},useDebugValue:Kc,useDeferredValue:function(t){var e=Ci(Et),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(Et)[0];return[xa().current,t]},useMutableSource:by,useOpaqueIdentifier:function(){return Ci(Et)[0]},unstable_isNewReconciler:!1},w$=qn.ReactCurrentOwner,yt=!1;function Ke(t,e,n,o){e.child=t===null?hy(e,null,n,o):wa(e,t.child,n,o)}function Ry(t,e,n,o,r){n=n.render;var i=e.ref;return Zo(e,r),o=Jc(t,e,n,o,i,r),t!==null&&!yt?(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 My(t,e,n,o,r,i){if(t===null){var s=n.type;return typeof s=="function"&&!yd(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=s,Dy(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:ci,n(r,o)&&t.ref===e.ref)?Bt(t,e,i):(e.flags|=1,t=On(s,o),t.ref=e.ref,t.return=e,e.child=t)}function Dy(t,e,n,o,r,i){if(t!==null&&ci(t.memoizedProps,o)&&t.ref===e.ref)if(yt=!1,(i&r)!==0)t.flags&16384&&(yt=!0);else return e.lanes=t.lanes,Bt(t,e,i);return Gc(t,e,n,o,i)}function qc(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 Ty(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=128)}function Gc(t,e,n,o,r){var i=_e(n)?eo:Te.current;return i=qo(e,i),Zo(e,r),n=Jc(t,e,n,o,i,r),t!==null&&!yt?(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 jy(t,e,n,o,r){if(_e(n)){var i=!0;la(e)}else i=!1;if(Zo(e,r),e.stateNode===null)t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),my(e,n,o),Lc(e,n,o,r),o=!0;else if(t===null){var s=e.stateNode,a=e.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=st(u):(u=_e(n)?eo:Te.current,u=qo(e,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==o||l!==u)&&fy(e,s,o,u),Sn=!1;var m=e.memoizedState;s.state=m,gi(e,o,s,r),l=e.memoizedState,a!==o||m!==l||Je.current||Sn?(typeof c=="function"&&(pa(e,n,c,o),l=e.memoizedState),(a=Sn||dy(e,n,a,o,m,l,u))?(d||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=u,o=a):(typeof s.componentDidMount=="function"&&(e.flags|=4),o=!1)}else{s=e.stateNode,ay(t,e),a=e.memoizedProps,u=e.type===e.elementType?a:gt(e.type,a),s.props=u,d=e.pendingProps,m=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=st(l):(l=_e(n)?eo:Te.current,l=qo(e,l));var f=n.getDerivedStateFromProps;(c=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||m!==l)&&fy(e,s,o,l),Sn=!1,m=e.memoizedState,s.state=m,gi(e,o,s,r);var p=e.memoizedState;a!==d||m!==p||Je.current||Sn?(typeof f=="function"&&(pa(e,n,f,o),p=e.memoizedState),(u=Sn||dy(e,n,u,o,m,p,l))?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(o,p,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(o,p,l)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=256)):(typeof s.componentDidUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=256),e.memoizedProps=o,e.memoizedState=p),s.props=o,s.state=p,s.context=l,o=u):(typeof s.componentDidUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=256),o=!1)}return Qc(t,e,n,o,i,r)}function Qc(t,e,n,o,r,i){Ty(t,e);var s=(e.flags&64)!==0;if(!o&&!s)return r&&Qg(e,n,!1),Bt(t,e,i);o=e.stateNode,w$.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&&Qg(e,n,!0),e.child}function Py(t){var e=t.stateNode;e.pendingContext?qg(t,e.pendingContext,e.pendingContext!==e.context):e.context&&qg(t,e.context,!1),zc(t,e.containerInfo)}var Ea={dehydrated:null,retryLane:0};function Iy(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&&Bc(e),t=o.children,r=o.fallback,i?(t=Ly(e,t,r,n),e.child.memoizedState={baseLanes:n},e.memoizedState=Ea,t):typeof o.unstable_expectedLoadTime=="number"?(t=Ly(e,t,r,n),e.child.memoizedState={baseLanes:n},e.memoizedState=Ea,e.lanes=33554432,t):(n=wd({mode:"visible",children:t},e.mode,n,null),n.return=e,e.child=n)):t.memoizedState!==null?i?(o=Fy(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=zy(t,e,o.children,n),e.memoizedState=null,n):i?(o=Fy(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=zy(t,e,o.children,n),e.memoizedState=null,n)}function Ly(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=wd(e,r,0,null),n=sr(n,r,o,null),i.return=t,n.return=t,i.sibling=n,t.child=i,n}function zy(t,e,n,o){var r=t.child;return t=r.sibling,n=On(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 Fy(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=On(s,a),t!==null?o=On(t,o):(o=sr(o,i,r,null),o.flags|=2),o.return=e,n.return=e,n.sibling=o,e.child=n,o}function By(t,e){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),sy(t.return,e)}function Zc(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 Hy(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&&By(t,n);else if(t.tag===19)By(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),Zc(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}Zc(e,!0,n,null,i,e.lastEffect);break;case"together":Zc(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),Oi|=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=On(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=On(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}return null}var Vy,Xc,Uy,Jy;Vy=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}},Xc=function(){},Uy=function(t,e,n,o){var r=t.memoizedProps;if(r!==o){t=e.stateNode,oo($t.current);var i=null;switch(n){case"input":r=Lu(t,r),o=Lu(t,o),i=[];break;case"option":r=Bu(t,r),o=Bu(t,o),i=[];break;case"select":r=ne({},r,{value:void 0}),o=ne({},o,{value:void 0}),i=[];break;case"textarea":r=Hu(t,r),o=Hu(t,o),i=[];break;default:typeof r.onClick!="function"&&typeof o.onClick=="function"&&(t.onclick=oa)}Ju(n,o);var s;n=null;for(u in r)if(!o.hasOwnProperty(u)&&r.hasOwnProperty(u)&&r[u]!=null)if(u==="style"){var a=r[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Vr.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in o){var l=o[u];if(a=r!=null?r[u]:void 0,o.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="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(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Vr.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ee("scroll",t),i||a===l||(i=[])):typeof l=="object"&&l!==null&&l.$$typeof===Du?l.toString():(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(e.updateQueue=u)&&(e.flags|=4)}},Jy=function(t,e,n,o){n!==o&&(e.flags|=4)};function Ni(t,e){if(!Ct)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 S$(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 _e(e.type)&&aa(),null;case 3:return Xo(),te(Je),te(Te),Vc(),o=e.stateNode,o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&(ka(e)?e.flags|=4:o.hydrate||(e.flags|=256)),Xc(e),null;case 5:Fc(e);var r=oo(ki.current);if(n=e.type,t!==null&&e.stateNode!=null)Uy(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=oo($t.current),ka(e)){o=e.stateNode,n=e.type;var i=e.memoizedProps;switch(o[gn]=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":jh(o,i),ee("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!i.multiple},ee("invalid",o);break;case"textarea":Lh(o,i),ee("invalid",o)}Ju(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":Bs(o),Ih(o,i,!0);break;case"textarea":Bs(o),Fh(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===Vu.html&&(t=Bh(n)),t===Vu.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[gn]=e,t[ia]=o,Vy(t,e,!1,!1),e.stateNode=t,s=_u(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":jh(t,o),r=Lu(t,o),ee("invalid",t);break;case"option":r=Bu(t,o);break;case"select":t._wrapperState={wasMultiple:!!o.multiple},r=ne({},o,{value:void 0}),ee("invalid",t);break;case"textarea":Lh(t,o),r=Hu(t,o),ee("invalid",t);break;default:r=o}Ju(n,r);var a=r;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Uh(t,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Hh(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&&Eu(t,i,l,s))}switch(n){case"input":Bs(t),Ih(t,o,!1);break;case"textarea":Bs(t),Fh(t);break;case"option":o.value!=null&&t.setAttribute("value",""+cn(o.value));break;case"select":t.multiple=!!o.multiple,i=o.value,i!=null?Po(t,!!o.multiple,i,!1):o.defaultValue!=null&&Po(t,!!o.multiple,o.defaultValue,!0);break;default:typeof r.onClick=="function"&&(t.onclick=oa)}Jg(n,o)&&(e.flags|=4)}e.ref!==null&&(e.flags|=128)}return null;case 6:if(t&&e.stateNode!=null)Jy(t,e,t.memoizedProps,o);else{if(typeof o!="string"&&e.stateNode===null)throw Error(A(166));n=oo(ki.current),oo($t.current),ka(e)?(o=e.stateNode,n=e.memoizedProps,o[gn]=e,o.nodeValue!==n&&(e.flags|=4)):(o=(n.nodeType===9?n:n.ownerDocument).createTextNode(o),o[gn]=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&&ka(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),He===null||!(Oi&134217727)&&!(nr&134217727)||rr(He,Ie))),(o||n)&&(e.flags|=4),null);case 4:return Xo(),Xc(e),t===null&&Fg(e.stateNode.containerInfo),null;case 10:return Pc(e),null;case 17:return _e(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()>cd&&(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&&!Ct)return e=e.lastEffect=o.lastEffect,e!==null&&(e.nextEffect=null),null}else 2*je()-o.renderingStartTime>cd&&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 gd(),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 k$(t){switch(t.tag){case 1:_e(t.type)&&aa();var e=t.flags;return e&4096?(t.flags=e&-4097|64,t):null;case 3:if(Xo(),te(Je),te(Te),Vc(),e=t.flags,e&64)throw Error(A(285));return t.flags=e&-4097|64,t;case 5:return Fc(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 Xo(),null;case 10:return Pc(t),null;case 23:case 24:return gd(),null;default:return null}}function ed(t,e){try{var n="",o=e;do n+=ex(o),o=o.return;while(o);var r=n}catch(i){r=`
126
126
  Error generating stack: `+i.message+`
127
- `+i.stack}return{value:t,source:e,stack:r}}function td(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var k$=typeof WeakMap=="function"?WeakMap:Map;function Jy(t,e,n){n=kn(-1,n),n.tag=3,n.payload={element:null};var o=e.value;return n.callback=function(){Aa||(Aa=!0,dd=o),td(t,e)},n}function _y(t,e,n){n=kn(-1,n),n.tag=3;var o=t.type.getDerivedStateFromError;if(typeof o=="function"){var r=e.value;n.payload=function(){return td(t,e),o(r)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){typeof o!="function"&&(Nt===null?Nt=new Set([this]):Nt.add(this),td(t,e));var s=e.stack;this.componentDidCatch(e.value,{componentStack:s!==null?s:""})}),n}var v$=typeof WeakSet=="function"?WeakSet:Set;function Yy(t){var e=t.ref;if(e!==null)if(typeof e=="function")try{e(null)}catch(n){Nn(t,n)}else e.current=null}function b$(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:gt(e.type,n),o),t.__reactInternalSnapshotBeforeUpdate=e}return;case 3:e.flags&256&&Cc(e.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(A(163))}function x$(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&&(a0(n,t),M$(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:gt(n.type,e.memoizedProps),t.componentDidUpdate(o,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate))),e=n.updateQueue,e!==null&&ly(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}ly(n,e,t)}return;case 5:t=n.stateNode,e===null&&n.flags&4&&Ug(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&&rg(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(A(163))}function Ky(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=Hh("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 Wy(t,e){if(to&&typeof to.onCommitFiberUnmount=="function")try{to.onCommitFiberUnmount(Oc,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)a0(e,n);else{o=e;try{r()}catch(i){Nn(o,i)}}n=n.next}while(n!==t)}break;case 1:if(Yy(e),t=e.stateNode,typeof t.componentWillUnmount=="function")try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(i){Nn(e,i)}break;case 5:Yy(e);break;case 4:Zy(t,e)}}function qy(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 Gy(t){return t.tag===5||t.tag===3||t.tag===4}function Qy(t){e:{for(var e=t.return;e!==null;){if(Gy(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&&(Kr(e,""),n.flags&=-17);e:t:for(n=t;;){for(;n.sibling===null;){if(n.return===null||Gy(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?nd(t,n,e):od(t,n,e)}function nd(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(nd(t,e,n),t=t.sibling;t!==null;)nd(t,e,n),t=t.sibling}function od(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(od(t,e,n),t=t.sibling;t!==null;)od(t,e,n),t=t.sibling}function Zy(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(Wy(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(Wy(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 rd(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&&jh(n,o),_u(t,r),e=_u(t,o),r=0;r<i.length;r+=2){var s=i[r],a=i[r+1];s==="style"?Vh(n,a):s==="dangerouslySetInnerHTML"?Bh(n,a):s==="children"?Kr(n,a):Eu(n,s,a,e)}switch(t){case"input":zu(n,o);break;case"textarea":Lh(n,o);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,i=o.value,i!=null?Po(n,!!o.multiple,i,!1):t!==!!o.multiple&&(o.defaultValue!=null?Po(n,!!o.multiple,o.defaultValue,!0):Po(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,rg(n.containerInfo));return;case 12:return;case 13:e.memoizedState!==null&&(ud=je(),Ky(e.child,!0)),Xy(e);return;case 19:Xy(e);return;case 17:return;case 23:case 24:Ky(e,e.memoizedState!==null);return}throw Error(A(163))}function Xy(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new v$),e.forEach(function(o){var r=j$.bind(null,t,o);n.has(o)||(n.add(o),o.then(r,r))})}}function $$(t,e){return t!==null&&(t=t.memoizedState,t===null||t.dehydrated!==null)?(e=e.memoizedState,e!==null&&e.dehydrated===null):!1}var C$=Math.ceil,Na=qn.ReactCurrentDispatcher,id=qn.ReactCurrentOwner,z=0,He=null,fe=null,Ie=0,so=0,sd=yn(0),Ne=0,Oa=null,tr=0,Ni=0,nr=0,ad=0,ld=null,ud=0,cd=1/0;function or(){cd=je()+500}var T=null,Aa=!1,dd=null,Nt=null,xn=!1,Oi=null,Ai=90,md=[],fd=[],Ht=null,Ri=0,pd=null,Ra=-1,Vt=0,Ma=0,Mi=null,Da=!1;function Qe(){return z&48?je():Ra!==-1?Ra:Ra=je()}function $n(t){if(t=t.mode,!(t&2))return 1;if(!(t&4))return Go()===99?1:2;if(Vt===0&&(Vt=tr),m$.transition!==0){Ma!==0&&(Ma=ld!==null?ld.pendingLanes:0),t=Vt;var e=4186112&~Ma;return e&=-e,e===0&&(t=4186112&~t,e=t&-t,e===0&&(e=8192)),e}return t=Go(),z&4&&t===98?t=Ws(12,Vt):(t=hx(t),t=Ws(t,Vt)),t}function Cn(t,e,n){if(50<Ri)throw Ri=0,pd=null,Error(A(185));if(t=Ta(t,e),t===null)return null;qs(t,e,n),t===He&&(nr|=e,Ne===4&&rr(t,Ie));var o=Go();e===1?z&8&&!(z&48)?hd(t):(lt(t,n),z===0&&(or(),xt())):(!(z&4)||o!==98&&o!==99||(Ht===null?Ht=new Set([t]):Ht.add(t)),lt(t,n)),ld=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-pn(s),l=1<<a,u=i[a];if(u===-1){if(!(l&o)||l&r){u=e,Fo(l);var c=Z;i[a]=10<=c?u+250:6<=c?u+5e3:-1}}else u<=e&&(t.expiredLanes|=l);s&=~l}if(o=oi(t,t===He?Ie:0),e=Z,o===0)n!==null&&(n!==Dc&&Rc(n),t.callbackNode=null,t.callbackPriority=0);else{if(n!==null){if(t.callbackPriority===e)return;n!==Dc&&Rc(n)}e===15?(n=hd.bind(null,t),zt===null?(zt=[n],ca=Ac(ua,ry)):zt.push(n),n=Dc):e===14?n=pi(99,hd.bind(null,t)):(n=gx(e),n=pi(n,e0.bind(null,t))),t.callbackPriority=e,t.callbackNode=n}}function e0(t){if(Ra=-1,Ma=Vt=0,z&48)throw Error(A(327));var e=t.callbackNode;if(En()&&t.callbackNode!==e)return null;var n=oi(t,t===He?Ie:0);if(n===0)return null;var o=n,r=z;z|=16;var i=r0();(He!==t||Ie!==o)&&(or(),ir(t,o));do try{O$();break}catch(a){o0(t,a)}while(1);if(jc(),Na.current=i,z=r,fe!==null?o=0:(He=null,Ie=0,o=Ne),tr&nr)ir(t,0);else if(o!==0){if(o===2&&(z|=64,t.hydrate&&(t.hydrate=!1,Cc(t.containerInfo)),n=dg(t),n!==0&&(o=Di(t,n))),o===1)throw e=Oa,ir(t,0),rr(t,n),lt(t,je()),e;switch(t.finishedWork=t.current.alternate,t.finishedLanes=n,o){case 0:case 1:throw Error(A(345));case 2:ao(t);break;case 3:if(rr(t,n),(n&62914560)===n&&(o=ud+500-je(),10<o)){if(oi(t,0)!==0)break;if(r=t.suspendedLanes,(r&n)!==n){Qe(),t.pingedLanes|=t.suspendedLanes&r;break}t.timeoutHandle=Jg(ao.bind(null,t),o);break}ao(t);break;case 4:if(rr(t,n),(n&4186112)===n)break;for(o=t.eventTimes,r=-1;0<n;){var s=31-pn(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*C$(n/1960))-n,10<n){t.timeoutHandle=Jg(ao.bind(null,t),n);break}ao(t);break;case 5:ao(t);break;default:throw Error(A(329))}}return lt(t,je()),t.callbackNode===e?e0.bind(null,t):null}function rr(t,e){for(e&=~ad,e&=~nr,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-pn(e),o=1<<n;t[n]=-1,e&=~o}}function hd(t){if(z&48)throw Error(A(327));if(En(),t===He&&t.expiredLanes&Ie){var e=Ie,n=Di(t,e);tr&nr&&(e=oi(t,e),n=Di(t,e))}else e=oi(t,0),n=Di(t,e);if(t.tag!==0&&n===2&&(z|=64,t.hydrate&&(t.hydrate=!1,Cc(t.containerInfo)),e=dg(t),e!==0&&(n=Di(t,e))),n===1)throw n=Oa,ir(t,0),rr(t,e),lt(t,je()),n;return t.finishedWork=t.current.alternate,t.finishedLanes=e,ao(t),lt(t,je()),null}function E$(){if(Ht!==null){var t=Ht;Ht=null,t.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,lt(e,je())})}xt()}function t0(t,e){var n=z;z|=1;try{return t(e)}finally{z=n,z===0&&(or(),xt())}}function n0(t,e){var n=z;z&=-2,z|=8;try{return t(e)}finally{z=n,z===0&&(or(),xt())}}function ja(t,e){re(sd,so),so|=e,tr|=e}function gd(){so=sd.current,te(sd)}function ir(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,s$(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:Xo(),te(Je),te(Te),Vc();break;case 5:Fc(o);break;case 4:Xo();break;case 13:te(ie);break;case 19:te(ie);break;case 10:Pc(o);break;case 23:case 24:gd()}n=n.return}He=t,fe=On(t.current,null),Ie=so=tr=e,Ne=0,Oa=null,ad=nr=Ni=0}function o0(t,e){do{var n=fe;try{if(jc(),ki.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(vi=0,Ee=Pe=ae=null,bi=!1,id.current=null,n===null||n.return===null){Ne=1,Oa=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 u=l;if(!(a.mode&2)){var c=a.alternate;c?(a.updateQueue=c.updateQueue,a.memoizedState=c.memoizedState,a.lanes=c.lanes):(a.updateQueue=null,a.memoizedState=null)}var d=(ie.current&1)!==0,m=s;do{var f;if(f=m.tag===13){var p=m.memoizedState;if(p!==null)f=p.dehydrated!==null;else{var y=m.memoizedProps;f=y.fallback===void 0?!1:y.unstable_avoidThisFallback!==!0?!0:!d}}if(f){var h=m.updateQueue;if(h===null){var g=new Set;g.add(u),m.updateQueue=g}else h.add(u);if(!(m.mode&2)){if(m.flags|=64,a.flags|=16384,a.flags&=-2981,a.tag===1)if(a.alternate===null)a.tag=17;else{var w=kn(-1,1);w.tag=2,vn(a,w)}a.lanes|=1;break e}l=void 0,a=e;var k=i.pingCache;if(k===null?(k=i.pingCache=new k$,l=new Set,k.set(u,l)):(l=k.get(u),l===void 0&&(l=new Set,k.set(u,l))),!l.has(a)){l.add(a);var b=T$.bind(null,i,u,a);u.then(b,b)}m.flags|=4096,m.lanes=e;break e}m=m.return}while(m!==null);l=Error((jo(a.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
127
+ `+i.stack}return{value:t,source:e,stack:r}}function td(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var v$=typeof WeakMap=="function"?WeakMap:Map;function _y(t,e,n){n=kn(-1,n),n.tag=3,n.payload={element:null};var o=e.value;return n.callback=function(){Aa||(Aa=!0,dd=o),td(t,e)},n}function Yy(t,e,n){n=kn(-1,n),n.tag=3;var o=t.type.getDerivedStateFromError;if(typeof o=="function"){var r=e.value;n.payload=function(){return td(t,e),o(r)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){typeof o!="function"&&(Nt===null?Nt=new Set([this]):Nt.add(this),td(t,e));var s=e.stack;this.componentDidCatch(e.value,{componentStack:s!==null?s:""})}),n}var b$=typeof WeakSet=="function"?WeakSet:Set;function Ky(t){var e=t.ref;if(e!==null)if(typeof e=="function")try{e(null)}catch(n){Nn(t,n)}else e.current=null}function x$(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:gt(e.type,n),o),t.__reactInternalSnapshotBeforeUpdate=e}return;case 3:e.flags&256&&Cc(e.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(A(163))}function $$(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&&(l0(n,t),D$(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:gt(n.type,e.memoizedProps),t.componentDidUpdate(o,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate))),e=n.updateQueue,e!==null&&uy(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}uy(n,e,t)}return;case 5:t=n.stateNode,e===null&&n.flags&4&&Jg(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&&ig(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(A(163))}function Wy(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=Vh("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(to&&typeof to.onCommitFiberUnmount=="function")try{to.onCommitFiberUnmount(Oc,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)l0(e,n);else{o=e;try{r()}catch(i){Nn(o,i)}}n=n.next}while(n!==t)}break;case 1:if(Ky(e),t=e.stateNode,typeof t.componentWillUnmount=="function")try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(i){Nn(e,i)}break;case 5:Ky(e);break;case 4:Xy(t,e)}}function Gy(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 Qy(t){return t.tag===5||t.tag===3||t.tag===4}function Zy(t){e:{for(var e=t.return;e!==null;){if(Qy(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||Qy(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?nd(t,n,e):od(t,n,e)}function nd(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(nd(t,e,n),t=t.sibling;t!==null;)nd(t,e,n),t=t.sibling}function od(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(od(t,e,n),t=t.sibling;t!==null;)od(t,e,n),t=t.sibling}function Xy(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 rd(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&&Ph(n,o),_u(t,r),e=_u(t,o),r=0;r<i.length;r+=2){var s=i[r],a=i[r+1];s==="style"?Uh(n,a):s==="dangerouslySetInnerHTML"?Hh(n,a):s==="children"?Wr(n,a):Eu(n,s,a,e)}switch(t){case"input":zu(n,o);break;case"textarea":zh(n,o);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,i=o.value,i!=null?Po(n,!!o.multiple,i,!1):t!==!!o.multiple&&(o.defaultValue!=null?Po(n,!!o.multiple,o.defaultValue,!0):Po(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,ig(n.containerInfo));return;case 12:return;case 13:e.memoizedState!==null&&(ud=je(),Wy(e.child,!0)),e0(e);return;case 19:e0(e);return;case 17:return;case 23:case 24:Wy(e,e.memoizedState!==null);return}throw Error(A(163))}function e0(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new b$),e.forEach(function(o){var r=P$.bind(null,t,o);n.has(o)||(n.add(o),o.then(r,r))})}}function C$(t,e){return t!==null&&(t=t.memoizedState,t===null||t.dehydrated!==null)?(e=e.memoizedState,e!==null&&e.dehydrated===null):!1}var E$=Math.ceil,Na=qn.ReactCurrentDispatcher,id=qn.ReactCurrentOwner,z=0,He=null,fe=null,Ie=0,so=0,sd=yn(0),Ne=0,Oa=null,tr=0,Oi=0,nr=0,ad=0,ld=null,ud=0,cd=1/0;function or(){cd=je()+500}var T=null,Aa=!1,dd=null,Nt=null,xn=!1,Ai=null,Ri=90,md=[],fd=[],Ht=null,Mi=0,pd=null,Ra=-1,Vt=0,Ma=0,Di=null,Da=!1;function Qe(){return z&48?je():Ra!==-1?Ra:Ra=je()}function $n(t){if(t=t.mode,!(t&2))return 1;if(!(t&4))return Go()===99?1:2;if(Vt===0&&(Vt=tr),f$.transition!==0){Ma!==0&&(Ma=ld!==null?ld.pendingLanes:0),t=Vt;var e=4186112&~Ma;return e&=-e,e===0&&(t=4186112&~t,e=t&-t,e===0&&(e=8192)),e}return t=Go(),z&4&&t===98?t=Ws(12,Vt):(t=gx(t),t=Ws(t,Vt)),t}function Cn(t,e,n){if(50<Mi)throw Mi=0,pd=null,Error(A(185));if(t=Ta(t,e),t===null)return null;qs(t,e,n),t===He&&(nr|=e,Ne===4&&rr(t,Ie));var o=Go();e===1?z&8&&!(z&48)?hd(t):(lt(t,n),z===0&&(or(),xt())):(!(z&4)||o!==98&&o!==99||(Ht===null?Ht=new Set([t]):Ht.add(t)),lt(t,n)),ld=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-pn(s),l=1<<a,u=i[a];if(u===-1){if(!(l&o)||l&r){u=e,Fo(l);var c=Z;i[a]=10<=c?u+250:6<=c?u+5e3:-1}}else u<=e&&(t.expiredLanes|=l);s&=~l}if(o=ri(t,t===He?Ie:0),e=Z,o===0)n!==null&&(n!==Dc&&Rc(n),t.callbackNode=null,t.callbackPriority=0);else{if(n!==null){if(t.callbackPriority===e)return;n!==Dc&&Rc(n)}e===15?(n=hd.bind(null,t),zt===null?(zt=[n],ca=Ac(ua,iy)):zt.push(n),n=Dc):e===14?n=hi(99,hd.bind(null,t)):(n=yx(e),n=hi(n,t0.bind(null,t))),t.callbackPriority=e,t.callbackNode=n}}function t0(t){if(Ra=-1,Ma=Vt=0,z&48)throw Error(A(327));var e=t.callbackNode;if(En()&&t.callbackNode!==e)return null;var n=ri(t,t===He?Ie:0);if(n===0)return null;var o=n,r=z;z|=16;var i=i0();(He!==t||Ie!==o)&&(or(),ir(t,o));do try{A$();break}catch(a){r0(t,a)}while(1);if(jc(),Na.current=i,z=r,fe!==null?o=0:(He=null,Ie=0,o=Ne),tr&nr)ir(t,0);else if(o!==0){if(o===2&&(z|=64,t.hydrate&&(t.hydrate=!1,Cc(t.containerInfo)),n=mg(t),n!==0&&(o=Ti(t,n))),o===1)throw e=Oa,ir(t,0),rr(t,n),lt(t,je()),e;switch(t.finishedWork=t.current.alternate,t.finishedLanes=n,o){case 0:case 1:throw Error(A(345));case 2:ao(t);break;case 3:if(rr(t,n),(n&62914560)===n&&(o=ud+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=_g(ao.bind(null,t),o);break}ao(t);break;case 4:if(rr(t,n),(n&4186112)===n)break;for(o=t.eventTimes,r=-1;0<n;){var s=31-pn(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*E$(n/1960))-n,10<n){t.timeoutHandle=_g(ao.bind(null,t),n);break}ao(t);break;case 5:ao(t);break;default:throw Error(A(329))}}return lt(t,je()),t.callbackNode===e?t0.bind(null,t):null}function rr(t,e){for(e&=~ad,e&=~nr,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-pn(e),o=1<<n;t[n]=-1,e&=~o}}function hd(t){if(z&48)throw Error(A(327));if(En(),t===He&&t.expiredLanes&Ie){var e=Ie,n=Ti(t,e);tr&nr&&(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,Cc(t.containerInfo)),e=mg(t),e!==0&&(n=Ti(t,e))),n===1)throw n=Oa,ir(t,0),rr(t,e),lt(t,je()),n;return t.finishedWork=t.current.alternate,t.finishedLanes=e,ao(t),lt(t,je()),null}function N$(){if(Ht!==null){var t=Ht;Ht=null,t.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,lt(e,je())})}xt()}function n0(t,e){var n=z;z|=1;try{return t(e)}finally{z=n,z===0&&(or(),xt())}}function o0(t,e){var n=z;z&=-2,z|=8;try{return t(e)}finally{z=n,z===0&&(or(),xt())}}function ja(t,e){re(sd,so),so|=e,tr|=e}function gd(){so=sd.current,te(sd)}function ir(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,a$(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:Xo(),te(Je),te(Te),Vc();break;case 5:Fc(o);break;case 4:Xo();break;case 13:te(ie);break;case 19:te(ie);break;case 10:Pc(o);break;case 23:case 24:gd()}n=n.return}He=t,fe=On(t.current,null),Ie=so=tr=e,Ne=0,Oa=null,ad=nr=Oi=0}function r0(t,e){do{var n=fe;try{if(jc(),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(bi=0,Ee=Pe=ae=null,xi=!1,id.current=null,n===null||n.return===null){Ne=1,Oa=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 u=l;if(!(a.mode&2)){var c=a.alternate;c?(a.updateQueue=c.updateQueue,a.memoizedState=c.memoizedState,a.lanes=c.lanes):(a.updateQueue=null,a.memoizedState=null)}var d=(ie.current&1)!==0,m=s;do{var f;if(f=m.tag===13){var p=m.memoizedState;if(p!==null)f=p.dehydrated!==null;else{var y=m.memoizedProps;f=y.fallback===void 0?!1:y.unstable_avoidThisFallback!==!0?!0:!d}}if(f){var h=m.updateQueue;if(h===null){var g=new Set;g.add(u),m.updateQueue=g}else h.add(u);if(!(m.mode&2)){if(m.flags|=64,a.flags|=16384,a.flags&=-2981,a.tag===1)if(a.alternate===null)a.tag=17;else{var S=kn(-1,1);S.tag=2,vn(a,S)}a.lanes|=1;break e}l=void 0,a=e;var k=i.pingCache;if(k===null?(k=i.pingCache=new v$,l=new Set,k.set(u,l)):(l=k.get(u),l===void 0&&(l=new Set,k.set(u,l))),!l.has(a)){l.add(a);var b=j$.bind(null,i,u,a);u.then(b,b)}m.flags|=4096,m.lanes=e;break e}m=m.return}while(m!==null);l=Error((jo(a.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
128
128
 
129
- Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Ne!==5&&(Ne=2),l=ed(l,a),m=s;do{switch(m.tag){case 3:i=l,m.flags|=4096,e&=-e,m.lanes|=e;var E=Jy(m,i,e);ay(m,E);break e;case 1:i=l;var v=m.type,$=m.stateNode;if(!(m.flags&64)&&(typeof v.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(Nt===null||!Nt.has($)))){m.flags|=4096,e&=-e,m.lanes|=e;var R=_y(m,i,e);ay(m,R);break e}}m=m.return}while(m!==null)}s0(n)}catch(C){e=C,fe===n&&n!==null&&(fe=n=n.return);continue}break}while(1)}function r0(){var t=Na.current;return Na.current=Ca,t===null?Ca:t}function Di(t,e){var n=z;z|=16;var o=r0();He===t&&Ie===e||ir(t,e);do try{N$();break}catch(r){o0(t,r)}while(1);if(jc(),z=n,Na.current=o,fe!==null)throw Error(A(261));return He=null,Ie=0,Ne}function N$(){for(;fe!==null;)i0(fe)}function O$(){for(;fe!==null&&!u$();)i0(fe)}function i0(t){var e=u0(t.alternate,t,so);t.memoizedProps=t.pendingProps,e===null?s0(t):fe=e,id.current=null}function s0(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&2048){if(n=S$(e),n!==null){n.flags&=2047,fe=n;return}t!==null&&(t.firstEffect=t.lastEffect=null,t.flags|=2048)}else{if(n=w$(n,e,so),n!==null){fe=n;return}if(n=e,n.tag!==24&&n.tag!==23||n.memoizedState===null||so&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 ao(t){var e=Go();return no(99,A$.bind(null,t,e)),null}function A$(t,e){do En();while(Oi!==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-pn(i),u=1<<l;r[l]=0,s[l]=-1,a[l]=-1,i&=~u}if(Ht!==null&&!(o&24)&&Ht.has(t)&&Ht.delete(t),t===He&&(fe=He=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,id.current=null,bc=Gs,s=Mg(),wc(s)){if("selectionStart"in s)a={start:s.selectionStart,end:s.selectionEnd};else e:if(a=(a=s.ownerDocument)&&a.defaultView||window,(u=a.getSelection&&a.getSelection())&&u.rangeCount!==0){a=u.anchorNode,i=u.anchorOffset,l=u.focusNode,u=u.focusOffset;try{a.nodeType,l.nodeType}catch{a=null;break e}var c=0,d=-1,m=-1,f=0,p=0,y=s,h=null;t:for(;;){for(var g;y!==a||i!==0&&y.nodeType!==3||(d=c+i),y!==l||u!==0&&y.nodeType!==3||(m=c+u),y.nodeType===3&&(c+=y.nodeValue.length),(g=y.firstChild)!==null;)h=y,y=g;for(;;){if(y===s)break t;if(h===a&&++f===i&&(d=c),h===l&&++p===u&&(m=c),(g=y.nextSibling)!==null)break;y=h,h=y.parentNode}y=g}a=d===-1||m===-1?null:{start:d,end:m}}else a=null;a=a||{start:0,end:0}}else a=null;xc={focusedElem:s,selectionRange:a},Gs=!1,Mi=null,Da=!1,T=o;do try{R$()}catch(C){if(T===null)throw Error(A(330));Nn(T,C),T=T.nextEffect}while(T!==null);Mi=null,T=o;do try{for(s=t;T!==null;){var w=T.flags;if(w&16&&Kr(T.stateNode,""),w&128){var k=T.alternate;if(k!==null){var b=k.ref;b!==null&&(typeof b=="function"?b(null):b.current=null)}}switch(w&1038){case 2:Qy(T),T.flags&=-3;break;case 6:Qy(T),T.flags&=-3,rd(T.alternate,T);break;case 1024:T.flags&=-1025;break;case 1028:T.flags&=-1025,rd(T.alternate,T);break;case 4:rd(T.alternate,T);break;case 8:a=T,Zy(s,a);var E=a.alternate;qy(a),E!==null&&qy(E)}T=T.nextEffect}}catch(C){if(T===null)throw Error(A(330));Nn(T,C),T=T.nextEffect}while(T!==null);if(b=xc,k=Mg(),w=b.focusedElem,s=b.selectionRange,k!==w&&w&&w.ownerDocument&&Rg(w.ownerDocument.documentElement,w)){for(s!==null&&wc(w)&&(k=s.start,b=s.end,b===void 0&&(b=k),"selectionStart"in w?(w.selectionStart=k,w.selectionEnd=Math.min(b,w.value.length)):(b=(k=w.ownerDocument||document)&&k.defaultView||window,b.getSelection&&(b=b.getSelection(),a=w.textContent.length,E=Math.min(s.start,a),s=s.end===void 0?E:Math.min(s.end,a),!b.extend&&E>s&&(a=s,s=E,E=a),a=Ag(w,E),i=Ag(w,s),a&&i&&(b.rangeCount!==1||b.anchorNode!==a.node||b.anchorOffset!==a.offset||b.focusNode!==i.node||b.focusOffset!==i.offset)&&(k=k.createRange(),k.setStart(a.node,a.offset),b.removeAllRanges(),E>s?(b.addRange(k),b.extend(i.node,i.offset)):(k.setEnd(i.node,i.offset),b.addRange(k)))))),k=[],b=w;b=b.parentNode;)b.nodeType===1&&k.push({element:b,left:b.scrollLeft,top:b.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<k.length;w++)b=k[w],b.element.scrollLeft=b.left,b.element.scrollTop=b.top}Gs=!!bc,xc=bc=null,t.current=n,T=o;do try{for(w=t;T!==null;){var v=T.flags;if(v&36&&x$(w,T.alternate,T),v&128){k=void 0;var $=T.ref;if($!==null){var R=T.stateNode;switch(T.tag){case 5:k=R;break;default:k=R}typeof $=="function"?$(k):$.current=k}}T=T.nextEffect}}catch(C){if(T===null)throw Error(A(330));Nn(T,C),T=T.nextEffect}while(T!==null);T=null,d$(),z=r}else t.current=n;if(xn)xn=!1,Oi=t,Ai=e;else for(T=o;T!==null;)e=T.nextEffect,T.nextEffect=null,T.flags&8&&(v=T,v.sibling=null,v.stateNode=null),T=e;if(o=t.pendingLanes,o===0&&(Nt=null),o===1?t===pd?Ri++:(Ri=0,pd=t):Ri=0,n=n.stateNode,to&&typeof to.onCommitFiberRoot=="function")try{to.onCommitFiberRoot(Oc,n,void 0,(n.current.flags&64)===64)}catch{}if(lt(t,je()),Aa)throw Aa=!1,t=dd,dd=null,t;return z&8||xt(),null}function R$(){for(;T!==null;){var t=T.alternate;Da||Mi===null||(T.flags&8?Qh(T,Mi)&&(Da=!0):T.tag===13&&$$(t,T)&&Qh(T,Mi)&&(Da=!0));var e=T.flags;e&256&&b$(t,T),!(e&512)||xn||(xn=!0,pi(97,function(){return En(),null})),T=T.nextEffect}}function En(){if(Ai!==90){var t=97<Ai?97:Ai;return Ai=90,no(t,D$)}return!1}function M$(t,e){md.push(e,t),xn||(xn=!0,pi(97,function(){return En(),null}))}function a0(t,e){fd.push(e,t),xn||(xn=!0,pi(97,function(){return En(),null}))}function D$(){if(Oi===null)return!1;var t=Oi;if(Oi=null,z&48)throw Error(A(331));var e=z;z|=32;var n=fd;fd=[];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));Nn(i,l)}}for(n=md,md=[],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));Nn(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,xt(),!0}function l0(t,e,n){e=ed(n,e),e=Jy(t,e,1),vn(t,e),e=Qe(),t=Ta(t,1),t!==null&&(qs(t,1,e),lt(t,e))}function Nn(t,e){if(t.tag===3)l0(t,t,e);else for(var n=t.return;n!==null;){if(n.tag===3){l0(n,t,e);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Nt===null||!Nt.has(o))){t=ed(e,t);var r=_y(n,t,1);if(vn(n,r),r=Qe(),n=Ta(n,1),n!==null)qs(n,1,r),lt(n,r);else if(typeof o.componentDidCatch=="function"&&(Nt===null||!Nt.has(o)))try{o.componentDidCatch(e,t)}catch{}break}}n=n.return}}function T$(t,e,n){var o=t.pingCache;o!==null&&o.delete(e),e=Qe(),t.pingedLanes|=t.suspendedLanes&n,He===t&&(Ie&n)===n&&(Ne===4||Ne===3&&(Ie&62914560)===Ie&&500>je()-ud?ir(t,0):ad|=n),lt(t,e)}function j$(t,e){var n=t.stateNode;n!==null&&n.delete(e),e=0,e===0&&(e=t.mode,e&2?e&4?(Vt===0&&(Vt=tr),e=Bo(62914560&~Vt),e===0&&(e=4194304)):e=Go()===99?1:2:e=1),n=Qe(),t=Ta(t,e),t!==null&&(qs(t,e,n),lt(t,n))}var u0;u0=function(t,e,n){var o=e.lanes;if(t!==null)if(t.memoizedProps!==e.pendingProps||Je.current)yt=!0;else if(n&o)yt=!!(t.flags&16384);else{switch(yt=!1,e.tag){case 3:jy(e),Hc();break;case 5:hy(e);break;case 1:_e(e.type)&&la(e);break;case 4:zc(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?Py(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 By(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,qc(t,e,n)}return Bt(t,e,n)}else yt=!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=qo(e,Te.current),Zo(e,n),r=Jc(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,_e(o)){var i=!0;la(e)}else i=!1;e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,Ic(e);var s=o.getDerivedStateFromProps;typeof s=="function"&&pa(e,o,s,t),r.updater=ha,e.stateNode=r,r._reactInternals=e,Lc(e,o,t,n),e=Qc(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=I$(r),t=gt(r,t),i){case 0:e=Gc(null,e,r,t,n);break e;case 1:e=Ty(null,e,r,t,n);break e;case 11:e=Ay(null,e,r,t,n);break e;case 14:e=Ry(null,e,r,gt(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:gt(o,r),Gc(t,e,o,r,n);case 1:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:gt(o,r),Ty(t,e,o,r,n);case 3:if(jy(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,sy(t,e),hi(e,o,null,n),o=e.memoizedState.element,o===r)Hc(),e=Bt(t,e,n);else{if(r=e.stateNode,(i=r.hydrate)&&(bn=_o(e.stateNode.containerInfo.firstChild),Ft=e,i=Ct=!0),i){if(t=r.mutableSourceEagerHydrationData,t!=null)for(r=0;r<t.length;r+=2)i=t[r],i._workInProgressVersionPrimary=t[r+1],er.push(i);for(n=py(e,null,o,n),e.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else Ke(t,e,o,n),Hc();e=e.child}return e;case 5:return hy(e),t===null&&Bc(e),o=e.type,r=e.pendingProps,i=t!==null?t.memoizedProps:null,s=r.children,$c(o,r)?s=null:i!==null&&$c(o,i)&&(e.flags|=16),Dy(t,e),Ke(t,e,s,n),e.child;case 6:return t===null&&Bc(e),null;case 13:return Py(t,e,n);case 4:return zc(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:gt(o,r),Ay(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&&!Je.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 u=l.firstContext;u!==null;){if(u.context===o&&u.observedBits&i){a.tag===1&&(u=kn(-1,n&-n),u.tag=2,vn(a,u)),a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),iy(a.return,n),l.lanes|=n;break}u=u.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,Zo(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=gt(r,e.pendingProps),i=gt(r.type,i),Ry(t,e,r,i,o,n);case 15:return My(t,e,e.type,e.pendingProps,o,n);case 17:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:gt(o,r),t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),e.tag=1,_e(o)?(t=!0,la(e)):t=!1,Zo(e,n),dy(e,o,r),Lc(e,o,r,n),Qc(null,e,o,!0,t,n);case 19:return By(t,e,n);case 23:return qc(t,e,n);case 24:return qc(t,e,n)}throw Error(A(156,e.tag))};function P$(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 P$(t,e,n,o)}function yd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function I$(t){if(typeof t=="function")return yd(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Is)return 11;if(t===zs)return 14}return 2}function On(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")yd(t)&&(s=1);else if(typeof t=="string")s=5;else e:switch(t){case un:return sr(n.children,r,i,e);case Ah:s=8,r|=16;break;case Nu:s=8,r|=1;break;case Ur:return t=ut(12,n,e,r|8),t.elementType=Ur,t.type=Ur,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 Tu:return wd(n,r,i,e);case ju:return t=ut(24,n,e,r),t.elementType=ju,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Ou:s=10;break e;case Au:s=9;break e;case Is:s=11;break e;case zs:s=14;break e;case Ru:s=16,o=null;break e;case Mu: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 sr(t,e,n,o){return t=ut(7,t,o,e),t.lanes=n,t}function wd(t,e,n,o){return t=ut(23,t,o,e),t.elementType=Tu,t.lanes=n,t}function Sd(t,e,n){return t=ut(6,t,null,e),t.lanes=n,t}function kd(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 L$(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=sc(0),this.expirationTimes=sc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sc(0),this.mutableSourceEagerHydrationData=null}function z$(t,e,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Gn,key:o==null?null:""+o,children:t,containerInfo:e,implementation:n}}function Ia(t,e,n,o){var r=e.current,i=Qe(),s=$n(r);e:if(n){n=n._reactInternals;t:{if(Zn(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(_e(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(_e(l)){n=qg(n,l,a);break e}}n=a}else n=wn;return e.context===null?e.context=n:e.pendingContext=n,e=kn(i,s),e.payload={element:t},o=o===void 0?null:o,o!==null&&(e.callback=o),vn(r,e),Cn(r,s,i),s}function vd(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 c0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function bd(t,e){c0(t,e),(t=t.alternate)&&c0(t,e)}function F$(){return null}function xd(t,e,n){var o=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new L$(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,Ic(e),t[Yo]=n.current,zg(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}xd.prototype.render=function(t){Ia(t,this._internalRoot,null,null)},xd.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;Ia(null,t,null,function(){e[Yo]=null})};function Ti(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function B$(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 xd(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 u=vd(s);a.call(u)}}Ia(e,s,t,r)}else{if(i=n._reactRootContainer=B$(n,o),s=i._internalRoot,typeof r=="function"){var l=r;r=function(){var u=vd(s);l.call(u)}}n0(function(){Ia(e,s,t,r)})}return vd(s)}Zh=function(t){if(t.tag===13){var e=Qe();Cn(t,4,e),bd(t,4)}},ec=function(t){if(t.tag===13){var e=Qe();Cn(t,67108864,e),bd(t,67108864)}},Xh=function(t){if(t.tag===13){var e=Qe(),n=$n(t);Cn(t,n,e),bd(t,n)}},eg=function(t,e){return e()},Ku=function(t,e,n){switch(e){case"input":if(zu(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));Dh(o),zu(o,r)}}}break;case"textarea":Lh(t,n);break;case"select":e=n.value,e!=null&&Po(t,!!n.multiple,e,!1)}},Wu=t0,Yh=function(t,e,n,o,r){var i=z;z|=4;try{return no(98,t.bind(null,e,n,o,r))}finally{z=i,z===0&&(or(),xt())}},qu=function(){!(z&49)&&(E$(),En())},Kh=function(t,e){var n=z;z|=2;try{return t(e)}finally{z=n,z===0&&(or(),xt())}};function d0(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ti(e))throw Error(A(200));return z$(t,e,null,n)}var H$={Events:[fi,Ko,sa,Jh,_h,En,{current:!1}]},ji={findFiberByHostInstance:Xn,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},V$={bundleType:ji.bundleType,version:ji.version,rendererPackageName:ji.rendererPackageName,rendererConfig:ji.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:qn.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Gh(t),t===null?null:t.stateNode},findFiberByHostInstance:ji.findFiberByHostInstance||F$,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{Oc=za.inject(V$),to=za}catch{}}rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H$,rt.createPortal=d0,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(A(188)):Error(A(268,Object.keys(t)));return t=Gh(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 no(99,t.bind(null,e))}finally{z=n,xt()}},rt.hydrate=function(t,e,n){if(!Ti(e))throw Error(A(200));return La(null,t,e,!0,n)},rt.render=function(t,e,n){if(!Ti(e))throw Error(A(200));return La(null,t,e,!1,n)},rt.unmountComponentAtNode=function(t){if(!Ti(t))throw Error(A(40));return t._reactRootContainer?(n0(function(){La(null,null,t,!1,function(){t._reactRootContainer=null,t[Yo]=null})}),!0):!1},rt.unstable_batchedUpdates=t0,rt.unstable_createPortal=function(t,e){return d0(t,e,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},rt.unstable_renderSubtreeIntoContainer=function(t,e,n,o){if(!Ti(n))throw Error(A(200));if(t==null||t._reactInternals===void 0)throw Error(A(38));return La(t,e,n,!1,o)},rt.version="17.0.2";function m0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(m0)}catch(t){console.error(t)}}m0(),bh.exports=rt;var $d=bh.exports;const f0=Ze($d);function U$(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var p0={exports:{}},Cd={};/**
129
+ Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Ne!==5&&(Ne=2),l=ed(l,a),m=s;do{switch(m.tag){case 3:i=l,m.flags|=4096,e&=-e,m.lanes|=e;var E=_y(m,i,e);ly(m,E);break e;case 1:i=l;var v=m.type,$=m.stateNode;if(!(m.flags&64)&&(typeof v.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(Nt===null||!Nt.has($)))){m.flags|=4096,e&=-e,m.lanes|=e;var R=Yy(m,i,e);ly(m,R);break e}}m=m.return}while(m!==null)}a0(n)}catch(C){e=C,fe===n&&n!==null&&(fe=n=n.return);continue}break}while(1)}function i0(){var t=Na.current;return Na.current=Ca,t===null?Ca:t}function Ti(t,e){var n=z;z|=16;var o=i0();He===t&&Ie===e||ir(t,e);do try{O$();break}catch(r){r0(t,r)}while(1);if(jc(),z=n,Na.current=o,fe!==null)throw Error(A(261));return He=null,Ie=0,Ne}function O$(){for(;fe!==null;)s0(fe)}function A$(){for(;fe!==null&&!c$();)s0(fe)}function s0(t){var e=c0(t.alternate,t,so);t.memoizedProps=t.pendingProps,e===null?a0(t):fe=e,id.current=null}function a0(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&2048){if(n=k$(e),n!==null){n.flags&=2047,fe=n;return}t!==null&&(t.firstEffect=t.lastEffect=null,t.flags|=2048)}else{if(n=S$(n,e,so),n!==null){fe=n;return}if(n=e,n.tag!==24&&n.tag!==23||n.memoizedState===null||so&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 ao(t){var e=Go();return no(99,R$.bind(null,t,e)),null}function R$(t,e){do En();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-pn(i),u=1<<l;r[l]=0,s[l]=-1,a[l]=-1,i&=~u}if(Ht!==null&&!(o&24)&&Ht.has(t)&&Ht.delete(t),t===He&&(fe=He=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,id.current=null,bc=Gs,s=Dg(),wc(s)){if("selectionStart"in s)a={start:s.selectionStart,end:s.selectionEnd};else e:if(a=(a=s.ownerDocument)&&a.defaultView||window,(u=a.getSelection&&a.getSelection())&&u.rangeCount!==0){a=u.anchorNode,i=u.anchorOffset,l=u.focusNode,u=u.focusOffset;try{a.nodeType,l.nodeType}catch{a=null;break e}var c=0,d=-1,m=-1,f=0,p=0,y=s,h=null;t:for(;;){for(var g;y!==a||i!==0&&y.nodeType!==3||(d=c+i),y!==l||u!==0&&y.nodeType!==3||(m=c+u),y.nodeType===3&&(c+=y.nodeValue.length),(g=y.firstChild)!==null;)h=y,y=g;for(;;){if(y===s)break t;if(h===a&&++f===i&&(d=c),h===l&&++p===u&&(m=c),(g=y.nextSibling)!==null)break;y=h,h=y.parentNode}y=g}a=d===-1||m===-1?null:{start:d,end:m}}else a=null;a=a||{start:0,end:0}}else a=null;xc={focusedElem:s,selectionRange:a},Gs=!1,Di=null,Da=!1,T=o;do try{M$()}catch(C){if(T===null)throw Error(A(330));Nn(T,C),T=T.nextEffect}while(T!==null);Di=null,T=o;do try{for(s=t;T!==null;){var S=T.flags;if(S&16&&Wr(T.stateNode,""),S&128){var k=T.alternate;if(k!==null){var b=k.ref;b!==null&&(typeof b=="function"?b(null):b.current=null)}}switch(S&1038){case 2:Zy(T),T.flags&=-3;break;case 6:Zy(T),T.flags&=-3,rd(T.alternate,T);break;case 1024:T.flags&=-1025;break;case 1028:T.flags&=-1025,rd(T.alternate,T);break;case 4:rd(T.alternate,T);break;case 8:a=T,Xy(s,a);var E=a.alternate;Gy(a),E!==null&&Gy(E)}T=T.nextEffect}}catch(C){if(T===null)throw Error(A(330));Nn(T,C),T=T.nextEffect}while(T!==null);if(b=xc,k=Dg(),S=b.focusedElem,s=b.selectionRange,k!==S&&S&&S.ownerDocument&&Mg(S.ownerDocument.documentElement,S)){for(s!==null&&wc(S)&&(k=s.start,b=s.end,b===void 0&&(b=k),"selectionStart"in S?(S.selectionStart=k,S.selectionEnd=Math.min(b,S.value.length)):(b=(k=S.ownerDocument||document)&&k.defaultView||window,b.getSelection&&(b=b.getSelection(),a=S.textContent.length,E=Math.min(s.start,a),s=s.end===void 0?E:Math.min(s.end,a),!b.extend&&E>s&&(a=s,s=E,E=a),a=Rg(S,E),i=Rg(S,s),a&&i&&(b.rangeCount!==1||b.anchorNode!==a.node||b.anchorOffset!==a.offset||b.focusNode!==i.node||b.focusOffset!==i.offset)&&(k=k.createRange(),k.setStart(a.node,a.offset),b.removeAllRanges(),E>s?(b.addRange(k),b.extend(i.node,i.offset)):(k.setEnd(i.node,i.offset),b.addRange(k)))))),k=[],b=S;b=b.parentNode;)b.nodeType===1&&k.push({element:b,left:b.scrollLeft,top:b.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<k.length;S++)b=k[S],b.element.scrollLeft=b.left,b.element.scrollTop=b.top}Gs=!!bc,xc=bc=null,t.current=n,T=o;do try{for(S=t;T!==null;){var v=T.flags;if(v&36&&$$(S,T.alternate,T),v&128){k=void 0;var $=T.ref;if($!==null){var R=T.stateNode;switch(T.tag){case 5:k=R;break;default:k=R}typeof $=="function"?$(k):$.current=k}}T=T.nextEffect}}catch(C){if(T===null)throw Error(A(330));Nn(T,C),T=T.nextEffect}while(T!==null);T=null,m$(),z=r}else t.current=n;if(xn)xn=!1,Ai=t,Ri=e;else for(T=o;T!==null;)e=T.nextEffect,T.nextEffect=null,T.flags&8&&(v=T,v.sibling=null,v.stateNode=null),T=e;if(o=t.pendingLanes,o===0&&(Nt=null),o===1?t===pd?Mi++:(Mi=0,pd=t):Mi=0,n=n.stateNode,to&&typeof to.onCommitFiberRoot=="function")try{to.onCommitFiberRoot(Oc,n,void 0,(n.current.flags&64)===64)}catch{}if(lt(t,je()),Aa)throw Aa=!1,t=dd,dd=null,t;return z&8||xt(),null}function M$(){for(;T!==null;){var t=T.alternate;Da||Di===null||(T.flags&8?Zh(T,Di)&&(Da=!0):T.tag===13&&C$(t,T)&&Zh(T,Di)&&(Da=!0));var e=T.flags;e&256&&x$(t,T),!(e&512)||xn||(xn=!0,hi(97,function(){return En(),null})),T=T.nextEffect}}function En(){if(Ri!==90){var t=97<Ri?97:Ri;return Ri=90,no(t,T$)}return!1}function D$(t,e){md.push(e,t),xn||(xn=!0,hi(97,function(){return En(),null}))}function l0(t,e){fd.push(e,t),xn||(xn=!0,hi(97,function(){return En(),null}))}function T$(){if(Ai===null)return!1;var t=Ai;if(Ai=null,z&48)throw Error(A(331));var e=z;z|=32;var n=fd;fd=[];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));Nn(i,l)}}for(n=md,md=[],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));Nn(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,xt(),!0}function u0(t,e,n){e=ed(n,e),e=_y(t,e,1),vn(t,e),e=Qe(),t=Ta(t,1),t!==null&&(qs(t,1,e),lt(t,e))}function Nn(t,e){if(t.tag===3)u0(t,t,e);else for(var n=t.return;n!==null;){if(n.tag===3){u0(n,t,e);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Nt===null||!Nt.has(o))){t=ed(e,t);var r=Yy(n,t,1);if(vn(n,r),r=Qe(),n=Ta(n,1),n!==null)qs(n,1,r),lt(n,r);else if(typeof o.componentDidCatch=="function"&&(Nt===null||!Nt.has(o)))try{o.componentDidCatch(e,t)}catch{}break}}n=n.return}}function j$(t,e,n){var o=t.pingCache;o!==null&&o.delete(e),e=Qe(),t.pingedLanes|=t.suspendedLanes&n,He===t&&(Ie&n)===n&&(Ne===4||Ne===3&&(Ie&62914560)===Ie&&500>je()-ud?ir(t,0):ad|=n),lt(t,e)}function P$(t,e){var n=t.stateNode;n!==null&&n.delete(e),e=0,e===0&&(e=t.mode,e&2?e&4?(Vt===0&&(Vt=tr),e=Bo(62914560&~Vt),e===0&&(e=4194304)):e=Go()===99?1:2:e=1),n=Qe(),t=Ta(t,e),t!==null&&(qs(t,e,n),lt(t,n))}var c0;c0=function(t,e,n){var o=e.lanes;if(t!==null)if(t.memoizedProps!==e.pendingProps||Je.current)yt=!0;else if(n&o)yt=!!(t.flags&16384);else{switch(yt=!1,e.tag){case 3:Py(e),Hc();break;case 5:gy(e);break;case 1:_e(e.type)&&la(e);break;case 4:zc(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?Iy(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 Hy(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,qc(t,e,n)}return Bt(t,e,n)}else yt=!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=qo(e,Te.current),Zo(e,n),r=Jc(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,_e(o)){var i=!0;la(e)}else i=!1;e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,Ic(e);var s=o.getDerivedStateFromProps;typeof s=="function"&&pa(e,o,s,t),r.updater=ha,e.stateNode=r,r._reactInternals=e,Lc(e,o,t,n),e=Qc(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=L$(r),t=gt(r,t),i){case 0:e=Gc(null,e,r,t,n);break e;case 1:e=jy(null,e,r,t,n);break e;case 11:e=Ry(null,e,r,t,n);break e;case 14:e=My(null,e,r,gt(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:gt(o,r),Gc(t,e,o,r,n);case 1:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:gt(o,r),jy(t,e,o,r,n);case 3:if(Py(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,ay(t,e),gi(e,o,null,n),o=e.memoizedState.element,o===r)Hc(),e=Bt(t,e,n);else{if(r=e.stateNode,(i=r.hydrate)&&(bn=_o(e.stateNode.containerInfo.firstChild),Ft=e,i=Ct=!0),i){if(t=r.mutableSourceEagerHydrationData,t!=null)for(r=0;r<t.length;r+=2)i=t[r],i._workInProgressVersionPrimary=t[r+1],er.push(i);for(n=hy(e,null,o,n),e.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else Ke(t,e,o,n),Hc();e=e.child}return e;case 5:return gy(e),t===null&&Bc(e),o=e.type,r=e.pendingProps,i=t!==null?t.memoizedProps:null,s=r.children,$c(o,r)?s=null:i!==null&&$c(o,i)&&(e.flags|=16),Ty(t,e),Ke(t,e,s,n),e.child;case 6:return t===null&&Bc(e),null;case 13:return Iy(t,e,n);case 4:return zc(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:gt(o,r),Ry(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&&!Je.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 u=l.firstContext;u!==null;){if(u.context===o&&u.observedBits&i){a.tag===1&&(u=kn(-1,n&-n),u.tag=2,vn(a,u)),a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),sy(a.return,n),l.lanes|=n;break}u=u.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,Zo(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=gt(r,e.pendingProps),i=gt(r.type,i),My(t,e,r,i,o,n);case 15:return Dy(t,e,e.type,e.pendingProps,o,n);case 17:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:gt(o,r),t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),e.tag=1,_e(o)?(t=!0,la(e)):t=!1,Zo(e,n),my(e,o,r),Lc(e,o,r,n),Qc(null,e,o,!0,t,n);case 19:return Hy(t,e,n);case 23:return qc(t,e,n);case 24:return qc(t,e,n)}throw Error(A(156,e.tag))};function I$(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 I$(t,e,n,o)}function yd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function L$(t){if(typeof t=="function")return yd(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Is)return 11;if(t===zs)return 14}return 2}function On(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")yd(t)&&(s=1);else if(typeof t=="string")s=5;else e:switch(t){case un:return sr(n.children,r,i,e);case Rh:s=8,r|=16;break;case Nu:s=8,r|=1;break;case Jr:return t=ut(12,n,e,r|8),t.elementType=Jr,t.type=Jr,t.lanes=i,t;case _r:return t=ut(13,n,e,r),t.type=_r,t.elementType=_r,t.lanes=i,t;case Ls:return t=ut(19,n,e,r),t.elementType=Ls,t.lanes=i,t;case Tu:return wd(n,r,i,e);case ju:return t=ut(24,n,e,r),t.elementType=ju,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Ou:s=10;break e;case Au:s=9;break e;case Is:s=11;break e;case zs:s=14;break e;case Ru:s=16,o=null;break e;case Mu: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 sr(t,e,n,o){return t=ut(7,t,o,e),t.lanes=n,t}function wd(t,e,n,o){return t=ut(23,t,o,e),t.elementType=Tu,t.lanes=n,t}function Sd(t,e,n){return t=ut(6,t,null,e),t.lanes=n,t}function kd(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 z$(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=sc(0),this.expirationTimes=sc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sc(0),this.mutableSourceEagerHydrationData=null}function F$(t,e,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Gn,key:o==null?null:""+o,children:t,containerInfo:e,implementation:n}}function Ia(t,e,n,o){var r=e.current,i=Qe(),s=$n(r);e:if(n){n=n._reactInternals;t:{if(Zn(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(_e(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(_e(l)){n=Gg(n,l,a);break e}}n=a}else n=wn;return e.context===null?e.context=n:e.pendingContext=n,e=kn(i,s),e.payload={element:t},o=o===void 0?null:o,o!==null&&(e.callback=o),vn(r,e),Cn(r,s,i),s}function vd(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 d0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function bd(t,e){d0(t,e),(t=t.alternate)&&d0(t,e)}function B$(){return null}function xd(t,e,n){var o=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new z$(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,Ic(e),t[Yo]=n.current,Fg(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}xd.prototype.render=function(t){Ia(t,this._internalRoot,null,null)},xd.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;Ia(null,t,null,function(){e[Yo]=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 H$(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 xd(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 u=vd(s);a.call(u)}}Ia(e,s,t,r)}else{if(i=n._reactRootContainer=H$(n,o),s=i._internalRoot,typeof r=="function"){var l=r;r=function(){var u=vd(s);l.call(u)}}o0(function(){Ia(e,s,t,r)})}return vd(s)}Xh=function(t){if(t.tag===13){var e=Qe();Cn(t,4,e),bd(t,4)}},ec=function(t){if(t.tag===13){var e=Qe();Cn(t,67108864,e),bd(t,67108864)}},eg=function(t){if(t.tag===13){var e=Qe(),n=$n(t);Cn(t,n,e),bd(t,n)}},tg=function(t,e){return e()},Ku=function(t,e,n){switch(e){case"input":if(zu(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));Th(o),zu(o,r)}}}break;case"textarea":zh(t,n);break;case"select":e=n.value,e!=null&&Po(t,!!n.multiple,e,!1)}},Wu=n0,Kh=function(t,e,n,o,r){var i=z;z|=4;try{return no(98,t.bind(null,e,n,o,r))}finally{z=i,z===0&&(or(),xt())}},qu=function(){!(z&49)&&(N$(),En())},Wh=function(t,e){var n=z;z|=2;try{return t(e)}finally{z=n,z===0&&(or(),xt())}};function m0(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ji(e))throw Error(A(200));return F$(t,e,null,n)}var V$={Events:[pi,Ko,sa,_h,Yh,En,{current:!1}]},Pi={findFiberByHostInstance:Xn,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},U$={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:qn.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Qh(t),t===null?null:t.stateNode},findFiberByHostInstance:Pi.findFiberByHostInstance||B$,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{Oc=za.inject(U$),to=za}catch{}}rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V$,rt.createPortal=m0,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(A(188)):Error(A(268,Object.keys(t)));return t=Qh(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 no(99,t.bind(null,e))}finally{z=n,xt()}},rt.hydrate=function(t,e,n){if(!ji(e))throw Error(A(200));return La(null,t,e,!0,n)},rt.render=function(t,e,n){if(!ji(e))throw Error(A(200));return La(null,t,e,!1,n)},rt.unmountComponentAtNode=function(t){if(!ji(t))throw Error(A(40));return t._reactRootContainer?(o0(function(){La(null,null,t,!1,function(){t._reactRootContainer=null,t[Yo]=null})}),!0):!1},rt.unstable_batchedUpdates=n0,rt.unstable_createPortal=function(t,e){return m0(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(A(200));if(t==null||t._reactInternals===void 0)throw Error(A(38));return La(t,e,n,!1,o)},rt.version="17.0.2";function f0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f0)}catch(t){console.error(t)}}f0(),xh.exports=rt;var $d=xh.exports;const p0=Ze($d);function J$(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var h0={exports:{}},Cd={};/**
130
130
  * @license React
131
131
  * use-sync-external-store-shim.production.min.js
132
132
  *
@@ -134,7 +134,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
134
134
  *
135
135
  * This source code is licensed under the MIT license found in the
136
136
  * LICENSE file in the root directory of this source tree.
137
- */var h0;function J$(){if(h0)return Cd;h0=1;var t=U;function e(d,m){return d===m&&(d!==0||1/d===1/m)||d!==d&&m!==m}var n=typeof Object.is=="function"?Object.is:e,o=t.useState,r=t.useEffect,i=t.useLayoutEffect,s=t.useDebugValue;function a(d,m){var f=m(),p=o({inst:{value:f,getSnapshot:m}}),y=p[0].inst,h=p[1];return i(function(){y.value=f,y.getSnapshot=m,l(y)&&h({inst:y})},[d,f,m]),r(function(){return l(y)&&h({inst:y}),d(function(){l(y)&&h({inst:y})})},[d]),s(f),f}function l(d){var m=d.getSnapshot;d=d.value;try{var f=m();return!n(d,f)}catch{return!0}}function u(d,m){return m()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return Cd.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:c,Cd}p0.exports=J$();var Ed=p0.exports;const _$=(...t)=>e=>{t.forEach(n=>{typeof n=="function"?n(e):n&&(n.current=e)})},Y$=({contentComponent:t})=>{const e=Ed.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return U.createElement(U.Fragment,null,Object.values(e))};function K$(){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]:f0.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 W$ extends U.Component{constructor(e){var n;super(e),this.editorContentRef=U.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=K$(),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 U.createElement(U.Fragment,null,U.createElement("div",{ref:_$(n,this.editorContentRef),...o}),(e==null?void 0:e.contentComponent)&&U.createElement(Y$,{contentComponent:e.contentComponent}))}}const q$=x.forwardRef((t,e)=>{const n=U.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[t.editor]);return U.createElement(W$,{key:n,innerRef:e,...t})}),G$=U.memo(q$);var Q$=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},Z$=U$(Q$),g0={exports:{}},Nd={};/**
137
+ */var g0;function _$(){if(g0)return Cd;g0=1;var t=U;function e(d,m){return d===m&&(d!==0||1/d===1/m)||d!==d&&m!==m}var n=typeof Object.is=="function"?Object.is:e,o=t.useState,r=t.useEffect,i=t.useLayoutEffect,s=t.useDebugValue;function a(d,m){var f=m(),p=o({inst:{value:f,getSnapshot:m}}),y=p[0].inst,h=p[1];return i(function(){y.value=f,y.getSnapshot=m,l(y)&&h({inst:y})},[d,f,m]),r(function(){return l(y)&&h({inst:y}),d(function(){l(y)&&h({inst:y})})},[d]),s(f),f}function l(d){var m=d.getSnapshot;d=d.value;try{var f=m();return!n(d,f)}catch{return!0}}function u(d,m){return m()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return Cd.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:c,Cd}h0.exports=_$();var Ed=h0.exports;const Y$=(...t)=>e=>{t.forEach(n=>{typeof n=="function"?n(e):n&&(n.current=e)})},K$=({contentComponent:t})=>{const e=Ed.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return U.createElement(U.Fragment,null,Object.values(e))};function W$(){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]:p0.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 q$ extends U.Component{constructor(e){var n;super(e),this.editorContentRef=U.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=W$(),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 U.createElement(U.Fragment,null,U.createElement("div",{ref:Y$(n,this.editorContentRef),...o}),(e==null?void 0:e.contentComponent)&&U.createElement(K$,{contentComponent:e.contentComponent}))}}const G$=x.forwardRef((t,e)=>{const n=U.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[t.editor]);return U.createElement(q$,{key:n,innerRef:e,...t})}),Q$=U.memo(G$);var Z$=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},X$=J$(Z$),y0={exports:{}},Nd={};/**
138
138
  * @license React
139
139
  * use-sync-external-store-shim/with-selector.production.min.js
140
140
  *
@@ -142,15 +142,15 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
142
142
  *
143
143
  * This source code is licensed under the MIT license found in the
144
144
  * LICENSE file in the root directory of this source tree.
145
- */var y0;function X$(){if(y0)return Nd;y0=1;var t=U,e=Ed;function n(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}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 Nd.useSyncExternalStoreWithSelector=function(u,c,d,m,f){var p=i(null);if(p.current===null){var y={hasValue:!1,value:null};p.current=y}else y=p.current;p=a(function(){function g(v){if(!w){if(w=!0,k=v,v=m(v),f!==void 0&&y.hasValue){var $=y.value;if(f($,v))return b=$}return b=v}if($=b,o(k,v))return $;var R=m(v);return f!==void 0&&f($,R)?$:(k=v,b=R)}var w=!1,k,b,E=d===void 0?null:d;return[function(){return g(c())},E===null?void 0:function(){return g(E())}]},[c,d,m,f]);var h=r(u,p[0],p[1]);return s(function(){y.hasValue=!0,y.value=h},[h]),l(h),h},Nd}g0.exports=X$();var eC=g0.exports;class tC{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 nC(t){var e;const[n]=x.useState(()=>new tC(t.editor)),o=eC.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,t.selector,(e=t.equalityFn)!==null&&e!==void 0?e:Z$);return x.useEffect(()=>n.watch(t.editor),[t.editor,n]),x.useDebugValue(o),o}const oC=!1,Od=typeof window>"u",rC=Od||!!(typeof window<"u"&&window.next);class iC{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 Od||rC?null:this.createEditor();if(this.options.current.immediatelyRender&&Od&&oC)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 _b(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 Ad(t={},e=[]){const n=x.useRef(t);n.current=t;const[o]=x.useState(()=>new iC(n)),r=Ed.useSyncExternalStore(o.subscribe,o.getEditor,o.getServerSnapshot);return x.useDebugValue(r),x.useEffect(o.onRender(e)),nC({editor:r,selector:({transactionNumber:i})=>t.shouldRerenderOnTransaction===!1?null:t.immediatelyRender&&i===0?0:i+1}),r}x.createContext({editor:null}).Consumer;const sC=x.createContext({onDragStart:void 0}),aC=()=>x.useContext(sC);U.forwardRef((t,e)=>{const{onDragStart:n}=aC(),o=t.as||"div";return U.createElement(o,{...t,ref:e,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...t.style}})});const Rd=t=>x.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},x.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"},x.createElement("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"0.6s",repeatCount:"indefinite"})));var lC=Object.defineProperty,uC=(t,e,n)=>e in t?lC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Md=(t,e,n)=>(uC(t,typeof e!="symbol"?e+"":e,n),n);let cC=class{constructor(){Md(this,"current",this.detect()),Md(this,"handoffState","pending"),Md(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 cC,Pi=(t,e)=>{Fa.isServer?x.useEffect(t,e):x.useLayoutEffect(t,e)};function ar(t){let e=x.useRef(t);return Pi(()=>{e.current=t},[t]),e}let Ut=function(t){let e=ar(t);return U.useCallback((...n)=>e.current(...n),[e])};function dC(t){typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t).catch(e=>setTimeout(()=>{throw e}))}function Ii(){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 dC(()=>{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=Ii();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 w0(){let[t]=x.useState(Ii);return x.useEffect(()=>()=>t.dispose(),[t]),t}function mC(){let t=typeof document>"u";return"useSyncExternalStore"in Am?(e=>e.useSyncExternalStore)(Am)(()=>()=>{},()=>!1,()=>!t):!1}function S0(){let t=mC(),[e,n]=x.useState(Fa.isHandoffComplete);return e&&Fa.isHandoffComplete===!1&&n(!1),x.useEffect(()=>{e!==!0&&n(!0)},[e]),x.useEffect(()=>Fa.handoff(),[]),t?!1:e}function Ot(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,Ot),o}let fC=Symbol();function k0(...t){let e=x.useRef(t);x.useEffect(()=>{e.current=t},[t]);let n=Ut(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[fC]))?void 0:n}function Ba(...t){return Array.from(new Set(t.flatMap(e=>typeof e=="string"?e.split(" "):[]))).filter(Boolean).join(" ")}var v0=(t=>(t[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t))(v0||{}),An=(t=>(t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden",t))(An||{});function b0({ourProps:t,theirProps:e,slot:n,defaultTag:o,features:r,visible:i=!0,name:s,mergeRefs:a}){a=a??pC;let l=x0(e,t);if(i)return Ha(l,n,o,s,a);let u=r??0;if(u&2){let{static:c=!1,...d}=l;if(c)return Ha(d,n,o,s,a)}if(u&1){let{unmount:c=!0,...d}=l;return Ot(c?0:1,{0(){return null},1(){return Ha({...d,hidden:!0,style:{display:"none"}},n,o,s,a)}})}return Ha(l,n,o,s,a)}function Ha(t,e={},n,o,r){let{as:i=n,children:s,refName:a="ref",...l}=Td(t,["unmount","static"]),u=t.ref!==void 0?{[a]:t.ref}:{},c=typeof s=="function"?s(e):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(e));let d={};if(e){let m=!1,f=[];for(let[p,y]of Object.entries(e))typeof y=="boolean"&&(m=!0),y===!0&&f.push(p);m&&(d["data-headlessui-state"]=f.join(" "))}if(i===x.Fragment&&Object.keys($0(l)).length>0){if(!x.isValidElement(c)||Array.isArray(c)&&c.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(`
145
+ */var w0;function eC(){if(w0)return Nd;w0=1;var t=U,e=Ed;function n(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}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 Nd.useSyncExternalStoreWithSelector=function(u,c,d,m,f){var p=i(null);if(p.current===null){var y={hasValue:!1,value:null};p.current=y}else y=p.current;p=a(function(){function g(v){if(!S){if(S=!0,k=v,v=m(v),f!==void 0&&y.hasValue){var $=y.value;if(f($,v))return b=$}return b=v}if($=b,o(k,v))return $;var R=m(v);return f!==void 0&&f($,R)?$:(k=v,b=R)}var S=!1,k,b,E=d===void 0?null:d;return[function(){return g(c())},E===null?void 0:function(){return g(E())}]},[c,d,m,f]);var h=r(u,p[0],p[1]);return s(function(){y.hasValue=!0,y.value=h},[h]),l(h),h},Nd}y0.exports=eC();var tC=y0.exports;class nC{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 oC(t){var e;const[n]=x.useState(()=>new nC(t.editor)),o=tC.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,t.selector,(e=t.equalityFn)!==null&&e!==void 0?e:X$);return x.useEffect(()=>n.watch(t.editor),[t.editor,n]),x.useDebugValue(o),o}const rC=!1,Od=typeof window>"u",iC=Od||!!(typeof window<"u"&&window.next);class sC{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 Od||iC?null:this.createEditor();if(this.options.current.immediatelyRender&&Od&&rC)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 Yb(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 Ad(t={},e=[]){const n=x.useRef(t);n.current=t;const[o]=x.useState(()=>new sC(n)),r=Ed.useSyncExternalStore(o.subscribe,o.getEditor,o.getServerSnapshot);return x.useDebugValue(r),x.useEffect(o.onRender(e)),oC({editor:r,selector:({transactionNumber:i})=>t.shouldRerenderOnTransaction===!1?null:t.immediatelyRender&&i===0?0:i+1}),r}x.createContext({editor:null}).Consumer;const aC=x.createContext({onDragStart:void 0}),lC=()=>x.useContext(aC);U.forwardRef((t,e)=>{const{onDragStart:n}=lC(),o=t.as||"div";return U.createElement(o,{...t,ref:e,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...t.style}})});const Rd=t=>x.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},x.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"},x.createElement("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"0.6s",repeatCount:"indefinite"})));var uC=Object.defineProperty,cC=(t,e,n)=>e in t?uC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Md=(t,e,n)=>(cC(t,typeof e!="symbol"?e+"":e,n),n);let dC=class{constructor(){Md(this,"current",this.detect()),Md(this,"handoffState","pending"),Md(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 dC,Ii=(t,e)=>{Fa.isServer?x.useEffect(t,e):x.useLayoutEffect(t,e)};function ar(t){let e=x.useRef(t);return Ii(()=>{e.current=t},[t]),e}let Ut=function(t){let e=ar(t);return U.useCallback((...n)=>e.current(...n),[e])};function mC(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 mC(()=>{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]=x.useState(Li);return x.useEffect(()=>()=>t.dispose(),[t]),t}function fC(){let t=typeof document>"u";return"useSyncExternalStore"in Rm?(e=>e.useSyncExternalStore)(Rm)(()=>()=>{},()=>!1,()=>!t):!1}function k0(){let t=fC(),[e,n]=x.useState(Fa.isHandoffComplete);return e&&Fa.isHandoffComplete===!1&&n(!1),x.useEffect(()=>{e!==!0&&n(!0)},[e]),x.useEffect(()=>Fa.handoff(),[]),t?!1:e}function Ot(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,Ot),o}let pC=Symbol();function v0(...t){let e=x.useRef(t);x.useEffect(()=>{e.current=t},[t]);let n=Ut(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[pC]))?void 0:n}function Ba(...t){return Array.from(new Set(t.flatMap(e=>typeof e=="string"?e.split(" "):[]))).filter(Boolean).join(" ")}var b0=(t=>(t[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t))(b0||{}),An=(t=>(t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden",t))(An||{});function x0({ourProps:t,theirProps:e,slot:n,defaultTag:o,features:r,visible:i=!0,name:s,mergeRefs:a}){a=a??hC;let l=$0(e,t);if(i)return Ha(l,n,o,s,a);let u=r??0;if(u&2){let{static:c=!1,...d}=l;if(c)return Ha(d,n,o,s,a)}if(u&1){let{unmount:c=!0,...d}=l;return Ot(c?0:1,{0(){return null},1(){return Ha({...d,hidden:!0,style:{display:"none"}},n,o,s,a)}})}return Ha(l,n,o,s,a)}function Ha(t,e={},n,o,r){let{as:i=n,children:s,refName:a="ref",...l}=Td(t,["unmount","static"]),u=t.ref!==void 0?{[a]:t.ref}:{},c=typeof s=="function"?s(e):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(e));let d={};if(e){let m=!1,f=[];for(let[p,y]of Object.entries(e))typeof y=="boolean"&&(m=!0),y===!0&&f.push(p);m&&(d["data-headlessui-state"]=f.join(" "))}if(i===x.Fragment&&Object.keys(C0(l)).length>0){if(!x.isValidElement(c)||Array.isArray(c)&&c.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
146
  `),"","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(`
147
147
  `)].join(`
148
- `));let m=c.props,f=typeof(m==null?void 0:m.className)=="function"?(...y)=>Ba(m==null?void 0:m.className(...y),l.className):Ba(m==null?void 0:m.className,l.className),p=f?{className:f}:{};return x.cloneElement(c,Object.assign({},x0(c.props,$0(Td(l,["ref"]))),d,u,{ref:r(c.ref,u.ref)},p))}return x.createElement(i,Object.assign({},Td(l,["ref"]),i!==x.Fragment&&u,i!==x.Fragment&&d),c)}function pC(...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 x0(...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 Dd(t){var e;return Object.assign(x.forwardRef(t),{displayName:(e=t.displayName)!=null?e:t.name})}function $0(t){let e=Object.assign({},t);for(let n in e)e[n]===void 0&&delete e[n];return e}function Td(t,e=[]){let n=Object.assign({},t);for(let o of e)o in n&&delete n[o];return n}let jd=x.createContext(null);jd.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 C0(){return x.useContext(jd)}function hC({value:t,children:e}){return U.createElement(jd.Provider,{value:t},e)}function Pd(){let t=x.useRef(!1);return Pi(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function gC(t=0){let[e,n]=x.useState(t),o=Pd(),r=x.useCallback(l=>{o.current&&n(u=>u|l)},[e,o]),i=x.useCallback(l=>!!(e&l),[e]),s=x.useCallback(l=>{o.current&&n(u=>u&~l)},[n,o]),a=x.useCallback(l=>{o.current&&n(u=>u^l)},[n]);return{flags:e,addFlag:r,hasFlag:i,removeFlag:s,toggleFlag:a}}function yC(t){let e={called:!1};return(...n)=>{if(!e.called)return e.called=!0,t(...n)}}function Id(t,...e){t&&e.length>0&&t.classList.add(...e)}function Ld(t,...e){t&&e.length>0&&t.classList.remove(...e)}function wC(t,e){let n=Ii();if(!t)return n.dispose;let{transitionDuration:o,transitionDelay:r}=getComputedStyle(t),[i,s]=[o,r].map(l=>{let[u=0]=l.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,d)=>d-c);return u}),a=i+s;if(a!==0){n.group(u=>{u.setTimeout(()=>{e(),u.dispose()},a),u.addEventListener(t,"transitionrun",c=>{c.target===c.currentTarget&&u.dispose()})});let l=n.addEventListener(t,"transitionend",u=>{u.target===u.currentTarget&&(e(),l())})}else e();return n.add(()=>e()),n.dispose}function SC(t,e,n,o){let r=n?"enter":"leave",i=Ii(),s=o!==void 0?yC(o):()=>{};r==="enter"&&(t.removeAttribute("hidden"),t.style.display="");let a=Ot(r,{enter:()=>e.enter,leave:()=>e.leave}),l=Ot(r,{enter:()=>e.enterTo,leave:()=>e.leaveTo}),u=Ot(r,{enter:()=>e.enterFrom,leave:()=>e.leaveFrom});return Ld(t,...e.base,...e.enter,...e.enterTo,...e.enterFrom,...e.leave,...e.leaveFrom,...e.leaveTo,...e.entered),Id(t,...e.base,...a,...u),i.nextFrame(()=>{Ld(t,...e.base,...a,...u),Id(t,...e.base,...a,...l),wC(t,()=>(Ld(t,...e.base,...a),Id(t,...e.base,...e.entered),s()))}),i.dispose}function kC({immediate:t,container:e,direction:n,classes:o,onStart:r,onStop:i}){let s=Pd(),a=w0(),l=ar(n);Pi(()=>{t&&(l.current="enter")},[t]),Pi(()=>{let u=Ii();a.add(u.dispose);let c=e.current;if(c&&l.current!=="idle"&&s.current)return u.dispose(),r.current(l.current),u.add(SC(c,o.current,l.current==="enter",()=>{u.dispose(),i.current(l.current)})),u.dispose},[n])}function Rn(t=""){return t.split(/\s+/).filter(e=>e.length>1)}let Va=x.createContext(null);Va.displayName="TransitionContext";var vC=(t=>(t.Visible="visible",t.Hidden="hidden",t))(vC||{});function bC(){let t=x.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 xC(){let t=x.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=x.createContext(null);Ua.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 E0(t,e){let n=ar(t),o=x.useRef([]),r=Pd(),i=w0(),s=Ut((f,p=An.Hidden)=>{let y=o.current.findIndex(({el:h})=>h===f);y!==-1&&(Ot(p,{[An.Unmount](){o.current.splice(y,1)},[An.Hidden](){o.current[y].state="hidden"}}),i.microTask(()=>{var h;!Ja(o)&&r.current&&((h=n.current)==null||h.call(n))}))}),a=Ut(f=>{let p=o.current.find(({el:y})=>y===f);return p?p.state!=="visible"&&(p.state="visible"):o.current.push({el:f,state:"visible"}),()=>s(f,An.Unmount)}),l=x.useRef([]),u=x.useRef(Promise.resolve()),c=x.useRef({enter:[],leave:[],idle:[]}),d=Ut((f,p,y)=>{l.current.splice(0),e&&(e.chains.current[p]=e.chains.current[p].filter(([h])=>h!==f)),e==null||e.chains.current[p].push([f,new Promise(h=>{l.current.push(h)})]),e==null||e.chains.current[p].push([f,new Promise(h=>{Promise.all(c.current[p].map(([g,w])=>w)).then(()=>h())})]),p==="enter"?u.current=u.current.then(()=>e==null?void 0:e.wait.current).then(()=>y(p)):y(p)}),m=Ut((f,p,y)=>{Promise.all(c.current[p].splice(0).map(([h,g])=>g)).then(()=>{var h;(h=l.current.shift())==null||h()}).then(()=>y(p))});return x.useMemo(()=>({children:o,register:a,unregister:s,onStart:d,onStop:m,wait:u,chains:c}),[a,s,o,d,m,c,u])}function $C(){}let CC=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function N0(t){var e;let n={};for(let o of CC)n[o]=(e=t[o])!=null?e:$C;return n}function EC(t){let e=x.useRef(N0(t));return x.useEffect(()=>{e.current=N0(t)},[t]),e}let NC="div",O0=v0.RenderStrategy;function OC(t,e){var n,o;let{beforeEnter:r,afterEnter:i,beforeLeave:s,afterLeave:a,enter:l,enterFrom:u,enterTo:c,entered:d,leave:m,leaveFrom:f,leaveTo:p,...y}=t,h=x.useRef(null),g=k0(h,e),w=(n=y.unmount)==null||n?An.Unmount:An.Hidden,{show:k,appear:b,initial:E}=bC(),[v,$]=x.useState(k?"visible":"hidden"),R=xC(),{register:C,unregister:_}=R;x.useEffect(()=>C(h),[C,h]),x.useEffect(()=>{if(w===An.Hidden&&h.current){if(k&&v!=="visible"){$("visible");return}return Ot(v,{hidden:()=>_(h),visible:()=>C(h)})}},[v,h,C,_,k,w]);let se=ar({base:Rn(y.className),enter:Rn(l),enterFrom:Rn(u),enterTo:Rn(c),entered:Rn(d),leave:Rn(m),leaveFrom:Rn(f),leaveTo:Rn(p)}),X=EC({beforeEnter:r,afterEnter:i,beforeLeave:s,afterLeave:a}),G=S0();x.useEffect(()=>{if(G&&v==="visible"&&h.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[h,v,G]);let Oe=E&&!b,le=b&&k&&E,pe=(()=>!G||Oe?"idle":k?"enter":"leave")(),de=gC(0),Q=Ut(W=>Ot(W,{enter:()=>{de.addFlag(Jt.Opening),X.current.beforeEnter()},leave:()=>{de.addFlag(Jt.Closing),X.current.beforeLeave()},idle:()=>{}})),ue=Ut(W=>Ot(W,{enter:()=>{de.removeFlag(Jt.Opening),X.current.afterEnter()},leave:()=>{de.removeFlag(Jt.Closing),X.current.afterLeave()},idle:()=>{}})),ve=E0(()=>{$("hidden"),_(h)},R),M=x.useRef(!1);kC({immediate:le,container:h,classes:se,direction:pe,onStart:ar(W=>{M.current=!0,ve.onStart(h,W,Q)}),onStop:ar(W=>{M.current=!1,ve.onStop(h,W,ue),W==="leave"&&!Ja(ve)&&($("hidden"),_(h))})});let I=y,B={ref:g};return le?I={...I,className:Ba(y.className,...se.current.enter,...se.current.enterFrom)}:M.current&&(I.className=Ba(y.className,(o=h.current)==null?void 0:o.className),I.className===""&&delete I.className),U.createElement(Ua.Provider,{value:ve},U.createElement(hC,{value:Ot(v,{visible:Jt.Open,hidden:Jt.Closed})|de.flags},b0({ourProps:B,theirProps:I,defaultTag:NC,features:O0,visible:v==="visible",name:"Transition.Child"})))}function AC(t,e){let{show:n,appear:o=!1,unmount:r=!0,...i}=t,s=x.useRef(null),a=k0(s,e);S0();let l=C0();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[u,c]=x.useState(n?"visible":"hidden"),d=E0(()=>{c("hidden")}),[m,f]=x.useState(!0),p=x.useRef([n]);Pi(()=>{m!==!1&&p.current[p.current.length-1]!==n&&(p.current.push(n),f(!1))},[p,n]);let y=x.useMemo(()=>({show:n,appear:o,initial:m}),[n,o,m]);x.useEffect(()=>{if(n)c("visible");else if(!Ja(d))c("hidden");else{let k=s.current;if(!k)return;let b=k.getBoundingClientRect();b.x===0&&b.y===0&&b.width===0&&b.height===0&&c("hidden")}},[n,d]);let h={unmount:r},g=Ut(()=>{var k;m&&f(!1),(k=t.beforeEnter)==null||k.call(t)}),w=Ut(()=>{var k;m&&f(!1),(k=t.beforeLeave)==null||k.call(t)});return U.createElement(Ua.Provider,{value:d},U.createElement(Va.Provider,{value:y},b0({ourProps:{...h,as:x.Fragment,children:U.createElement(A0,{ref:a,...h,...i,beforeEnter:g,beforeLeave:w})},theirProps:{},defaultTag:x.Fragment,features:O0,visible:u==="visible",name:"Transition"})))}function RC(t,e){let n=x.useContext(Va)!==null,o=C0()!==null;return U.createElement(U.Fragment,null,!n&&o?U.createElement(zd,{ref:e,...t}):U.createElement(A0,{ref:e,...t}))}let zd=Dd(AC),A0=Dd(OC),MC=Dd(RC),lo=Object.assign(zd,{Child:MC,Root:zd});function DC(t,e){const n=x.useRef(null),o=x.useCallback(r=>{n.current&&e&&e(n.current),r&&t&&t(r),n.current=r},[t,e]);return[n,o]}function TC(t,e){const n=x.useRef(0);x.useEffect(()=>{if(n.current>=2)return t();n.current+=1},e)}function jC(t){const{popup:e}=H();return(e==null?void 0:e.type)===t}function PC(t){const{t:e}=H();return x.useMemo(()=>J1(t,e),[t])}const IC=({submit:t,progress:e,setProgress:n,close:o,reduced:r,isOpen:i,editor:s,submitText:a,submitSize:l})=>{const u=qi(),{t:c}=H();let d=null;const[m,f]=x.useState(!1);x.useEffect(()=>{if(s){const h=()=>{f(!s.isEmpty)};return s.on("update",h),s.on("transaction",h),h(),()=>{s.off("update",h),s.off("transaction",h)}}},[s]),e==="sending"&&(a=null,d=S.jsx(Rd,{className:"h-[24px] w-[24px] fill-white dark:fill-black"}));const p=x.useCallback(h=>{if(s!=null&&s.isFocused){h.stopPropagation();return}},[s]),y=x.useCallback(async()=>{if(!(!s||s.isEmpty)){n("sending");try{await t({html:s.getHTML()})}catch{n("error");return}return o?o():(n("sent"),s.chain().clearContent().blur().run()),!1}},[n,s,t,o]);return x.useEffect(()=>{const h=g=>{if(g.metaKey||g.ctrlKey){g.key==="Enter"&&(s!=null&&s.isFocused)&&(y(),s==null||s.commands.blur());return}if(g.key==="Escape"){s!=null&&s.isFocused&&(o?o():s==null||s.commands.blur());return}};return window.addEventListener("keydown",h,{passive:!0}),()=>{window.removeEventListener("keydown",h,{passive:!0})}},[s,o,y]),S.jsxs("div",{className:`relative w-full pl-[40px] transition-[padding] delay-100 duration-150 sm:pl-[44px] ${r&&"pl-0"} ${i&&"pl-[1px] pt-[48px] sm:pl-[44px] sm:pt-[40px]"}`,children:[S.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 ${i?"cursor-text":"cursor-pointer"}
149
- `,"data-testid":"form-editor",children:S.jsx(G$,{editor:s,onMouseDown:p,onTouchStart:p})}),S.jsxs("div",{className:"absolute bottom-1 right-1 flex space-x-4 transition-[opacity] duration-150 sm:bottom-2 sm:right-2",children:[o&&S.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:o,children:c("Cancel")}),u.commentImprovements?S.jsxs("button",{className:`flex w-auto items-center justify-center ${l==="medium"&&"sm:min-w-[100px]"} ${l==="small"&&"sm:min-w-[64px]"} h-[40px] rounded-md px-3 py-2 text-center font-sans text-base font-medium outline-0 transition-all duration-200 sm:text-sm ${m?"bg-[var(--gh-accent-color)] text-white hover:brightness-105":"bg-black/5 text-neutral-900 dark:bg-white/15 dark:text-neutral-300"}`,"data-testid":"submit-form-button",type:"button",onClick:y,children:[S.jsx("span",{children:d}),a&&S.jsx("span",{children:a})]}):S.jsxs("button",{className:`flex w-auto items-center justify-center ${l==="medium"&&"sm:min-w-[100px]"} ${l==="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:y,children:[S.jsx("span",{children:d}),a&&S.jsx("span",{children:a})]})]})]})},LC=({show:t,name:e,expertise:n,editName:o,editExpertise:r})=>S.jsx(lo,{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:S.jsxs("div",{className:"flex flex-wrap",children:[S.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:o,children:e||"Anonymous"}),S.jsx("div",{className:"flex items-baseline justify-start",children:S.jsxs("button",{className:`group flex items-center justify-start whitespace-nowrap text-left font-sans text-base leading-snug text-black/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:r,children:[S.jsxs("span",{children:[S.jsx("span",{className:"mx-[0.3em] hidden sm:inline",children:"·"}),n||"Add your expertise"]}),n&&S.jsx(Q1,{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"})]})})]})}),R0=({comment:t,submit:e,submitText:n,submitSize:o,close:r,editor:i,reduced:s,isOpen:a})=>{var E,v;const{member:l,dispatchAction:u}=H(),c=jC("addDetailsPopup"),[d,m]=x.useState("default"),f=x.useRef(null),p=(l==null?void 0:l.name)??((E=t==null?void 0:t.member)==null?void 0:E.name),y=(l==null?void 0:l.expertise)??((v=t==null?void 0:t.member)==null?void 0:v.expertise);(d==="sending"||p&&c)&&(a=!0);const h=$=>{if(i!=null&&i.isFocused){$.preventDefault();return}},g=x.useCallback($=>{var R;(R=i==null?void 0:i.commands)==null||R.blur(),u("openPopup",{type:"addDetailsPopup",expertiseAutofocus:$.expertiseAutofocus??!1,callback:function(C){!i||!f.current||C&&(i.setEditable(!0),i.commands.focus())}})},[i,u,f]),w=x.useCallback(()=>{g({expertiseAutofocus:!1})},[g]),k=x.useCallback(()=>{g({expertiseAutofocus:!0})},[g]),b=x.useCallback(()=>{if(i&&!i.isFocused){if(!p){w();return}i.commands.focus()}},[i,w,p]);return x.useEffect(()=>{i&&i.setEditable(!!p&&d!=="sending")},[i,p,d]),S.jsx("form",{ref:f,className:`-mx-3 mb-7 mt-[-10px] rounded-md transition duration-200 ${a?"cursor-default":"cursor-pointer"}`,"data-testid":"form",onClick:b,onMouseDown:h,onTouchStart:h,children:S.jsxs("div",{className:"relative w-full",children:[S.jsx("div",{className:"pr-[1px] font-sans leading-normal dark:text-neutral-300",children:S.jsx(IC,{close:r,editor:i,isOpen:a,progress:d,reduced:s,setProgress:m,submit:e,submitSize:o,submitText:n})}),S.jsxs("div",{className:"absolute left-0 top-1 flex h-11 w-full items-start justify-start sm:h-12",children:[S.jsx("div",{className:"pointer-events-none mr-2 grow-0 sm:mr-3",children:S.jsx(Hm,{comment:t})}),S.jsx("div",{className:"grow-1 mt-0.5 w-full",children:S.jsx(LC,{editExpertise:k,editName:w,expertise:y,name:p,show:a})})]})]})})},M0=({editor:t,submit:e,close:n,closeIfNotChanged:o,submitText:r,submitSize:i})=>{const{dispatchAction:s,secundaryFormCount:a}=H();x.useEffect(()=>(s("increaseSecundaryFormCount",{}),()=>{s("decreaseSecundaryFormCount",{})}),[s]),TC(()=>{a>1&&o()},[a]);const l=zm();return S.jsx("div",{className:"mt-[-16px] pr-3",children:S.jsx(R0,{close:n,editor:t,isOpen:!0,reduced:l,submit:e,submitSize:i,submitText:r})})},zC=/^\s*>\s$/,FC=ln.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[Yb({find:zC,type:this.type})]}}),BC=ln.create({name:"doc",topNode:!0,content:"block+"}),HC=ln.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`
150
- `},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:u,dispatch:c})=>{if(c&&l&&s){const d=l.filter(m=>a.includes(m.type.name));u.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),VC="aaa1rp3barth4b0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re2s2c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y0eats7k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking0channel11l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t0isalat7u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0at2delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d0network8tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0eles2s3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster5ia3d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0cys3drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7serati6ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic3tual5v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rthwesternmutual14on4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cher3ks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w0time7i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0channel7ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",UC="ελ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",lr=(t,e)=>{for(const n in e)t[n]=e[n];return t},Fd="numeric",Bd="ascii",Hd="alpha",_a="asciinumeric",Ya="alphanumeric",Vd="domain",D0="emoji",JC="scheme",_C="slashscheme",T0="whitespace";function YC(t,e){return t in e||(e[t]=[]),e[t]}function uo(t,e,n){e[Fd]&&(e[_a]=!0,e[Ya]=!0),e[Bd]&&(e[_a]=!0,e[Hd]=!0),e[_a]&&(e[Ya]=!0),e[Hd]&&(e[Ya]=!0),e[Ya]&&(e[Vd]=!0),e[D0]&&(e[Vd]=!0);for(const o in e){const r=YC(o,n);r.indexOf(t)<0&&r.push(t)}}function KC(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,lr(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=lr(KC(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),ct=(t,e,n,o,r)=>t.tr(e,n,o,r),j0=(t,e,n,o,r)=>t.ts(e,n,o,r),O=(t,e,n,o,r)=>t.tt(e,n,o,r),_t="WORD",Ud="UWORD",Li="LOCALHOST",Jd="TLD",_d="UTLD",Ka="SCHEME",ur="SLASH_SCHEME",Yd="NUM",P0="WS",Kd="NL",cr="OPENBRACE",zi="OPENBRACKET",Fi="OPENANGLEBRACKET",Bi="OPENPAREN",co="CLOSEBRACE",dr="CLOSEBRACKET",mr="CLOSEANGLEBRACKET",mo="CLOSEPAREN",Wa="AMPERSAND",qa="APOSTROPHE",Ga="ASTERISK",Mn="AT",Qa="BACKSLASH",Za="BACKTICK",Xa="CARET",Dn="COLON",Wd="COMMA",el="DOLLAR",At="DOT",tl="EQUALS",qd="EXCLAMATION",Rt="HYPHEN",nl="PERCENT",ol="PIPE",rl="PLUS",il="POUND",sl="QUERY",Gd="QUOTE",Qd="SEMI",Mt="SLASH",Hi="TILDE",al="UNDERSCORE",I0="EMOJI",ll="SYM";var L0=Object.freeze({__proto__:null,WORD:_t,UWORD:Ud,LOCALHOST:Li,TLD:Jd,UTLD:_d,SCHEME:Ka,SLASH_SCHEME:ur,NUM:Yd,WS:P0,NL:Kd,OPENBRACE:cr,OPENBRACKET:zi,OPENANGLEBRACKET:Fi,OPENPAREN:Bi,CLOSEBRACE:co,CLOSEBRACKET:dr,CLOSEANGLEBRACKET:mr,CLOSEPAREN:mo,AMPERSAND:Wa,APOSTROPHE:qa,ASTERISK:Ga,AT:Mn,BACKSLASH:Qa,BACKTICK:Za,CARET:Xa,COLON:Dn,COMMA:Wd,DOLLAR:el,DOT:At,EQUALS:tl,EXCLAMATION:qd,HYPHEN:Rt,PERCENT:nl,PIPE:ol,PLUS:rl,POUND:il,QUERY:sl,QUOTE:Gd,SEMI:Qd,SLASH:Mt,TILDE:Hi,UNDERSCORE:al,EMOJI:I0,SYM:ll});const fr=/[a-z]/,Zd=/\p{L}/u,Xd=/\p{Emoji}/u,em=/\d/,z0=/\s/,F0=`
151
- `,WC="️",qC="‍";let ul=null,cl=null;function GC(t){t===void 0&&(t=[]);const e={};We.groups=e;const n=new We;ul==null&&(ul=B0(VC)),cl==null&&(cl=B0(UC)),O(n,"'",qa),O(n,"{",cr),O(n,"[",zi),O(n,"<",Fi),O(n,"(",Bi),O(n,"}",co),O(n,"]",dr),O(n,">",mr),O(n,")",mo),O(n,"&",Wa),O(n,"*",Ga),O(n,"@",Mn),O(n,"`",Za),O(n,"^",Xa),O(n,":",Dn),O(n,",",Wd),O(n,"$",el),O(n,".",At),O(n,"=",tl),O(n,"!",qd),O(n,"-",Rt),O(n,"%",nl),O(n,"|",ol),O(n,"+",rl),O(n,"#",il),O(n,"?",sl),O(n,'"',Gd),O(n,"/",Mt),O(n,";",Qd),O(n,"~",Hi),O(n,"_",al),O(n,"\\",Qa);const o=ct(n,em,Yd,{[Fd]:!0});ct(o,em,o);const r=ct(n,fr,_t,{[Bd]:!0});ct(r,fr,r);const i=ct(n,Zd,Ud,{[Hd]:!0});ct(i,fr),ct(i,Zd,i);const s=ct(n,z0,P0,{[T0]:!0});O(n,F0,Kd,{[T0]:!0}),O(s,F0),ct(s,z0,s);const a=ct(n,Xd,I0,{[D0]:!0});ct(a,Xd,a),O(a,WC,a);const l=O(a,qC);ct(l,Xd,a);const u=[[fr,r]],c=[[fr,null],[Zd,i]];for(let d=0;d<ul.length;d++)Tn(n,ul[d],Jd,_t,u);for(let d=0;d<cl.length;d++)Tn(n,cl[d],_d,Ud,c);uo(Jd,{tld:!0,ascii:!0},e),uo(_d,{utld:!0,alpha:!0},e),Tn(n,"file",Ka,_t,u),Tn(n,"mailto",Ka,_t,u),Tn(n,"http",ur,_t,u),Tn(n,"https",ur,_t,u),Tn(n,"ftp",ur,_t,u),Tn(n,"ftps",ur,_t,u),uo(Ka,{scheme:!0,ascii:!0},e),uo(ur,{slashscheme:!0,ascii:!0},e),t=t.sort((d,m)=>d[0]>m[0]?1:-1);for(let d=0;d<t.length;d++){const m=t[d][0],p=t[d][1]?{[JC]:!0}:{[_C]:!0};m.indexOf("-")>=0?p[Vd]=!0:fr.test(m)?em.test(m)?p[_a]=!0:p[Bd]=!0:p[Fd]=!0,j0(n,m,m,p)}return j0(n,"localhost",Li,{ascii:!0}),n.jd=new We(ll),{start:n,tokens:lr({groups:e},L0)}}function QC(t,e){const n=ZC(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,u=0,c=null,d=-1,m=-1;for(;s<o&&(l=a.go(n[s]));)a=l,a.accepts()?(d=0,m=0,c=a):d>=0&&(d+=n[s].length,m++),u+=n[s].length,i+=n[s].length,s++;i-=d,s-=m,u-=d,r.push({t:c.t,v:e.slice(i-u,i),s:i-u,e:i})}return r}function ZC(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 Tn(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 Vi={defaultProtocol:"http",events:null,format:H0,formatHref:H0,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function tm(t,e){e===void 0&&(e=null);let n=lr({},Vi);t&&(n=lr(n,t instanceof tm?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}tm.prototype={o:Vi,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]:Vi[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 H0(t){return t}function V0(t,e){this.t="token",this.v=t,this.tk=e}V0.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=Vi.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),u=t.get("rel",n,e),c=t.getObj("attributes",n,e),d=t.getObj("events",n,e);return s.href=o,a&&(s.class=a),l&&(s.target=l),u&&(s.rel=u),c&&lr(s,c),{tagName:r,attributes:s,content:i,eventListeners:d}}};function dl(t,e){class n extends V0{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 U0=dl("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),J0=dl("text"),XC=dl("nl"),fo=dl("url",{isLink:!0,toHref(t){return t===void 0&&(t=Vi.defaultProtocol),this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==Li&&t[1].t===Dn}}),ke=t=>new We(t);function eE(t){let{groups:e}=t;const n=e.domain.concat([Wa,Ga,Mn,Qa,Za,Xa,el,tl,Rt,Yd,nl,ol,rl,il,Mt,ll,Hi,al]),o=[qa,mr,co,dr,mo,Dn,Wd,At,qd,Fi,cr,zi,Bi,sl,Gd,Qd],r=[Wa,qa,Ga,Qa,Za,Xa,co,el,tl,Rt,cr,nl,ol,rl,il,sl,Mt,ll,Hi,al],i=ke(),s=O(i,Hi);P(s,r,s),P(s,e.domain,s);const a=ke(),l=ke(),u=ke();P(i,e.domain,a),P(i,e.scheme,l),P(i,e.slashscheme,u),P(a,r,s),P(a,e.domain,a);const c=O(a,Mn);O(s,Mn,c),O(l,Mn,c),O(u,Mn,c);const d=O(s,At);P(d,r,s),P(d,e.domain,s);const m=ke();P(c,e.domain,m),P(m,e.domain,m);const f=O(m,At);P(f,e.domain,m);const p=ke(U0);P(f,e.tld,p),P(f,e.utld,p),O(c,Li,p);const y=O(m,Rt);P(y,e.domain,m),P(p,e.domain,m),O(p,At,f),O(p,Rt,y);const h=O(p,Dn);P(h,e.numeric,U0);const g=O(a,Rt),w=O(a,At);P(g,e.domain,a),P(w,r,s),P(w,e.domain,a);const k=ke(fo);P(w,e.tld,k),P(w,e.utld,k),P(k,e.domain,a),P(k,r,s),O(k,At,w),O(k,Rt,g),O(k,Mn,c);const b=O(k,Dn),E=ke(fo);P(b,e.numeric,E);const v=ke(fo),$=ke();P(v,n,v),P(v,o,$),P($,n,v),P($,o,$),O(k,Mt,v),O(E,Mt,v);const R=O(l,Dn),C=O(u,Dn),_=O(C,Mt),se=O(_,Mt);P(l,e.domain,a),O(l,At,w),O(l,Rt,g),P(u,e.domain,a),O(u,At,w),O(u,Rt,g),P(R,e.domain,v),O(R,Mt,v),P(se,e.domain,v),P(se,n,v),O(se,Mt,v);const X=O(v,cr),G=O(v,zi),Oe=O(v,Fi),le=O(v,Bi);O($,cr,X),O($,zi,G),O($,Fi,Oe),O($,Bi,le),O(X,co,v),O(G,dr,v),O(Oe,mr,v),O(le,mo,v),O(X,co,v);const pe=ke(fo),de=ke(fo),Q=ke(fo),ue=ke(fo);P(X,n,pe),P(G,n,de),P(Oe,n,Q),P(le,n,ue);const ve=ke(),M=ke(),I=ke(),B=ke();return P(X,o),P(G,o),P(Oe,o),P(le,o),P(pe,n,pe),P(de,n,de),P(Q,n,Q),P(ue,n,ue),P(pe,o,pe),P(de,o,de),P(Q,o,Q),P(ue,o,ue),P(ve,n,ve),P(M,n,de),P(I,n,Q),P(B,n,ue),P(ve,o,ve),P(M,o,M),P(I,o,I),P(B,o,B),O(de,dr,v),O(Q,mr,v),O(ue,mo,v),O(pe,co,v),O(M,dr,v),O(I,mr,v),O(B,mo,v),O(ve,mo,v),O(i,Li,k),O(i,Kd,XC),{start:i,tokens:L0}}function tE(t,e,n){let o=n.length,r=0,i=[],s=[];for(;r<o;){let a=t,l=null,u=null,c=0,d=null,m=-1;for(;r<o&&!(l=a.go(n[r].t));)s.push(n[r++]);for(;r<o&&(u=l||a.go(n[r].t));)l=null,a=u,a.accepts()?(m=0,d=a):m>=0&&m++,r++,c++;if(m<0)r-=c,r<o&&(s.push(n[r]),r++);else{s.length>0&&(i.push(nm(J0,e,s)),s=[]),r-=m,c-=m;const f=d.t,p=n.slice(r-c,r);i.push(nm(f,e,p))}}return s.length>0&&i.push(nm(J0,e,s)),i}function nm(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 nE=typeof console<"u"&&console&&console.warn||(()=>{}),oE="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 rE(){We.groups={},oe.scanner=null,oe.parser=null,oe.tokenQueue=[],oe.pluginQueue=[],oe.customSchemes=[],oe.initialized=!1}function _0(t,e){if(e===void 0&&(e=!1),oe.initialized&&nE(`linkifyjs: already initialized - will not register custom scheme "${t}" ${oE}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
148
+ `));let m=c.props,f=typeof(m==null?void 0:m.className)=="function"?(...y)=>Ba(m==null?void 0:m.className(...y),l.className):Ba(m==null?void 0:m.className,l.className),p=f?{className:f}:{};return x.cloneElement(c,Object.assign({},$0(c.props,C0(Td(l,["ref"]))),d,u,{ref:r(c.ref,u.ref)},p))}return x.createElement(i,Object.assign({},Td(l,["ref"]),i!==x.Fragment&&u,i!==x.Fragment&&d),c)}function hC(...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 $0(...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 Dd(t){var e;return Object.assign(x.forwardRef(t),{displayName:(e=t.displayName)!=null?e:t.name})}function C0(t){let e=Object.assign({},t);for(let n in e)e[n]===void 0&&delete e[n];return e}function Td(t,e=[]){let n=Object.assign({},t);for(let o of e)o in n&&delete n[o];return n}let jd=x.createContext(null);jd.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 E0(){return x.useContext(jd)}function gC({value:t,children:e}){return U.createElement(jd.Provider,{value:t},e)}function Pd(){let t=x.useRef(!1);return Ii(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function yC(t=0){let[e,n]=x.useState(t),o=Pd(),r=x.useCallback(l=>{o.current&&n(u=>u|l)},[e,o]),i=x.useCallback(l=>!!(e&l),[e]),s=x.useCallback(l=>{o.current&&n(u=>u&~l)},[n,o]),a=x.useCallback(l=>{o.current&&n(u=>u^l)},[n]);return{flags:e,addFlag:r,hasFlag:i,removeFlag:s,toggleFlag:a}}function wC(t){let e={called:!1};return(...n)=>{if(!e.called)return e.called=!0,t(...n)}}function Id(t,...e){t&&e.length>0&&t.classList.add(...e)}function Ld(t,...e){t&&e.length>0&&t.classList.remove(...e)}function SC(t,e){let n=Li();if(!t)return n.dispose;let{transitionDuration:o,transitionDelay:r}=getComputedStyle(t),[i,s]=[o,r].map(l=>{let[u=0]=l.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,d)=>d-c);return u}),a=i+s;if(a!==0){n.group(u=>{u.setTimeout(()=>{e(),u.dispose()},a),u.addEventListener(t,"transitionrun",c=>{c.target===c.currentTarget&&u.dispose()})});let l=n.addEventListener(t,"transitionend",u=>{u.target===u.currentTarget&&(e(),l())})}else e();return n.add(()=>e()),n.dispose}function kC(t,e,n,o){let r=n?"enter":"leave",i=Li(),s=o!==void 0?wC(o):()=>{};r==="enter"&&(t.removeAttribute("hidden"),t.style.display="");let a=Ot(r,{enter:()=>e.enter,leave:()=>e.leave}),l=Ot(r,{enter:()=>e.enterTo,leave:()=>e.leaveTo}),u=Ot(r,{enter:()=>e.enterFrom,leave:()=>e.leaveFrom});return Ld(t,...e.base,...e.enter,...e.enterTo,...e.enterFrom,...e.leave,...e.leaveFrom,...e.leaveTo,...e.entered),Id(t,...e.base,...a,...u),i.nextFrame(()=>{Ld(t,...e.base,...a,...u),Id(t,...e.base,...a,...l),SC(t,()=>(Ld(t,...e.base,...a),Id(t,...e.base,...e.entered),s()))}),i.dispose}function vC({immediate:t,container:e,direction:n,classes:o,onStart:r,onStop:i}){let s=Pd(),a=S0(),l=ar(n);Ii(()=>{t&&(l.current="enter")},[t]),Ii(()=>{let u=Li();a.add(u.dispose);let c=e.current;if(c&&l.current!=="idle"&&s.current)return u.dispose(),r.current(l.current),u.add(kC(c,o.current,l.current==="enter",()=>{u.dispose(),i.current(l.current)})),u.dispose},[n])}function Rn(t=""){return t.split(/\s+/).filter(e=>e.length>1)}let Va=x.createContext(null);Va.displayName="TransitionContext";var bC=(t=>(t.Visible="visible",t.Hidden="hidden",t))(bC||{});function xC(){let t=x.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 $C(){let t=x.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=x.createContext(null);Ua.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 N0(t,e){let n=ar(t),o=x.useRef([]),r=Pd(),i=S0(),s=Ut((f,p=An.Hidden)=>{let y=o.current.findIndex(({el:h})=>h===f);y!==-1&&(Ot(p,{[An.Unmount](){o.current.splice(y,1)},[An.Hidden](){o.current[y].state="hidden"}}),i.microTask(()=>{var h;!Ja(o)&&r.current&&((h=n.current)==null||h.call(n))}))}),a=Ut(f=>{let p=o.current.find(({el:y})=>y===f);return p?p.state!=="visible"&&(p.state="visible"):o.current.push({el:f,state:"visible"}),()=>s(f,An.Unmount)}),l=x.useRef([]),u=x.useRef(Promise.resolve()),c=x.useRef({enter:[],leave:[],idle:[]}),d=Ut((f,p,y)=>{l.current.splice(0),e&&(e.chains.current[p]=e.chains.current[p].filter(([h])=>h!==f)),e==null||e.chains.current[p].push([f,new Promise(h=>{l.current.push(h)})]),e==null||e.chains.current[p].push([f,new Promise(h=>{Promise.all(c.current[p].map(([g,S])=>S)).then(()=>h())})]),p==="enter"?u.current=u.current.then(()=>e==null?void 0:e.wait.current).then(()=>y(p)):y(p)}),m=Ut((f,p,y)=>{Promise.all(c.current[p].splice(0).map(([h,g])=>g)).then(()=>{var h;(h=l.current.shift())==null||h()}).then(()=>y(p))});return x.useMemo(()=>({children:o,register:a,unregister:s,onStart:d,onStop:m,wait:u,chains:c}),[a,s,o,d,m,c,u])}function CC(){}let EC=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function O0(t){var e;let n={};for(let o of EC)n[o]=(e=t[o])!=null?e:CC;return n}function NC(t){let e=x.useRef(O0(t));return x.useEffect(()=>{e.current=O0(t)},[t]),e}let OC="div",A0=b0.RenderStrategy;function AC(t,e){var n,o;let{beforeEnter:r,afterEnter:i,beforeLeave:s,afterLeave:a,enter:l,enterFrom:u,enterTo:c,entered:d,leave:m,leaveFrom:f,leaveTo:p,...y}=t,h=x.useRef(null),g=v0(h,e),S=(n=y.unmount)==null||n?An.Unmount:An.Hidden,{show:k,appear:b,initial:E}=xC(),[v,$]=x.useState(k?"visible":"hidden"),R=$C(),{register:C,unregister:_}=R;x.useEffect(()=>C(h),[C,h]),x.useEffect(()=>{if(S===An.Hidden&&h.current){if(k&&v!=="visible"){$("visible");return}return Ot(v,{hidden:()=>_(h),visible:()=>C(h)})}},[v,h,C,_,k,S]);let se=ar({base:Rn(y.className),enter:Rn(l),enterFrom:Rn(u),enterTo:Rn(c),entered:Rn(d),leave:Rn(m),leaveFrom:Rn(f),leaveTo:Rn(p)}),X=NC({beforeEnter:r,afterEnter:i,beforeLeave:s,afterLeave:a}),G=k0();x.useEffect(()=>{if(G&&v==="visible"&&h.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[h,v,G]);let Oe=E&&!b,le=b&&k&&E,pe=(()=>!G||Oe?"idle":k?"enter":"leave")(),de=yC(0),Q=Ut(W=>Ot(W,{enter:()=>{de.addFlag(Jt.Opening),X.current.beforeEnter()},leave:()=>{de.addFlag(Jt.Closing),X.current.beforeLeave()},idle:()=>{}})),ue=Ut(W=>Ot(W,{enter:()=>{de.removeFlag(Jt.Opening),X.current.afterEnter()},leave:()=>{de.removeFlag(Jt.Closing),X.current.afterLeave()},idle:()=>{}})),ve=N0(()=>{$("hidden"),_(h)},R),M=x.useRef(!1);vC({immediate:le,container:h,classes:se,direction:pe,onStart:ar(W=>{M.current=!0,ve.onStart(h,W,Q)}),onStop:ar(W=>{M.current=!1,ve.onStop(h,W,ue),W==="leave"&&!Ja(ve)&&($("hidden"),_(h))})});let I=y,B={ref:g};return le?I={...I,className:Ba(y.className,...se.current.enter,...se.current.enterFrom)}:M.current&&(I.className=Ba(y.className,(o=h.current)==null?void 0:o.className),I.className===""&&delete I.className),U.createElement(Ua.Provider,{value:ve},U.createElement(gC,{value:Ot(v,{visible:Jt.Open,hidden:Jt.Closed})|de.flags},x0({ourProps:B,theirProps:I,defaultTag:OC,features:A0,visible:v==="visible",name:"Transition.Child"})))}function RC(t,e){let{show:n,appear:o=!1,unmount:r=!0,...i}=t,s=x.useRef(null),a=v0(s,e);k0();let l=E0();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[u,c]=x.useState(n?"visible":"hidden"),d=N0(()=>{c("hidden")}),[m,f]=x.useState(!0),p=x.useRef([n]);Ii(()=>{m!==!1&&p.current[p.current.length-1]!==n&&(p.current.push(n),f(!1))},[p,n]);let y=x.useMemo(()=>({show:n,appear:o,initial:m}),[n,o,m]);x.useEffect(()=>{if(n)c("visible");else if(!Ja(d))c("hidden");else{let k=s.current;if(!k)return;let b=k.getBoundingClientRect();b.x===0&&b.y===0&&b.width===0&&b.height===0&&c("hidden")}},[n,d]);let h={unmount:r},g=Ut(()=>{var k;m&&f(!1),(k=t.beforeEnter)==null||k.call(t)}),S=Ut(()=>{var k;m&&f(!1),(k=t.beforeLeave)==null||k.call(t)});return U.createElement(Ua.Provider,{value:d},U.createElement(Va.Provider,{value:y},x0({ourProps:{...h,as:x.Fragment,children:U.createElement(R0,{ref:a,...h,...i,beforeEnter:g,beforeLeave:S})},theirProps:{},defaultTag:x.Fragment,features:A0,visible:u==="visible",name:"Transition"})))}function MC(t,e){let n=x.useContext(Va)!==null,o=E0()!==null;return U.createElement(U.Fragment,null,!n&&o?U.createElement(zd,{ref:e,...t}):U.createElement(R0,{ref:e,...t}))}let zd=Dd(RC),R0=Dd(AC),DC=Dd(MC),lo=Object.assign(zd,{Child:DC,Root:zd});function TC(t,e){const n=x.useRef(null),o=x.useCallback(r=>{n.current&&e&&e(n.current),r&&t&&t(r),n.current=r},[t,e]);return[n,o]}function jC(t,e){const n=x.useRef(0);x.useEffect(()=>{if(n.current>=2)return t();n.current+=1},e)}function PC(t){const{popup:e}=H();return(e==null?void 0:e.type)===t}function IC(t){const{t:e}=H();return x.useMemo(()=>_1(t,e),[t])}const LC=({submit:t,progress:e,setProgress:n,close:o,reduced:r,isOpen:i,editor:s,submitText:a,submitSize:l})=>{const u=kr(),{t:c}=H();let d=null;const[m,f]=x.useState(!1);x.useEffect(()=>{if(s){const h=()=>{f(!s.isEmpty)};return s.on("update",h),s.on("transaction",h),h(),()=>{s.off("update",h),s.off("transaction",h)}}},[s]),e==="sending"&&(a=null,d=w.jsx(Rd,{className:"h-[24px] w-[24px] fill-white dark:fill-black"}));const p=x.useCallback(h=>{if(s!=null&&s.isFocused){h.stopPropagation();return}},[s]),y=x.useCallback(async()=>{if(!(!s||s.isEmpty)){n("sending");try{await t({html:s.getHTML()})}catch{n("error");return}return o?o():(n("sent"),s.chain().clearContent().blur().run()),!1}},[n,s,t,o]);return x.useEffect(()=>{const h=g=>{if(g.metaKey||g.ctrlKey){g.key==="Enter"&&(s!=null&&s.isFocused)&&(y(),s==null||s.commands.blur());return}if(g.key==="Escape"){s!=null&&s.isFocused&&(o?o():s==null||s.commands.blur());return}};return window.addEventListener("keydown",h,{passive:!0}),()=>{window.removeEventListener("keydown",h,{passive:!0})}},[s,o,y]),w.jsxs("div",{className:`relative w-full pl-[40px] transition-[padding] delay-100 duration-150 sm:pl-[44px] ${r&&"pl-0"} ${i&&"pl-[1px] pt-[48px] sm:pl-[44px] sm:pt-[40px]"}`,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 ${i?"cursor-text":"cursor-pointer"}
149
+ `,"data-testid":"form-editor",children:w.jsx(Q$,{editor:s,onMouseDown:p,onTouchStart:p})}),w.jsxs("div",{className:"absolute bottom-1 right-1 flex space-x-4 transition-[opacity] duration-150 sm:bottom-2 sm:right-2",children:[o&&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:o,children:c("Cancel")}),u.commentImprovements?w.jsxs("button",{className:`flex w-auto items-center justify-center ${l==="medium"&&"sm:min-w-[100px]"} ${l==="small"&&"sm:min-w-[64px]"} h-[40px] rounded-md px-3 py-2 text-center font-sans text-base font-medium outline-0 transition-all duration-200 sm:text-sm ${m?"bg-[var(--gh-accent-color)] text-white hover:brightness-105":"bg-black/5 text-neutral-900 dark:bg-white/15 dark:text-neutral-300"}`,"data-testid":"submit-form-button",type:"button",onClick:y,children:[w.jsx("span",{children:d}),a&&w.jsx("span",{children:a})]}):w.jsxs("button",{className:`flex w-auto items-center justify-center ${l==="medium"&&"sm:min-w-[100px]"} ${l==="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:y,children:[w.jsx("span",{children:d}),a&&w.jsx("span",{children:a})]})]})]})},zC=({show:t,name:e,expertise:n,editName:o,editExpertise:r})=>w.jsx(lo,{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:o,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-black/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:r,children:[w.jsxs("span",{children:[w.jsx("span",{className:"mx-[0.3em] hidden sm:inline",children:"·"}),n||"Add your expertise"]}),n&&w.jsx(Z1,{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"})]})})]})}),M0=({comment:t,submit:e,submitText:n,submitSize:o,close:r,editor:i,reduced:s,isOpen:a})=>{var E,v;const{member:l,dispatchAction:u}=H(),c=PC("addDetailsPopup"),[d,m]=x.useState("default"),f=x.useRef(null),p=(l==null?void 0:l.name)??((E=t==null?void 0:t.member)==null?void 0:E.name),y=(l==null?void 0:l.expertise)??((v=t==null?void 0:t.member)==null?void 0:v.expertise);(d==="sending"||p&&c)&&(a=!0);const h=$=>{if(i!=null&&i.isFocused){$.preventDefault();return}},g=x.useCallback($=>{var R;(R=i==null?void 0:i.commands)==null||R.blur(),u("openPopup",{type:"addDetailsPopup",expertiseAutofocus:$.expertiseAutofocus??!1,callback:function(C){!i||!f.current||C&&(i.setEditable(!0),i.commands.focus())}})},[i,u,f]),S=x.useCallback(()=>{g({expertiseAutofocus:!1})},[g]),k=x.useCallback(()=>{g({expertiseAutofocus:!0})},[g]),b=x.useCallback(()=>{if(i&&!i.isFocused){if(!p){S();return}i.commands.focus()}},[i,S,p]);return x.useEffect(()=>{i&&i.setEditable(!!p&&d!=="sending")},[i,p,d]),w.jsx("form",{ref:f,className:`-mx-3 mb-7 mt-[-10px] rounded-md transition duration-200 ${a?"cursor-default":"cursor-pointer"}`,"data-testid":"form",onClick:b,onMouseDown:h,onTouchStart:h,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(LC,{close:r,editor:i,isOpen:a,progress:d,reduced:s,setProgress:m,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(Vm,{comment:t})}),w.jsx("div",{className:"grow-1 mt-0.5 w-full",children:w.jsx(zC,{editExpertise:k,editName:S,expertise:y,name:p,show:a})})]})]})})},D0=({editor:t,submit:e,close:n,closeIfNotChanged:o,submitText:r,submitSize:i})=>{const{dispatchAction:s,secundaryFormCount:a}=H();x.useEffect(()=>(s("increaseSecundaryFormCount",{}),()=>{s("decreaseSecundaryFormCount",{})}),[s]),jC(()=>{a>1&&o()},[a]);const l=Fm();return w.jsx("div",{className:"mt-[-16px] pr-3",children:w.jsx(M0,{close:n,editor:t,isOpen:!0,reduced:l,submit:e,submitSize:i,submitText:r})})},FC=/^\s*>\s$/,BC=ln.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[Kb({find:FC,type:this.type})]}}),HC=ln.create({name:"doc",topNode:!0,content:"block+"}),VC=ln.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`
150
+ `},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:u,dispatch:c})=>{if(c&&l&&s){const d=l.filter(m=>a.includes(m.type.name));u.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),UC="aaa1rp3barth4b0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re2s2c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y0eats7k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking0channel11l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t0isalat7u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0at2delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d0network8tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0eles2s3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster5ia3d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0cys3drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7serati6ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic3tual5v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rthwesternmutual14on4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cher3ks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w0time7i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0channel7ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",JC="ελ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",lr=(t,e)=>{for(const n in e)t[n]=e[n];return t},Fd="numeric",Bd="ascii",Hd="alpha",_a="asciinumeric",Ya="alphanumeric",Vd="domain",T0="emoji",_C="scheme",YC="slashscheme",j0="whitespace";function KC(t,e){return t in e||(e[t]=[]),e[t]}function uo(t,e,n){e[Fd]&&(e[_a]=!0,e[Ya]=!0),e[Bd]&&(e[_a]=!0,e[Hd]=!0),e[_a]&&(e[Ya]=!0),e[Hd]&&(e[Ya]=!0),e[Ya]&&(e[Vd]=!0),e[T0]&&(e[Vd]=!0);for(const o in e){const r=KC(o,n);r.indexOf(t)<0&&r.push(t)}}function WC(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,lr(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=lr(WC(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),ct=(t,e,n,o,r)=>t.tr(e,n,o,r),P0=(t,e,n,o,r)=>t.ts(e,n,o,r),O=(t,e,n,o,r)=>t.tt(e,n,o,r),_t="WORD",Ud="UWORD",zi="LOCALHOST",Jd="TLD",_d="UTLD",Ka="SCHEME",ur="SLASH_SCHEME",Yd="NUM",I0="WS",Kd="NL",cr="OPENBRACE",Fi="OPENBRACKET",Bi="OPENANGLEBRACKET",Hi="OPENPAREN",co="CLOSEBRACE",dr="CLOSEBRACKET",mr="CLOSEANGLEBRACKET",mo="CLOSEPAREN",Wa="AMPERSAND",qa="APOSTROPHE",Ga="ASTERISK",Mn="AT",Qa="BACKSLASH",Za="BACKTICK",Xa="CARET",Dn="COLON",Wd="COMMA",el="DOLLAR",At="DOT",tl="EQUALS",qd="EXCLAMATION",Rt="HYPHEN",nl="PERCENT",ol="PIPE",rl="PLUS",il="POUND",sl="QUERY",Gd="QUOTE",Qd="SEMI",Mt="SLASH",Vi="TILDE",al="UNDERSCORE",L0="EMOJI",ll="SYM";var z0=Object.freeze({__proto__:null,WORD:_t,UWORD:Ud,LOCALHOST:zi,TLD:Jd,UTLD:_d,SCHEME:Ka,SLASH_SCHEME:ur,NUM:Yd,WS:I0,NL:Kd,OPENBRACE:cr,OPENBRACKET:Fi,OPENANGLEBRACKET:Bi,OPENPAREN:Hi,CLOSEBRACE:co,CLOSEBRACKET:dr,CLOSEANGLEBRACKET:mr,CLOSEPAREN:mo,AMPERSAND:Wa,APOSTROPHE:qa,ASTERISK:Ga,AT:Mn,BACKSLASH:Qa,BACKTICK:Za,CARET:Xa,COLON:Dn,COMMA:Wd,DOLLAR:el,DOT:At,EQUALS:tl,EXCLAMATION:qd,HYPHEN:Rt,PERCENT:nl,PIPE:ol,PLUS:rl,POUND:il,QUERY:sl,QUOTE:Gd,SEMI:Qd,SLASH:Mt,TILDE:Vi,UNDERSCORE:al,EMOJI:L0,SYM:ll});const fr=/[a-z]/,Zd=/\p{L}/u,Xd=/\p{Emoji}/u,em=/\d/,F0=/\s/,B0=`
151
+ `,qC="️",GC="‍";let ul=null,cl=null;function QC(t){t===void 0&&(t=[]);const e={};We.groups=e;const n=new We;ul==null&&(ul=H0(UC)),cl==null&&(cl=H0(JC)),O(n,"'",qa),O(n,"{",cr),O(n,"[",Fi),O(n,"<",Bi),O(n,"(",Hi),O(n,"}",co),O(n,"]",dr),O(n,">",mr),O(n,")",mo),O(n,"&",Wa),O(n,"*",Ga),O(n,"@",Mn),O(n,"`",Za),O(n,"^",Xa),O(n,":",Dn),O(n,",",Wd),O(n,"$",el),O(n,".",At),O(n,"=",tl),O(n,"!",qd),O(n,"-",Rt),O(n,"%",nl),O(n,"|",ol),O(n,"+",rl),O(n,"#",il),O(n,"?",sl),O(n,'"',Gd),O(n,"/",Mt),O(n,";",Qd),O(n,"~",Vi),O(n,"_",al),O(n,"\\",Qa);const o=ct(n,em,Yd,{[Fd]:!0});ct(o,em,o);const r=ct(n,fr,_t,{[Bd]:!0});ct(r,fr,r);const i=ct(n,Zd,Ud,{[Hd]:!0});ct(i,fr),ct(i,Zd,i);const s=ct(n,F0,I0,{[j0]:!0});O(n,B0,Kd,{[j0]:!0}),O(s,B0),ct(s,F0,s);const a=ct(n,Xd,L0,{[T0]:!0});ct(a,Xd,a),O(a,qC,a);const l=O(a,GC);ct(l,Xd,a);const u=[[fr,r]],c=[[fr,null],[Zd,i]];for(let d=0;d<ul.length;d++)Tn(n,ul[d],Jd,_t,u);for(let d=0;d<cl.length;d++)Tn(n,cl[d],_d,Ud,c);uo(Jd,{tld:!0,ascii:!0},e),uo(_d,{utld:!0,alpha:!0},e),Tn(n,"file",Ka,_t,u),Tn(n,"mailto",Ka,_t,u),Tn(n,"http",ur,_t,u),Tn(n,"https",ur,_t,u),Tn(n,"ftp",ur,_t,u),Tn(n,"ftps",ur,_t,u),uo(Ka,{scheme:!0,ascii:!0},e),uo(ur,{slashscheme:!0,ascii:!0},e),t=t.sort((d,m)=>d[0]>m[0]?1:-1);for(let d=0;d<t.length;d++){const m=t[d][0],p=t[d][1]?{[_C]:!0}:{[YC]:!0};m.indexOf("-")>=0?p[Vd]=!0:fr.test(m)?em.test(m)?p[_a]=!0:p[Bd]=!0:p[Fd]=!0,P0(n,m,m,p)}return P0(n,"localhost",zi,{ascii:!0}),n.jd=new We(ll),{start:n,tokens:lr({groups:e},z0)}}function ZC(t,e){const n=XC(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,u=0,c=null,d=-1,m=-1;for(;s<o&&(l=a.go(n[s]));)a=l,a.accepts()?(d=0,m=0,c=a):d>=0&&(d+=n[s].length,m++),u+=n[s].length,i+=n[s].length,s++;i-=d,s-=m,u-=d,r.push({t:c.t,v:e.slice(i-u,i),s:i-u,e:i})}return r}function XC(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 Tn(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 H0(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 tm(t,e){e===void 0&&(e=null);let n=lr({},Ui);t&&(n=lr(n,t instanceof tm?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}tm.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),u=t.get("rel",n,e),c=t.getObj("attributes",n,e),d=t.getObj("events",n,e);return s.href=o,a&&(s.class=a),l&&(s.target=l),u&&(s.rel=u),c&&lr(s,c),{tagName:r,attributes:s,content:i,eventListeners:d}}};function dl(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 J0=dl("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),_0=dl("text"),eE=dl("nl"),fo=dl("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===Dn}}),ke=t=>new We(t);function tE(t){let{groups:e}=t;const n=e.domain.concat([Wa,Ga,Mn,Qa,Za,Xa,el,tl,Rt,Yd,nl,ol,rl,il,Mt,ll,Vi,al]),o=[qa,mr,co,dr,mo,Dn,Wd,At,qd,Bi,cr,Fi,Hi,sl,Gd,Qd],r=[Wa,qa,Ga,Qa,Za,Xa,co,el,tl,Rt,cr,nl,ol,rl,il,sl,Mt,ll,Vi,al],i=ke(),s=O(i,Vi);P(s,r,s),P(s,e.domain,s);const a=ke(),l=ke(),u=ke();P(i,e.domain,a),P(i,e.scheme,l),P(i,e.slashscheme,u),P(a,r,s),P(a,e.domain,a);const c=O(a,Mn);O(s,Mn,c),O(l,Mn,c),O(u,Mn,c);const d=O(s,At);P(d,r,s),P(d,e.domain,s);const m=ke();P(c,e.domain,m),P(m,e.domain,m);const f=O(m,At);P(f,e.domain,m);const p=ke(J0);P(f,e.tld,p),P(f,e.utld,p),O(c,zi,p);const y=O(m,Rt);P(y,e.domain,m),P(p,e.domain,m),O(p,At,f),O(p,Rt,y);const h=O(p,Dn);P(h,e.numeric,J0);const g=O(a,Rt),S=O(a,At);P(g,e.domain,a),P(S,r,s),P(S,e.domain,a);const k=ke(fo);P(S,e.tld,k),P(S,e.utld,k),P(k,e.domain,a),P(k,r,s),O(k,At,S),O(k,Rt,g),O(k,Mn,c);const b=O(k,Dn),E=ke(fo);P(b,e.numeric,E);const v=ke(fo),$=ke();P(v,n,v),P(v,o,$),P($,n,v),P($,o,$),O(k,Mt,v),O(E,Mt,v);const R=O(l,Dn),C=O(u,Dn),_=O(C,Mt),se=O(_,Mt);P(l,e.domain,a),O(l,At,S),O(l,Rt,g),P(u,e.domain,a),O(u,At,S),O(u,Rt,g),P(R,e.domain,v),O(R,Mt,v),P(se,e.domain,v),P(se,n,v),O(se,Mt,v);const X=O(v,cr),G=O(v,Fi),Oe=O(v,Bi),le=O(v,Hi);O($,cr,X),O($,Fi,G),O($,Bi,Oe),O($,Hi,le),O(X,co,v),O(G,dr,v),O(Oe,mr,v),O(le,mo,v),O(X,co,v);const pe=ke(fo),de=ke(fo),Q=ke(fo),ue=ke(fo);P(X,n,pe),P(G,n,de),P(Oe,n,Q),P(le,n,ue);const ve=ke(),M=ke(),I=ke(),B=ke();return P(X,o),P(G,o),P(Oe,o),P(le,o),P(pe,n,pe),P(de,n,de),P(Q,n,Q),P(ue,n,ue),P(pe,o,pe),P(de,o,de),P(Q,o,Q),P(ue,o,ue),P(ve,n,ve),P(M,n,de),P(I,n,Q),P(B,n,ue),P(ve,o,ve),P(M,o,M),P(I,o,I),P(B,o,B),O(de,dr,v),O(Q,mr,v),O(ue,mo,v),O(pe,co,v),O(M,dr,v),O(I,mr,v),O(B,mo,v),O(ve,mo,v),O(i,zi,k),O(i,Kd,eE),{start:i,tokens:z0}}function nE(t,e,n){let o=n.length,r=0,i=[],s=[];for(;r<o;){let a=t,l=null,u=null,c=0,d=null,m=-1;for(;r<o&&!(l=a.go(n[r].t));)s.push(n[r++]);for(;r<o&&(u=l||a.go(n[r].t));)l=null,a=u,a.accepts()?(m=0,d=a):m>=0&&m++,r++,c++;if(m<0)r-=c,r<o&&(s.push(n[r]),r++);else{s.length>0&&(i.push(nm(_0,e,s)),s=[]),r-=m,c-=m;const f=d.t,p=n.slice(r-c,r);i.push(nm(f,e,p))}}return s.length>0&&i.push(nm(_0,e,s)),i}function nm(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 oE=typeof console<"u"&&console&&console.warn||(()=>{}),rE="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 iE(){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&&oE(`linkifyjs: already initialized - will not register custom scheme "${t}" ${rE}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
152
152
  1. Must only contain digits, lowercase ASCII letters or "-"
153
153
  2. Cannot start or end with "-"
154
- 3. "-" cannot repeat`);oe.customSchemes.push([t,e])}function iE(){oe.scanner=GC(oe.customSchemes);for(let t=0;t<oe.tokenQueue.length;t++)oe.tokenQueue[t][1]({scanner:oe.scanner});oe.parser=eE(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 Y0(t){return oe.initialized||iE(),tE(oe.parser.start,t,QC(oe.scanner.start,t))}function K0(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 tm(n),r=Y0(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 sE(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function aE(t){return new Ve({key:new ft("autolink"),appendTransaction:(e,n,o)=>{const r=e.some(u=>u.docChanged)&&!n.doc.eq(o.doc),i=e.some(u=>u.getMeta("preventAutolink"));if(!r||i)return;const{tr:s}=o,a=hb(n.doc,[...e]);if($b(a).forEach(({newRange:u})=>{const c=yb(o.doc,u,f=>f.isTextblock);let d,m;if(c.length>1?(d=c[0],m=o.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ")):c.length&&o.doc.textBetween(u.from,u.to," "," ").endsWith(" ")&&(d=c[0],m=o.doc.textBetween(d.pos,u.to,void 0," ")),d&&m){const f=m.split(" ").filter(g=>g!=="");if(f.length<=0)return!1;const p=f[f.length-1],y=d.pos+m.lastIndexOf(p);if(!p)return!1;const h=Y0(p).map(g=>g.toObject(t.defaultProtocol));if(!sE(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=>{Sh(g.from,g.to,o.doc).some(w=>w.mark.type===t.type)||s.addMark(g.from,g.to,t.type.create({href:g.href}))})}}),!!s.steps.length)return s}})}function lE(t){return new Ve({key:new ft("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(m=>m.nodeName==="A"))return!1;const l=wh(e.state,t.type.name),u=o.target,c=(r=u==null?void 0:u.href)!==null&&r!==void 0?r:l.href,d=(i=u==null?void 0:u.target)!==null&&i!==void 0?i:l.target;return u&&c?(window.open(c,d),!0):!1}}})}function uE(t){return new Ve({key:new ft("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(u=>{a+=u.textContent});const l=K0(a,{defaultProtocol:t.defaultProtocol}).find(u=>u.isLink&&u.value===a);return!a||!l?!1:(t.editor.commands.setMark(t.type,{href:l.href}),!0)}}})}const cE=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function W0(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(cE,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`,"i"))}const dE=Fr.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.protocols.forEach(t=>{if(typeof t=="string"){_0(t);return}_0(t.scheme,t.optionalSlashes)})},onDestroy(){rE()},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||!W0(e,this.options.protocols)?!1:null}}]},renderHTML({HTMLAttributes:t}){return W0(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[Kb({find:t=>{const e=[];if(t){const{validate:n}=this.options,o=K0(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(aE({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:this.options.validate})),this.options.openOnClick===!0&&t.push(lE({type:this.type})),this.options.linkOnPaste&&t.push(uE({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),t}}),mE=ln.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()}}}),fE=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 ft("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,u=!s.isLeaf&&js(s);if((l||!this.options.showOnlyCurrent)&&u){const c=[this.options.emptyNodeClass];i&&c.push(this.options.emptyEditorClass);const d=nt.node(a,a+s.nodeSize,{class:c.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(d)}return this.options.includeChildren}),me.create(t,r)}}})]}}),pE=ln.create({name:"text",group:"inline"});function om({placeholder:t,autofocus:e=!1,content:n=""}){return{extensions:[BC,pE,mE,dE.configure({openOnClick:!1}),fE.configure({placeholder:t,showOnlyWhenEditable:!1}),FC.configure({}),HC.configure({})],content:n,autofocus:e,editorProps:{attributes:{class:"gh-comment-content focus:outline-0","data-testid":"editor"}},parseOptions:{preserveWhitespace:"full"}}}const hE=({comment:t,parent:e,close:n})=>{const{dispatchAction:o,t:r}=H(),i={placeholder:r("Edit this comment"),autofocus:!1,content:t.html},s=Ad({...om(i)});x.useEffect(()=>{s&&s.chain().focus().command(({tr:c,commands:d})=>d.setTextSelection({from:c.doc.content.size,to:c.doc.content.size})).run()},[s]);const a=x.useCallback(async({html:c})=>{await o("editComment",{comment:{id:t.id,html:c},parent:e})},[e,t,o]),l={submitText:r("Save"),submitSize:"small",submit:a},u=x.useCallback(()=>{(s==null?void 0:s.getHTML())===t.html&&n()},[s,n,t.html]);return S.jsx("div",{className:"px-3 pb-2 pt-3",children:S.jsx(M0,{close:n,closeIfNotChanged:u,editor:s,...l})})},gE=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"black",...t},x.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"})),yE=({comment:t})=>{const{dispatchAction:e,member:n,commentsEnabled:o}=H(),[r,i]=x.useState(""),s=o==="paid",a=n&&!!n.paid,l=n&&(a||!s),u=()=>{l&&(t.liked?e("unlikeComment",t):(e("likeComment",t),i("animate-heartbeat"),setTimeout(()=>{i("")},400)))},c=l?"button":"span";let d="cursor-pointer";return l||(d="cursor-text"),S.jsxs(c,{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:[S.jsx(gE,{className:r+` 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&&l&&"group-hover:stroke-black/75 dark:group-hover:stroke-white/75"} transition duration-50 ease-linear`}),t.count.likes]})},q0=({comment:t,close:e})=>{const{dispatchAction:n,t:o}=H(),r=()=>{n("hideComment",t),e()},i=()=>{n("showComment",t),e()},s=t.status!=="published";return S.jsx("div",{className:"flex flex-col",children:s?S.jsxs("button",{className:"w-full text-left text-[14px]",type:"button",onClick:i,children:[S.jsx("span",{className:"hidden sm:inline",children:o("Show comment")}),S.jsx("span",{className:"sm:hidden",children:o("Show")})]}):S.jsxs("button",{className:"w-full text-left text-[14px]",type:"button",onClick:r,children:[S.jsx("span",{className:"hidden sm:inline",children:o("Hide comment")}),S.jsx("span",{className:"sm:hidden",children:o("Hide")})]})})},wE=({comment:t,close:e,toggleEdit:n})=>{const{dispatchAction:o,t:r}=H(),i=()=>{o("deleteComment",t),e()};return S.jsxs("div",{className:"flex flex-col",children:[S.jsx("button",{className:"mb-3 w-full text-left text-[14px]","data-testid":"edit",type:"button",onClick:n,children:r("Edit")}),S.jsx("button",{className:"w-full text-left text-[14px] text-red-600",type:"button",onClick:i,children:r("Delete")})]})},SE=({comment:t,close:e})=>{const{dispatchAction:n,t:o}=H(),r=()=>{n("openPopup",{type:"reportPopup",comment:t}),e()};return S.jsx("div",{className:"flex flex-col",children:S.jsxs("button",{className:"w-full text-left text-[14px]",type:"button",onClick:r,children:[S.jsx("span",{className:"hidden sm:inline",children:o("Report comment")}),S.jsx("span",{className:"sm:hidden",children:o("Report")})]})})},kE=({comment:t,close:e,toggleEdit:n})=>{var c;const{member:o,admin:r}=H(),i=o&&((c=t.member)==null?void 0:c.uuid)===(o==null?void 0:o.uuid),s=!!r,a=x.useRef(null);x.useEffect(()=>{var f,p;const d=()=>{e()};window.addEventListener("click",d,{passive:!0});const m=(p=(f=a.current)==null?void 0:f.ownerDocument)==null?void 0:p.defaultView;return m&&m!==window&&m.addEventListener("click",d,{passive:!0}),()=>{window.removeEventListener("click",d,{passive:!0}),m&&m!==window&&m.removeEventListener("click",d,{passive:!0})}},[e]),x.useEffect(()=>{const d=m=>{m.key==="Escape"&&e()};return window.addEventListener("keydown",d,{passive:!0}),()=>{window.removeEventListener("keydown",d,{passive:!0})}},[e]);const l=d=>{d.stopPropagation()};let u=null;if(t.status==="published")i?u=S.jsx(wE,{close:e,comment:t,toggleEdit:n}):s?u=S.jsx(q0,{close:e,comment:t}):u=S.jsx(SE,{close:e,comment:t});else if(s)u=S.jsx(q0,{close:e,comment:t});else return null;return S.jsx("div",{ref:a,onClick:l,children:S.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:u})})},vE=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},x.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"}),x.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"}),x.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"})),G0=({comment:t,toggleEdit:e})=>{const[n,o]=x.useState(!1),{member:r,admin:i}=H(),s=!!i,a=()=>{o(c=>!c)},l=()=>{o(!1)};return!!r&&t.status==="published"||s?S.jsxs("div",{"data-testid":"more-button",children:[S.jsx("button",{className:"outline-0",type:"button",onClick:a,children:S.jsx(vE,{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?S.jsx(kE,{close:l,comment:t,toggleEdit:e}):null]}):null},bE=({loadMore:t,count:e})=>{const{t:n}=H(),o=e===1?n("Show 1 more reply"):n("Show {{amount}} more replies",{amount:kr(e)}),r=n("{{amount}} more",{amount:kr(e)});return S.jsx("div",{className:"flex w-full items-center justify-start",children:S.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:S.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:["↓ ",S.jsx("span",{className:"ml-1 hidden sm:inline",children:o}),S.jsx("span",{className:"ml-1 inline sm:hidden",children:r})," "]})})})},xE=({comment:t,toggleReplyMode:e})=>{const{dispatchAction:n}=H(),o=t.count.replies-t.replies.length,r=()=>{n("loadMoreReplies",{comment:t})};return S.jsxs("div",{children:[t.replies.map(i=>S.jsx(rm,{comment:i,parent:t,toggleParentReplyMode:e},i.id)),o>0&&S.jsx(bE,{count:o,loadMore:r})]})},$E=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",stroke:"black",xmlns:"http://www.w3.org/2000/svg",...t},x.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"})),CE=({disabled:t,isReplying:e,toggleReply:n})=>{const{member:o,t:r}=H();return o?S.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:n,children:[S.jsx($E,{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")]}):null},EE=({parent:t,close:e})=>{const{postId:n,dispatchAction:o,t:r}=H(),[,i]=DC(Fm),s={placeholder:r("Reply to comment"),autofocus:!0},a=Ad({...om(s)}),l=x.useCallback(async({html:d})=>{await o("addReply",{parent:t,reply:{post_id:n,status:"published",html:d}})},[t,n,o]),u={submitText:S.jsxs(S.Fragment,{children:[S.jsx("span",{className:"hidden sm:inline",children:r("Add reply")}),S.jsx("span",{className:"sm:hidden",children:r("Reply")})]}),submitSize:"medium",submit:l},c=x.useCallback(()=>{a!=null&&a.isEmpty&&e()},[a,e]);return S.jsx("div",{ref:i,children:S.jsx(M0,{close:e,closeIfNotChanged:c,editor:a,...u})})},rm=({comment:t,parent:e,toggleParentReplyMode:n})=>S.jsx(lo,{enter:"transition-opacity duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:!0,appear:!0,children:S.jsx(NE,{comment:t,parent:e,toggleParentReplyMode:n})}),NE=({comment:t,parent:e,toggleParentReplyMode:n})=>{const[o,r]=x.useState(!1),i=()=>{r(!1)},s=()=>{r(!0)};return o?S.jsx(hE,{close:i,comment:t,parent:e}):S.jsx(OE,{comment:t,openEditMode:s,parent:e,toggleParentReplyMode:n})},OE=({comment:t,parent:e,openEditMode:n,toggleParentReplyMode:o})=>W1(t)?S.jsx(AE,{comment:t,openEditMode:n,parent:e,toggleParentReplyMode:o}):S.jsx(RE,{comment:t,openEditMode:n}),AE=({comment:t,parent:e,openEditMode:n,toggleParentReplyMode:o})=>{const[r,i]=x.useState(!1),{dispatchAction:s}=H(),a=async()=>{if(e&&o)return await o();r||await s("loadMoreReplies",{comment:t,limit:"all"}),i(d=>!d)},l=()=>{i(!1)},u=r||t.replies&&t.replies.length>0,c=S.jsx(Hm,{comment:t});return S.jsxs(Z0,{avatar:c,hasReplies:u,children:[S.jsx(PE,{comment:t}),S.jsx(IE,{html:t.html}),S.jsx(LE,{comment:t,isInReplyMode:r,openEditMode:n,parent:e,toggleReplyMode:a}),S.jsx(Q0,{comment:t,toggleReplyMode:a}),S.jsx(TE,{closeReplyMode:l,comment:t,isInReplyMode:r})]})},RE=({comment:t,openEditMode:e})=>{const{admin:n,t:o}=H();let r;n&&t.status==="hidden"?r=o("This comment has been hidden."):r=o("This comment has been removed.");const i=S.jsx(G1,{}),s=t.replies&&t.replies.length>0;return S.jsxs(Z0,{avatar:i,hasReplies:s,children:[S.jsx("div",{className:"mt-[-3px] flex items-start",children:S.jsxs("div",{className:"flex h-10 flex-row items-center gap-4 pb-[8px] pr-4",children:[S.jsx("p",{className:"text-md mt-[4px] font-sans italic leading-normal text-black/20 sm:text-lg dark:text-white/35",children:r}),S.jsx("div",{className:"mt-[4px]",children:S.jsx(G0,{comment:t,toggleEdit:e})})]})}),S.jsx(Q0,{comment:t})]})},ME=({comment:t})=>{var o;const{member:e}=H(),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?S.jsxs("span",{className:"[overflow-wrap:anywhere]",children:[S.jsx("span",{className:"mx-[0.3em] hidden sm:inline-block",children:"·"}),n]}):null},DE=({comment:t})=>{const{t:e}=H();return t.edited_at?S.jsxs("span",{children:[" (",e("edited"),")"]}):null},Q0=({comment:t,toggleReplyMode:e})=>t.replies&&t.replies.length>0?S.jsx("div",{className:"mb-4 ml-[-1.4rem] mt-7 sm:mb-0 sm:mt-8",children:S.jsx(xE,{comment:t,toggleReplyMode:e})}):null,TE=({comment:t,isInReplyMode:e,closeReplyMode:n})=>e?S.jsx("div",{className:"my-8 sm:my-10",children:S.jsx(EE,{close:n,parent:t})}):null,jE=({comment:t})=>{const{t:e}=H(),n=Y1(t,e);return S.jsx("h4",{className:"font-sans text-base font-bold leading-snug text-neutral-900 sm:text-sm dark:text-white/85",children:n})},PE=({comment:t})=>{var r;const e=PC(t.created_at),{member:n}=H(),o=n&&t.member&&t.member.uuid===n.uuid?n.expertise:(r=t==null?void 0:t.member)==null?void 0:r.expertise;return S.jsxs("div",{className:`mb-2 mt-0.5 flex flex-wrap items-start sm:flex-row ${o?"flex-col":"flex-row"}`,children:[S.jsx(jE,{comment:t}),S.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:S.jsxs("span",{children:[S.jsx(ME,{comment:t}),S.jsxs("span",{title:_1(t.created_at),children:[S.jsx("span",{className:"mx-[0.3em]",children:"·"}),e]}),S.jsx(DE,{comment:t})]})})]})},IE=({html:t})=>{const e={__html:t};return S.jsx("div",{className:"mt mb-2 flex flex-row items-center gap-4 pr-4",children:S.jsx("p",{dangerouslySetInnerHTML:e,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"})})},LE=({comment:t,toggleReplyMode:e,isInReplyMode:n,openEditMode:o,parent:r})=>{const{member:i,commentsEnabled:s}=H(),a=qi(),l=s==="paid",u=i&&!!i.paid,c=i&&(u||!l)&&(a.commentImprovements?!0:!r);return S.jsxs("div",{className:"flex items-center gap-4",children:[S.jsx(yE,{comment:t}),c&&S.jsx(CE,{isReplying:n,toggleReply:e}),S.jsx(G0,{comment:t,toggleEdit:o})]})},zE=({hasReplies:t})=>t?S.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,Z0=({children:t,avatar:e,hasReplies:n})=>S.jsxs("div",{className:`flex w-full flex-row ${n===!0?"mb-0":"mb-7"}`,"data-testid":"comment-component",children:[S.jsxs("div",{className:"mr-2 flex flex-col items-center justify-start sm:mr-3",children:[S.jsx("div",{className:"flex-0 mb-3 sm:mb-4",children:e}),S.jsx(zE,{hasReplies:n})]}),S.jsx("div",{className:"grow",children:t})]}),FE=({showCount:t,count:e})=>{const{t:n}=H();return t?e===1?S.jsx("div",{className:"text-md text-neutral-900/50 sm:text-lg dark:text-white/50","data-testid":"count",children:n("1 comment")}):S.jsx("div",{className:"text-md text-neutral-900/50 sm:text-lg dark:text-white/50","data-testid":"count",children:n("{{amount}} comments",{amount:kr(e)})}):null},BE=({title:t})=>{const{t:e}=H();return t===null?S.jsxs(S.Fragment,{children:[S.jsx("span",{className:"sm:hidden",children:e("Discussion")}),S.jsx("span",{className:"hidden sm:inline",children:e("Member discussion")})]}):S.jsx(S.Fragment,{children:t})},X0=({title:t,showCount:e,count:n})=>!t&&!e&&t!==null?null:S.jsxs("div",{className:"mb-7 flex w-full items-baseline justify-between font-sans",children:[S.jsx("h2",{className:"text-[2.2rem] font-bold tracking-tight text-neutral-900 sm:text-2xl dark:text-white","data-testid":"title",children:S.jsx(BE,{title:t})}),S.jsx(FE,{count:n,showCount:e})]}),e1=({commentsCount:t})=>{const{postId:e,dispatchAction:n,t:o}=H(),r={placeholder:o(t===0?"Start the conversation":"Join the discussion"),autofocus:!1},i=Ad({...om(r)}),s=x.useCallback(async({html:c})=>{await n("addComment",{post_id:e,status:"published",html:c}),i==null||i.commands.clearContent()},[e,n,i]),a=x.useRef(null);x.useEffect(()=>{if(!i)return;const c=d=>{var p;if(!i||d.metaKey||d.ctrlKey)return;let m=document.activeElement;for(;m&&m.tagName==="IFRAME"&&m.contentDocument;)m=((p=m.contentDocument)==null?void 0:p.activeElement)??null;const f=m&&(m.tagName==="INPUT"||m.tagName==="TEXTAREA"||m.tagName==="IFRAME"||m.contentEditable==="true");if(d.key==="c"&&!(i!=null&&i.isFocused)&&!f){i==null||i.commands.focus(),a.current&&Fm(a.current);return}};return window.addEventListener("keydown",c,{passive:!0}),()=>{window.removeEventListener("keydown",c,{passive:!0})}},[i]);const l={submitText:S.jsxs(S.Fragment,{children:[S.jsxs("span",{className:"hidden sm:inline",children:[o("Add comment")," "]}),S.jsx("span",{className:"sm:hidden",children:o("Comment")})]}),submitSize:"large",submit:s},u=(i==null?void 0:i.isFocused)??!1;return S.jsx("div",{ref:a,className:"px-3 pb-2 pt-3","data-testid":"main-form",children:S.jsx(R0,{editor:i,isOpen:u,reduced:!1,...l})})},t1=()=>{const{pagination:t,dispatchAction:e,t:n}=H(),o=qi(),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 (${kr(i)})`:i===1?n("Show 1 previous comment"):n("Show {{amount}} previous comments",{amount:kr(i)});return o.commentImprovements?S.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:S.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})}):S.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:S.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]})})},ml="ghost-comments-root",HE=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},x.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"})),VE=()=>{var u;const t=U1(),[e,n]=x.useState(!1),[o,r]=x.useState("count__likes desc, created_at desc"),i=x.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=c=>{r(c),t(c),n(!1)};x.useEffect(()=>{var m,f;const c=()=>{n(!1)};window.addEventListener("click",c,{passive:!0});const d=(f=(m=i.current)==null?void 0:m.ownerDocument)==null?void 0:f.defaultView;return d&&d!==window&&d.addEventListener("click",c,{passive:!0}),()=>{window.removeEventListener("click",c,{passive:!0}),d&&d!==window&&d.removeEventListener("click",c,{passive:!0})}},[]);const l=c=>{c.stopPropagation()};return S.jsxs("div",{ref:i,className:"relative","data-testid":"comments-sorting-form",onClick:l,children:[S.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:[(u=s.find(c=>c.value===o))==null?void 0:u.label,S.jsx("span",{className:"h-2 w-2 stroke-[3px]",children:S.jsx(HE,{})})]}),e&&S.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:S.jsx("div",{"aria-labelledby":"options-menu","aria-orientation":"vertical",className:"py-1","data-testid":"comments-sorting-form-dropdown",role:"menu",children:s.map(c=>S.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(c.value),children:c.label},c.value))})})]})},UE=()=>{const t=qi(),{t:e}=H(),{pagination:n,member:o,comments:r,commentCount:i,commentsEnabled:s,title:a,showCount:l,secundaryFormCount:u}=H();let c;t&&t.commentImprovements?c=r.slice().map(p=>S.jsx(rm,{comment:p},p.id)):c=r.slice().reverse().map(p=>S.jsx(rm,{comment:p},p.id)),x.useEffect(()=>{const p=document.getElementById(ml);p&&window.location.hash==="#ghost-comments"&&window.scrollY===0&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{p.scrollIntoView()})})},[]);const d=s==="paid",m=o&&!!o.paid,f=u>0;return t.commentImprovements?S.jsxs(S.Fragment,{children:[S.jsx(X0,{count:i,showCount:l,title:a}),S.jsx("div",{children:o?m||!d?S.jsx(e1,{commentsCount:i}):S.jsx(Gi,{isFirst:(n==null?void 0:n.total)===0,isPaid:d}):S.jsx(Gi,{isFirst:(n==null?void 0:n.total)===0,isPaid:d})}),S.jsx("div",{className:"z-20 mb-7 mt-3",children:S.jsxs("span",{className:"flex items-center gap-1.5 text-sm font-medium text-neutral-900 dark:text-neutral-100",children:[e("Sort by"),": ",S.jsx(VE,{})]})}),S.jsx("div",{className:n?"z-10":"z-10 mt-4","data-test":"comment-elements",children:c}),S.jsx(t1,{}),t!=null&&t.testFlag?S.jsx("div",{"data-testid":"this-comes-from-a-flag",style:{display:"none"}}):null]}):S.jsxs(S.Fragment,{children:[S.jsx(X0,{count:i,showCount:l,title:a}),S.jsx(t1,{}),S.jsx("div",{className:n?"":"mt-4","data-test":"comment-elements",children:c}),S.jsx("div",{children:f?null:o?m||!d?S.jsx(e1,{commentsCount:i}):S.jsx(Gi,{isFirst:(n==null?void 0:n.total)===0,isPaid:d}):S.jsx(Gi,{isFirst:(n==null?void 0:n.total)===0,isPaid:d})}),t!=null&&t.testFlag?S.jsx("div",{"data-testid":"this-comes-from-a-flag",style:{display:"none"}}):null]})};function JE(){return S.jsx("div",{className:"flex h-32 w-full items-center justify-center","data-testid":"loading",children:S.jsx(Rd,{className:"mb-6 h-12 w-12 fill-white/90 dark:fill-white/60"})})}const _E=({done:t})=>{const e=(l,u,c)=>{const d=[l,u,c].map(function(m){return m/=255,m<=.03928?m/12.92:Math.pow((m+.055)/1.055,2.4)});return d[0]*.2126+d[1]*.7152+d[2]*.0722},n=(l,u)=>{const c=e(l[0],l[1],l[2]),d=e(u[0],u[1],u[2]),m=Math.max(c,d),f=Math.min(c,d);return(m+.05)/(f+.05)},{accentColor:o,colorScheme:r}=H(),s=(()=>{if(r==="light")return!1;if(r==="dark")return!0;{const l=document.getElementById(ml);if(!l||!l.parentElement)return!1;const u=getComputedStyle(l.parentElement).getPropertyValue("color"),c=u.substring(u.indexOf("(")+1,u.lastIndexOf(")")).split(/,\s*/),d=parseInt(c[0]),m=parseInt(c[1]),f=parseInt(c[2]);return n([255,255,255],[d,m,f])<5}})()?"dark":"",a={"--gh-accent-color":o??"black",paddingTop:0,paddingBottom:24};return S.jsx("section",{className:"ghost-display "+s,"data-loaded":t,"data-testid":"content-box",style:a,children:t?S.jsx(UE,{}):S.jsx(JE,{})})};class YE extends x.Component{constructor(n){super(n);yr(this,"node");yr(this,"iframeHtml");yr(this,"iframeHead");yr(this,"iframeRoot");yr(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 S.jsxs("iframe",{srcDoc:"<!DOCTYPE html>",...s,ref:this.setNode,frameBorder:"0",style:i,title:r,children:[this.iframeHead&&$d.createPortal(o,this.iframeHead),this.iframeRoot&&$d.createPortal(n,this.iframeRoot)]})}}const KE=x.forwardRef(function(e,n){return S.jsx(YE,{...e,innerRef:n})}),WE=`*,: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}.left-0{left:0px}.right-1{right:.4rem}.right-6{right:2.4rem}.top-0{top:0px}.top-1{top:.4rem}.top-6{top:2.4rem}.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-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-\\[-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}.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:-webkit-min-content;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-\\[14px\\]{padding-top:14px;padding-bottom:14px}.pb-2{padding-bottom:.8rem}.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-\\[40px\\]{padding-top:40px}.pt-\\[48px\\]{padding-top:48px}.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}.italic{font-style:italic}.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\\/20{color:#0003}.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\\/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\\/35:is(.dark *){color:#ffffff59}.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:-webkit-fit-content;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\\: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-12{padding-top:4.8rem}.sm\\:pt-\\[40px\\]{padding-top:40px}.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}}
155
- `,n1=U.forwardRef(function({children:e,onResize:n,style:o,title:r},i){const s=S.jsxs(S.Fragment,{children:[S.jsx("style",{dangerouslySetInnerHTML:{__html:WE}}),S.jsx("meta",{content:"width=device-width, initial-scale=1.0, maximum-scale=1.0",name:"viewport"})]});return S.jsx(KE,{ref:i,head:s,style:o,title:r,onResize:n,children:e})}),qE=U.forwardRef(function({children:e,style:n,title:o},r){const[i,s]=x.useState(n),a=x.useCallback(l=>{s(u=>({...u,height:`${l.scrollHeight}px`}))},[]);return S.jsx(n1,{ref:r,style:i,title:o,onResize:a,children:e})}),GE=U.forwardRef(function({children:e},n){const o={width:"100%",height:"400px"};return S.jsx(qE,{ref:n,style:o,title:"comments-frame",children:e})}),QE=({children:t,title:e})=>{const n={zIndex:"3999999",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",overflow:"hidden"};return S.jsx(n1,{style:n,title:e,children:t})},ZE=({show:t,children:e,title:n,callback:o})=>{const{dispatchAction:r}=H(),i=()=>{r("closePopup",{}),o&&o(!1)};return x.useEffect(()=>{const s=a=>{a.key==="Escape"&&i()};return window.addEventListener("keydown",s,{passive:!0}),()=>{window.removeEventListener("keydown",s,{passive:!0})}}),S.jsx(lo,{appear:!0,show:t,children:S.jsx(QE,{title:n,children:S.jsx("div",{children:S.jsx(lo.Child,{enter:"transition duration-200 linear",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition duration-200 linear",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:S.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-12",onMouseDown:i,children:S.jsx(lo.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})})})})})})},XE=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"gh-portal-closeicon",alt:"Close",...t},x.createElement("defs",null,x.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px !important;}")),x.createElement("path",{className:"a",d:"M.75 23.249l22.5-22.5M23.25 23.249L.75.749"})),o1=({close:t})=>S.jsx("button",{className:"absolute right-6 top-6 opacity-30 transition-opacity duration-100 ease-out hover:opacity-40 sm:right-8 sm:top-9",type:"button",onClick:t,children:S.jsx(XE,{className:"h-5 w-5 p-1 pr-0"})}),eN=t=>{const e=x.useRef(null),n=x.useRef(null),{dispatchAction:o,member:r,accentColor:i,t:s}=H(),[a,l]=x.useState(r.name??""),[u,c]=x.useState(r.expertise??""),d=50;let m=d;r.expertise&&(m-=r.expertise.length);const[f,p]=x.useState(m),[y,h]=x.useState({name:"",expertise:""}),g=v=>{v.stopPropagation()},w=v=>{o("closePopup",{}),t.callback(v)},k=async()=>{var v;a.trim()!==""?(await o("updateMember",{name:a,expertise:u}),w(!0)):(h({name:s("Enter your name"),expertise:""}),l(""),(v=e.current)==null||v.focus())};x.useEffect(()=>{if(!zm()){const v=setTimeout(()=>{var $,R;t.expertiseAutofocus?($=n.current)==null||$.focus():(R=e.current)==null||R.focus()},200);return()=>{clearTimeout(v)}}},[e,n,t.expertiseAutofocus]);const b=()=>{const v=C=>S.jsx(lo,{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:S.jsxs("div",{className:"flex flex-row items-center justify-start gap-3 pr-4",children:[S.jsx("div",{className:"h-10 w-10 rounded-full border-2 border-white bg-cover bg-no-repeat",style:{backgroundImage:`url(${C.avatar})`}}),S.jsxs("div",{className:"flex flex-col items-start justify-center",children:[S.jsx("div",{className:"font-sans text-base font-semibold tracking-tight text-white",children:C.name}),S.jsx("div",{className:"font-sans text-sm tracking-tight text-neutral-400",children:C.expertise})]})]})},C.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 C=0;C<R.length;C++)$.push(v(R[C]));return $},E=jm(s("{{amount}} characters left"),"{{amount}}",()=>S.jsx("b",{children:f}));return S.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:S.jsxs("div",{className:"flex",children:[S.jsx("div",{className:"hidden w-[50%] flex-col items-center justify-center bg-neutral-800 sm:block sm:p-8",children:S.jsx("div",{className:"mt-[-1px] flex flex-col gap-9 text-left",children:b()})}),S.jsxs("div",{className:"p-0 sm:p-8",children:[S.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"),S.jsx("span",{className:"hidden sm:inline",children:"."})]}),S.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.")}),S.jsxs("section",{className:"mt-8 text-left",children:[S.jsxs("div",{className:"mb-2 flex flex-row justify-between",children:[S.jsx("label",{className:"font-sans text-base font-semibold",htmlFor:"comments-name",children:s("Name")}),S.jsx(lo,{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:S.jsx("div",{className:"font-sans text-sm text-red-500",children:y.name})})]}),S.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:v=>{l(v.currentTarget.value)},onKeyDown:v=>{v.key==="Enter"&&(l(v.currentTarget.value),k().catch(console.error))}}),S.jsxs("div",{className:"mb-2 mt-6 flex flex-row justify-between",children:[S.jsx("label",{className:"font-sans text-base font-semibold",htmlFor:"comments-name",children:s("Expertise")}),S.jsx("div",{className:`font-sans text-base text-neutral-400 ${f===0&&"text-red-500"}`,children:E})]}),S.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 ${f===0&&"border-red-500 focus:border-red-500"}`,"data-testid":"expertise-input",id:"comments-expertise",maxLength:d,name:"expertise",placeholder:s("Head of Marketing at Acme, Inc"),type:"text",value:u,onChange:v=>{const $=v.currentTarget.value;p(d-$.length),c($)},onKeyDown:v=>{v.key==="Enter"&&(c(v.currentTarget.value),k().catch(console.error))}}),S.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:()=>{k().catch(console.error)},children:s("Save")})]})]}),S.jsx(o1,{close:()=>w(!1)})]})})},tN=t=>x.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},x.createElement("g",{id:"check-circle",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},x.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}))),nN={addDetailsPopup:eN,reportPopup:({comment:t})=>{const{dispatchAction:e,t:n}=H(),[o,r]=x.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=S.jsx(Rd,{className:"mr-2 h-[24px] w-[24px] fill-white"}),u=S.jsx(tN,{className:"mr-2 h-[16px] w-[16px]"});let c=null;o==="sending"?c=l:o==="sent"&&(c=u);const d=p=>{p.stopPropagation()},m=()=>{e("closePopup",{})},f=p=>{p.stopPropagation(),r("sending"),setTimeout(()=>{r("sent"),e("reportComment",t),setTimeout(()=>{m()},750)},1e3)};return S.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:d,children:S.jsxs("div",{className:"flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0",children:[S.jsx("h1",{className:"mb-1.5 font-sans text-[2.2rem] font-bold tracking-tight text-black",children:S.jsx("span",{children:n("Report this comment?")})}),S.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.")}),S.jsxs("div",{className:"mt-auto flex flex-col items-center justify-start gap-4 sm:mt-8 sm:flex-row",children:[S.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:f,children:[S.jsxs("span",{className:"invisible whitespace-nowrap",children:[a,S.jsx("br",{}),S.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[l,n("Sending")]}),S.jsx("br",{}),S.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[u,n("Sent")]})]}),S.jsxs("span",{className:"absolute flex h-[44px] items-center justify-center whitespace-nowrap",children:[c,s]})]}),S.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:m,children:n("Cancel")})]}),S.jsx(o1,{close:m})]})})}},oN=()=>{const{popup:t}=H(),[e,n]=x.useState(t);if(x.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=nN[o];if(!i)return console.warn("Unknown popup of type ",o),null;const s=t===e;return S.jsx(S.Fragment,{children:S.jsx(ZE,{callback:r.callback,show:s,title:o,children:S.jsx(i,{...r})})})},rN={"{{amount}} characters left":"{{amount}} karakters oor","{{amount}} comments":"{{amount}} kommentaar","{{amount}} days ago":"{{amount}} dae gelede","{{amount}} hrs ago":"{{amount}} ure gelede","{{amount}} mins ago":"{{amount}} minute gelede","{{amount}} months ago":"{{amount}} maande gelede","{{amount}} more":"{{amount}} meer","{{amount}} seconds ago":"{{amount}} sekondes gelede","{{amount}} weeks ago":"{{amount}} weke gelede","{{amount}} years ago":"{{amount}} jaar gelede","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",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 day ago":"Eendag gelede","One hour ago":"Een uur gelede","One min ago":"Een minuut gelede","One month ago":"Een maand gelede","One week ago":"'n Week gelede","One year ago":"Een jaar gelede",Reply:"Antwoord","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."},iN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","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":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","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}} знака","{{amount}} comments":"{{amount}} коментара","{{amount}} days ago":"Преди {{amount}} дни","{{amount}} hrs ago":"Преди {{amount}} часа","{{amount}} mins ago":"Преди {{amount}} минути","{{amount}} months ago":"Преди {{amount}} месеца","{{amount}} more":"Още {{amount}}","{{amount}} seconds ago":"Преди {{amount}} секунди","{{amount}} weeks ago":"Преди {{amount}} седмици","{{amount}} years ago":"Преди {{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":"Директор маркетинг в Компания ООД",Hide:"Скриване","Hide comment":"Скриване на коментара","Jamie Larson":"Иван Иванов","Join the discussion":"Участвайте в дискусията","Just now":"Току-що","Local resident":"Местен жител","Member discussion":"Дискусия за абонатите",Name:"Име",Neurosurgeon:"Неврохирург","One day ago":"Преди ден","One hour ago":"Преди час","One min ago":"Преди минута","One month ago":"Преди месец","One week ago":"Преди седмица","One year ago":"Преди година",Reply:"Отговор","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.":"Искането ви ще бъде изпратено до собственика на сайта."},aN={"{{amount}} characters left":"{{amount}} অক্ষর বাকি","{{amount}} comments":"{{amount}} মন্তব্য","{{amount}} days ago":"{{amount}} দিন পূর্বে","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"{{amount}} মাস পূর্বে","{{amount}} more":"{{amount}}টি আরও","{{amount}} seconds ago":"{{amount}} সেকেন্ড পূর্বে","{{amount}} weeks ago":"{{amount}} সপ্তাহ পূর্বে","{{amount}} years ago":"{{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":"মার্কেটিং প্রধান @ বাংলাদেশ ট্রেড হাব",Hide:"লুকান","Hide comment":"মন্তব্য লুকান","Jamie Larson":"শাহ নেওয়াজ","Join the discussion":"আলোচনায় যোগ দিন","Just now":"এখনই","Local resident":"স্থানীয় বাসিন্দা","Member discussion":"সদস্য আলোচনা",Name:"নাম",Neurosurgeon:"নিউরোসার্জন","One day ago":"একদিন পূর্বে","One hour ago":"এক ঘণ্টা পূর্বে","One min ago":"","One month ago":"এক মাস পূর্বে","One week ago":"এক সপ্তাহ পূর্বে","One year ago":"এক বছর পূর্বে",Reply:"উত্তর","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.":"আপনার অনুরোধ সাইটের মালিকের কাছে পাঠানো হবে।"},lN={"{{amount}} characters left":"Preostalo {{amount}} karaktera","{{amount}} comments":"{{amount}} komentara","{{amount}} days ago":"Prije {{amount}} dana","{{amount}} hrs ago":"Prije {{amount}} sati","{{amount}} mins ago":"Prije {{amount}} minuta","{{amount}} months ago":"Prije {{amount}} mjeseci","{{amount}} more":"Još {{amount}}","{{amount}} seconds ago":"Prije {{amount}} sekundi","{{amount}} weeks ago":"Prije {{amount}} sedmica","{{amount}} years ago":"Prije {{amount}} godina","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",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 day ago":"Prije jedan dan","One hour ago":"Prije jedan sat","One min ago":"Prije jedan minut","One month ago":"Prije jedan mjesec","One week ago":"Prije jednu sedmicu","One year ago":"Prije jednu godinu",Reply:"Odgovori","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."},uN={"{{amount}} characters left":"{{amount}} caràcters restants","{{amount}} comments":"{{amount}} comentaris","{{amount}} days ago":"Fa {{amount}} dies","{{amount}} hrs ago":"Fa {{amount}} hores","{{amount}} mins ago":"Fa {{amount}} minuts","{{amount}} months ago":"Fa {{amount}} mesos","{{amount}} more":"","{{amount}} seconds ago":"Fa {{amount}} segons","{{amount}} weeks ago":"Fa {{amount}} setmanes","{{amount}} years ago":"Fa {{amount}} anys","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",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 day ago":"Fa un dia","One hour ago":"Fa una hora","One min ago":"Fa un minut","One month ago":"Fa un mes","One week ago":"Fa una setmana","One year ago":"Fa un any",Reply:"Respondre","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."},cN={"{{amount}} characters left":"Zbývá {{amount}} znaků","{{amount}} comments":"{{amount}} komentářů","{{amount}} days ago":"Před {{amount}} dny","{{amount}} hrs ago":"Před {{amount}} hodinami","{{amount}} mins ago":"Před {{amount}} minutami","{{amount}} months ago":"Před {{amount}} měsíci","{{amount}} more":"Dalších {{amount}}","{{amount}} seconds ago":"Před {{amount}} sekundami","{{amount}} weeks ago":"Před {{amount}} týdny","{{amount}} years ago":"Před {{amount}} lety","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",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 day ago":"Před jedním dnem","One hour ago":"Před jednou hodinou","One min ago":"Před jednou minutou","One month ago":"Před jedním měsícem","One week ago":"Před jedním týdnem","One year ago":"Před jedním rokem",Reply:"Odpovědět","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."},dN={"{{amount}} characters left":"{{amount}} tegn tilbage","{{amount}} comments":"{{amount}} kommentarer","{{amount}} days ago":"{{amount}} dage siden","{{amount}} hrs ago":"{{amount}} timer siden","{{amount}} mins ago":"{{amount}} minutter siden","{{amount}} months ago":"{{amount}} måneder siden","{{amount}} more":"{{amount}} mere","{{amount}} seconds ago":"{{amount}} sekunder siden","{{amount}} weeks ago":"{{amount}} uger siden","{{amount}} years ago":"{{amount}} år siden","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",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 day ago":"En dag siden","One hour ago":"En time siden","One min ago":"Et minut siden","One month ago":"En måned siden","One week ago":"En uge siden","One year ago":"Et år siden",Reply:"Svar","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":"","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."},mN={"{{amount}} characters left":"{{amount}} Zeichen übrig","{{amount}} comments":"{{amount}} Kommentare","{{amount}} days ago":"Vor {{amount}} Tagen","{{amount}} hrs ago":"Vor {{amount}} Stunden","{{amount}} mins ago":"Vor {{amount}} Minuten","{{amount}} months ago":"Vor {{amount}} Monaten","{{amount}} more":"{{amount}} weitere","{{amount}} seconds ago":"Vor {{amount}} Sekunden","{{amount}} weeks ago":"Vor {{amount}} Wochen","{{amount}} years ago":"Vor {{amount}} Jahren","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",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 day ago":"Vor einem Tag","One hour ago":"Vor einer Stunde","One min ago":"Vor einer Minute","One month ago":"Vor einem Monat","One week ago":"Vor einer Woche","One year ago":"Vor einem Jahr",Reply:"Antworten","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."},fN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","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":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"Antworten","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.":""},pN={"{{amount}} characters left":"Απομένουν {{amount}} χαρακτήρες","{{amount}} comments":"{{amount}} σχόλια","{{amount}} days ago":"πριν από {{amount}} ημέρες","{{amount}} hrs ago":"πριν από {{amount}} ώρες","{{amount}} mins ago":"πριν από {{amount}} λεπτά","{{amount}} months ago":"πριν από {{amount}} μήνες","{{amount}} more":"{{amount}} περισσότερα","{{amount}} seconds ago":"πριν από {{amount}} δευτερόλεπτα","{{amount}} weeks ago":"πριν από {{amount}} εβδομάδες","{{amount}} years ago":"πριν από {{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",Hide:"Απόκρυψη","Hide comment":"Απόκρυψη σχολίου","Jamie Larson":"Τζέιμι Λάρσον","Join the discussion":"Συμμετοχή στη συζήτηση","Just now":"Μόλις τώρα","Local resident":"Τοπικός κάτοικος","Member discussion":"Συζήτηση μελών",Name:"Όνομα",Neurosurgeon:"Νευροχειρουργός","One day ago":"Πριν από μία ημέρα","One hour ago":"Πριν από μία ώρα","One min ago":"Πριν από ένα λεπτό","One month ago":"Πριν από ένα μήνα","One week ago":"Πριν από μία εβδομάδα","One year ago":"Πριν από ένα χρόνο",Reply:"Απάντηση","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.":"Το αίτημά σας θα σταλεί στον ιδιοκτήτη αυτού του ιστότοπου."},hN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","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":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","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.":""},gN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","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":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","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.":""},yN={"{{amount}} characters left":"{{amount}} caracteres restantes","{{amount}} comments":"{{amount}} comentarios","{{amount}} days ago":"{{amount}} días atrás","{{amount}} hrs ago":"{{amount}} horas atrás","{{amount}} mins ago":"{{amount}} minutos atrás","{{amount}} months ago":"{{amount}} meses atrás","{{amount}} more":"{{amount}} más","{{amount}} seconds ago":"{{amount}} segundos atrás","{{amount}} weeks ago":"{{amount}} semanas atrás","{{amount}} years ago":"{{amount}} años atrá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",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 day ago":"Hace un día","One hour ago":"Hace una hora","One min ago":"Hace un minuto","One month ago":"Hace un mes","One week ago":"Hace una semana","One year ago":"Hace un año",Reply:"Responder","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."},wN={"{{amount}} characters left":"{{amount}} tähemärki jäänud","{{amount}} comments":"{{amount}} kommentaari","{{amount}} days ago":"{{amount}} päeva tagasi","{{amount}} hrs ago":"{{amount}} tundi tagasi","{{amount}} mins ago":"{{amount}} minutit tagasi","{{amount}} months ago":"{{amount}} kuud tagasi","{{amount}} more":"{{amount}} veel","{{amount}} seconds ago":"{{amount}} sekundit tagasi","{{amount}} weeks ago":"{{amount}} nädalat tagasi","{{amount}} years ago":"{{amount}} aastat tagasi","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",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 day ago":"Üks päev tagasi","One hour ago":"Üks tund tagasi","One min ago":"Üks minut tagasi","One month ago":"Üks kuu tagasi","One week ago":"Üks nädal tagasi","One year ago":"Üks aasta tagasi",Reply:"Vasta","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."},SN={"{{amount}} characters left":"{{amount}} حرف باقی‌مانده است","{{amount}} comments":"{{amount}} دیدگاه","{{amount}} days ago":"{{amount}} روز پیش","{{amount}} hrs ago":"{{amount}} ساعت پیش","{{amount}} mins ago":"{{amount}} دقیقه پیش","{{amount}} months ago":"{{amount}} ماه پیش","{{amount}} more":"{{amount}} بیشتر","{{amount}} seconds ago":"{{amount}} ثانیه پیش","{{amount}} weeks ago":"{{amount}} هفته پیش","{{amount}} years ago":"{{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":"سرپرست بخش بازاریابی یک شرکت خیالی",Hide:"مخفی کردن","Hide comment":"مخفی کردن دیدگاه","Jamie Larson":"جیمی لارسن","Join the discussion":"به گفتمان بپیوندید","Just now":"پیوستن","Local resident":"ساکن محلی","Member discussion":"گفتمان کاربران",Name:"نام",Neurosurgeon:"جراح مغز و اعصاب","One day ago":"یک روز پیش","One hour ago":"یک ساعت پیش","One min ago":"یک دقیقه پیش","One month ago":"یک ماه پیش","One week ago":"یک هفته پیش","One year ago":"یک سال پیش",Reply:"پاسخ دادن","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}} days ago":"{{amount}} päivää sitten","{{amount}} hrs ago":"{{amount}} tuntia sitten","{{amount}} mins ago":"{{amount}} minuuttia sitten","{{amount}} months ago":"{{amount}} kuukautta sitten","{{amount}} more":"{{amount}} vielä lisää","{{amount}} seconds ago":"{{amount}} sekuntia sitten","{{amount}} weeks ago":"{{amount}} viikkoa sitten","{{amount}} years ago":"{{amount}} vuotta sitten","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",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 day ago":"Päivä sitten","One hour ago":"Tunti sitten","One min ago":"Minuutti sitten","One month ago":"Kuukausi sitten","One week ago":"Viikko sitten","One year ago":"Vuosi sitten",Reply:"Vastaa","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"},vN={"{{amount}} characters left":"{{amount}} caractères restants","{{amount}} comments":"{{amount}} commentaires","{{amount}} days ago":"Il y a {{amount}} jours","{{amount}} hrs ago":"Il y a {{amount}} heures","{{amount}} mins ago":"Il y a {{amount}} minutes","{{amount}} months ago":"Il y a {{amount}} mois","{{amount}} more":"{{amount}} supplémentaire(s)","{{amount}} seconds ago":"Il y a {{amount}} secondes","{{amount}} weeks ago":"Il y a {{amount}} semaines","{{amount}} years ago":"Il y a {{amount}} ans","1 comment":"1 commentaire","Add comment":"Ajoutez 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":"Ajoutez une réponse","Already a member?":"Déjà membre ?",Anonymous:"Anonyme","Become a member of {{publication}} to start commenting.":"Devenez membre de {{publication}} pour commencer à commenter.","Become a paid member of {{publication}} to start commenting.":"Devenez un membre payant de {{publication}} pour commencer à commenter.",Cancel:"Annuler",Comment:"Commentaire","Complete your profile":"Complétez votre profil",Delete:"Supprimer","Deleted member":"Membre 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",Hide:"Masquer","Hide comment":"Masquer le commentaire","Jamie Larson":"Jamie Larson","Join the discussion":"Rejoignez la discussion","Just now":"À l'instant","Local resident":"Résident local","Member discussion":"Discussion entre membres",Name:"Nom",Neurosurgeon:"Neurochirurgien","One day ago":"Il y a un jour","One hour ago":"Il y a une heure","One min ago":"Il y a une minute","One month ago":"Il y a un mois","One week ago":"Il y a une semaine","One year ago":"Il y a un an",Reply:"Répondre","Reply to comment":"Répondre au commentaire",Report:"Signaler","Report comment":"Signalez 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":"Inscrivez-vous maintenant","Sort by":"","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."},bN={"{{amount}} characters left":"caractaran air fhàgail: {{amount}}","{{amount}} comments":"beachdan: {{amount}}","{{amount}} days ago":"o chionn {{amount}}l","{{amount}} hrs ago":"o chionn {{amount}}u","{{amount}} mins ago":"o chionn {{amount}}m","{{amount}} months ago":"o chionn {{amount}}m","{{amount}} more":"{{amount}} a bharrachd","{{amount}} seconds ago":"o chionn {{amount}}d","{{amount}} weeks ago":"o chionn {{amount}}s","{{amount}} years ago":"o chionn {{amount}}b","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",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 day ago":"O chionn latha","One hour ago":"O chionn uair a thìde","One min ago":"O chionn mionaid","One month ago":"O chionn mìos","One week ago":"O chionn seachdain","One year ago":"O chionn bliadhna",Reply:"Cuir freagairt","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."},xN={"{{amount}} characters left":"{{amount}} अक्षर बाकी","{{amount}} comments":"{{amount}} टिप्पणियाँ","{{amount}} days ago":"{{amount}} दिन पहले","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"{{amount}} महीने पहले","{{amount}} more":"{{amount}} और","{{amount}} seconds ago":"{{amount}} सेकंड पहले","{{amount}} weeks ago":"{{amount}} सप्ताह पहले","{{amount}} years ago":"{{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 में विपणन प्रमुख",Hide:"छिपाएं","Hide comment":"टिप्पणी छिपाएं","Jamie Larson":"राहुल शर्मा","Join the discussion":"चर्चा में शामिल हों","Just now":"अभी","Local resident":"स्थानीय निवासी","Member discussion":"सदस्य चर्चा",Name:"नाम",Neurosurgeon:"न्यूरोसर्जन","One day ago":"एक दिन पहले","One hour ago":"एक घंटा पहले","One min ago":"","One month ago":"एक महीने पहले","One week ago":"एक सप्ताह पहले","One year ago":"एक साल पहले",Reply:"जवाब दें","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.":"आपका अनुरोध इस साइट के मालिक को भेजा जाएगा।"},$N={"{{amount}} characters left":"{{amount}} znakova preostalo","{{amount}} comments":"{{amount}} komentara","{{amount}} days ago":"Prije{{amount}} dana","{{amount}} hrs ago":"Prije {{amount}} sati","{{amount}} mins ago":"Prije {{amount}} minuta","{{amount}} months ago":"Prije {{amount}} mjeseci","{{amount}} more":"{{amount}} više","{{amount}} seconds ago":"Prije {{amount}} sekundi","{{amount}} weeks ago":"Prije {{amount}} tjedana","{{amount}} years ago":"Prije {{amount}} godine","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",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 day ago":"Prije jedan dan","One hour ago":"Prije jednog sata","One min ago":"Prije jedne minute","One month ago":"Prije mjesec dana","One week ago":"Prije tjedan dana","One year ago":"Prije godinu dana",Reply:"Odgovori","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."},CN={"{{amount}} characters left":"{{amount}} karakter maradt","{{amount}} comments":"{{amount}} hozzászólás","{{amount}} days ago":"{{amount}} napja","{{amount}} hrs ago":"{{amount}} órája","{{amount}} mins ago":"{{amount}} perce","{{amount}} months ago":"{{amount}} hónapja","{{amount}} more":"","{{amount}} seconds ago":"{{amount}} másodperce","{{amount}} weeks ago":"{{amount}} hete","{{amount}} years ago":"{{amount}} éve","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.",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 day ago":"Egy napja","One hour ago":"Egy órája","One min ago":"Egy perce","One month ago":"Egy hónapja","One week ago":"Egy hete","One year ago":"Egy éve",Reply:"Válasz","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."},EN={"{{amount}} characters left":"{{amount}} karakter tersisa","{{amount}} comments":"{{amount}} komentar","{{amount}} days ago":"{{amount}} hari yang lalu","{{amount}} hrs ago":"{{amount}} jam yang lalu","{{amount}} mins ago":"{{amount}} menit yang lalu","{{amount}} months ago":"{{amount}} bulan yang lalu","{{amount}} more":"{{amount}} lagi","{{amount}} seconds ago":"{{amount}} detik yang lalu","{{amount}} weeks ago":"{{amount}} minggu yang lalu","{{amount}} years ago":"{{amount}} tahun yang lalu","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",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 day ago":"Satu hari yang lalu","One hour ago":"Satu jam yang lalu","One min ago":"Satu menit yang lalu","One month ago":"Satu bulan yang lalu","One week ago":"Satu minggu yang lalu","One year ago":"Satu tahun yang lalu",Reply:"Balas","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."},NN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","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":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","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.":""},ON={"{{amount}} characters left":"{{amount}} caratteri rimanenti","{{amount}} comments":"{{amount}} commenti","{{amount}} days ago":"{{amount}} giorni fa","{{amount}} hrs ago":"{{amount}} ore fa","{{amount}} mins ago":"{{amount}} minuti fa","{{amount}} months ago":"{{amount}} mesi fa","{{amount}} more":"{{amount}} in più","{{amount}} seconds ago":"{{amount}} secondi fa","{{amount}} weeks ago":"{{amount}} settimane fa","{{amount}} years ago":"{{amount}} anni fa","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",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 day ago":"Un giorno fa","One hour ago":"Un'ora fa","One min ago":"Un minuto fa","One month ago":"Un mese fa","One week ago":"Una settimana fa","One year ago":"Un anno fa",Reply:"Rispondi","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":"","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."},AN={"{{amount}} characters left":"残り{{amount}}文字","{{amount}} comments":"{{amount}}のコメント","{{amount}} days ago":"{{amount}}日前","{{amount}} hrs ago":"{{amount}}時間前","{{amount}} mins ago":"{{amount}}分前","{{amount}} months ago":"{{amount}}ヶ月前","{{amount}} more":"さらに{{amount}}個","{{amount}} seconds ago":"{{amount}}秒前","{{amount}} weeks ago":"{{amount}}週間前","{{amount}} years ago":"{{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",Hide:"非表示にする","Hide comment":"コメントを非表示にする","Jamie Larson":"ジェイミー・ラーソン","Join the discussion":"議論に参加する","Just now":"今すぐ参加する","Local resident":"地元住民","Member discussion":"メンバーによる議論",Name:"名前",Neurosurgeon:"脳神経外科医","One day ago":"1日前","One hour ago":"1時間前","One min ago":"1分前","One month ago":"1ヶ月前","One week ago":"1週間前","One year ago":"1年前",Reply:"返信する","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.":"あなたのリクエストはこのサイトの管理者に送信されます。"},RN={"{{amount}} characters left":"{{amount}}글자 남음","{{amount}} comments":"{{amount}}개의 댓글","{{amount}} days ago":"{{amount}}일 전","{{amount}} hrs ago":"{{amount}}시간 전","{{amount}} mins ago":"{{amount}}분 전","{{amount}} months ago":"{{amount}}개월 전","{{amount}} more":"","{{amount}} seconds ago":"{{amount}}초 전","{{amount}} weeks ago":"{{amount}}주 전","{{amount}} years ago":"{{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":"",Hide:"숨기기","Hide comment":"댓글 숨기기","Jamie Larson":"","Join the discussion":"댓글에 참여해 주세요","Just now":"방금 전","Local resident":"","Member discussion":"회원들의 댓글",Name:"이름",Neurosurgeon:"","One day ago":"1일 전","One hour ago":"1시간 전","One min ago":"1분 전","One month ago":"1달 전","One week ago":"1주 전","One year ago":"1년 전",Reply:"답변","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.":"운영자에게 요구사항이 전달되었어요."},MN={"{{amount}} characters left":"{{amount}} таңба қалды","{{amount}} comments":"{{amount}} пікір","{{amount}} days ago":"{{amount}} күн бұрын","{{amount}} hrs ago":"{{amount}} сағат бұрын","{{amount}} mins ago":"{{amount}} минут бұрын","{{amount}} months ago":"{{amount}} ай бұрын","{{amount}} more":"тағы {{amount}}","{{amount}} seconds ago":"{{amount}} секунд бұрын","{{amount}} weeks ago":"{{amount}} апта бұрын","{{amount}} years ago":"{{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 маркетинг жетекшісі ",Hide:"Жасыру","Hide comment":"Пікірді жасыру","Jamie Larson":"Пәленше Түгеншиев","Join the discussion":"Талқыға қосылу","Just now":"Дәл қазір","Local resident":"Жергілікті тұрғын","Member discussion":"Мүшелер талқысы",Name:"Есімі",Neurosurgeon:"Нейрохирург","One day ago":"Бір күн бұрын","One hour ago":"Бір сағат бұрын","One min ago":"Бір минут бұрын","One month ago":"Бір ай бұрын","One week ago":"Бір апта бұрын","One year ago":"Бір жыл бұрын",Reply:"Жауап беру","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}} likę simboliai","{{amount}} comments":"{{amount}} komentarai","{{amount}} days ago":"Prieš {{amount}} d.","{{amount}} hrs ago":"Prieš {{amount}} val.","{{amount}} mins ago":"Prieš {{amount}} min.","{{amount}} months ago":"Prieš {{amount}} mėn.","{{amount}} more":"{{amount}} daugiau","{{amount}} seconds ago":"Prieš {{amount}} sek.","{{amount}} weeks ago":"Prieš {{amount}} sav.","{{amount}} years ago":"Prieš {{amount}} m.","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",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 day ago":"Prieš dieną","One hour ago":"Prieš valandą","One min ago":"Prieš minutę","One month ago":"Prieš mėnesį","One week ago":"Prieš savaitę","One year ago":"Prieš metus",Reply:"Atsakyti","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."},TN={"{{amount}} characters left":"Преостануваат {{amount}} знаци.","{{amount}} comments":"{{amount}} коментари","{{amount}} days ago":"Пред {{amount}} дена","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"Пред {{amount}} месеци","{{amount}} more":"Уште {{amount}}","{{amount}} seconds ago":"Пред {{amount}} секунди","{{amount}} weeks ago":"Пред {{amount}} недели","{{amount}} years ago":"Пред {{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":"Раководител на Маркетинг во Примерна Компанија",Hide:"Скријте","Hide comment":"Скријте го коментарот","Jamie Larson":"Петар Петровски","Join the discussion":"Приклучете се во разговорот","Just now":"Штотуку","Local resident":"Локал жител","Member discussion":"Разговор на членовите",Name:"Име",Neurosurgeon:"Неврохирург","One day ago":"Пред еден ден","One hour ago":"Пред еден час","One min ago":"","One month ago":"Пред еден месец","One week ago":"Пред една недела","One year ago":"Пред една година",Reply:"Одговорете","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}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","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":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","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.":""},PN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","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":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","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.":""},IN={"{{amount}} characters left":"Nog {{amount}} tekens over","{{amount}} comments":"{{amount}} reacties","{{amount}} days ago":"{{amount}} dagen geleden","{{amount}} hrs ago":"{{amount}} uur geleden","{{amount}} mins ago":"{{amount}} min geleden","{{amount}} months ago":"{{amount}} maanden geleden","{{amount}} more":"","{{amount}} seconds ago":"{{amount}} seconden geleden","{{amount}} weeks ago":"{{amount}} weken geleden","{{amount}} years ago":"{{amount}} jaar geleden","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",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 day ago":"Een dag geleden","One hour ago":"Een uur geleden","One min ago":"Een min geleden","One month ago":"Een maand geleden","One week ago":"Een week geleden","One year ago":"Een jaar geleden",Reply:"Beantwoorden","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."},LN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","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":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","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}} tegn igjen","{{amount}} comments":"{{amount}} kommentarer","{{amount}} days ago":"{{amount}} dager siden","{{amount}} hrs ago":"{{amount}} timer siden","{{amount}} mins ago":"{{amount}} minutter siden","{{amount}} months ago":"{{amount}} måneder siden","{{amount}} more":"{{amount}} mer","{{amount}} seconds ago":"{{amount}} sekunder siden","{{amount}} weeks ago":"{{amount}} uker siden","{{amount}} years ago":"{{amount}} år siden","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",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 day ago":"En dag siden","One hour ago":"En time siden","One min ago":"Ett minutt siden","One month ago":"En måned siden","One week ago":"En uke siden","One year ago":"Ett år siden",Reply:"Svar","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."},FN={"{{amount}} characters left":"Pozostało {{amount}} znaków","{{amount}} comments":"{{amount}} komentarzy","{{amount}} days ago":"{{amount}} dni temu","{{amount}} hrs ago":"{{amount}} godzin temu","{{amount}} mins ago":"{{amount}} minut temu","{{amount}} months ago":"{{amount}} miesięcy temu","{{amount}} more":"{{amount}} więcej","{{amount}} seconds ago":"{{amount}} sekund temu","{{amount}} weeks ago":"{{amount}} tygodni temu","{{amount}} years ago":"{{amount}} lat temu","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",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 day ago":"Dzień temu","One hour ago":"Godzinę temu","One min ago":"Minutę temu","One month ago":"Miesiąc temu","One week ago":"Tydzień temu","One year ago":"Rok temu",Reply:"Odpowiedz","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."},BN={"{{amount}} characters left":"Faltam {{amount}} caracteres ","{{amount}} comments":"{{amount}} comentários","{{amount}} days ago":"{{amount}} dias atrás","{{amount}} hrs ago":"{{amount}} horas atrás","{{amount}} mins ago":"{{amount}} minutos atrás","{{amount}} months ago":"{{amount}} meses atrás","{{amount}} more":"mais","{{amount}} seconds ago":"{{amount}} segundos atrás","{{amount}} weeks ago":"{{amount}} semanas atrás","{{amount}} years ago":"{{amount}} anos atrás","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",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 day ago":"um dia atrás","One hour ago":"uma hora atrás","One min ago":"um minuto atrás","One month ago":"um mês atrás","One week ago":"uma semana atrás","One year ago":"um ano atrás",Reply:"Responder","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."},HN={"{{amount}} characters left":"{{amount}} caracteres restantes","{{amount}} comments":"{{amount}} comentários","{{amount}} days ago":"{{amount}} dias atrás","{{amount}} hrs ago":"{{amount}} horas atrás","{{amount}} mins ago":"{{amount}} minutos atrás","{{amount}} months ago":"{{amount}} meses atrás","{{amount}} more":"{{amount}} mais","{{amount}} seconds ago":"{{amount}} segundos atrás","{{amount}} weeks ago":"{{amount}} semanas atrás","{{amount}} years ago":"{{amount}} anos atrás","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",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 day ago":"Um dia atrás","One hour ago":"Uma hora atrás","One min ago":"Um minuto atrás","One month ago":"Um mês atrás","One week ago":"Uma semana atrás","One year ago":"Um ano atrás",Reply:"Responder","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":"","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."},VN={"{{amount}} characters left":"{{amount}} caractere rămase","{{amount}} comments":"{{amount}} comentarii","{{amount}} days ago":"acum {{amount}} zile","{{amount}} hrs ago":"acum {{amount}} ore","{{amount}} mins ago":"acum {{amount}} minute","{{amount}} months ago":"acum {{amount}} luni","{{amount}} more":"încă {{amount}}","{{amount}} seconds ago":"acum {{amount}} secunde","{{amount}} weeks ago":"acum {{amount}} săptămâni","{{amount}} years ago":"acum {{amount}} ani","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",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 day ago":"Acum o zi","One hour ago":"Acum o oră","One min ago":"Acum un minut","One month ago":"Acum o lună","One week ago":"Acum o săptămână","One year ago":"Acum un an",Reply:"Răspunde","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":"","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."},UN={"{{amount}} characters left":"{{amount}} символа(ов) осталось","{{amount}} comments":"{{amount}} комментария(ев)","{{amount}} days ago":"{{amount}} дня(ей) назад","{{amount}} hrs ago":"{{amount}} часа(ов) назад","{{amount}} mins ago":"{{amount}} минут(ы) назад","{{amount}} months ago":"{{amount}} месяца(ев) назад","{{amount}} more":"ещё {{amount}}","{{amount}} seconds ago":"{{amount}} секунд(ы) назад","{{amount}} weeks ago":"{{amount}} недель(и) назад","{{amount}} years ago":"{{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":"Руководитель отдела маркетинга в Корпорации «Акме»",Hide:"Скрыть","Hide comment":"Скрыть комментарий","Jamie Larson":"Павел Бид","Join the discussion":"Присоединиться к обсуждению","Just now":"Сейчас","Local resident":"Местный житель","Member discussion":"Обсуждение участников",Name:"Имя",Neurosurgeon:"Нейрохирург","One day ago":"День назад","One hour ago":"Час назад","One min ago":"Минуту назад","One month ago":"Месяц назад","One week ago":"Неделю назад","One year ago":"Год назад",Reply:"Ответить","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.":"Ваш запрос будет отправлен владельцу сайта."},JN={"{{amount}} characters left":"තව වචන {{amount}} යි.","{{amount}} comments":"අදහ​ස් {{amount}} යි.","{{amount}} days ago":"දින {{amount}} ට පෙ​ර","{{amount}} hrs ago":"පැය {{amount}} ට පෙ​ර","{{amount}} mins ago":"මිනිත්තු {{amount}} ට පෙ​ර","{{amount}} months ago":"මාස {{amount}} ට පෙ​ර","{{amount}} more":"","{{amount}} seconds ago":"තත්ත්පර {{amount}} ට පෙ​ර","{{amount}} weeks ago":"සති {{amount}} ට පෙ​ර","{{amount}} years ago":"අවුරුදු {{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:"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 හි අලෙවි ප්‍රධානී",Hide:"සඟවන්න","Hide comment":"අදහස සඟවන්න","Jamie Larson":"ජේමි ලාර්සන්","Join the discussion":"සාකච්ඡාවට එක්වන්න","Just now":"මේ දැ​න්","Local resident":"දේශීය පදිංචි","Member discussion":"සාමාජික සාකච්ඡාව",Name:"න​ම",Neurosurgeon:"ස්නායු ශ​ල්‍ය වෛ​ද්‍ය","One day ago":"දිනකට පෙ​ර","One hour ago":"පැයකට පෙ​ර","One min ago":"මිනිත්තුවකට පෙ​ර","One month ago":"මසකට පෙ​ර","One week ago":"සතියකට පෙ​ර","One year ago":"අවුරුද්දකට පෙ​ර",Reply:"ප්‍රතිචාර දක්වන්​න","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.":"ඔබගේ ඉල්ලීම මෙම අඩවියේ හිමිකරු වෙත යවනු ලැබේ."},_N={"{{amount}} characters left":"Zostáva {{amount}} znakov","{{amount}} comments":"{{amount}} komentárov","{{amount}} days ago":"Pred {{amount}} dňami","{{amount}} hrs ago":"Pred {{amount}} hodinami","{{amount}} mins ago":"Pred {{amount}} minútami","{{amount}} months ago":"Pred {{amount}} mesiacmi","{{amount}} more":"","{{amount}} seconds ago":"Pred {{amount}} sekundami","{{amount}} weeks ago":"Pred {{amount}} týždňami","{{amount}} years ago":"Pred {{amount}} rokmi","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",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 day ago":"Včera","One hour ago":"Pred hodinou","One min ago":"Pred minútou","One month ago":"Pred mesiacom","One week ago":"Pred týždňom","One year ago":"Pred rokom",Reply:"Odpovedať","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."},YN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","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":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","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.":""},KN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","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":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","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.":""},WN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","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":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","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.":""},qN={"{{amount}} characters left":"Преостало још {{amount}} карактера","{{amount}} comments":"{{amount}} коментара","{{amount}} days ago":"пре {{amount}} дана","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"пре {{amount}} месеци","{{amount}} more":"још {{amount}}","{{amount}} seconds ago":"пре {{amount}} секунди","{{amount}} weeks ago":"пре {{amount}} недеља","{{amount}} years ago":"пре {{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",Hide:"Сакриј","Hide comment":"Сакриј коментар","Jamie Larson":"Џејми Ларсон","Join the discussion":"Придружите се дискусији","Just now":"Управо сада","Local resident":"Мештанин","Member discussion":"Дискусија чланова",Name:"Име",Neurosurgeon:"Неурохирург","One day ago":"Пре један дан","One hour ago":"Пре један сат","One min ago":"","One month ago":"Пре један месец","One week ago":"Пре једну недељу","One year ago":"Пре једну годину",Reply:"Одговори","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.":"Ваш захтев ће бити послат власнику овог сајта."},GN={"{{amount}} characters left":"{{amount}} tecken kvar","{{amount}} comments":"{{amount}} kommentarer","{{amount}} days ago":"{{amount}} dagar sedan","{{amount}} hrs ago":"{{amount}} timmar sedan","{{amount}} mins ago":"{{amount}} minuter sedan","{{amount}} months ago":"{{amount}} månader sedan","{{amount}} more":"{{amount}} fler","{{amount}} seconds ago":"{{amount}} sekunder sedan","{{amount}} weeks ago":"{{amount}} veckor sedan","{{amount}} years ago":"{{amount}} år sedan","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",Hide:"Dölj","Hide comment":"Dölj kommentar","Jamie Larson":"Emma Jansson","Join the discussion":"Var med i diskussionen","Just now":"Nu precis","Local resident":"Lokalboende","Member discussion":"Medlemsdiskussion",Name:"Namn",Neurosurgeon:"Neurokirurg","One day ago":"En dag sedan","One hour ago":"En timme sedan","One min ago":"En minut sedan","One month ago":"En månad sedan","One week ago":"En vecka sedan","One year ago":"Ett år sedan",Reply:"Svar","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":"","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"},QN={"{{amount}} characters left":"คงเหลือ {{amount}} ตัวอักษร","{{amount}} comments":"{{amount}} ความคิดเห็น","{{amount}} days ago":"{{amount}} วันที่แล้ว","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"{{amount}} เดือนที่แล้ว","{{amount}} more":"อีก {{amount}}","{{amount}} seconds ago":"{{amount}} วินาทีที่แล้ว","{{amount}} weeks ago":"{{amount}} สัปดาห์ที่แล้ว","{{amount}} years ago":"{{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",Hide:"ซ่อน","Hide comment":"ซ่อนข้อความ","Jamie Larson":"กนกพัฒน์ สัณห์ฤทัย","Join the discussion":"เข้าร่วมการสนทนา","Just now":"ตอนนี้","Local resident":"ผู้อยู่อาศัยในท้องถิ่น","Member discussion":"การสนทนาของสมาชิก",Name:"ชื่อ",Neurosurgeon:"ศัลยแพทย์ระบบประสาท","One day ago":"1 วันที่แล้ว","One hour ago":"1 ชั่วโมงที่แล้ว","One min ago":"","One month ago":"1 เดือนที่แล้ว","One week ago":"1 สัปดาห์ที่แล้ว","One year ago":"1 ปีที่แล้ว",Reply:"ตอบกลับ","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}} karakter kaldı","{{amount}} comments":"{{amount}} yorum","{{amount}} days ago":"{{amount}} gün önce","{{amount}} hrs ago":"{{amount}} saat önce","{{amount}} mins ago":"{{amount}} dakika önce","{{amount}} months ago":"{{amount}} ay önce","{{amount}} more":"Daha fazla {{amount}}","{{amount}} seconds ago":"{{amount}} saniye önce","{{amount}} weeks ago":"{{amount}} hafta önce","{{amount}} years ago":"{{amount}} yıl önce","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ü",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 day ago":"Bir gün önce","One hour ago":"Bir saat önce","One min ago":"Bir dakika önce","One month ago":"Bir ay önce","One week ago":"Bir hafta önce","One year ago":"Bir yıl önce",Reply:"Cevapla","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":"","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."},XN={"{{amount}} characters left":"{{amount}} символів залишилось","{{amount}} comments":"{{amount}} коментарів","{{amount}} days ago":"{{amount}} днів тому","{{amount}} hrs ago":"{{amount}} годин тому","{{amount}} mins ago":"{{amount}} хвилин тому","{{amount}} months ago":"{{amount}} місяців тому","{{amount}} more":"ще {{amount}}","{{amount}} seconds ago":"{{amount}} секунд тому","{{amount}} weeks ago":"{{amount}} тижнів тому","{{amount}} years ago":"{{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",Hide:"Сховати","Hide comment":"Сховати коментар","Jamie Larson":"Ваше імʼя","Join the discussion":"Долучитися до обговорення","Just now":"Прямо зараз","Local resident":"Місцевий експерт","Member discussion":"Обговорення учасників",Name:"Імʼя",Neurosurgeon:"Нейрохірург","One day ago":"Один день тому","One hour ago":"Одну годину тому","One min ago":"Одну хвилину тому","One month ago":"Один місяць тому","One week ago":"Один тиждень тому","One year ago":"Один рік тому",Reply:"Відповісти","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.":"Ваш запит буде надіслано власнику цього сайту."},eO={"{{amount}} characters left":"{{amount}} حروف باقی ہیں","{{amount}} comments":"{{amount}} تبادلے","{{amount}} days ago":"{{amount}} دن پہلے","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"{{amount}} مہینے پہلے","{{amount}} more":"","{{amount}} seconds ago":"{{amount}} سیکنڈ پہلے","{{amount}} weeks ago":"{{amount}} ہفتے پہلے","{{amount}} years ago":"{{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 کے مارکیٹنگ کا سربراہ",Hide:"چھپائیں","Hide comment":"تبادلہ چھپائیں","Jamie Larson":"جیمی لارسن","Join the discussion":"تبادلے میں شامل ہوں","Just now":"ابھی","Local resident":"مقامی رہائشی","Member discussion":"رکن کا تبادلہ",Name:"نام",Neurosurgeon:"نیوروسرجن","One day ago":"ایک دن پہلے","One hour ago":"ایک گھنٹہ پہلے","One min ago":"","One month ago":"ایک مہینہ پہلے","One week ago":"ایک ہفتہ پہلے","One year ago":"ایک سال پہلے",Reply:"جواب","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.":"آپ کا درخواست اس سائٹ کے مالک کو بھیجا جائے گا۔"},tO={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","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":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","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.":""},nO={"{{amount}} characters left":"{{amount}} ký tự còn lại","{{amount}} comments":"{{amount}} bình luận","{{amount}} days ago":"{{amount}} ngày trước","{{amount}} hrs ago":"{{amount}} giờ trước","{{amount}} mins ago":"{{amount}} phút trước","{{amount}} months ago":"{{amount}} tháng trước","{{amount}} more":"{{amount}} nữa","{{amount}} seconds ago":"{{amount}} giây trước","{{amount}} weeks ago":"{{amount}} tuần trước","{{amount}} years ago":"{{amount}} năm trước","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}} để bắt đầu 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}} để bắt đầu 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",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 day ago":"Một ngày trước","One hour ago":"Một giờ trước","One min ago":"Một phút trước","One month ago":"Một tháng trước","One week ago":"Một tuần trước","One year ago":"Một năm trước",Reply:"Trả lời","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":"","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."},oO={"{{amount}} characters left":"还剩{{amount}}字","{{amount}} comments":"{{amount}}条评论","{{amount}} days ago":"{{amount}}天前","{{amount}} hrs ago":"{{amount}}小时前","{{amount}} mins ago":"{{amount}}分钟前","{{amount}} months ago":"{{amount}}个月前","{{amount}} more":"","{{amount}} seconds ago":"{{amount}}秒前","{{amount}} weeks ago":"{{amount}}周前","{{amount}} years ago":"{{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市场部负责人",Hide:"隐藏","Hide comment":"隐藏评论","Jamie Larson":"Jamie Larson","Join the discussion":"加入讨论","Just now":"刚刚","Local resident":"本地居民","Member discussion":"会员讨论",Name:"称呼",Neurosurgeon:"神经外科医生","One day ago":"一天前","One hour ago":"一小时前","One min ago":"一分钟前","One month ago":"一个月前","One week ago":"一周前","One year ago":"一年前",Reply:"回复","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.":"您的请求将被发送给站点所有者。"},rO={"{{amount}} characters left":"還剩 {{amount}} 個字","{{amount}} comments":"{{amount}} 則留言","{{amount}} days ago":"{{amount}} 天前","{{amount}} hrs ago":"{{amount}} 小時前","{{amount}} mins ago":"{{amount}} 分鐘前","{{amount}} months ago":"{{amount}} 個月前","{{amount}} more":"還剩 {{amount}} 則留言","{{amount}} seconds ago":"{{amount}} 秒前","{{amount}} weeks ago":"{{amount}} 周前","{{amount}} years ago":"{{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市場部負責人",Hide:"隱藏","Hide comment":"隱藏留言","Jamie Larson":"Jamie Larson","Join the discussion":"加入討論","Just now":"剛剛","Local resident":"本地居民","Member discussion":"會員討論",Name:"稱呼",Neurosurgeon:"神經外科醫生","One day ago":"一天前","One hour ago":"一小時前","One min ago":"一分鐘前","One month ago":"一個月前","One week ago":"一周前","One year ago":"一年前",Reply:"回覆","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.":"您的請求將被發送給所有者。"},iO={"{{amount}} characters left":"{{amount}} herufi zimebaki","{{amount}} comments":"{{amount}} maoni","{{amount}} days ago":"siku {{amount}} zilizopita","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"miezi {{amount}} iliyopita","{{amount}} more":"{{amount}} zaidi","{{amount}} seconds ago":"sekunde {{amount}} zilizopita","{{amount}} weeks ago":"wiki {{amount}} zilizopita","{{amount}} years ago":"miaka {{amount}} iliyopita","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",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 day ago":"Siku moja iliyopita","One hour ago":"Saa moja iliyopita","One min ago":"","One month ago":"Mwezi mmoja uliopita","One week ago":"Wiki moja iliyopita","One year ago":"Mwaka mmoja uliopita",Reply:"Jibu","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."},sO={"{{amount}} characters left":"{{amount}} எழுத்துக்கள் எஞ்சியுள்ளன","{{amount}} comments":"{{amount}} கருத்துக்கள்","{{amount}} days ago":"{{amount}} நாட்களுக்கு முன்பு","{{amount}} hrs ago":"{{amount}} மணி நேரத்திற்கு முன்பு","{{amount}} mins ago":"{{amount}} நிமிடங்களுக்கு முன்பு","{{amount}} months ago":"{{amount}} மாதங்களுக்கு முன்பு","{{amount}} more":"{{amount}} மேலும்","{{amount}} seconds ago":"{{amount}} வினாடிகளுக்கு முன்பு","{{amount}} weeks ago":"{{amount}} வாரங்களுக்கு முன்பு","{{amount}} years ago":"{{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 நிறுவனத்தின் சந்தைப்படுத்தல் தலைவர்",Hide:"மறைக்கவும்","Hide comment":"கருத்தை மறை","Jamie Larson":"ஜேமி லார்சன்","Join the discussion":"கலந்துரையாடலில் சேரவும்","Just now":"சற்றுமுன்னர்தான்","Local resident":"உள்ளூர்வாசி","Member discussion":"உறுப்பினர் கருத்து",Name:"பெயர்",Neurosurgeon:"நரம்பியல் அறுவை சிகிச்சை நிபுணர்","One day ago":"ஒரு நாள் முன்பு","One hour ago":"ஒரு மணி முன்பு","One min ago":"ஒரு நிமிடம் முன்பு","One month ago":"ஒரு மாதம் முன்பு","One week ago":"ஒரு வார முன்பு","One year ago":"ஒரு வருடம் முன்பு",Reply:"பதிலளிக்கவும்","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 r1;function i1(){return r1||(r1={"/ghost/i18n/locales/af/comments.json":function(){return rN},"/ghost/i18n/locales/ar/comments.json":function(){return iN},"/ghost/i18n/locales/bg/comments.json":function(){return sN},"/ghost/i18n/locales/bn/comments.json":function(){return aN},"/ghost/i18n/locales/bs/comments.json":function(){return lN},"/ghost/i18n/locales/ca/comments.json":function(){return uN},"/ghost/i18n/locales/cs/comments.json":function(){return cN},"/ghost/i18n/locales/da/comments.json":function(){return dN},"/ghost/i18n/locales/de/comments.json":function(){return mN},"/ghost/i18n/locales/de-CH/comments.json":function(){return fN},"/ghost/i18n/locales/el/comments.json":function(){return pN},"/ghost/i18n/locales/en/comments.json":function(){return hN},"/ghost/i18n/locales/eo/comments.json":function(){return gN},"/ghost/i18n/locales/es/comments.json":function(){return yN},"/ghost/i18n/locales/et/comments.json":function(){return wN},"/ghost/i18n/locales/fa/comments.json":function(){return SN},"/ghost/i18n/locales/fi/comments.json":function(){return kN},"/ghost/i18n/locales/fr/comments.json":function(){return vN},"/ghost/i18n/locales/gd/comments.json":function(){return bN},"/ghost/i18n/locales/hi/comments.json":function(){return xN},"/ghost/i18n/locales/hr/comments.json":function(){return $N},"/ghost/i18n/locales/hu/comments.json":function(){return CN},"/ghost/i18n/locales/id/comments.json":function(){return EN},"/ghost/i18n/locales/is/comments.json":function(){return NN},"/ghost/i18n/locales/it/comments.json":function(){return ON},"/ghost/i18n/locales/ja/comments.json":function(){return AN},"/ghost/i18n/locales/ko/comments.json":function(){return RN},"/ghost/i18n/locales/kz/comments.json":function(){return MN},"/ghost/i18n/locales/lt/comments.json":function(){return DN},"/ghost/i18n/locales/mk/comments.json":function(){return TN},"/ghost/i18n/locales/mn/comments.json":function(){return jN},"/ghost/i18n/locales/ms/comments.json":function(){return PN},"/ghost/i18n/locales/nl/comments.json":function(){return IN},"/ghost/i18n/locales/nn/comments.json":function(){return LN},"/ghost/i18n/locales/no/comments.json":function(){return zN},"/ghost/i18n/locales/pl/comments.json":function(){return FN},"/ghost/i18n/locales/pt/comments.json":function(){return BN},"/ghost/i18n/locales/pt-BR/comments.json":function(){return HN},"/ghost/i18n/locales/ro/comments.json":function(){return VN},"/ghost/i18n/locales/ru/comments.json":function(){return UN},"/ghost/i18n/locales/si/comments.json":function(){return JN},"/ghost/i18n/locales/sk/comments.json":function(){return _N},"/ghost/i18n/locales/sl/comments.json":function(){return YN},"/ghost/i18n/locales/sq/comments.json":function(){return KN},"/ghost/i18n/locales/sr/comments.json":function(){return WN},"/ghost/i18n/locales/sr-Cyrl/comments.json":function(){return qN},"/ghost/i18n/locales/sv/comments.json":function(){return GN},"/ghost/i18n/locales/th/comments.json":function(){return QN},"/ghost/i18n/locales/tr/comments.json":function(){return ZN},"/ghost/i18n/locales/uk/comments.json":function(){return XN},"/ghost/i18n/locales/ur/comments.json":function(){return eO},"/ghost/i18n/locales/uz/comments.json":function(){return tO},"/ghost/i18n/locales/vi/comments.json":function(){return nO},"/ghost/i18n/locales/zh/comments.json":function(){return oO},"/ghost/i18n/locales/zh-Hant/comments.json":function(){return rO},"/ghost/i18n/locales/sw/comments.json":function(){return iO},"/ghost/i18n/locales/ta/comments.json":function(){return sO}})}function aO(t){function e(n){var o=s1(n,t);if(o!==null)return i1()[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=s1(n,t);return o!==null?o:require.resolve(n)},e}function s1(t,e){var n=lO(t);t=fl(t);var o;t[0]==="/"&&(e="");for(var r=i1(),i=["",".js",".json"];n?o=fl(e+"/node_modules/"+t):o=fl(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=fl(e+"/..");if(l===e)break;e=l}return null}function lO(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 fl(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 im={exports:{}};const F=t=>typeof t=="string",Ui=()=>{let t,e;const n=new Promise((o,r)=>{t=o,e=r});return n.resolve=t,n.reject=e,n},a1=t=>t==null?"":""+t,uO=(t,e,n)=>{t.forEach(o=>{e[o]&&(n[o]=e[o])})},cO=/###/g,l1=t=>t&&t.indexOf("###")>-1?t.replace(cO,"."):t,u1=t=>!t||F(t),Ji=(t,e,n)=>{const o=F(e)?e.split("."):e;let r=0;for(;r<o.length-1;){if(u1(t))return{};const i=l1(o[r]);!t[i]&&n&&(t[i]=new n),Object.prototype.hasOwnProperty.call(t,i)?t=t[i]:t={},++r}return u1(t)?{}:{obj:t,k:l1(o[r])}},c1=(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},dO=(t,e,n,o)=>{const{obj:r,k:i}=Ji(t,e,Object);r[i]=r[i]||[],r[i].push(n)},pl=(t,e)=>{const{obj:n,k:o}=Ji(t,e);if(n)return n[o]},mO=(t,e,n)=>{const o=pl(t,n);return o!==void 0?o:pl(e,n)},d1=(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]):d1(t[o],e[o],n):t[o]=e[o]);return t},pr=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var fO={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const pO=t=>F(t)?t.replace(/[&<>"'\/]/g,e=>fO[e]):t;class hO{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 gO=[" ",",","?","!",";"],yO=new hO(20),wO=(t,e,n)=>{e=e||"",n=n||"";const o=gO.filter(s=>e.indexOf(s)<0&&n.indexOf(s)<0);if(o.length===0)return!0;const r=yO.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},sm=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},hl=t=>t&&t.replace("_","-"),SO={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 gl{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||SO,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 gl(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new gl(this.logger,e)}}var Dt=new gl;class yl{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 u=0;u<l;u++)a(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[a,l]=s;for(let u=0;u<l;u++)a.apply(a,[e,...o])})}}class m1 extends yl{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=pl(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:sm(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),c1(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=pl(this.data,a)||{};s.skipCopy||(o=JSON.parse(JSON.stringify(o))),r?d1(l,o,i):l={...l,...o},c1(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 f1={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 p1={};class wl extends yl{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),uO(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Dt.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&&!wO(e,o,r);if(s&&!a){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:i};const u=e.split(o);(o!==r||o===r&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.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],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const b=n.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${b}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${b}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s}const d=this.resolve(e,n);let m=d&&d.res;const f=d&&d.usedKey||s,p=d&&d.exactUsedKey||s,y=Object.prototype.toString.apply(m),h=["[object Number]","[object Function]","[object RegExp]"],g=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,k=!F(m)&&typeof m!="boolean"&&typeof m!="number";if(w&&m&&k&&h.indexOf(y)<0&&!(F(g)&&Array.isArray(m))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const b=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,m,{...n,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(d.res=b,d.usedParams=this.getUsedParamsDetails(n),d):b}if(i){const b=Array.isArray(m),E=b?[]:{},v=b?p:f;for(const $ in m)if(Object.prototype.hasOwnProperty.call(m,$)){const R=`${v}${i}${$}`;E[$]=this.translate(R,{...n,joinArrays:!1,ns:a}),E[$]===R&&(E[$]=m[$])}m=E}}else if(w&&F(g)&&Array.isArray(m))m=m.join(g),m&&(m=this.extendTranslation(m,e,n,o));else{let b=!1,E=!1;const v=n.count!==void 0&&!F(n.count),$=wl.hasDefaultValue(n),R=v?this.pluralResolver.getSuffix(u,n.count,n):"",C=n.ordinal&&v?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",_=v&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),se=_&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${R}`]||n[`defaultValue${C}`]||n.defaultValue;!this.isValidLookup(m)&&$&&(b=!0,m=se),this.isValidLookup(m)||(E=!0,m=s);const G=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:m,Oe=$&&se!==m&&this.options.updateMissing;if(E||b||Oe){if(this.logger.log(Oe?"updateKey":"missingKey",u,l,s,Oe?se:m),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,ue,ve)=>{const M=$&&ve!==m?ve:G;this.options.missingKeyHandler?this.options.missingKeyHandler(Q,l,ue,M,Oe,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Q,l,ue,M,Oe,n),this.emit("missingKey",Q,l,ue,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?le.forEach(Q=>{const ue=this.pluralResolver.getSuffixes(Q,n);_&&n[`defaultValue${this.options.pluralSeparator}zero`]&&ue.indexOf(`${this.options.pluralSeparator}zero`)<0&&ue.push(`${this.options.pluralSeparator}zero`),ue.forEach(ve=>{de([Q],s+ve,n[`defaultValue${ve}`]||se)})}):de(le,s,se))}m=this.extendTranslation(m,e,n,d,o),E&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}:${s}`),(E||b)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,b?m:void 0):m=this.options.parseMissingKeyHandler(m))}return r?(d.res=m,d.usedParams=this.getUsedParamsDetails(n),d):m}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 u=F(e)&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const m=e.match(this.interpolator.nestingRegexp);c=m&&m.length}let d=o.replace&&!F(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),e=this.interpolator.interpolate(e,d,o.lng||this.language||r.usedLng,o),u){const m=e.match(this.interpolator.nestingRegexp),f=m&&m.length;c<f&&(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 m=arguments.length,f=new Array(m),p=0;p<m;p++)f[p]=arguments[p];return i&&i[0]===f[0]&&!o.context?(s.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${n[0]}`),null):s.translate(...f,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=f1.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 u=this.extractFromKey(l,n),c=u.key;r=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const m=n.count!==void 0&&!F(n.count),f=m&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),p=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);d.forEach(h=>{this.isValidLookup(o)||(a=h,!p1[`${y[0]}-${h}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(p1[`${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 w=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(w,c,g,h,n);else{let b;m&&(b=this.pluralResolver.getSuffix(g,n.count,n));const E=`${this.options.pluralSeparator}zero`,v=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(w.push(c+b),n.ordinal&&b.indexOf(v)===0&&w.push(c+b.replace(v,this.options.pluralSeparator)),f&&w.push(c+E)),p){const $=`${c}${this.options.contextSeparator}${n.context}`;w.push($),m&&(w.push($+b),n.ordinal&&b.indexOf(v)===0&&w.push($+b.replace(v,this.options.pluralSeparator)),f&&w.push($+E))}}let k;for(;k=w.pop();)this.isValidLookup(o)||(i=k,o=this.getResource(g,h,k,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 am=t=>t.charAt(0).toUpperCase()+t.slice(1);class h1{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Dt.create("languageUtils")}getScriptPartFromCode(e){if(e=hl(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=hl(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]=am(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]=am(o[1].toLowerCase())),n.indexOf(o[2].toLowerCase())>-1&&(o[2]=am(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 kO=[{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}],vO={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 bO=["v1","v2","v3"],xO=["v4"],g1={zero:0,one:1,two:2,few:3,many:4,other:5},$O=()=>{const t={};return kO.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:vO[e.fc]}})}),t};class CO{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=Dt.create("pluralResolver"),(!this.options.compatibilityJSON||xO.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=$O(),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=hl(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)=>g1[r]-g1[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!bO.includes(this.options.compatibilityJSON)}}const y1=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=mO(t,e,n);return!i&&r&&F(n)&&(i=sm(t,n,o),i===void 0&&(i=sm(e,n,o))),i},lm=t=>t.replace(/\$/g,"$$$$");class EO{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Dt.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:u,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:m,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:y,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:w}=e.interpolation;this.escape=n!==void 0?n:pO,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=i?pr(i):s||"{{",this.suffix=a?pr(a):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=m?pr(m):f||pr("$t("),this.nestingSuffix=p?pr(p):y||pr(")"),this.nestingOptionsSeparator=h||",",this.maxReplaces=g||1e3,this.alwaysFormat=w!==void 0?w:!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||{},u=f=>{if(f.indexOf(this.formatSeparator)<0){const g=y1(n,l,f,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(g,void 0,o,{...r,...n,interpolationkey:f}):g}const p=f.split(this.formatSeparator),y=p.shift().trim(),h=p.join(this.formatSeparator).trim();return this.format(y1(n,l,y,this.options.keySeparator,this.options.ignoreJSONStructure),h,o,{...r,...n,interpolationkey:y})};this.resetRegExp();const c=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:f=>lm(f)},{regex:this.regexp,safeValue:f=>this.escapeValue?lm(this.escape(f)):lm(f)}].forEach(f=>{for(a=0;i=f.regex.exec(e);){const p=i[1].trim();if(s=u(p),s===void 0)if(typeof c=="function"){const h=c(e,i,r);s=F(h)?h:""}else if(r&&Object.prototype.hasOwnProperty.call(r,p))s="";else if(d){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${p} for interpolating ${e}`),s="";else!F(s)&&!this.useRawValueToEscape&&(s=a1(s));const y=f.safeValue(s);if(e=e.replace(i[0],y),d?(f.regex.lastIndex+=s.length,f.regex.lastIndex-=i[0].length):f.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,u)=>{const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const d=l.split(new RegExp(`${c}[ ]*{`));let m=`{${d[1]}`;l=d[0],m=this.interpolate(m,s);const f=m.match(/'/g),p=m.match(/"/g);(f&&f.length%2===0&&!p||p.length%2!==0)&&(m=m.replace(/'/g,'"'));try{s=JSON.parse(m),u&&(s={...u,...s})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${c}${m}`}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 u=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){const c=r[1].split(this.formatSeparator).map(d=>d.trim());r[1]=c.shift(),l=c,u=!0}if(i=n(a.call(this,r[1].trim(),s),s),i&&r[0]===e&&!F(i))return i;F(i)||(i=a1(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=""),u&&(i=l.reduce((c,d)=>this.format(c,d,o.lng,{...o,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}}const NO=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(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),c=a.trim();n[c]||(n[c]=u),u==="false"&&(n[c]=!1),u==="true"&&(n[c]=!0),isNaN(u)||(n[c]=parseInt(u,10))}})}return{formatName:e,formatOptions:n}},hr=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(hl(o),r),e[s]=a),a(n)}};class OO{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Dt.create("formatter"),this.options=e,this.formats={number:hr((n,o)=>r=>new Intl.NumberFormat(n,{...o}).format(r)),currency:hr((n,o)=>r=>new Intl.NumberFormat(n,{...o,style:"currency"}).format(r)),datetime:hr((n,o)=>r=>new Intl.DateTimeFormat(n,{...o}).format(r)),relativetime:hr((n,o)=>r=>new Intl.RelativeTimeFormat(n,{...o}).format(r,o.range||"day")),list:hr((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()]=hr(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:u,formatOptions:c}=NO(l);if(this.formats[u]){let d=a;try{const m=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},f=m.locale||m.lng||r.locale||r.lng||o;d=this.formats[u](a,f,{...c,...r,...m})}catch(m){this.logger.warn(m)}return d}else this.logger.warn(`there was no format function for ${u}`);return a},e)}}const AO=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class RO extends yl{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=Dt.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(u=>{let c=!0;n.forEach(d=>{const m=`${u}|${d}`;!o.reload&&this.store.hasResourceBundle(u,d)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?s[m]===void 0&&(s[m]=!0):(this.state[m]=1,c=!1,s[m]===void 0&&(s[m]=!0),i[m]===void 0&&(i[m]=!0),l[d]===void 0&&(l[d]=!0)))}),c||(a[u]=!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=>{dO(l.loaded,[i],s),AO(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{a[u]||(a[u]={});const c=l.loaded[u];c.length&&c.forEach(d=>{a[u][d]===void 0&&(a[u][d]=!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=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,o,r+1,i*2,s)},i);return}s(u,c)},l=this.backend[o].bind(this.backend);if(l.length===2){try{const u=l(e,n);u&&typeof u.then=="function"?u.then(c=>a(null,c)).catch(a):a(null,u)}catch(u){a(u)}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},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(e,n,o,r,l):c=u(e,n,o,r),c&&typeof c.then=="function"?c.then(d=>a(null,d)).catch(a):a(null,c)}catch(c){a(c)}else u(e,n,o,r,a,l)}!e||!e[0]||this.store.addResource(e[0],n,o,r)}}}const w1=()=>({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}}),S1=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),Sl=()=>{},MO=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class _i extends yl{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=S1(e),this.services={},this.logger=Dt,this.modules={external:[]},MO(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=w1();this.options={...r,...this.options,...S1(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=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?Dt.init(i(this.modules.logger),this.options):Dt.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=OO);const d=new h1(this.options);this.store=new m1(this.options.resources,this.options);const m=this.services;m.logger=Dt,m.resourceStore=this.store,m.languageUtils=d,m.pluralResolver=new CO(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(m.formatter=i(c),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new EO(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new RO(i(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(f){for(var p=arguments.length,y=new Array(p>1?p-1:0),h=1;h<p;h++)y[h-1]=arguments[h];e.emit(f,...y)}),this.modules.languageDetector&&(m.languageDetector=i(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=i(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new wl(this.services,this.options),this.translator.on("*",function(f){for(var p=arguments.length,y=new Array(p>1?p-1:0),h=1;h<p;h++)y[h-1]=arguments[h];e.emit(f,...y)}),this.modules.external.forEach(f=>{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,o||(o=Sl),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[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(c=>{this[c]=function(){return e.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return e.store[c](...arguments),e}});const l=Ui(),u=()=>{const c=(d,m)=>{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(m),o(d,m)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sl;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(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};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=Ui();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=Sl),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"&&f1.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=Ui();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,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):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 u=F(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{s(c,u)})};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 u=arguments.length,c=new Array(u>2?u-2:0),d=2;d<u;d++)c[d-2]=arguments[d];l=r.options.overloadTranslationOptionHandler([s,a].concat(c))}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 m=r.options.keySeparator||".";let f;return l.keyPrefix&&Array.isArray(s)?f=s.map(p=>`${l.keyPrefix}${m}${p}`):f=l.keyPrefix?`${l.keyPrefix}${m}${s}`:s,r.t(f,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 u=this.services.backendConnector.state[`${a}|${l}`];return u===-1||u===0||u===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=Ui();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=Ui();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 h1(w1());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 _i(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sl;const o=e.forkResourceStore;o&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new _i(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 m1(this.store.data,r),i.services.resourceStore=i.store),i.translator=new wl(i.services,r),i.translator.on("*",function(a){for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c<l;c++)u[c-1]=arguments[c];i.emit(a,...u)}),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 k1=_i.createInstance();k1.createInstance=_i.createInstance;var DO=k1;const TO=DO,v1=["af","ar","bg","bn","bs","ca","cs","da","de","de-CH","el","en","eo","es","et","fa","fi","fr","gd","hi","hr","hu","id","is","it","ja","ko","kz","lt","mk","mn","ms","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"];im.exports=(t="en",e="portal")=>{const n=TO.createInstance();return n.init({lng:t,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:!1,ns:e,defaultNS:e,resources:v1.reduce((o,r)=>{const i=aO("/ghost/i18n/lib")(`../locales/${r}/${e}.json`);return o[r]={[e]:{...i,...i.default&&typeof i.default=="object"?i.default:{}}},o},{})}),n},im.exports.SUPPORTED_LOCALES=v1;var jO=im.exports,PO=jO;const IO=Ze(PO);function LO({siteUrl:t=window.location.origin,apiUrl:e,apiKey:n}){const o="members/api";function r({type:u,resource:c,params:d=""}){return u==="members"?`${t.replace(/\/$/,"")}/${o}/${c}/${d}`:""}function i({resource:u,params:c=""}){return e&&n?`${e.replace(/\/$/,"")}/${u}/?key=${n}&limit=all${c}`:""}function s({url:u,method:c="GET",headers:d={},credentials:m=void 0,body:f=void 0}){return fetch(u,{method:c,headers:d,credentials:m,body:f})}let a=null;const l={site:{settings(){const u=i({resource:"settings"});return s({url:u,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(c){if(c.ok)return c.json();throw new Error("Failed to fetch site data")})}},member:{identity(){const u=r({type:"members",resource:"session"});return s({url:u,credentials:"same-origin"}).then(function(c){return!c.ok||c.status===204?null:c.text()})},sessionData(){const u=r({type:"members",resource:"member"});return s({url:u,credentials:"same-origin"}).then(function(c){return!c.ok||c.status===204?null:c.json()})},update({name:u,expertise:c}){const d=r({type:"members",resource:"member"});return s({url:d,method:"PUT",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({name:u,expertise:c})}).then(function(f){return f.ok?f.json():null})}},comments:{async count({postId:u}){const c=u?`?ids=${u}`:"",d=r({type:"members",resource:"comments/counts",params:c}),f=await(await s({url:d,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"})).json();return u?f[u]:f},browse({page:u,postId:c,order:d}){let m=null;a&&!d&&(m=`created_at:<=${a}`);const f=new URLSearchParams;f.set("limit","20"),m&&f.set("filter",m),f.set("page",u.toString()),d&&f.set("order",d);const p=r({type:"members",resource:`comments/post/${c}`,params:`?${f.toString()}`}),y=s({url:p,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:u,afterReplyId:c,limit:d}){const m=encodeURIComponent(`id:>'${c}'`),f=r({type:"members",resource:`comments/${u}/replies`,params:`?limit=${d??5}&filter=${m}`}),p=await s({url:f,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"});if(p.ok)return p.json();throw new Error("Failed to fetch replies")},add({comment:u}){const c={comments:[u]},d=r({type:"members",resource:"comments"});return s({url:d,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)}).then(function(m){if(m.ok)return m.json();throw new Error("Failed to add comment")})},edit({comment:u}){const c={comments:[u]},d=r({type:"members",resource:`comments/${u.id}`});return s({url:d,method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)}).then(function(m){if(m.ok)return m.json();throw new Error("Failed to edit comment")})},read(u){const c=r({type:"members",resource:`comments/${u}`});return s({url:c,method:"GET",credentials:"same-origin"}).then(function(d){if(d.ok)return d.json();throw new Error("Failed to read comment")})},like({comment:u}){const c=r({type:"members",resource:`comments/${u.id}/like`});return s({url:c,method:"POST",headers:{"Content-Type":"application/json"}}).then(function(d){if(d.ok)return"Success";throw new Error("Failed to like comment")})},unlike({comment:u}){const c={comments:[u]},d=r({type:"members",resource:`comments/${u.id}/like`});return s({url:d,method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)}).then(function(m){if(m.ok)return"Success";throw new Error("Failed to unlike comment")})},report({comment:u}){const c=r({type:"members",resource:`comments/${u.id}/report`});return s({url:c,method:"POST",headers:{"Content-Type":"application/json"}}).then(function(d){if(d.ok)return"Success";throw new Error("Failed to report comment")})}},init:()=>{}};return l.init=async()=>{const[u]=await Promise.all([l.member.sessionData()]);let c={};try{const d=await l.site.settings();d.settings.labs&&Object.assign(c,d.settings.labs)}catch{c={}}return{member:u,labs:c}},l}async function zO({state:t,api:e,options:n,order:o}){let r=1;t.pagination&&t.pagination.page&&(r=t.pagination.page+1);const i=await e.comments.browse({page:r,postId:n.postId,order:o||t.order});return{comments:[...t.comments,...i.comments],pagination:i.meta.pagination}}async function FO({data:{order:t},options:e,api:n}){const o=await n.comments.browse({page:1,postId:e.postId,order:t});return{comments:[...o.comments],pagination:o.meta.pagination,order:t}}async function BO({state:t,api:e,data:{comment:n,limit:o}}){var i;const r=await e.comments.replies({commentId:n.id,afterReplyId:(i=n.replies[n.replies.length-1])==null?void 0:i.id,limit:o});return{comments:t.comments.map(s=>s.id===n.id?{...n,replies:[...n.replies,...r.comments]}:s)}}async function HO({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 VO({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 UO({state:t,adminApi:e,data:n}){return await e.hideComment(n.id),{comments:t.comments.map(o=>{const r=o.replies.map(i=>i.id===n.id?{...i,status:"hidden"}:i);return o.id===n.id?{...o,status:"hidden",replies:r}:{...o,replies:r}}),commentCount:t.commentCount-1}}async function JO({state:t,api:e,adminApi:n,data:o}){await n.showComment(o.id);const i=(await e.comments.read(o.id)).comments[0];return{comments:t.comments.map(s=>{const a=s.replies.map(l=>l.id===o.id?i:l);return s.id===o.id?i:{...s,replies:a}}),commentCount:t.commentCount+1}}async function _O({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 YO({api:t,data:e}){return await t.comments.report({comment:e}),{}}async function KO({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 WO({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 qO({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 GO({data:t,state:e,api:n}){var l,u;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=(u=e==null?void 0:e.member)==null?void 0:u.expertise;if(r!==void 0&&a!==r&&(i.expertise=r),Object.keys(i).length>0)try{const c=await n.member.update(i);if(!c)throw new Error("Failed to update member");return{member:c,success:!0}}catch(c){return{success:!1,error:c}}return null}function QO({data:t}){return{popup:t}}function ZO(){return{popup:null}}function XO({state:t}){return{secundaryFormCount:t.secundaryFormCount+1}}function eA({state:t}){return{secundaryFormCount:t.secundaryFormCount-1}}const b1={openPopup:QO,closePopup:ZO,increaseSecundaryFormCount:XO,decreaseSecundaryFormCount:eA},tA={addComment:HO,editComment:qO,hideComment:UO,deleteComment:WO,showComment:JO,likeComment:_O,unlikeComment:KO,reportComment:YO,addReply:VO,loadMoreComments:zO,loadMoreReplies:BO,updateMember:GO,setOrder:FO};function nA(t){return!!b1[t]}async function oA({action:t,data:e,state:n,api:o,adminApi:r,options:i}){const s=tA[t];return s?await s({data:e,state:n,api:o,adminApi:r,options:i})||{}:{}}function rA({action:t,data:e,state:n,api:o,adminApi:r,options:i}){const s=b1[t];return s?s({data:e,state:n,api:o,adminApi:r,options:i})||{}:{}}function iA({adminUrl:t}){const e=document.querySelector('iframe[data-frame="admin-auth"]');let n=1;const o={},r=new URL(t).origin;window.addEventListener("message",function(a){if(a.origin!==r)return;let l=null;try{l=JSON.parse(a.data)}catch{return}const u=o[l.uid];u&&(delete o[l.uid],u(l.error,l.result))});function i(a,l){return new Promise((u,c)=>{function d(m,f){return m?c(m):u(f)}n+=1,o[n]=d,e.contentWindow.postMessage(JSON.stringify({uid:n,action:a,...l}),r)})}return{async getUser(){const a=await i("getUser");return!a||!a.users?null:a.users[0]},async hideComment(a){return await i("hideComment",{id:a})},async showComment(a){return await i("showComment",{id:a})}}}function sA(t){const e=U.useCallback(()=>{const i=t.dataset,s=i.ghostComments||window.location.origin,a=i.key,l=i.api,u=i.admin,c=i.postId||"",d=i.colorScheme,m=i.avatarSaturation?parseInt(i.avatarSaturation):void 0,f=i.accentColor??"#000000",p=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:c,adminUrl:u,colorScheme:d,avatarSaturation:m,accentColor:f,commentsEnabled:p,title:y,showCount:h,publication:g}},[t]),n=x.useMemo(()=>e(),[]),[o,r]=U.useState(n);return U.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 aA=({scriptTag:t})=>{const e=sA(t),[n,o]=x.useState({initStatus:"running",member:null,admin:null,comments:[],pagination:null,commentCount:0,secundaryFormCount:0,popup:null,labs:null,order:"count__likes desc, created_at desc"}),r=U.createRef(),i=U.useMemo(()=>LO({siteUrl:e.siteUrl,apiUrl:e.apiUrl,apiKey:e.apiKey}),[e]),[s,a]=x.useState(null),l=x.useCallback(h=>{o(g=>(typeof h=="function"&&(h=h(g)),{...g,...h}))},[o]),u=x.useCallback(async(h,g)=>{if(nA(h)){l(w=>rA({action:h,data:g,state:w,api:i,adminApi:s,options:e}));return}l(w=>(oA({action:h,data:g,state:w,api:i,adminApi:s,options:e}).then(k=>{l({...k})}).catch(console.error),{}))},[i,s,e]),c=x.useMemo(()=>IO(e.locale,"comments"),[e.locale]),d={...e,...n,t:c.t,dispatchAction:u},m=async()=>{if(!(s||!e.adminUrl))try{const h=iA({adminUrl:e.adminUrl});a(h);let g=null;try{g=await h.getUser()}catch(w){console.warn("[Comments] Failed to fetch current admin user:",w)}l({admin:g})}catch(h){console.error("[Comments] Failed to initialize admin authentication:",h)}},f=async h=>{let g;h!=null&&h.commentImprovements?g=i.comments.browse({page:1,postId:e.postId,order:n.order}):g=i.comments.browse({page:1,postId:e.postId});const w=i.comments.count({postId:e.postId}),[k,b]=await Promise.all([g,w]);return{comments:k.comments,pagination:k.meta.pagination,count:b}},p=async()=>{try{const{member:h,labs:g}=await i.init(),{comments:w,pagination:k,count:b}=await f(g);l({member:h,initStatus:"success",comments:w,pagination:k,commentCount:b,labs:g})}catch(h){console.error("[Comments] Failed to initialize:",h),l({initStatus:"failed"})}};x.useEffect(()=>{const h=new IntersectionObserver(g=>{g.forEach(w=>{w.isIntersecting&&(p(),r.current&&h.unobserve(r.current))})},{root:null,rootMargin:"0px",threshold:.1});return r.current&&h.observe(r.current),()=>{r.current&&h.unobserve(r.current)}},[r.current]);const y=n.initStatus==="success";return S.jsxs(El.Provider,{value:d,children:[S.jsx(GE,{ref:r,children:S.jsx(_E,{done:y})}),n.comments.length>0?S.jsx(L1,{adminUrl:e.adminUrl,onLoad:m}):null,S.jsx(oN,{})]})};function lA(){let t=document.currentScript;if(!t)throw new Error("[Comments-UI] Cannot find current script tag");return t}function uA(t){if(t.previousElementSibling&&t.previousElementSibling.id===ml)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=ml,t.parentElement.insertBefore(e,t),e}function cA(){const t=new URL(window.location.href);t.searchParams.get("token")&&(t.searchParams.delete("token"),window.history.replaceState({},document.title,t.href))}function dA(){const t=lA(),e=uA(t);try{cA(),f0.render(S.jsx(U.StrictMode,{children:S.jsx(aA,{scriptTag:t})}),e)}catch(n){console.error(n)}}dA()});
154
+ 3. "-" cannot repeat`);oe.customSchemes.push([t,e])}function sE(){oe.scanner=QC(oe.customSchemes);for(let t=0;t<oe.tokenQueue.length;t++)oe.tokenQueue[t][1]({scanner:oe.scanner});oe.parser=tE(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||sE(),nE(oe.parser.start,t,ZC(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 tm(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 aE(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function lE(t){return new Ve({key:new ft("autolink"),appendTransaction:(e,n,o)=>{const r=e.some(u=>u.docChanged)&&!n.doc.eq(o.doc),i=e.some(u=>u.getMeta("preventAutolink"));if(!r||i)return;const{tr:s}=o,a=gb(n.doc,[...e]);if(Cb(a).forEach(({newRange:u})=>{const c=wb(o.doc,u,f=>f.isTextblock);let d,m;if(c.length>1?(d=c[0],m=o.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ")):c.length&&o.doc.textBetween(u.from,u.to," "," ").endsWith(" ")&&(d=c[0],m=o.doc.textBetween(d.pos,u.to,void 0," ")),d&&m){const f=m.split(" ").filter(g=>g!=="");if(f.length<=0)return!1;const p=f[f.length-1],y=d.pos+m.lastIndexOf(p);if(!p)return!1;const h=K0(p).map(g=>g.toObject(t.defaultProtocol));if(!aE(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=>{kh(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 uE(t){return new Ve({key:new ft("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(m=>m.nodeName==="A"))return!1;const l=Sh(e.state,t.type.name),u=o.target,c=(r=u==null?void 0:u.href)!==null&&r!==void 0?r:l.href,d=(i=u==null?void 0:u.target)!==null&&i!==void 0?i:l.target;return u&&c?(window.open(c,d),!0):!1}}})}function cE(t){return new Ve({key:new ft("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(u=>{a+=u.textContent});const l=W0(a,{defaultProtocol:t.defaultProtocol}).find(u=>u.isLink&&u.value===a);return!a||!l?!1:(t.editor.commands.setMark(t.type,{href:l.href}),!0)}}})}const dE=/[\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(dE,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`,"i"))}const mE=Br.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(){iE()},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[Wb({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(lE({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:this.options.validate})),this.options.openOnClick===!0&&t.push(uE({type:this.type})),this.options.linkOnPaste&&t.push(cE({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),t}}),fE=ln.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()}}}),pE=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 ft("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,u=!s.isLeaf&&js(s);if((l||!this.options.showOnlyCurrent)&&u){const c=[this.options.emptyNodeClass];i&&c.push(this.options.emptyEditorClass);const d=nt.node(a,a+s.nodeSize,{class:c.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(d)}return this.options.includeChildren}),me.create(t,r)}}})]}}),hE=ln.create({name:"text",group:"inline"});function om({placeholder:t,autofocus:e=!1,content:n=""}){return{extensions:[HC,hE,fE,mE.configure({openOnClick:!1}),pE.configure({placeholder:t,showOnlyWhenEditable:!1}),BC.configure({}),VC.configure({})],content:n,autofocus:e,editorProps:{attributes:{class:"gh-comment-content focus:outline-0","data-testid":"editor"}},parseOptions:{preserveWhitespace:"full"}}}const gE=({comment:t,parent:e,close:n})=>{const{dispatchAction:o,t:r}=H(),i={placeholder:r("Edit this comment"),autofocus:!1,content:t.html},s=Ad({...om(i)});x.useEffect(()=>{s&&s.chain().focus().command(({tr:c,commands:d})=>d.setTextSelection({from:c.doc.content.size,to:c.doc.content.size})).run()},[s]);const a=x.useCallback(async({html:c})=>{await o("editComment",{comment:{id:t.id,html:c},parent:e})},[e,t,o]),l={submitText:r("Save"),submitSize:"small",submit:a},u=x.useCallback(()=>{(s==null?void 0:s.getHTML())===t.html&&n()},[s,n,t.html]);return w.jsx("div",{className:"px-3 pb-2 pt-3",children:w.jsx(D0,{close:n,closeIfNotChanged:u,editor:s,...l})})},G0=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"black",...t},x.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"})),yE=({comment:t})=>{const{dispatchAction:e,member:n,commentsEnabled:o}=H(),r=kr(),[i,s]=x.useState(""),a=o==="paid",l=n&&!!n.paid,u=n&&(l||!a),c=()=>{if(!u&&r&&r.commentImprovements){e("openPopup",{type:"ctaPopup"});return}else if(!u)return;t.liked?e("unlikeComment",t):(e("likeComment",t),s("animate-heartbeat"),setTimeout(()=>{s("")},400))},d=u?"button":"span";let m="cursor-pointer";return u||(m="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:c,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&&u&&"group-hover:stroke-black/75 dark:group-hover:stroke-white/75"} transition duration-50 ease-linear`}),t.count.likes]}):w.jsxs(d,{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"} ${m}`,"data-testid":"like-button",type:"button",onClick:c,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&&u&&"group-hover:stroke-black/75 dark:group-hover:stroke-white/75"} transition duration-50 ease-linear`}),t.count.likes]})},Q0=({comment:t,close:e})=>{const{dispatchAction:n,t:o}=H(),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 sm:inline",children:o("Hide comment")}),w.jsx("span",{className:"sm:hidden",children:o("Hide")})]})})},wE=({comment:t,close:e,toggleEdit:n})=>{const{dispatchAction:o,t:r}=H(),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")})]})},SE=({comment:t,close:e})=>{const{dispatchAction:n,t:o}=H(),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")})]})})},kE=({comment:t,close:e,toggleEdit:n})=>{var c;const{member:o,admin:r}=H(),i=o&&((c=t.member)==null?void 0:c.uuid)===(o==null?void 0:o.uuid),s=!!r,a=x.useRef(null);x.useEffect(()=>{var f,p;const d=()=>{e()};window.addEventListener("click",d,{passive:!0});const m=(p=(f=a.current)==null?void 0:f.ownerDocument)==null?void 0:p.defaultView;return m&&m!==window&&m.addEventListener("click",d,{passive:!0}),()=>{window.removeEventListener("click",d,{passive:!0}),m&&m!==window&&m.removeEventListener("click",d,{passive:!0})}},[e]),x.useEffect(()=>{const d=m=>{m.key==="Escape"&&e()};return window.addEventListener("keydown",d,{passive:!0}),()=>{window.removeEventListener("keydown",d,{passive:!0})}},[e]);const l=d=>{d.stopPropagation()};let u=null;if(t.status==="published")i?u=w.jsx(wE,{close:e,comment:t,toggleEdit:n}):s?u=w.jsx(Q0,{close:e,comment:t}):u=w.jsx(SE,{close:e,comment:t});else if(s)u=w.jsx(Q0,{close:e,comment:t});else return null;return w.jsx("div",{ref:a,onClick:l,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:u})})},vE=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},x.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"}),x.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"}),x.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"})),Z0=({comment:t,toggleEdit:e})=>{const[n,o]=x.useState(!1),{member:r,admin:i}=H(),s=!!i,a=()=>{o(c=>!c)},l=()=>{o(!1)};return!!r&&t.status==="published"||s?w.jsxs("div",{"data-testid":"more-button",children:[w.jsx("button",{className:"outline-0",type:"button",onClick:a,children:w.jsx(vE,{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(kE,{close:l,comment:t,toggleEdit:e}):null]}):null},bE=({loadMore:t,count:e})=>{const{t:n}=H(),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})," "]})})})},xE=({comment:t,toggleReplyMode:e})=>{const{dispatchAction:n}=H(),o=t.count.replies-t.replies.length,r=()=>{n("loadMoreReplies",{comment:t})};return w.jsxs("div",{children:[t.replies.map(i=>w.jsx(rm,{comment:i,parent:t,toggleParentReplyMode:e},i.id)),o>0&&w.jsx(bE,{count:o,loadMore:r})]})},$E=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",stroke:"black",xmlns:"http://www.w3.org/2000/svg",...t},x.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"})),CE=({disabled:t,isReplying:e,toggleReply:n})=>{const{member:o,t:r}=H();return o?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:n,children:[w.jsx($E,{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")]}):null},EE=({parent:t,close:e})=>{const{postId:n,dispatchAction:o,t:r}=H(),[,i]=TC(Bm),s={placeholder:r("Reply to comment"),autofocus:!0},a=Ad({...om(s)}),l=x.useCallback(async({html:d})=>{await o("addReply",{parent:t,reply:{post_id:n,status:"published",html:d}})},[t,n,o]),u={submitText: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")})]}),submitSize:"medium",submit:l},c=x.useCallback(()=>{a!=null&&a.isEmpty&&e()},[a,e]);return w.jsx("div",{ref:i,children:w.jsx(D0,{close:e,closeIfNotChanged:c,editor:a,...u})})},rm=({comment:t,parent:e,toggleParentReplyMode:n})=>w.jsx(lo,{enter:"transition-opacity duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:!0,appear:!0,children:w.jsx(NE,{comment:t,parent:e,toggleParentReplyMode:n})}),NE=({comment:t,parent:e,toggleParentReplyMode:n})=>{const[o,r]=x.useState(!1),i=()=>{r(!1)},s=()=>{r(!0)};return o?w.jsx(gE,{close:i,comment:t,parent:e}):w.jsx(OE,{comment:t,openEditMode:s,parent:e,toggleParentReplyMode:n})},OE=({comment:t,parent:e,openEditMode:n,toggleParentReplyMode:o})=>q1(t)?w.jsx(AE,{comment:t,openEditMode:n,parent:e,toggleParentReplyMode:o}):w.jsx(RE,{comment:t,openEditMode:n}),AE=({comment:t,parent:e,openEditMode:n,toggleParentReplyMode:o})=>{const[r,i]=x.useState(!1),{dispatchAction:s}=H(),a=async()=>{if(e&&o)return await o();r||await s("loadMoreReplies",{comment:t,limit:"all"}),i(d=>!d)},l=()=>{i(!1)},u=r||t.replies&&t.replies.length>0,c=w.jsx(Vm,{comment:t});return w.jsxs(e1,{avatar:c,hasReplies:u,children:[w.jsx(PE,{comment:t}),w.jsx(IE,{html:t.html}),w.jsx(LE,{comment:t,isInReplyMode:r,openEditMode:n,parent:e,toggleReplyMode:a}),w.jsx(X0,{comment:t,toggleReplyMode:a}),w.jsx(TE,{closeReplyMode:l,comment:t,isInReplyMode:r})]})},RE=({comment:t,openEditMode:e})=>{const{admin:n,t:o}=H();let r;n&&t.status==="hidden"?r=o("This comment has been hidden."):r=o("This comment has been removed.");const i=w.jsx(Q1,{}),s=t.replies&&t.replies.length>0;return w.jsxs(e1,{avatar:i,hasReplies:s,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 italic leading-normal text-black/20 sm:text-lg dark:text-white/35",children:r}),w.jsx("div",{className:"mt-[4px]",children:w.jsx(Z0,{comment:t,toggleEdit:e})})]})}),w.jsx(X0,{comment:t})]})},ME=({comment:t})=>{var o;const{member:e}=H(),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},DE=({comment:t})=>{const{t:e}=H();return t.edited_at?w.jsxs("span",{children:[" (",e("edited"),")"]}):null},X0=({comment:t,toggleReplyMode:e})=>t.replies&&t.replies.length>0?w.jsx("div",{className:"mb-4 ml-[-1.4rem] mt-7 sm:mb-0 sm:mt-8",children:w.jsx(xE,{comment:t,toggleReplyMode:e})}):null,TE=({comment:t,isInReplyMode:e,closeReplyMode:n})=>e?w.jsx("div",{className:"my-8 sm:my-10",children:w.jsx(EE,{close:n,parent:t})}):null,jE=({comment:t})=>{const{t:e}=H(),n=K1(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})},PE=({comment:t})=>{var r;const e=IC(t.created_at),{member:n}=H(),o=n&&t.member&&t.member.uuid===n.uuid?n.expertise:(r=t==null?void 0:t.member)==null?void 0:r.expertise;return w.jsxs("div",{className:`mb-2 mt-0.5 flex flex-wrap items-start sm:flex-row ${o?"flex-col":"flex-row"}`,children:[w.jsx(jE,{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(ME,{comment:t}),w.jsxs("span",{title:Y1(t.created_at),children:[w.jsx("span",{className:"mx-[0.3em]",children:"·"}),e]}),w.jsx(DE,{comment:t})]})})]})},IE=({html:t})=>{const e={__html:t};return w.jsx("div",{className:"mt mb-2 flex flex-row items-center gap-4 pr-4",children:w.jsx("p",{dangerouslySetInnerHTML:e,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"})})},LE=({comment:t,toggleReplyMode:e,isInReplyMode:n,openEditMode:o,parent:r})=>{const{member:i,commentsEnabled:s}=H(),a=kr(),l=s==="paid",u=i&&!!i.paid,c=i&&(u||!l)&&(a.commentImprovements?!0:!r);return w.jsxs("div",{className:"flex items-center gap-4",children:[w.jsx(yE,{comment:t}),c&&w.jsx(CE,{isReplying:n,toggleReply:e}),w.jsx(Z0,{comment:t,toggleEdit:o})]})},zE=({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,e1=({children:t,avatar:e,hasReplies:n})=>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",children:e}),w.jsx(zE,{hasReplies:n})]}),w.jsx("div",{className:"grow",children:t})]}),FE=({showCount:t,count:e})=>{const{t:n}=H();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},BE=({title:t})=>{const{t:e}=H();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})},t1=({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(BE,{title:t})}),w.jsx(FE,{count:n,showCount:e})]}),n1=({commentsCount:t})=>{const{postId:e,dispatchAction:n,t:o}=H(),r={placeholder:o(t===0?"Start the conversation":"Join the discussion"),autofocus:!1},i=Ad({...om(r)},[t]),s=x.useCallback(async({html:c})=>{await n("addComment",{post_id:e,status:"published",html:c}),i==null||i.commands.clearContent()},[e,n,i]),a=x.useRef(null);x.useEffect(()=>{if(!i)return;const c=d=>{var p;if(!i||d.metaKey||d.ctrlKey)return;let m=document.activeElement;for(;m&&m.tagName==="IFRAME"&&m.contentDocument;)m=((p=m.contentDocument)==null?void 0:p.activeElement)??null;const f=m&&(m.tagName==="INPUT"||m.tagName==="TEXTAREA"||m.tagName==="IFRAME"||m.contentEditable==="true");if(d.key==="c"&&!(i!=null&&i.isFocused)&&!f){i==null||i.commands.focus(),a.current&&Bm(a.current);return}};return window.addEventListener("keydown",c,{passive:!0}),()=>{window.removeEventListener("keydown",c,{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},u=(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(M0,{editor:i,isOpen:u,reduced:!1,...l})})},o1=()=>{const{pagination:t,dispatchAction:e,t:n}=H(),o=kr(),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]})})},ml="ghost-comments-root",HE=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},x.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"})),VE=()=>{var u;const t=J1(),[e,n]=x.useState(!1),[o,r]=x.useState("count__likes desc, created_at desc"),i=x.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=c=>{r(c),t(c),n(!1)};x.useEffect(()=>{var m,f;const c=()=>{n(!1)};window.addEventListener("click",c,{passive:!0});const d=(f=(m=i.current)==null?void 0:m.ownerDocument)==null?void 0:f.defaultView;return d&&d!==window&&d.addEventListener("click",c,{passive:!0}),()=>{window.removeEventListener("click",c,{passive:!0}),d&&d!==window&&d.removeEventListener("click",c,{passive:!0})}},[]);const l=c=>{c.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:[(u=s.find(c=>c.value===o))==null?void 0:u.label,w.jsx("span",{className:"h-2 w-2 stroke-[3px]",children:w.jsx(HE,{})})]}),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(c=>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(c.value),children:c.label},c.value))})})]})},UE=()=>{const t=kr(),{t:e}=H(),{pagination:n,member:o,comments:r,commentCount:i,commentsEnabled:s,title:a,showCount:l,secundaryFormCount:u}=H();let c;t&&t.commentImprovements?c=r.slice().map(y=>w.jsx(rm,{comment:y},y.id)):c=r.slice().reverse().map(y=>w.jsx(rm,{comment:y},y.id)),x.useEffect(()=>{const y=document.getElementById(ml);y&&window.location.hash==="#ghost-comments"&&window.scrollY===0&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{y.scrollIntoView()})})},[]);const d=s==="paid",m=o&&!!o.paid,f=(n==null?void 0:n.total)===0,p=u>0;return t.commentImprovements?w.jsxs(w.Fragment,{children:[w.jsx(t1,{count:i,showCount:l,title:a}),w.jsx("div",{children:o&&(m||!d)?w.jsx(n1,{commentsCount:r.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})})}),i>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:[e("Sort by"),": ",w.jsx(VE,{})]})}),w.jsx("div",{className:n?"z-10":"z-10 mt-4","data-test":"comment-elements",children:c}),w.jsx(o1,{}),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(t1,{count:i,showCount:l,title:a}),w.jsx(o1,{}),w.jsx("div",{className:n?"":"mt-4","data-test":"comment-elements",children:c}),w.jsx("div",{children:p?null:o?m||!d?w.jsx(n1,{commentsCount:i}):w.jsx("section",{className:`flex flex-col items-center pt-[40px] ${o?"pb-[32px]":"pb-[48px]"} ${!f&&"mt-4"} ${(!o||o&&d)&&i?"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] ${o?"pb-[32px]":"pb-[48px]"} ${!f&&"mt-4"} ${(!o||o&&d)&&i?"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 JE(){return w.jsx("div",{className:"flex h-32 w-full items-center justify-center","data-testid":"loading",children:w.jsx(Rd,{className:"mb-6 h-12 w-12 fill-white/90 dark:fill-white/60"})})}const _E=({done:t})=>{const e=(l,u,c)=>{const d=[l,u,c].map(function(m){return m/=255,m<=.03928?m/12.92:Math.pow((m+.055)/1.055,2.4)});return d[0]*.2126+d[1]*.7152+d[2]*.0722},n=(l,u)=>{const c=e(l[0],l[1],l[2]),d=e(u[0],u[1],u[2]),m=Math.max(c,d),f=Math.min(c,d);return(m+.05)/(f+.05)},{accentColor:o,colorScheme:r}=H(),s=(()=>{if(r==="light")return!1;if(r==="dark")return!0;{const l=document.getElementById(ml);if(!l||!l.parentElement)return!1;const u=getComputedStyle(l.parentElement).getPropertyValue("color"),c=u.substring(u.indexOf("(")+1,u.lastIndexOf(")")).split(/,\s*/),d=parseInt(c[0]),m=parseInt(c[1]),f=parseInt(c[2]);return n([255,255,255],[d,m,f])<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(UE,{}):w.jsx(JE,{})})};class YE extends x.Component{constructor(n){super(n);yr(this,"node");yr(this,"iframeHtml");yr(this,"iframeHead");yr(this,"iframeRoot");yr(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&&$d.createPortal(o,this.iframeHead),this.iframeRoot&&$d.createPortal(n,this.iframeRoot)]})}}const KE=x.forwardRef(function(e,n){return w.jsx(YE,{...e,innerRef:n})}),WE=`*,: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}.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-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-\\[-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}.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}.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}.italic{font-style:italic}.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\\/20{color:#0003}.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\\/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\\/35:is(.dark *){color:#ffffff59}.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\\: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}}
155
+ `,r1=U.forwardRef(function({children:e,onResize:n,style:o,title:r},i){const s=w.jsxs(w.Fragment,{children:[w.jsx("style",{dangerouslySetInnerHTML:{__html:WE}}),w.jsx("meta",{content:"width=device-width, initial-scale=1.0, maximum-scale=1.0",name:"viewport"})]});return w.jsx(KE,{ref:i,head:s,style:o,title:r,onResize:n,children:e})}),qE=U.forwardRef(function({children:e,style:n,title:o},r){const[i,s]=x.useState(n),a=x.useCallback(l=>{s(u=>({...u,height:`${l.scrollHeight}px`}))},[]);return w.jsx(r1,{ref:r,style:i,title:o,onResize:a,children:e})}),GE=U.forwardRef(function({children:e},n){const o={width:"100%",height:"400px"};return w.jsx(qE,{ref:n,style:o,title:"comments-frame",children:e})}),QE=({children:t,title:e})=>{const n={zIndex:"3999999",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",overflow:"hidden"};return w.jsx(r1,{style:n,title:e,children:t})},ZE=({show:t,children:e,title:n,callback:o})=>{const{dispatchAction:r}=H(),i=()=>{r("closePopup",{}),o&&o(!1)};return x.useEffect(()=>{const s=a=>{a.key==="Escape"&&i()};return window.addEventListener("keydown",s,{passive:!0}),()=>{window.removeEventListener("keydown",s,{passive:!0})}}),w.jsx(lo,{appear:!0,show:t,children:w.jsx(QE,{title:n,children:w.jsx("div",{children:w.jsx(lo.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(lo.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})})})})})})},XE=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"gh-portal-closeicon",alt:"Close",...t},x.createElement("defs",null,x.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px !important;}")),x.createElement("path",{className:"a",d:"M.75 23.249l22.5-22.5M23.25 23.249L.75.749"})),im=({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(XE,{className:"h-5 w-5 p-1 pr-0"})}),eN=t=>{const e=x.useRef(null),n=x.useRef(null),{dispatchAction:o,member:r,accentColor:i,t:s}=H(),[a,l]=x.useState(r.name??""),[u,c]=x.useState(r.expertise??""),d=50;let m=d;r.expertise&&(m-=r.expertise.length);const[f,p]=x.useState(m),[y,h]=x.useState({name:"",expertise:""}),g=v=>{v.stopPropagation()},S=v=>{o("closePopup",{}),t.callback(v)},k=async()=>{var v;a.trim()!==""?(await o("updateMember",{name:a,expertise:u}),S(!0)):(h({name:s("Enter your name"),expertise:""}),l(""),(v=e.current)==null||v.focus())};x.useEffect(()=>{if(!Fm()){const v=setTimeout(()=>{var $,R;t.expertiseAutofocus?($=n.current)==null||$.focus():(R=e.current)==null||R.focus()},200);return()=>{clearTimeout(v)}}},[e,n,t.expertiseAutofocus]);const b=()=>{const v=C=>w.jsx(lo,{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(${C.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:C.name}),w.jsx("div",{className:"font-sans text-sm tracking-tight text-neutral-400",children:C.expertise})]})]})},C.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 C=0;C<R.length;C++)$.push(v(R[C]));return $},E=Pm(s("{{amount}} characters left"),"{{amount}}",()=>w.jsx("b",{children:f}));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:b()})}),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(lo,{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:v=>{l(v.currentTarget.value)},onKeyDown:v=>{v.key==="Enter"&&(l(v.currentTarget.value),k().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 ${f===0&&"text-red-500"}`,children:E})]}),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 ${f===0&&"border-red-500 focus:border-red-500"}`,"data-testid":"expertise-input",id:"comments-expertise",maxLength:d,name:"expertise",placeholder:s("Head of Marketing at Acme, Inc"),type:"text",value:u,onChange:v=>{const $=v.currentTarget.value;p(d-$.length),c($)},onKeyDown:v=>{v.key==="Enter"&&(c(v.currentTarget.value),k().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:()=>{k().catch(console.error)},children:s("Save")})]})]}),w.jsx(im,{close:()=>S(!1)})]})})},tN=()=>{const{dispatchAction:t,member:e,commentsEnabled:n}=H(),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(im,{close:r})]})})},nN=t=>x.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},x.createElement("g",{id:"check-circle",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},x.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}))),oN={addDetailsPopup:eN,reportPopup:({comment:t})=>{const{dispatchAction:e,t:n}=H(),[o,r]=x.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(Rd,{className:"mr-2 h-[24px] w-[24px] fill-white"}),u=w.jsx(nN,{className:"mr-2 h-[16px] w-[16px]"});let c=null;o==="sending"?c=l:o==="sent"&&(c=u);const d=p=>{p.stopPropagation()},m=()=>{e("closePopup",{})},f=p=>{p.stopPropagation(),r("sending"),setTimeout(()=>{r("sent"),e("reportComment",t),setTimeout(()=>{m()},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:d,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:f,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:[u,n("Sent")]})]}),w.jsxs("span",{className:"absolute flex h-[44px] items-center justify-center whitespace-nowrap",children:[c,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:m,children:n("Cancel")})]}),w.jsx(im,{close:m})]})})},ctaPopup:tN},rN=()=>{const{popup:t}=H(),[e,n]=x.useState(t);if(x.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=oN[o];if(!i)return console.warn("Unknown popup of type ",o),null;const s=t===e;return w.jsx(w.Fragment,{children:w.jsx(ZE,{callback:r.callback,show:s,title:o,children:w.jsx(i,{...r})})})},iN={"{{amount}} characters left":"{{amount}} karakters oor","{{amount}} comments":"{{amount}} kommentaar","{{amount}} days ago":"{{amount}} dae gelede","{{amount}} hrs ago":"{{amount}} ure gelede","{{amount}} mins ago":"{{amount}} minute gelede","{{amount}} months ago":"{{amount}} maande gelede","{{amount}} more":"{{amount}} meer","{{amount}} seconds ago":"{{amount}} sekondes gelede","{{amount}} weeks ago":"{{amount}} weke gelede","{{amount}} years ago":"{{amount}} jaar gelede","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",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 day ago":"Eendag gelede","One hour ago":"Een uur gelede","One min ago":"Een minuut gelede","One month ago":"Een maand gelede","One week ago":"'n Week gelede","One year ago":"Een jaar gelede",Reply:"Antwoord","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."},sN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","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":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","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.":""},aN={"{{amount}} characters left":"Остават {{amount}} знака","{{amount}} comments":"{{amount}} коментара","{{amount}} days ago":"Преди {{amount}} дни","{{amount}} hrs ago":"Преди {{amount}} часа","{{amount}} mins ago":"Преди {{amount}} минути","{{amount}} months ago":"Преди {{amount}} месеца","{{amount}} more":"Още {{amount}}","{{amount}} seconds ago":"Преди {{amount}} секунди","{{amount}} weeks ago":"Преди {{amount}} седмици","{{amount}} years ago":"Преди {{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":"Директор маркетинг в Компания ООД",Hide:"Скриване","Hide comment":"Скриване на коментара","Jamie Larson":"Иван Иванов","Join the discussion":"Участвайте в дискусията","Just now":"Току-що","Local resident":"Местен жител","Member discussion":"Дискусия за абонатите",Name:"Име",Neurosurgeon:"Неврохирург","One day ago":"Преди ден","One hour ago":"Преди час","One min ago":"Преди минута","One month ago":"Преди месец","One week ago":"Преди седмица","One year ago":"Преди година",Reply:"Отговор","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.":"Искането ви ще бъде изпратено до собственика на сайта."},lN={"{{amount}} characters left":"{{amount}} অক্ষর বাকি","{{amount}} comments":"{{amount}} মন্তব্য","{{amount}} days ago":"{{amount}} দিন পূর্বে","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"{{amount}} মাস পূর্বে","{{amount}} more":"{{amount}}টি আরও","{{amount}} seconds ago":"{{amount}} সেকেন্ড পূর্বে","{{amount}} weeks ago":"{{amount}} সপ্তাহ পূর্বে","{{amount}} years ago":"{{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":"মার্কেটিং প্রধান @ বাংলাদেশ ট্রেড হাব",Hide:"লুকান","Hide comment":"মন্তব্য লুকান","Jamie Larson":"শাহ নেওয়াজ","Join the discussion":"আলোচনায় যোগ দিন","Just now":"এখনই","Local resident":"স্থানীয় বাসিন্দা","Member discussion":"সদস্য আলোচনা",Name:"নাম",Neurosurgeon:"নিউরোসার্জন","One day ago":"একদিন পূর্বে","One hour ago":"এক ঘণ্টা পূর্বে","One min ago":"","One month ago":"এক মাস পূর্বে","One week ago":"এক সপ্তাহ পূর্বে","One year ago":"এক বছর পূর্বে",Reply:"উত্তর","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":"Preostalo {{amount}} karaktera","{{amount}} comments":"{{amount}} komentara","{{amount}} days ago":"Prije {{amount}} dana","{{amount}} hrs ago":"Prije {{amount}} sati","{{amount}} mins ago":"Prije {{amount}} minuta","{{amount}} months ago":"Prije {{amount}} mjeseci","{{amount}} more":"Još {{amount}}","{{amount}} seconds ago":"Prije {{amount}} sekundi","{{amount}} weeks ago":"Prije {{amount}} sedmica","{{amount}} years ago":"Prije {{amount}} godina","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",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 day ago":"Prije jedan dan","One hour ago":"Prije jedan sat","One min ago":"Prije jedan minut","One month ago":"Prije jedan mjesec","One week ago":"Prije jednu sedmicu","One year ago":"Prije jednu godinu",Reply:"Odgovori","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."},cN={"{{amount}} characters left":"{{amount}} caràcters restants","{{amount}} comments":"{{amount}} comentaris","{{amount}} days ago":"Fa {{amount}} dies","{{amount}} hrs ago":"Fa {{amount}} hores","{{amount}} mins ago":"Fa {{amount}} minuts","{{amount}} months ago":"Fa {{amount}} mesos","{{amount}} more":"","{{amount}} seconds ago":"Fa {{amount}} segons","{{amount}} weeks ago":"Fa {{amount}} setmanes","{{amount}} years ago":"Fa {{amount}} anys","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",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 day ago":"Fa un dia","One hour ago":"Fa una hora","One min ago":"Fa un minut","One month ago":"Fa un mes","One week ago":"Fa una setmana","One year ago":"Fa un any",Reply:"Respondre","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."},dN={"{{amount}} characters left":"Zbývá {{amount}} znaků","{{amount}} comments":"{{amount}} komentářů","{{amount}} days ago":"Před {{amount}} dny","{{amount}} hrs ago":"Před {{amount}} hodinami","{{amount}} mins ago":"Před {{amount}} minutami","{{amount}} months ago":"Před {{amount}} měsíci","{{amount}} more":"Dalších {{amount}}","{{amount}} seconds ago":"Před {{amount}} sekundami","{{amount}} weeks ago":"Před {{amount}} týdny","{{amount}} years ago":"Před {{amount}} lety","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",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 day ago":"Před jedním dnem","One hour ago":"Před jednou hodinou","One min ago":"Před jednou minutou","One month ago":"Před jedním měsícem","One week ago":"Před jedním týdnem","One year ago":"Před jedním rokem",Reply:"Odpovědět","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."},mN={"{{amount}} characters left":"{{amount}} tegn tilbage","{{amount}} comments":"{{amount}} kommentarer","{{amount}} days ago":"{{amount}} dage siden","{{amount}} hrs ago":"{{amount}} timer siden","{{amount}} mins ago":"{{amount}} minutter siden","{{amount}} months ago":"{{amount}} måneder siden","{{amount}} more":"{{amount}} mere","{{amount}} seconds ago":"{{amount}} sekunder siden","{{amount}} weeks ago":"{{amount}} uger siden","{{amount}} years ago":"{{amount}} år siden","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",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 day ago":"En dag siden","One hour ago":"En time siden","One min ago":"Et minut siden","One month ago":"En måned siden","One week ago":"En uge siden","One year ago":"Et år siden",Reply:"Svar","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":"","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."},fN={"{{amount}} characters left":"{{amount}} Zeichen übrig","{{amount}} comments":"{{amount}} Kommentare","{{amount}} days ago":"Vor {{amount}} Tagen","{{amount}} hrs ago":"Vor {{amount}} Stunden","{{amount}} mins ago":"Vor {{amount}} Minuten","{{amount}} months ago":"Vor {{amount}} Monaten","{{amount}} more":"{{amount}} weitere","{{amount}} seconds ago":"Vor {{amount}} Sekunden","{{amount}} weeks ago":"Vor {{amount}} Wochen","{{amount}} years ago":"Vor {{amount}} Jahren","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",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 day ago":"Vor einem Tag","One hour ago":"Vor einer Stunde","One min ago":"Vor einer Minute","One month ago":"Vor einem Monat","One week ago":"Vor einer Woche","One year ago":"Vor einem Jahr",Reply:"Antworten","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."},pN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","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":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"Antworten","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.":""},hN={"{{amount}} characters left":"Απομένουν {{amount}} χαρακτήρες","{{amount}} comments":"{{amount}} σχόλια","{{amount}} days ago":"πριν από {{amount}} ημέρες","{{amount}} hrs ago":"πριν από {{amount}} ώρες","{{amount}} mins ago":"πριν από {{amount}} λεπτά","{{amount}} months ago":"πριν από {{amount}} μήνες","{{amount}} more":"{{amount}} περισσότερα","{{amount}} seconds ago":"πριν από {{amount}} δευτερόλεπτα","{{amount}} weeks ago":"πριν από {{amount}} εβδομάδες","{{amount}} years ago":"πριν από {{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",Hide:"Απόκρυψη","Hide comment":"Απόκρυψη σχολίου","Jamie Larson":"Τζέιμι Λάρσον","Join the discussion":"Συμμετοχή στη συζήτηση","Just now":"Μόλις τώρα","Local resident":"Τοπικός κάτοικος","Member discussion":"Συζήτηση μελών",Name:"Όνομα",Neurosurgeon:"Νευροχειρουργός","One day ago":"Πριν από μία ημέρα","One hour ago":"Πριν από μία ώρα","One min ago":"Πριν από ένα λεπτό","One month ago":"Πριν από ένα μήνα","One week ago":"Πριν από μία εβδομάδα","One year ago":"Πριν από ένα χρόνο",Reply:"Απάντηση","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.":"Το αίτημά σας θα σταλεί στον ιδιοκτήτη αυτού του ιστότοπου."},gN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","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":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","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.":""},yN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","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":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","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.":""},wN={"{{amount}} characters left":"{{amount}} caracteres restantes","{{amount}} comments":"{{amount}} comentarios","{{amount}} days ago":"{{amount}} días atrás","{{amount}} hrs ago":"{{amount}} horas atrás","{{amount}} mins ago":"{{amount}} minutos atrás","{{amount}} months ago":"{{amount}} meses atrás","{{amount}} more":"{{amount}} más","{{amount}} seconds ago":"{{amount}} segundos atrás","{{amount}} weeks ago":"{{amount}} semanas atrás","{{amount}} years ago":"{{amount}} años atrá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",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 day ago":"Hace un día","One hour ago":"Hace una hora","One min ago":"Hace un minuto","One month ago":"Hace un mes","One week ago":"Hace una semana","One year ago":"Hace un año",Reply:"Responder","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}} days ago":"{{amount}} päeva tagasi","{{amount}} hrs ago":"{{amount}} tundi tagasi","{{amount}} mins ago":"{{amount}} minutit tagasi","{{amount}} months ago":"{{amount}} kuud tagasi","{{amount}} more":"{{amount}} veel","{{amount}} seconds ago":"{{amount}} sekundit tagasi","{{amount}} weeks ago":"{{amount}} nädalat tagasi","{{amount}} years ago":"{{amount}} aastat tagasi","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",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 day ago":"Üks päev tagasi","One hour ago":"Üks tund tagasi","One min ago":"Üks minut tagasi","One month ago":"Üks kuu tagasi","One week ago":"Üks nädal tagasi","One year ago":"Üks aasta tagasi",Reply:"Vasta","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."},kN={"{{amount}} characters left":"{{amount}} حرف باقی‌مانده است","{{amount}} comments":"{{amount}} دیدگاه","{{amount}} days ago":"{{amount}} روز پیش","{{amount}} hrs ago":"{{amount}} ساعت پیش","{{amount}} mins ago":"{{amount}} دقیقه پیش","{{amount}} months ago":"{{amount}} ماه پیش","{{amount}} more":"{{amount}} بیشتر","{{amount}} seconds ago":"{{amount}} ثانیه پیش","{{amount}} weeks ago":"{{amount}} هفته پیش","{{amount}} years ago":"{{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":"سرپرست بخش بازاریابی یک شرکت خیالی",Hide:"مخفی کردن","Hide comment":"مخفی کردن دیدگاه","Jamie Larson":"جیمی لارسن","Join the discussion":"به گفتمان بپیوندید","Just now":"پیوستن","Local resident":"ساکن محلی","Member discussion":"گفتمان کاربران",Name:"نام",Neurosurgeon:"جراح مغز و اعصاب","One day ago":"یک روز پیش","One hour ago":"یک ساعت پیش","One min ago":"یک دقیقه پیش","One month ago":"یک ماه پیش","One week ago":"یک هفته پیش","One year ago":"یک سال پیش",Reply:"پاسخ دادن","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.":"درخواست شما برای مدیر این وب‌سایت ارسال خواهد شد."},vN={"{{amount}} characters left":"{{amount}} merkkiä jäljellä","{{amount}} comments":"{{amount}} kommenttia","{{amount}} days ago":"{{amount}} päivää sitten","{{amount}} hrs ago":"{{amount}} tuntia sitten","{{amount}} mins ago":"{{amount}} minuuttia sitten","{{amount}} months ago":"{{amount}} kuukautta sitten","{{amount}} more":"{{amount}} vielä lisää","{{amount}} seconds ago":"{{amount}} sekuntia sitten","{{amount}} weeks ago":"{{amount}} viikkoa sitten","{{amount}} years ago":"{{amount}} vuotta sitten","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",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 day ago":"Päivä sitten","One hour ago":"Tunti sitten","One min ago":"Minuutti sitten","One month ago":"Kuukausi sitten","One week ago":"Viikko sitten","One year ago":"Vuosi sitten",Reply:"Vastaa","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"},bN={"{{amount}} characters left":"{{amount}} caractères restants","{{amount}} comments":"{{amount}} commentaires","{{amount}} days ago":"Il y a {{amount}} jours","{{amount}} hrs ago":"Il y a {{amount}} heures","{{amount}} mins ago":"Il y a {{amount}} minutes","{{amount}} months ago":"Il y a {{amount}} mois","{{amount}} more":"{{amount}} supplémentaire(s)","{{amount}} seconds ago":"Il y a {{amount}} secondes","{{amount}} weeks ago":"Il y a {{amount}} semaines","{{amount}} years ago":"Il y a {{amount}} ans","1 comment":"1 commentaire","Add comment":"Ajoutez 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":"Ajoutez une réponse","Already a member?":"Déjà membre ?",Anonymous:"Anonyme","Become a member of {{publication}} to start commenting.":"Devenez membre de {{publication}} pour commencer à commenter.","Become a paid member of {{publication}} to start commenting.":"Devenez un membre payant de {{publication}} pour commencer à commenter.",Cancel:"Annuler",Comment:"Commentaire","Complete your profile":"Complétez votre profil",Delete:"Supprimer","Deleted member":"Membre 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",Hide:"Masquer","Hide comment":"Masquer le commentaire","Jamie Larson":"Jamie Larson","Join the discussion":"Rejoignez la discussion","Just now":"À l'instant","Local resident":"Résident local","Member discussion":"Discussion entre membres",Name:"Nom",Neurosurgeon:"Neurochirurgien","One day ago":"Il y a un jour","One hour ago":"Il y a une heure","One min ago":"Il y a une minute","One month ago":"Il y a un mois","One week ago":"Il y a une semaine","One year ago":"Il y a un an",Reply:"Répondre","Reply to comment":"Répondre au commentaire",Report:"Signaler","Report comment":"Signalez 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":"Inscrivez-vous maintenant","Sort by":"","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."},xN={"{{amount}} characters left":"caractaran air fhàgail: {{amount}}","{{amount}} comments":"beachdan: {{amount}}","{{amount}} days ago":"o chionn {{amount}}l","{{amount}} hrs ago":"o chionn {{amount}}u","{{amount}} mins ago":"o chionn {{amount}}m","{{amount}} months ago":"o chionn {{amount}}m","{{amount}} more":"{{amount}} a bharrachd","{{amount}} seconds ago":"o chionn {{amount}}d","{{amount}} weeks ago":"o chionn {{amount}}s","{{amount}} years ago":"o chionn {{amount}}b","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",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 day ago":"O chionn latha","One hour ago":"O chionn uair a thìde","One min ago":"O chionn mionaid","One month ago":"O chionn mìos","One week ago":"O chionn seachdain","One year ago":"O chionn bliadhna",Reply:"Cuir freagairt","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."},$N={"{{amount}} characters left":"{{amount}} अक्षर बाकी","{{amount}} comments":"{{amount}} टिप्पणियाँ","{{amount}} days ago":"{{amount}} दिन पहले","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"{{amount}} महीने पहले","{{amount}} more":"{{amount}} और","{{amount}} seconds ago":"{{amount}} सेकंड पहले","{{amount}} weeks ago":"{{amount}} सप्ताह पहले","{{amount}} years ago":"{{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 में विपणन प्रमुख",Hide:"छिपाएं","Hide comment":"टिप्पणी छिपाएं","Jamie Larson":"राहुल शर्मा","Join the discussion":"चर्चा में शामिल हों","Just now":"अभी","Local resident":"स्थानीय निवासी","Member discussion":"सदस्य चर्चा",Name:"नाम",Neurosurgeon:"न्यूरोसर्जन","One day ago":"एक दिन पहले","One hour ago":"एक घंटा पहले","One min ago":"","One month ago":"एक महीने पहले","One week ago":"एक सप्ताह पहले","One year ago":"एक साल पहले",Reply:"जवाब दें","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.":"आपका अनुरोध इस साइट के मालिक को भेजा जाएगा।"},CN={"{{amount}} characters left":"{{amount}} znakova preostalo","{{amount}} comments":"{{amount}} komentara","{{amount}} days ago":"Prije{{amount}} dana","{{amount}} hrs ago":"Prije {{amount}} sati","{{amount}} mins ago":"Prije {{amount}} minuta","{{amount}} months ago":"Prije {{amount}} mjeseci","{{amount}} more":"{{amount}} više","{{amount}} seconds ago":"Prije {{amount}} sekundi","{{amount}} weeks ago":"Prije {{amount}} tjedana","{{amount}} years ago":"Prije {{amount}} godine","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",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 day ago":"Prije jedan dan","One hour ago":"Prije jednog sata","One min ago":"Prije jedne minute","One month ago":"Prije mjesec dana","One week ago":"Prije tjedan dana","One year ago":"Prije godinu dana",Reply:"Odgovori","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."},EN={"{{amount}} characters left":"{{amount}} karakter maradt","{{amount}} comments":"{{amount}} hozzászólás","{{amount}} days ago":"{{amount}} napja","{{amount}} hrs ago":"{{amount}} órája","{{amount}} mins ago":"{{amount}} perce","{{amount}} months ago":"{{amount}} hónapja","{{amount}} more":"","{{amount}} seconds ago":"{{amount}} másodperce","{{amount}} weeks ago":"{{amount}} hete","{{amount}} years ago":"{{amount}} éve","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.",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 day ago":"Egy napja","One hour ago":"Egy órája","One min ago":"Egy perce","One month ago":"Egy hónapja","One week ago":"Egy hete","One year ago":"Egy éve",Reply:"Válasz","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."},NN={"{{amount}} characters left":"{{amount}} karakter tersisa","{{amount}} comments":"{{amount}} komentar","{{amount}} days ago":"{{amount}} hari yang lalu","{{amount}} hrs ago":"{{amount}} jam yang lalu","{{amount}} mins ago":"{{amount}} menit yang lalu","{{amount}} months ago":"{{amount}} bulan yang lalu","{{amount}} more":"{{amount}} lagi","{{amount}} seconds ago":"{{amount}} detik yang lalu","{{amount}} weeks ago":"{{amount}} minggu yang lalu","{{amount}} years ago":"{{amount}} tahun yang lalu","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",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 day ago":"Satu hari yang lalu","One hour ago":"Satu jam yang lalu","One min ago":"Satu menit yang lalu","One month ago":"Satu bulan yang lalu","One week ago":"Satu minggu yang lalu","One year ago":"Satu tahun yang lalu",Reply:"Balas","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}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","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":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","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.":""},AN={"{{amount}} characters left":"{{amount}} caratteri rimanenti","{{amount}} comments":"{{amount}} commenti","{{amount}} days ago":"{{amount}} giorni fa","{{amount}} hrs ago":"{{amount}} ore fa","{{amount}} mins ago":"{{amount}} minuti fa","{{amount}} months ago":"{{amount}} mesi fa","{{amount}} more":"{{amount}} in più","{{amount}} seconds ago":"{{amount}} secondi fa","{{amount}} weeks ago":"{{amount}} settimane fa","{{amount}} years ago":"{{amount}} anni fa","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",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 day ago":"Un giorno fa","One hour ago":"Un'ora fa","One min ago":"Un minuto fa","One month ago":"Un mese fa","One week ago":"Una settimana fa","One year ago":"Un anno fa",Reply:"Rispondi","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":"","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."},RN={"{{amount}} characters left":"残り{{amount}}文字","{{amount}} comments":"{{amount}}のコメント","{{amount}} days ago":"{{amount}}日前","{{amount}} hrs ago":"{{amount}}時間前","{{amount}} mins ago":"{{amount}}分前","{{amount}} months ago":"{{amount}}ヶ月前","{{amount}} more":"さらに{{amount}}個","{{amount}} seconds ago":"{{amount}}秒前","{{amount}} weeks ago":"{{amount}}週間前","{{amount}} years ago":"{{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",Hide:"非表示にする","Hide comment":"コメントを非表示にする","Jamie Larson":"ジェイミー・ラーソン","Join the discussion":"議論に参加する","Just now":"今すぐ参加する","Local resident":"地元住民","Member discussion":"メンバーによる議論",Name:"名前",Neurosurgeon:"脳神経外科医","One day ago":"1日前","One hour ago":"1時間前","One min ago":"1分前","One month ago":"1ヶ月前","One week ago":"1週間前","One year ago":"1年前",Reply:"返信する","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.":"あなたのリクエストはこのサイトの管理者に送信されます。"},MN={"{{amount}} characters left":"{{amount}}글자 남음","{{amount}} comments":"{{amount}}개의 댓글","{{amount}} days ago":"{{amount}}일 전","{{amount}} hrs ago":"{{amount}}시간 전","{{amount}} mins ago":"{{amount}}분 전","{{amount}} months ago":"{{amount}}개월 전","{{amount}} more":"","{{amount}} seconds ago":"{{amount}}초 전","{{amount}} weeks ago":"{{amount}}주 전","{{amount}} years ago":"{{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":"",Hide:"숨기기","Hide comment":"댓글 숨기기","Jamie Larson":"","Join the discussion":"댓글에 참여해 주세요","Just now":"방금 전","Local resident":"","Member discussion":"회원들의 댓글",Name:"이름",Neurosurgeon:"","One day ago":"1일 전","One hour ago":"1시간 전","One min ago":"1분 전","One month ago":"1달 전","One week ago":"1주 전","One year ago":"1년 전",Reply:"답변","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}} таңба қалды","{{amount}} comments":"{{amount}} пікір","{{amount}} days ago":"{{amount}} күн бұрын","{{amount}} hrs ago":"{{amount}} сағат бұрын","{{amount}} mins ago":"{{amount}} минут бұрын","{{amount}} months ago":"{{amount}} ай бұрын","{{amount}} more":"тағы {{amount}}","{{amount}} seconds ago":"{{amount}} секунд бұрын","{{amount}} weeks ago":"{{amount}} апта бұрын","{{amount}} years ago":"{{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 маркетинг жетекшісі ",Hide:"Жасыру","Hide comment":"Пікірді жасыру","Jamie Larson":"Пәленше Түгеншиев","Join the discussion":"Талқыға қосылу","Just now":"Дәл қазір","Local resident":"Жергілікті тұрғын","Member discussion":"Мүшелер талқысы",Name:"Есімі",Neurosurgeon:"Нейрохирург","One day ago":"Бір күн бұрын","One hour ago":"Бір сағат бұрын","One min ago":"Бір минут бұрын","One month ago":"Бір ай бұрын","One week ago":"Бір апта бұрын","One year ago":"Бір жыл бұрын",Reply:"Жауап беру","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.":"Өтінішіңіз сайт иесіне жіберіледі."},TN={"{{amount}} characters left":"{{amount}} likę simboliai","{{amount}} comments":"{{amount}} komentarai","{{amount}} days ago":"Prieš {{amount}} d.","{{amount}} hrs ago":"Prieš {{amount}} val.","{{amount}} mins ago":"Prieš {{amount}} min.","{{amount}} months ago":"Prieš {{amount}} mėn.","{{amount}} more":"{{amount}} daugiau","{{amount}} seconds ago":"Prieš {{amount}} sek.","{{amount}} weeks ago":"Prieš {{amount}} sav.","{{amount}} years ago":"Prieš {{amount}} m.","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",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 day ago":"Prieš dieną","One hour ago":"Prieš valandą","One min ago":"Prieš minutę","One month ago":"Prieš mėnesį","One week ago":"Prieš savaitę","One year ago":"Prieš metus",Reply:"Atsakyti","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."},jN={"{{amount}} characters left":"Преостануваат {{amount}} знаци.","{{amount}} comments":"{{amount}} коментари","{{amount}} days ago":"Пред {{amount}} дена","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"Пред {{amount}} месеци","{{amount}} more":"Уште {{amount}}","{{amount}} seconds ago":"Пред {{amount}} секунди","{{amount}} weeks ago":"Пред {{amount}} недели","{{amount}} years ago":"Пред {{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":"Раководител на Маркетинг во Примерна Компанија",Hide:"Скријте","Hide comment":"Скријте го коментарот","Jamie Larson":"Петар Петровски","Join the discussion":"Приклучете се во разговорот","Just now":"Штотуку","Local resident":"Локал жител","Member discussion":"Разговор на членовите",Name:"Име",Neurosurgeon:"Неврохирург","One day ago":"Пред еден ден","One hour ago":"Пред еден час","One min ago":"","One month ago":"Пред еден месец","One week ago":"Пред една недела","One year ago":"Пред една година",Reply:"Одговорете","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}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","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":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","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.":""},IN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","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":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","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.":""},LN={"{{amount}} characters left":"Nog {{amount}} tekens over","{{amount}} comments":"{{amount}} reacties","{{amount}} days ago":"{{amount}} dagen geleden","{{amount}} hrs ago":"{{amount}} uur geleden","{{amount}} mins ago":"{{amount}} min geleden","{{amount}} months ago":"{{amount}} maanden geleden","{{amount}} more":"","{{amount}} seconds ago":"{{amount}} seconden geleden","{{amount}} weeks ago":"{{amount}} weken geleden","{{amount}} years ago":"{{amount}} jaar geleden","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",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 day ago":"Een dag geleden","One hour ago":"Een uur geleden","One min ago":"Een min geleden","One month ago":"Een maand geleden","One week ago":"Een week geleden","One year ago":"Een jaar geleden",Reply:"Beantwoorden","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."},zN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","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":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","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}} tegn igjen","{{amount}} comments":"{{amount}} kommentarer","{{amount}} days ago":"{{amount}} dager siden","{{amount}} hrs ago":"{{amount}} timer siden","{{amount}} mins ago":"{{amount}} minutter siden","{{amount}} months ago":"{{amount}} måneder siden","{{amount}} more":"{{amount}} mer","{{amount}} seconds ago":"{{amount}} sekunder siden","{{amount}} weeks ago":"{{amount}} uker siden","{{amount}} years ago":"{{amount}} år siden","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",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 day ago":"En dag siden","One hour ago":"En time siden","One min ago":"Ett minutt siden","One month ago":"En måned siden","One week ago":"En uke siden","One year ago":"Ett år siden",Reply:"Svar","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."},BN={"{{amount}} characters left":"Pozostało {{amount}} znaków","{{amount}} comments":"{{amount}} komentarzy","{{amount}} days ago":"{{amount}} dni temu","{{amount}} hrs ago":"{{amount}} godzin temu","{{amount}} mins ago":"{{amount}} minut temu","{{amount}} months ago":"{{amount}} miesięcy temu","{{amount}} more":"{{amount}} więcej","{{amount}} seconds ago":"{{amount}} sekund temu","{{amount}} weeks ago":"{{amount}} tygodni temu","{{amount}} years ago":"{{amount}} lat temu","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",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 day ago":"Dzień temu","One hour ago":"Godzinę temu","One min ago":"Minutę temu","One month ago":"Miesiąc temu","One week ago":"Tydzień temu","One year ago":"Rok temu",Reply:"Odpowiedz","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."},HN={"{{amount}} characters left":"Faltam {{amount}} caracteres ","{{amount}} comments":"{{amount}} comentários","{{amount}} days ago":"{{amount}} dias atrás","{{amount}} hrs ago":"{{amount}} horas atrás","{{amount}} mins ago":"{{amount}} minutos atrás","{{amount}} months ago":"{{amount}} meses atrás","{{amount}} more":"mais","{{amount}} seconds ago":"{{amount}} segundos atrás","{{amount}} weeks ago":"{{amount}} semanas atrás","{{amount}} years ago":"{{amount}} anos atrás","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",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 day ago":"um dia atrás","One hour ago":"uma hora atrás","One min ago":"um minuto atrás","One month ago":"um mês atrás","One week ago":"uma semana atrás","One year ago":"um ano atrás",Reply:"Responder","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."},VN={"{{amount}} characters left":"{{amount}} caracteres restantes","{{amount}} comments":"{{amount}} comentários","{{amount}} days ago":"{{amount}} dias atrás","{{amount}} hrs ago":"{{amount}} horas atrás","{{amount}} mins ago":"{{amount}} minutos atrás","{{amount}} months ago":"{{amount}} meses atrás","{{amount}} more":"{{amount}} mais","{{amount}} seconds ago":"{{amount}} segundos atrás","{{amount}} weeks ago":"{{amount}} semanas atrás","{{amount}} years ago":"{{amount}} anos atrás","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",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 day ago":"Um dia atrás","One hour ago":"Uma hora atrás","One min ago":"Um minuto atrás","One month ago":"Um mês atrás","One week ago":"Uma semana atrás","One year ago":"Um ano atrás",Reply:"Responder","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."},UN={"{{amount}} characters left":"{{amount}} caractere rămase","{{amount}} comments":"{{amount}} comentarii","{{amount}} days ago":"acum {{amount}} zile","{{amount}} hrs ago":"acum {{amount}} ore","{{amount}} mins ago":"acum {{amount}} minute","{{amount}} months ago":"acum {{amount}} luni","{{amount}} more":"încă {{amount}}","{{amount}} seconds ago":"acum {{amount}} secunde","{{amount}} weeks ago":"acum {{amount}} săptămâni","{{amount}} years ago":"acum {{amount}} ani","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",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 day ago":"Acum o zi","One hour ago":"Acum o oră","One min ago":"Acum un minut","One month ago":"Acum o lună","One week ago":"Acum o săptămână","One year ago":"Acum un an",Reply:"Răspunde","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":"","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."},JN={"{{amount}} characters left":"{{amount}} символа(ов) осталось","{{amount}} comments":"{{amount}} комментария(ев)","{{amount}} days ago":"{{amount}} дня(ей) назад","{{amount}} hrs ago":"{{amount}} часа(ов) назад","{{amount}} mins ago":"{{amount}} минут(ы) назад","{{amount}} months ago":"{{amount}} месяца(ев) назад","{{amount}} more":"ещё {{amount}}","{{amount}} seconds ago":"{{amount}} секунд(ы) назад","{{amount}} weeks ago":"{{amount}} недель(и) назад","{{amount}} years ago":"{{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":"Руководитель отдела маркетинга в Корпорации «Акме»",Hide:"Скрыть","Hide comment":"Скрыть комментарий","Jamie Larson":"Павел Бид","Join the discussion":"Присоединиться к обсуждению","Just now":"Сейчас","Local resident":"Местный житель","Member discussion":"Обсуждение участников",Name:"Имя",Neurosurgeon:"Нейрохирург","One day ago":"День назад","One hour ago":"Час назад","One min ago":"Минуту назад","One month ago":"Месяц назад","One week ago":"Неделю назад","One year ago":"Год назад",Reply:"Ответить","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.":"Ваш запрос будет отправлен владельцу сайта."},_N={"{{amount}} characters left":"තව වචන {{amount}} යි.","{{amount}} comments":"අදහ​ස් {{amount}} යි.","{{amount}} days ago":"දින {{amount}} ට පෙ​ර","{{amount}} hrs ago":"පැය {{amount}} ට පෙ​ර","{{amount}} mins ago":"මිනිත්තු {{amount}} ට පෙ​ර","{{amount}} months ago":"මාස {{amount}} ට පෙ​ර","{{amount}} more":"","{{amount}} seconds ago":"තත්ත්පර {{amount}} ට පෙ​ර","{{amount}} weeks ago":"සති {{amount}} ට පෙ​ර","{{amount}} years ago":"අවුරුදු {{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:"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 හි අලෙවි ප්‍රධානී",Hide:"සඟවන්න","Hide comment":"අදහස සඟවන්න","Jamie Larson":"ජේමි ලාර්සන්","Join the discussion":"සාකච්ඡාවට එක්වන්න","Just now":"මේ දැ​න්","Local resident":"දේශීය පදිංචි","Member discussion":"සාමාජික සාකච්ඡාව",Name:"න​ම",Neurosurgeon:"ස්නායු ශ​ල්‍ය වෛ​ද්‍ය","One day ago":"දිනකට පෙ​ර","One hour ago":"පැයකට පෙ​ර","One min ago":"මිනිත්තුවකට පෙ​ර","One month ago":"මසකට පෙ​ර","One week ago":"සතියකට පෙ​ර","One year ago":"අවුරුද්දකට පෙ​ර",Reply:"ප්‍රතිචාර දක්වන්​න","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.":"ඔබගේ ඉල්ලීම මෙම අඩවියේ හිමිකරු වෙත යවනු ලැබේ."},YN={"{{amount}} characters left":"Zostáva {{amount}} znakov","{{amount}} comments":"{{amount}} komentárov","{{amount}} days ago":"Pred {{amount}} dňami","{{amount}} hrs ago":"Pred {{amount}} hodinami","{{amount}} mins ago":"Pred {{amount}} minútami","{{amount}} months ago":"Pred {{amount}} mesiacmi","{{amount}} more":"","{{amount}} seconds ago":"Pred {{amount}} sekundami","{{amount}} weeks ago":"Pred {{amount}} týždňami","{{amount}} years ago":"Pred {{amount}} rokmi","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",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 day ago":"Včera","One hour ago":"Pred hodinou","One min ago":"Pred minútou","One month ago":"Pred mesiacom","One week ago":"Pred týždňom","One year ago":"Pred rokom",Reply:"Odpovedať","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."},KN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","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":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","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.":""},WN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","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":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","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.":""},qN={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","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":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","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.":""},GN={"{{amount}} characters left":"Преостало још {{amount}} карактера","{{amount}} comments":"{{amount}} коментара","{{amount}} days ago":"пре {{amount}} дана","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"пре {{amount}} месеци","{{amount}} more":"још {{amount}}","{{amount}} seconds ago":"пре {{amount}} секунди","{{amount}} weeks ago":"пре {{amount}} недеља","{{amount}} years ago":"пре {{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",Hide:"Сакриј","Hide comment":"Сакриј коментар","Jamie Larson":"Џејми Ларсон","Join the discussion":"Придружите се дискусији","Just now":"Управо сада","Local resident":"Мештанин","Member discussion":"Дискусија чланова",Name:"Име",Neurosurgeon:"Неурохирург","One day ago":"Пре један дан","One hour ago":"Пре један сат","One min ago":"","One month ago":"Пре један месец","One week ago":"Пре једну недељу","One year ago":"Пре једну годину",Reply:"Одговори","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.":"Ваш захтев ће бити послат власнику овог сајта."},QN={"{{amount}} characters left":"{{amount}} tecken kvar","{{amount}} comments":"{{amount}} kommentarer","{{amount}} days ago":"{{amount}} dagar sedan","{{amount}} hrs ago":"{{amount}} timmar sedan","{{amount}} mins ago":"{{amount}} minuter sedan","{{amount}} months ago":"{{amount}} månader sedan","{{amount}} more":"{{amount}} fler","{{amount}} seconds ago":"{{amount}} sekunder sedan","{{amount}} weeks ago":"{{amount}} veckor sedan","{{amount}} years ago":"{{amount}} år sedan","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",Hide:"Dölj","Hide comment":"Dölj kommentar","Jamie Larson":"Emma Jansson","Join the discussion":"Var med i diskussionen","Just now":"Nu precis","Local resident":"Lokalboende","Member discussion":"Medlemsdiskussion",Name:"Namn",Neurosurgeon:"Neurokirurg","One day ago":"En dag sedan","One hour ago":"En timme sedan","One min ago":"En minut sedan","One month ago":"En månad sedan","One week ago":"En vecka sedan","One year ago":"Ett år sedan",Reply:"Svar","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":"","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"},ZN={"{{amount}} characters left":"คงเหลือ {{amount}} ตัวอักษร","{{amount}} comments":"{{amount}} ความคิดเห็น","{{amount}} days ago":"{{amount}} วันที่แล้ว","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"{{amount}} เดือนที่แล้ว","{{amount}} more":"อีก {{amount}}","{{amount}} seconds ago":"{{amount}} วินาทีที่แล้ว","{{amount}} weeks ago":"{{amount}} สัปดาห์ที่แล้ว","{{amount}} years ago":"{{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",Hide:"ซ่อน","Hide comment":"ซ่อนข้อความ","Jamie Larson":"กนกพัฒน์ สัณห์ฤทัย","Join the discussion":"เข้าร่วมการสนทนา","Just now":"ตอนนี้","Local resident":"ผู้อยู่อาศัยในท้องถิ่น","Member discussion":"การสนทนาของสมาชิก",Name:"ชื่อ",Neurosurgeon:"ศัลยแพทย์ระบบประสาท","One day ago":"1 วันที่แล้ว","One hour ago":"1 ชั่วโมงที่แล้ว","One min ago":"","One month ago":"1 เดือนที่แล้ว","One week ago":"1 สัปดาห์ที่แล้ว","One year ago":"1 ปีที่แล้ว",Reply:"ตอบกลับ","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.":"คำขอของคุณจะถูกส่งไปยังผู้ดูแลเว็บไซต์"},XN={"{{amount}} characters left":"{{amount}} karakter kaldı","{{amount}} comments":"{{amount}} yorum","{{amount}} days ago":"{{amount}} gün önce","{{amount}} hrs ago":"{{amount}} saat önce","{{amount}} mins ago":"{{amount}} dakika önce","{{amount}} months ago":"{{amount}} ay önce","{{amount}} more":"Daha fazla {{amount}}","{{amount}} seconds ago":"{{amount}} saniye önce","{{amount}} weeks ago":"{{amount}} hafta önce","{{amount}} years ago":"{{amount}} yıl önce","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ü",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 day ago":"Bir gün önce","One hour ago":"Bir saat önce","One min ago":"Bir dakika önce","One month ago":"Bir ay önce","One week ago":"Bir hafta önce","One year ago":"Bir yıl önce",Reply:"Cevapla","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":"","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."},eO={"{{amount}} characters left":"{{amount}} символів залишилось","{{amount}} comments":"{{amount}} коментарів","{{amount}} days ago":"{{amount}} днів тому","{{amount}} hrs ago":"{{amount}} годин тому","{{amount}} mins ago":"{{amount}} хвилин тому","{{amount}} months ago":"{{amount}} місяців тому","{{amount}} more":"ще {{amount}}","{{amount}} seconds ago":"{{amount}} секунд тому","{{amount}} weeks ago":"{{amount}} тижнів тому","{{amount}} years ago":"{{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",Hide:"Сховати","Hide comment":"Сховати коментар","Jamie Larson":"Ваше імʼя","Join the discussion":"Долучитися до обговорення","Just now":"Прямо зараз","Local resident":"Місцевий експерт","Member discussion":"Обговорення учасників",Name:"Імʼя",Neurosurgeon:"Нейрохірург","One day ago":"Один день тому","One hour ago":"Одну годину тому","One min ago":"Одну хвилину тому","One month ago":"Один місяць тому","One week ago":"Один тиждень тому","One year ago":"Один рік тому",Reply:"Відповісти","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.":"Ваш запит буде надіслано власнику цього сайту."},tO={"{{amount}} characters left":"{{amount}} حروف باقی ہیں","{{amount}} comments":"{{amount}} تبادلے","{{amount}} days ago":"{{amount}} دن پہلے","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"{{amount}} مہینے پہلے","{{amount}} more":"","{{amount}} seconds ago":"{{amount}} سیکنڈ پہلے","{{amount}} weeks ago":"{{amount}} ہفتے پہلے","{{amount}} years ago":"{{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 کے مارکیٹنگ کا سربراہ",Hide:"چھپائیں","Hide comment":"تبادلہ چھپائیں","Jamie Larson":"جیمی لارسن","Join the discussion":"تبادلے میں شامل ہوں","Just now":"ابھی","Local resident":"مقامی رہائشی","Member discussion":"رکن کا تبادلہ",Name:"نام",Neurosurgeon:"نیوروسرجن","One day ago":"ایک دن پہلے","One hour ago":"ایک گھنٹہ پہلے","One min ago":"","One month ago":"ایک مہینہ پہلے","One week ago":"ایک ہفتہ پہلے","One year ago":"ایک سال پہلے",Reply:"جواب","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.":"آپ کا درخواست اس سائٹ کے مالک کو بھیجا جائے گا۔"},nO={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","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":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","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.":""},oO={"{{amount}} characters left":"{{amount}} ký tự còn lại","{{amount}} comments":"{{amount}} bình luận","{{amount}} days ago":"{{amount}} ngày trước","{{amount}} hrs ago":"{{amount}} giờ trước","{{amount}} mins ago":"{{amount}} phút trước","{{amount}} months ago":"{{amount}} tháng trước","{{amount}} more":"{{amount}} nữa","{{amount}} seconds ago":"{{amount}} giây trước","{{amount}} weeks ago":"{{amount}} tuần trước","{{amount}} years ago":"{{amount}} năm trước","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}} để bắt đầu 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}} để bắt đầu 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",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 day ago":"Một ngày trước","One hour ago":"Một giờ trước","One min ago":"Một phút trước","One month ago":"Một tháng trước","One week ago":"Một tuần trước","One year ago":"Một năm trước",Reply:"Trả lời","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":"","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."},rO={"{{amount}} characters left":"还剩{{amount}}字","{{amount}} comments":"{{amount}}条评论","{{amount}} days ago":"{{amount}}天前","{{amount}} hrs ago":"{{amount}}小时前","{{amount}} mins ago":"{{amount}}分钟前","{{amount}} months ago":"{{amount}}个月前","{{amount}} more":"","{{amount}} seconds ago":"{{amount}}秒前","{{amount}} weeks ago":"{{amount}}周前","{{amount}} years ago":"{{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市场部负责人",Hide:"隐藏","Hide comment":"隐藏评论","Jamie Larson":"Jamie Larson","Join the discussion":"加入讨论","Just now":"刚刚","Local resident":"本地居民","Member discussion":"会员讨论",Name:"称呼",Neurosurgeon:"神经外科医生","One day ago":"一天前","One hour ago":"一小时前","One min ago":"一分钟前","One month ago":"一个月前","One week ago":"一周前","One year ago":"一年前",Reply:"回复","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.":"您的请求将被发送给站点所有者。"},iO={"{{amount}} characters left":"還剩 {{amount}} 個字","{{amount}} comments":"{{amount}} 則留言","{{amount}} days ago":"{{amount}} 天前","{{amount}} hrs ago":"{{amount}} 小時前","{{amount}} mins ago":"{{amount}} 分鐘前","{{amount}} months ago":"{{amount}} 個月前","{{amount}} more":"還剩 {{amount}} 則留言","{{amount}} seconds ago":"{{amount}} 秒前","{{amount}} weeks ago":"{{amount}} 周前","{{amount}} years ago":"{{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市場部負責人",Hide:"隱藏","Hide comment":"隱藏留言","Jamie Larson":"Jamie Larson","Join the discussion":"加入討論","Just now":"剛剛","Local resident":"本地居民","Member discussion":"會員討論",Name:"稱呼",Neurosurgeon:"神經外科醫生","One day ago":"一天前","One hour ago":"一小時前","One min ago":"一分鐘前","One month ago":"一個月前","One week ago":"一周前","One year ago":"一年前",Reply:"回覆","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.":"您的請求將被發送給所有者。"},sO={"{{amount}} characters left":"{{amount}} herufi zimebaki","{{amount}} comments":"{{amount}} maoni","{{amount}} days ago":"siku {{amount}} zilizopita","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"miezi {{amount}} iliyopita","{{amount}} more":"{{amount}} zaidi","{{amount}} seconds ago":"sekunde {{amount}} zilizopita","{{amount}} weeks ago":"wiki {{amount}} zilizopita","{{amount}} years ago":"miaka {{amount}} iliyopita","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",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 day ago":"Siku moja iliyopita","One hour ago":"Saa moja iliyopita","One min ago":"","One month ago":"Mwezi mmoja uliopita","One week ago":"Wiki moja iliyopita","One year ago":"Mwaka mmoja uliopita",Reply:"Jibu","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."},aO={"{{amount}} characters left":"{{amount}} எழுத்துக்கள் எஞ்சியுள்ளன","{{amount}} comments":"{{amount}} கருத்துக்கள்","{{amount}} days ago":"{{amount}} நாட்களுக்கு முன்பு","{{amount}} hrs ago":"{{amount}} மணி நேரத்திற்கு முன்பு","{{amount}} mins ago":"{{amount}} நிமிடங்களுக்கு முன்பு","{{amount}} months ago":"{{amount}} மாதங்களுக்கு முன்பு","{{amount}} more":"{{amount}} மேலும்","{{amount}} seconds ago":"{{amount}} வினாடிகளுக்கு முன்பு","{{amount}} weeks ago":"{{amount}} வாரங்களுக்கு முன்பு","{{amount}} years ago":"{{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 நிறுவனத்தின் சந்தைப்படுத்தல் தலைவர்",Hide:"மறைக்கவும்","Hide comment":"கருத்தை மறை","Jamie Larson":"ஜேமி லார்சன்","Join the discussion":"கலந்துரையாடலில் சேரவும்","Just now":"சற்றுமுன்னர்தான்","Local resident":"உள்ளூர்வாசி","Member discussion":"உறுப்பினர் கருத்து",Name:"பெயர்",Neurosurgeon:"நரம்பியல் அறுவை சிகிச்சை நிபுணர்","One day ago":"ஒரு நாள் முன்பு","One hour ago":"ஒரு மணி முன்பு","One min ago":"ஒரு நிமிடம் முன்பு","One month ago":"ஒரு மாதம் முன்பு","One week ago":"ஒரு வார முன்பு","One year ago":"ஒரு வருடம் முன்பு",Reply:"பதிலளிக்கவும்","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 i1;function s1(){return i1||(i1={"/ghost/i18n/locales/af/comments.json":function(){return iN},"/ghost/i18n/locales/ar/comments.json":function(){return sN},"/ghost/i18n/locales/bg/comments.json":function(){return aN},"/ghost/i18n/locales/bn/comments.json":function(){return lN},"/ghost/i18n/locales/bs/comments.json":function(){return uN},"/ghost/i18n/locales/ca/comments.json":function(){return cN},"/ghost/i18n/locales/cs/comments.json":function(){return dN},"/ghost/i18n/locales/da/comments.json":function(){return mN},"/ghost/i18n/locales/de/comments.json":function(){return fN},"/ghost/i18n/locales/de-CH/comments.json":function(){return pN},"/ghost/i18n/locales/el/comments.json":function(){return hN},"/ghost/i18n/locales/en/comments.json":function(){return gN},"/ghost/i18n/locales/eo/comments.json":function(){return yN},"/ghost/i18n/locales/es/comments.json":function(){return wN},"/ghost/i18n/locales/et/comments.json":function(){return SN},"/ghost/i18n/locales/fa/comments.json":function(){return kN},"/ghost/i18n/locales/fi/comments.json":function(){return vN},"/ghost/i18n/locales/fr/comments.json":function(){return bN},"/ghost/i18n/locales/gd/comments.json":function(){return xN},"/ghost/i18n/locales/hi/comments.json":function(){return $N},"/ghost/i18n/locales/hr/comments.json":function(){return CN},"/ghost/i18n/locales/hu/comments.json":function(){return EN},"/ghost/i18n/locales/id/comments.json":function(){return NN},"/ghost/i18n/locales/is/comments.json":function(){return ON},"/ghost/i18n/locales/it/comments.json":function(){return AN},"/ghost/i18n/locales/ja/comments.json":function(){return RN},"/ghost/i18n/locales/ko/comments.json":function(){return MN},"/ghost/i18n/locales/kz/comments.json":function(){return DN},"/ghost/i18n/locales/lt/comments.json":function(){return TN},"/ghost/i18n/locales/mk/comments.json":function(){return jN},"/ghost/i18n/locales/mn/comments.json":function(){return PN},"/ghost/i18n/locales/ms/comments.json":function(){return IN},"/ghost/i18n/locales/nl/comments.json":function(){return LN},"/ghost/i18n/locales/nn/comments.json":function(){return zN},"/ghost/i18n/locales/no/comments.json":function(){return FN},"/ghost/i18n/locales/pl/comments.json":function(){return BN},"/ghost/i18n/locales/pt/comments.json":function(){return HN},"/ghost/i18n/locales/pt-BR/comments.json":function(){return VN},"/ghost/i18n/locales/ro/comments.json":function(){return UN},"/ghost/i18n/locales/ru/comments.json":function(){return JN},"/ghost/i18n/locales/si/comments.json":function(){return _N},"/ghost/i18n/locales/sk/comments.json":function(){return YN},"/ghost/i18n/locales/sl/comments.json":function(){return KN},"/ghost/i18n/locales/sq/comments.json":function(){return WN},"/ghost/i18n/locales/sr/comments.json":function(){return qN},"/ghost/i18n/locales/sr-Cyrl/comments.json":function(){return GN},"/ghost/i18n/locales/sv/comments.json":function(){return QN},"/ghost/i18n/locales/th/comments.json":function(){return ZN},"/ghost/i18n/locales/tr/comments.json":function(){return XN},"/ghost/i18n/locales/uk/comments.json":function(){return eO},"/ghost/i18n/locales/ur/comments.json":function(){return tO},"/ghost/i18n/locales/uz/comments.json":function(){return nO},"/ghost/i18n/locales/vi/comments.json":function(){return oO},"/ghost/i18n/locales/zh/comments.json":function(){return rO},"/ghost/i18n/locales/zh-Hant/comments.json":function(){return iO},"/ghost/i18n/locales/sw/comments.json":function(){return sO},"/ghost/i18n/locales/ta/comments.json":function(){return aO}})}function lO(t){function e(n){var o=a1(n,t);if(o!==null)return s1()[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=a1(n,t);return o!==null?o:require.resolve(n)},e}function a1(t,e){var n=uO(t);t=fl(t);var o;t[0]==="/"&&(e="");for(var r=s1(),i=["",".js",".json"];n?o=fl(e+"/node_modules/"+t):o=fl(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=fl(e+"/..");if(l===e)break;e=l}return null}function uO(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 fl(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 sm={exports:{}};const F=t=>typeof t=="string",Ji=()=>{let t,e;const n=new Promise((o,r)=>{t=o,e=r});return n.resolve=t,n.reject=e,n},l1=t=>t==null?"":""+t,cO=(t,e,n)=>{t.forEach(o=>{e[o]&&(n[o]=e[o])})},dO=/###/g,u1=t=>t&&t.indexOf("###")>-1?t.replace(dO,"."):t,c1=t=>!t||F(t),_i=(t,e,n)=>{const o=F(e)?e.split("."):e;let r=0;for(;r<o.length-1;){if(c1(t))return{};const i=u1(o[r]);!t[i]&&n&&(t[i]=new n),Object.prototype.hasOwnProperty.call(t,i)?t=t[i]:t={},++r}return c1(t)?{}:{obj:t,k:u1(o[r])}},d1=(t,e,n)=>{const{obj:o,k:r}=_i(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=_i(t,s,Object);for(;a.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),a=_i(t,s,Object),a&&a.obj&&typeof a.obj[`${a.k}.${i}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},mO=(t,e,n,o)=>{const{obj:r,k:i}=_i(t,e,Object);r[i]=r[i]||[],r[i].push(n)},pl=(t,e)=>{const{obj:n,k:o}=_i(t,e);if(n)return n[o]},fO=(t,e,n)=>{const o=pl(t,n);return o!==void 0?o:pl(e,n)},m1=(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]):m1(t[o],e[o],n):t[o]=e[o]);return t},pr=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var pO={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const hO=t=>F(t)?t.replace(/[&<>"'\/]/g,e=>pO[e]):t;class gO{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 yO=[" ",",","?","!",";"],wO=new gO(20),SO=(t,e,n)=>{e=e||"",n=n||"";const o=yO.filter(s=>e.indexOf(s)<0&&n.indexOf(s)<0);if(o.length===0)return!0;const r=wO.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},am=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},hl=t=>t&&t.replace("_","-"),kO={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 gl{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||kO,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 gl(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new gl(this.logger,e)}}var Dt=new gl;class yl{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 u=0;u<l;u++)a(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[a,l]=s;for(let u=0;u<l;u++)a.apply(a,[e,...o])})}}class f1 extends yl{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=pl(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:am(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),d1(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=pl(this.data,a)||{};s.skipCopy||(o=JSON.parse(JSON.stringify(o))),r?m1(l,o,i):l={...l,...o},d1(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 p1={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 h1={};class wl extends yl{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),cO(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Dt.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&&!SO(e,o,r);if(s&&!a){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:i};const u=e.split(o);(o!==r||o===r&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.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],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const b=n.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${b}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${b}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s}const d=this.resolve(e,n);let m=d&&d.res;const f=d&&d.usedKey||s,p=d&&d.exactUsedKey||s,y=Object.prototype.toString.apply(m),h=["[object Number]","[object Function]","[object RegExp]"],g=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject,k=!F(m)&&typeof m!="boolean"&&typeof m!="number";if(S&&m&&k&&h.indexOf(y)<0&&!(F(g)&&Array.isArray(m))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const b=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,m,{...n,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(d.res=b,d.usedParams=this.getUsedParamsDetails(n),d):b}if(i){const b=Array.isArray(m),E=b?[]:{},v=b?p:f;for(const $ in m)if(Object.prototype.hasOwnProperty.call(m,$)){const R=`${v}${i}${$}`;E[$]=this.translate(R,{...n,joinArrays:!1,ns:a}),E[$]===R&&(E[$]=m[$])}m=E}}else if(S&&F(g)&&Array.isArray(m))m=m.join(g),m&&(m=this.extendTranslation(m,e,n,o));else{let b=!1,E=!1;const v=n.count!==void 0&&!F(n.count),$=wl.hasDefaultValue(n),R=v?this.pluralResolver.getSuffix(u,n.count,n):"",C=n.ordinal&&v?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",_=v&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),se=_&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${R}`]||n[`defaultValue${C}`]||n.defaultValue;!this.isValidLookup(m)&&$&&(b=!0,m=se),this.isValidLookup(m)||(E=!0,m=s);const G=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:m,Oe=$&&se!==m&&this.options.updateMissing;if(E||b||Oe){if(this.logger.log(Oe?"updateKey":"missingKey",u,l,s,Oe?se:m),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,ue,ve)=>{const M=$&&ve!==m?ve:G;this.options.missingKeyHandler?this.options.missingKeyHandler(Q,l,ue,M,Oe,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Q,l,ue,M,Oe,n),this.emit("missingKey",Q,l,ue,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?le.forEach(Q=>{const ue=this.pluralResolver.getSuffixes(Q,n);_&&n[`defaultValue${this.options.pluralSeparator}zero`]&&ue.indexOf(`${this.options.pluralSeparator}zero`)<0&&ue.push(`${this.options.pluralSeparator}zero`),ue.forEach(ve=>{de([Q],s+ve,n[`defaultValue${ve}`]||se)})}):de(le,s,se))}m=this.extendTranslation(m,e,n,d,o),E&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}:${s}`),(E||b)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,b?m:void 0):m=this.options.parseMissingKeyHandler(m))}return r?(d.res=m,d.usedParams=this.getUsedParamsDetails(n),d):m}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 u=F(e)&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const m=e.match(this.interpolator.nestingRegexp);c=m&&m.length}let d=o.replace&&!F(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),e=this.interpolator.interpolate(e,d,o.lng||this.language||r.usedLng,o),u){const m=e.match(this.interpolator.nestingRegexp),f=m&&m.length;c<f&&(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 m=arguments.length,f=new Array(m),p=0;p<m;p++)f[p]=arguments[p];return i&&i[0]===f[0]&&!o.context?(s.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${n[0]}`),null):s.translate(...f,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=p1.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 u=this.extractFromKey(l,n),c=u.key;r=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const m=n.count!==void 0&&!F(n.count),f=m&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),p=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);d.forEach(h=>{this.isValidLookup(o)||(a=h,!h1[`${y[0]}-${h}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(h1[`${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=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(S,c,g,h,n);else{let b;m&&(b=this.pluralResolver.getSuffix(g,n.count,n));const E=`${this.options.pluralSeparator}zero`,v=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(S.push(c+b),n.ordinal&&b.indexOf(v)===0&&S.push(c+b.replace(v,this.options.pluralSeparator)),f&&S.push(c+E)),p){const $=`${c}${this.options.contextSeparator}${n.context}`;S.push($),m&&(S.push($+b),n.ordinal&&b.indexOf(v)===0&&S.push($+b.replace(v,this.options.pluralSeparator)),f&&S.push($+E))}}let k;for(;k=S.pop();)this.isValidLookup(o)||(i=k,o=this.getResource(g,h,k,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 lm=t=>t.charAt(0).toUpperCase()+t.slice(1);class g1{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Dt.create("languageUtils")}getScriptPartFromCode(e){if(e=hl(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=hl(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]=lm(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]=lm(o[1].toLowerCase())),n.indexOf(o[2].toLowerCase())>-1&&(o[2]=lm(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 vO=[{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}],bO={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 xO=["v1","v2","v3"],$O=["v4"],y1={zero:0,one:1,two:2,few:3,many:4,other:5},CO=()=>{const t={};return vO.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:bO[e.fc]}})}),t};class EO{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=Dt.create("pluralResolver"),(!this.options.compatibilityJSON||$O.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=CO(),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=hl(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)=>y1[r]-y1[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!xO.includes(this.options.compatibilityJSON)}}const w1=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=fO(t,e,n);return!i&&r&&F(n)&&(i=am(t,n,o),i===void 0&&(i=am(e,n,o))),i},um=t=>t.replace(/\$/g,"$$$$");class NO{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Dt.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:u,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:m,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:y,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:S}=e.interpolation;this.escape=n!==void 0?n:hO,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=i?pr(i):s||"{{",this.suffix=a?pr(a):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=m?pr(m):f||pr("$t("),this.nestingSuffix=p?pr(p):y||pr(")"),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||{},u=f=>{if(f.indexOf(this.formatSeparator)<0){const g=w1(n,l,f,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(g,void 0,o,{...r,...n,interpolationkey:f}):g}const p=f.split(this.formatSeparator),y=p.shift().trim(),h=p.join(this.formatSeparator).trim();return this.format(w1(n,l,y,this.options.keySeparator,this.options.ignoreJSONStructure),h,o,{...r,...n,interpolationkey:y})};this.resetRegExp();const c=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:f=>um(f)},{regex:this.regexp,safeValue:f=>this.escapeValue?um(this.escape(f)):um(f)}].forEach(f=>{for(a=0;i=f.regex.exec(e);){const p=i[1].trim();if(s=u(p),s===void 0)if(typeof c=="function"){const h=c(e,i,r);s=F(h)?h:""}else if(r&&Object.prototype.hasOwnProperty.call(r,p))s="";else if(d){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${p} for interpolating ${e}`),s="";else!F(s)&&!this.useRawValueToEscape&&(s=l1(s));const y=f.safeValue(s);if(e=e.replace(i[0],y),d?(f.regex.lastIndex+=s.length,f.regex.lastIndex-=i[0].length):f.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,u)=>{const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const d=l.split(new RegExp(`${c}[ ]*{`));let m=`{${d[1]}`;l=d[0],m=this.interpolate(m,s);const f=m.match(/'/g),p=m.match(/"/g);(f&&f.length%2===0&&!p||p.length%2!==0)&&(m=m.replace(/'/g,'"'));try{s=JSON.parse(m),u&&(s={...u,...s})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${c}${m}`}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 u=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){const c=r[1].split(this.formatSeparator).map(d=>d.trim());r[1]=c.shift(),l=c,u=!0}if(i=n(a.call(this,r[1].trim(),s),s),i&&r[0]===e&&!F(i))return i;F(i)||(i=l1(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=""),u&&(i=l.reduce((c,d)=>this.format(c,d,o.lng,{...o,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}}const OO=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(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),c=a.trim();n[c]||(n[c]=u),u==="false"&&(n[c]=!1),u==="true"&&(n[c]=!0),isNaN(u)||(n[c]=parseInt(u,10))}})}return{formatName:e,formatOptions:n}},hr=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(hl(o),r),e[s]=a),a(n)}};class AO{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Dt.create("formatter"),this.options=e,this.formats={number:hr((n,o)=>r=>new Intl.NumberFormat(n,{...o}).format(r)),currency:hr((n,o)=>r=>new Intl.NumberFormat(n,{...o,style:"currency"}).format(r)),datetime:hr((n,o)=>r=>new Intl.DateTimeFormat(n,{...o}).format(r)),relativetime:hr((n,o)=>r=>new Intl.RelativeTimeFormat(n,{...o}).format(r,o.range||"day")),list:hr((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()]=hr(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:u,formatOptions:c}=OO(l);if(this.formats[u]){let d=a;try{const m=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},f=m.locale||m.lng||r.locale||r.lng||o;d=this.formats[u](a,f,{...c,...r,...m})}catch(m){this.logger.warn(m)}return d}else this.logger.warn(`there was no format function for ${u}`);return a},e)}}const RO=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class MO extends yl{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=Dt.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(u=>{let c=!0;n.forEach(d=>{const m=`${u}|${d}`;!o.reload&&this.store.hasResourceBundle(u,d)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?s[m]===void 0&&(s[m]=!0):(this.state[m]=1,c=!1,s[m]===void 0&&(s[m]=!0),i[m]===void 0&&(i[m]=!0),l[d]===void 0&&(l[d]=!0)))}),c||(a[u]=!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=>{mO(l.loaded,[i],s),RO(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{a[u]||(a[u]={});const c=l.loaded[u];c.length&&c.forEach(d=>{a[u][d]===void 0&&(a[u][d]=!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=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,o,r+1,i*2,s)},i);return}s(u,c)},l=this.backend[o].bind(this.backend);if(l.length===2){try{const u=l(e,n);u&&typeof u.then=="function"?u.then(c=>a(null,c)).catch(a):a(null,u)}catch(u){a(u)}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},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(e,n,o,r,l):c=u(e,n,o,r),c&&typeof c.then=="function"?c.then(d=>a(null,d)).catch(a):a(null,c)}catch(c){a(c)}else u(e,n,o,r,a,l)}!e||!e[0]||this.store.addResource(e[0],n,o,r)}}}const S1=()=>({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}}),k1=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),Sl=()=>{},DO=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class Yi extends yl{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=k1(e),this.services={},this.logger=Dt,this.modules={external:[]},DO(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=S1();this.options={...r,...this.options,...k1(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=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?Dt.init(i(this.modules.logger),this.options):Dt.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=AO);const d=new g1(this.options);this.store=new f1(this.options.resources,this.options);const m=this.services;m.logger=Dt,m.resourceStore=this.store,m.languageUtils=d,m.pluralResolver=new EO(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(m.formatter=i(c),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new NO(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new MO(i(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(f){for(var p=arguments.length,y=new Array(p>1?p-1:0),h=1;h<p;h++)y[h-1]=arguments[h];e.emit(f,...y)}),this.modules.languageDetector&&(m.languageDetector=i(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=i(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new wl(this.services,this.options),this.translator.on("*",function(f){for(var p=arguments.length,y=new Array(p>1?p-1:0),h=1;h<p;h++)y[h-1]=arguments[h];e.emit(f,...y)}),this.modules.external.forEach(f=>{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,o||(o=Sl),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[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(c=>{this[c]=function(){return e.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return e.store[c](...arguments),e}});const l=Ji(),u=()=>{const c=(d,m)=>{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(m),o(d,m)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sl;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(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};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=Ji();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=Sl),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"&&p1.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=Ji();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,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):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 u=F(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{s(c,u)})};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 u=arguments.length,c=new Array(u>2?u-2:0),d=2;d<u;d++)c[d-2]=arguments[d];l=r.options.overloadTranslationOptionHandler([s,a].concat(c))}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 m=r.options.keySeparator||".";let f;return l.keyPrefix&&Array.isArray(s)?f=s.map(p=>`${l.keyPrefix}${m}${p}`):f=l.keyPrefix?`${l.keyPrefix}${m}${s}`:s,r.t(f,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 u=this.services.backendConnector.state[`${a}|${l}`];return u===-1||u===0||u===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=Ji();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=Ji();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 g1(S1());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]:Sl;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 f1(this.store.data,r),i.services.resourceStore=i.store),i.translator=new wl(i.services,r),i.translator.on("*",function(a){for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c<l;c++)u[c-1]=arguments[c];i.emit(a,...u)}),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 v1=Yi.createInstance();v1.createInstance=Yi.createInstance;var TO=v1;const jO=TO,b1=["af","ar","bg","bn","bs","ca","cs","da","de","de-CH","el","en","eo","es","et","fa","fi","fr","gd","hi","hr","hu","id","is","it","ja","ko","kz","lt","mk","mn","ms","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"];sm.exports=(t="en",e="portal")=>{const n=jO.createInstance();let o={};return e==="newsletter"&&(o={prefix:"{",suffix:"}"}),n.init({lng:t,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:!1,ns:e,defaultNS:e,interpolation:o,resources:b1.reduce((r,i)=>{const s=lO("/ghost/i18n/lib")(`../locales/${i}/${e}.json`);return r[i]={[e]:{...s,...s.default&&typeof s.default=="object"?s.default:{}}},r},{})}),n},sm.exports.SUPPORTED_LOCALES=b1;var PO=sm.exports,IO=PO;const LO=Ze(IO);function zO({siteUrl:t=window.location.origin,apiUrl:e,apiKey:n}){const o="members/api";function r({type:u,resource:c,params:d=""}){return u==="members"?`${t.replace(/\/$/,"")}/${o}/${c}/${d}`:""}function i({resource:u,params:c=""}){return e&&n?`${e.replace(/\/$/,"")}/${u}/?key=${n}&limit=all${c}`:""}function s({url:u,method:c="GET",headers:d={},credentials:m=void 0,body:f=void 0}){return fetch(u,{method:c,headers:d,credentials:m,body:f})}let a=null;const l={site:{settings(){const u=i({resource:"settings"});return s({url:u,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(c){if(c.ok)return c.json();throw new Error("Failed to fetch site data")})}},member:{identity(){const u=r({type:"members",resource:"session"});return s({url:u,credentials:"same-origin"}).then(function(c){return!c.ok||c.status===204?null:c.text()})},sessionData(){const u=r({type:"members",resource:"member"});return s({url:u,credentials:"same-origin"}).then(function(c){return!c.ok||c.status===204?null:c.json()})},update({name:u,expertise:c}){const d=r({type:"members",resource:"member"});return s({url:d,method:"PUT",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({name:u,expertise:c})}).then(function(f){return f.ok?f.json():null})}},comments:{async count({postId:u}){const c=u?`?ids=${u}`:"",d=r({type:"members",resource:"comments/counts",params:c}),f=await(await s({url:d,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"})).json();return u?f[u]:f},browse({page:u,postId:c,order:d}){let m=null;a&&!d&&(m=`created_at:<=${a}`);const f=new URLSearchParams;f.set("limit","20"),m&&f.set("filter",m),f.set("page",u.toString()),d&&f.set("order",d);const p=r({type:"members",resource:`comments/post/${c}`,params:`?${f.toString()}`}),y=s({url:p,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:u,afterReplyId:c,limit:d}){const m=encodeURIComponent(`id:>'${c}'`),f=r({type:"members",resource:`comments/${u}/replies`,params:`?limit=${d??5}&filter=${m}`}),p=await s({url:f,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"});if(p.ok)return p.json();throw new Error("Failed to fetch replies")},add({comment:u}){const c={comments:[u]},d=r({type:"members",resource:"comments"});return s({url:d,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)}).then(function(m){if(m.ok)return m.json();throw new Error("Failed to add comment")})},edit({comment:u}){const c={comments:[u]},d=r({type:"members",resource:`comments/${u.id}`});return s({url:d,method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)}).then(function(m){if(m.ok)return m.json();throw new Error("Failed to edit comment")})},read(u){const c=r({type:"members",resource:`comments/${u}`});return s({url:c,method:"GET",credentials:"same-origin"}).then(function(d){if(d.ok)return d.json();throw new Error("Failed to read comment")})},like({comment:u}){const c=r({type:"members",resource:`comments/${u.id}/like`});return s({url:c,method:"POST",headers:{"Content-Type":"application/json"}}).then(function(d){if(d.ok)return"Success";throw new Error("Failed to like comment")})},unlike({comment:u}){const c={comments:[u]},d=r({type:"members",resource:`comments/${u.id}/like`});return s({url:d,method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)}).then(function(m){if(m.ok)return"Success";throw new Error("Failed to unlike comment")})},report({comment:u}){const c=r({type:"members",resource:`comments/${u.id}/report`});return s({url:c,method:"POST",headers:{"Content-Type":"application/json"}}).then(function(d){if(d.ok)return"Success";throw new Error("Failed to report comment")})}},init:()=>{}};return l.init=async()=>{const[u]=await Promise.all([l.member.sessionData()]);let c={};try{const d=await l.site.settings();d.settings.labs&&Object.assign(c,d.settings.labs)}catch{c={}}return{member:u,labs:c}},l}async function FO({state:t,api:e,options:n,order:o}){let r=1;t.pagination&&t.pagination.page&&(r=t.pagination.page+1);const i=await e.comments.browse({page:r,postId:n.postId,order:o||t.order});return{comments:[...t.comments,...i.comments],pagination:i.meta.pagination}}async function BO({data:{order:t},options:e,api:n}){const o=await n.comments.browse({page:1,postId:e.postId,order:t});return{comments:[...o.comments],pagination:o.meta.pagination,order:t}}async function HO({state:t,api:e,data:{comment:n,limit:o}}){var i;const r=await e.comments.replies({commentId:n.id,afterReplyId:(i=n.replies[n.replies.length-1])==null?void 0:i.id,limit:o});return{comments:t.comments.map(s=>s.id===n.id?{...n,replies:[...n.replies,...r.comments]}:s)}}async function VO({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 UO({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 JO({state:t,adminApi:e,data:n}){return await e.hideComment(n.id),{comments:t.comments.map(o=>{const r=o.replies.map(i=>i.id===n.id?{...i,status:"hidden"}:i);return o.id===n.id?{...o,status:"hidden",replies:r}:{...o,replies:r}}),commentCount:t.commentCount-1}}async function _O({state:t,api:e,adminApi:n,data:o}){await n.showComment(o.id);const i=(await e.comments.read(o.id)).comments[0];return{comments:t.comments.map(s=>{const a=s.replies.map(l=>l.id===o.id?i:l);return s.id===o.id?i:{...s,replies:a}}),commentCount:t.commentCount+1}}async function YO({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 KO({api:t,data:e}){return await t.comments.report({comment:e}),{}}async function WO({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 qO({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 GO({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 QO({data:t,state:e,api:n}){var l,u;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=(u=e==null?void 0:e.member)==null?void 0:u.expertise;if(r!==void 0&&a!==r&&(i.expertise=r),Object.keys(i).length>0)try{const c=await n.member.update(i);if(!c)throw new Error("Failed to update member");return{member:c,success:!0}}catch(c){return{success:!1,error:c}}return null}function ZO({data:t}){return{popup:t}}function XO(){return{popup:null}}function eA({state:t}){return{secundaryFormCount:t.secundaryFormCount+1}}function tA({state:t}){return{secundaryFormCount:t.secundaryFormCount-1}}const x1={openPopup:ZO,closePopup:XO,increaseSecundaryFormCount:eA,decreaseSecundaryFormCount:tA},nA={addComment:VO,editComment:GO,hideComment:JO,deleteComment:qO,showComment:_O,likeComment:YO,unlikeComment:WO,reportComment:KO,addReply:UO,loadMoreComments:FO,loadMoreReplies:HO,updateMember:QO,setOrder:BO};function oA(t){return!!x1[t]}async function rA({action:t,data:e,state:n,api:o,adminApi:r,options:i}){const s=nA[t];return s?await s({data:e,state:n,api:o,adminApi:r,options:i})||{}:{}}function iA({action:t,data:e,state:n,api:o,adminApi:r,options:i}){const s=x1[t];return s?s({data:e,state:n,api:o,adminApi:r,options:i})||{}:{}}function sA({adminUrl:t}){const e=document.querySelector('iframe[data-frame="admin-auth"]');let n=1;const o={},r=new URL(t).origin;window.addEventListener("message",function(a){if(a.origin!==r)return;let l=null;try{l=JSON.parse(a.data)}catch{return}const u=o[l.uid];u&&(delete o[l.uid],u(l.error,l.result))});function i(a,l){return new Promise((u,c)=>{function d(m,f){return m?c(m):u(f)}n+=1,o[n]=d,e.contentWindow.postMessage(JSON.stringify({uid:n,action:a,...l}),r)})}return{async getUser(){const a=await i("getUser");return!a||!a.users?null:a.users[0]},async hideComment(a){return await i("hideComment",{id:a})},async showComment(a){return await i("showComment",{id:a})}}}function aA(t){const e=U.useCallback(()=>{const i=t.dataset,s=i.ghostComments||window.location.origin,a=i.key,l=i.api,u=i.admin,c=i.postId||"",d=i.colorScheme,m=i.avatarSaturation?parseInt(i.avatarSaturation):void 0,f=i.accentColor??"#000000",p=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:c,adminUrl:u,colorScheme:d,avatarSaturation:m,accentColor:f,commentsEnabled:p,title:y,showCount:h,publication:g}},[t]),n=x.useMemo(()=>e(),[]),[o,r]=U.useState(n);return U.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 lA=({scriptTag:t})=>{const e=aA(t),[n,o]=x.useState({initStatus:"running",member:null,admin:null,comments:[],pagination:null,commentCount:0,secundaryFormCount:0,popup:null,labs:null,order:"count__likes desc, created_at desc"}),r=U.createRef(),i=U.useMemo(()=>zO({siteUrl:e.siteUrl,apiUrl:e.apiUrl,apiKey:e.apiKey}),[e]),[s,a]=x.useState(null),l=x.useCallback(h=>{o(g=>(typeof h=="function"&&(h=h(g)),{...g,...h}))},[o]),u=x.useCallback(async(h,g)=>{if(oA(h)){l(S=>iA({action:h,data:g,state:S,api:i,adminApi:s,options:e}));return}l(S=>(rA({action:h,data:g,state:S,api:i,adminApi:s,options:e}).then(k=>{l({...k})}).catch(console.error),{}))},[i,s,e]),c=x.useMemo(()=>LO(e.locale,"comments"),[e.locale]),d={...e,...n,t:c.t,dispatchAction:u},m=async()=>{if(!(s||!e.adminUrl))try{const h=sA({adminUrl:e.adminUrl});a(h);let g=null;try{g=await h.getUser()}catch(S){console.warn("[Comments] Failed to fetch current admin user:",S)}l({admin:g})}catch(h){console.error("[Comments] Failed to initialize admin authentication:",h)}},f=async h=>{let g;h!=null&&h.commentImprovements?g=i.comments.browse({page:1,postId:e.postId,order:n.order}):g=i.comments.browse({page:1,postId:e.postId});const S=i.comments.count({postId:e.postId}),[k,b]=await Promise.all([g,S]);return{comments:k.comments,pagination:k.meta.pagination,count:b}},p=async()=>{try{const{member:h,labs:g}=await i.init(),{comments:S,pagination:k,count:b}=await f(g),E=g.commentImprovements?"count__likes desc, created_at desc":"created_at desc";l({member:h,initStatus:"success",comments:S,pagination:k,commentCount:b,order:E,labs:g})}catch(h){console.error("[Comments] Failed to initialize:",h),l({initStatus:"failed"})}};x.useEffect(()=>{const h=new IntersectionObserver(g=>{g.forEach(S=>{S.isIntersecting&&(p(),r.current&&h.unobserve(r.current))})},{root:null,rootMargin:"0px",threshold:.1});return r.current&&h.observe(r.current),()=>{r.current&&h.unobserve(r.current)}},[r.current]);const y=n.initStatus==="success";return w.jsxs(El.Provider,{value:d,children:[w.jsx(GE,{ref:r,children:w.jsx(_E,{done:y})}),n.comments.length>0?w.jsx(z1,{adminUrl:e.adminUrl,onLoad:m}):null,w.jsx(rN,{})]})};function uA(){let t=document.currentScript;if(!t)throw new Error("[Comments-UI] Cannot find current script tag");return t}function cA(t){if(t.previousElementSibling&&t.previousElementSibling.id===ml)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=ml,t.parentElement.insertBefore(e,t),e}function dA(){const t=new URL(window.location.href);t.searchParams.get("token")&&(t.searchParams.delete("token"),window.history.replaceState({},document.title,t.href))}function mA(){const t=uA(),e=cA(t);try{dA(),p0.render(w.jsx(U.StrictMode,{children:w.jsx(lA,{scriptTag:t})}),e)}catch(n){console.error(n)}}mA()});
156
156
  //# sourceMappingURL=comments-ui.min.js.map